argp: avoid memory leak
[gnulib.git] / ChangeLog
1 2009-10-29  Eric Blake  <ebb9@byu.net>
2
3         argp: avoid memory leak
4         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6         base_name, since the latter malloc()s and can call exit().
7         Leak introduced 2006-07-03.
8
9         dirname-lgpl: adjust clients that don't need full dirname
10         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
11         * modules/filenamecat (Depends-on): Likewise.
12         * modules/linkat (Depends-on): Likewise.
13         * modules/mkancesdirs (Depends-on): Likewise.
14         * modules/mkdir (Depends-on): Likewise.
15         * modules/openat (Depends-on): Likewise.
16         * modules/savewd (Depends-on): Likewise.
17         * modules/rename (Depends-on): Likewise.
18         (License): Relax license.
19         * modules/mkdir-tests (Depends-on): Drop progname.
20         (Makefile.am): Delete unneeded LDADD.
21         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22
23         dirname: split into dirname-lgpl
24         * modules/dirname-lgpl: New module.
25         * modules/dirname (Files): Move library-safe files into
26         dirname-lgpl.
27         (Depends-on): Add dirname-lgpl.
28         (configure.ac): Declare witness.
29         * modules/double-slash-root (License): Relax license.
30         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
31         module.
32         * lib/dirname.c (dir_len, mdir_name): Move...
33         * lib/dirname-lgpl.c: ...into new file.
34         * lib/basename.c (last_component, base_len): Move...
35         * lib/basename-lgpl.c: ...into new file.
36         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
37         (gl_DIRNAME): Use it.
38         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39         Mention new module.
40         * modules/dirname-tests (Depends-on): Add progname.
41         * tests/test-dirname.c (program_name): Delete.
42
43         mkdir: make safe for libraries
44         * modules/mkdir (Depends-on): Drop xalloc.
45         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
46         exit.
47
48         tests: avoid some compiler warnings
49         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
50         literals.
51         * tests/test-memchr.c (main): Avoid type mismatch.
52         * tests/test-arpa_inet.c (main): Avoid unused parameters.
53         * tests/test-base64.c (main): Likewise.
54         * tests/test-getdelim.c (main): Likewise.
55         * tests/test-gethostname.c (main): Likewise.
56         * tests/test-getline.c (main): Likewise.
57         * tests/test-netinet_in.c (main): Likewise.
58         * tests/test-select.c (open_server_socket, main): Likewise.
59         * tests/test-select-stdin.c (main): Likewise.
60         * tests/test-sockets.c (main): Likewise.
61         * tests/test-strsignal.c (main): Likewise.
62         * tests/test-sys_select.c (main): Likewise.
63         * tests/test-sys_socket.c (main): Likewise.
64         * tests/test-u64.c (main): Likewise.
65         * tests/test-xfprintf-posix.c (main): Likewise.
66         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
67
68         sockets: avoid compiler warning
69         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
70
71         maint: detect usage(1) and other suspicious exits
72         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
73
74 2009-10-29  Jim Meyering  <meyering@redhat.com>
75
76         timespec: long-to-int truncation could make timespec_cmp malfunction
77         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78         a multiple of 2^32 nanoseconds as no difference.
79
80 2009-10-28  Jim Meyering  <meyering@redhat.com>
81
82         fprintftime: wrap macro code argument in "do {...} while(0)"
83         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
84         cpy macro must be a statement that can be followed by a semicolon.
85         Now that the else clause contains a comment and is hence longer
86         than one line, I require curly braces.  That in turn requires
87         that we wrap this code block in the standard do...while(0).
88
89         fprintftime: remove stray semicolon from previous change
90         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
91
92         fprintftime: avoid a warning about ignored fwrite return value
93         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
94         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
95         that is unsafe.
96         * modules/fprintftime (Depends-on): Add ignore-value.
97
98         exclude: avoid an unwarranted warning
99         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
100
101 2009-10-27  Eric Blake  <ebb9@byu.net>
102
103         fseek: avoid compilation failure when fflush is replaced
104         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
105         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
106         module is in use.
107         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
108         module is not in use; since REPLACE_FSEEK worked otherwise.
109         (GNULIB_FTELLO): Likewise for ftell.
110         Reported by Ian Beckwith and others.
111
112 2009-10-27  Bruno Haible  <bruno@clisp.org>
113
114         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
115         Reported by Jim Meyering.
116
117 2009-10-27  Jim Meyering  <jim@meyering.net>
118             Bruno Haible  <bruno@clisp.org>
119
120         Avoid warning despite dropping the return value of fwrite.
121         * lib/unicodeio.c: Include ignore-value.h.
122         (fwrite_success_callback): Explicitly ignore fwrite's return value.
123         * modules/unicodeio (Depends-on): Add ignore-value.
124
125 2009-10-26  Eric Blake  <ebb9@byu.net>
126
127         areadlinkat: fix fallback path
128         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
129         pointer and zero.
130
131 2009-10-22  Pádraig Brady  <P@draigBrady.com>
132
133         Use a better IO block size for modern systems
134         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
135         * lib/md2.c: Likewise.
136         * lib/md4.c: Likewise.
137         * lib/md5.c: Likewise.
138         * lib/sha1.c: Likewise.
139         * lib/sha256.c: Likewise.
140         * lib/sha512.c: Likewise.
141
142 2009-10-22  Eric Blake  <ebb9@byu.net>
143
144         tests: avoid several compiler warnings
145         * tests/test-getcwd.c (main): Avoid buffer underflow.
146         * tests/test-getdate.c (main): String literals are not safe with
147         putenv, so use setenv.  Declare unused argument.
148         * modules/getdate-tests (Depends-on): Add setenv.
149         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
150         problems with string literals in char *.
151         * tests/test-hash.c (main): Avoid shadowing declaration.
152         (insert_new): Treat string literals as char const *.
153         * tests/test-getopt.h (test_getopt): Likewise.
154         (getopt_loop): Alter types to minimize casting elsewhere.
155         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
156         (test_getopt_long_posix): Likewise.
157         (do_getopt_long): Add wrapper to minimize casting.
158         * tests/test-atexit.c (clear_temp_file): Use void.
159         * tests/test-areadlink-with-size.c (main): Declare unused
160         arguments.
161         * tests/test-areadlink.c (main): Likewise.
162         * tests/test-areadlinkat-with-size.c (main): Likewise.
163         * tests/test-areadlinkat.c (main): Likewise.
164         * tests/test-canonicalize-lgpl.c (main): Likewise.
165         * tests/test-canonicalize.c (main): Likewise.
166         * tests/test-dirent-safer.c (main): Likewise.
167         * tests/test-dirname.c (main): Likewise.
168         * tests/test-dup2.c (main): Likewise.
169         * tests/test-fchdir.c (main): Likewise.
170         * tests/test-fcntl-h.c (main): Likewise.
171         * tests/test-fcntl-safer.c (main): Likewise.
172         * tests/test-fdopendir.c (main): Likewise.
173         * tests/test-fdutimensat.c (main): Likewise.
174         * tests/test-fflush.c (main): Likewise.
175         * tests/test-filenamecat.c (main): Likewise.
176         * tests/test-filevercmp.c (main): Likewise.
177         * tests/test-fopen-safer.c (main): Likewise.
178         * tests/test-fopen.c (main): Likewise.
179         * tests/test-fpending.c (main): Likewise.
180         * tests/test-fpurge.c (main): Likewise.
181         * tests/test-freading.c (main): Likewise.
182         * tests/test-fstatat.c (main): Likewise.
183         * tests/test-fsync.c (main): Likewise.
184         * tests/test-futimens.c (main): Likewise.
185         * tests/test-getndelim2.c (main): Likewise.
186         * tests/test-gettimeofday.c (main): Likewise.
187         * tests/test-getopt.c (main): Likewise.
188         * tests/test-i-ring.c (main): Likewise.
189         * tests/test-inttypes.c (main): Likewise.
190         * tests/test-link.c (main): Likewise.
191         * tests/test-lstat.c (main): Likewise.
192         * tests/test-math.c (main): Likewise.
193         * tests/test-md5.c (main): Likewise.
194         * tests/test-memchr2.c (main): Likewise.
195         * tests/test-memrchr.c (main): Likewise.
196         * tests/test-mkdir.c (main): Likewise.
197         * tests/test-mkdirat.c (main): Likewise.
198         * tests/test-mkfifoat.c (main): Likewise.
199         * tests/test-open.c (main): Likewise.
200         * tests/test-openat-safer.c (main): Likewise.
201         * tests/test-openat.c (main): Likewise.
202         * tests/test-quotearg.c (main): Likewise.
203         * tests/test-rawmemchr.c (main): Likewise.
204         * tests/test-readlink.c (main): Likewise.
205         * tests/test-remove.c (main): Likewise.
206         * tests/test-rename.c (main): Likewise.
207         * tests/test-renameat.c (main): Likewise.
208         * tests/test-rmdir.c (main): Likewise.
209         * tests/test-sha1.c (main): Likewise.
210         * tests/test-signal.c (main): Likewise.
211         * tests/test-sigaction.c (main): Likewise.
212         * tests/test-stat.c (main): Likewise.
213         * tests/test-stat-time.c (main): Likewise.
214         * tests/test-stddef.c (main): Likewise.
215         * tests/test-stdint.c (main): Likewise.
216         * tests/test-stdio.c (main): Likewise.
217         * tests/test-stdlib.c (main): Likewise.
218         * tests/test-strchrnul.c (main): Likewise.
219         * tests/test-strerror.c (main): Likewise.
220         * tests/test-string.c (main): Likewise.
221         * tests/test-strtod.c (main): Likewise.
222         * tests/test-strverscmp.c (main): Likewise.
223         * tests/test-symlink.c (main): Likewise.
224         * tests/test-symlinkat.c (main): Likewise.
225         * tests/test-sys_stat.c (main): Likewise.
226         * tests/test-sys_time.c (main): Likewise.
227         * tests/test-time.c (main): Likewise.
228         * tests/test-unistd.c (main): Likewise.
229         * tests/test-unlink.c (main): Likewise.
230         * tests/test-unlinkat.c (main): Likewise.
231         * tests/test-utimens.c (main): Likewise.
232         * tests/test-utimensat.c (main): Likewise.
233         * tests/test-version-etc.c (main): Likewise.
234         * tests/test-wchar.c (main): Likewise.
235         * tests/test-wctype.c (main): Likewise.
236         * tests/test-xprintf-posix.c (main): Likewise.
237         * tests/test-posixtm.c (main): Likewise.
238         (STREQ): Delete unused macro.
239         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
240         shadowed variables.
241         * tests/test-memchr.c (main): Likewise.
242
243 2009-10-21  Eric Blake  <ebb9@byu.net>
244
245         areadlinkat: avoid failure on older glibc
246         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
247         rather than mis-comparing 0 against FUNC_RESULT of char*.
248
249 2009-10-21  Bruno Haible  <bruno@clisp.org>
250
251         * modules/stpncpy (License): Relicense under LGPLv2+.
252         Reported by David Lutterkort <lutter@redhat.com>.
253
254 2009-10-20  Eric Blake  <ebb9@byu.net>
255
256         utimensat: work around Solaris 9 bug
257         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
258         has trailing slash bugs.
259         * tests/test-lutimens.h (test_lutimens): Enhance test.
260         * tests/test-utimens.h (test_utimens): Likewise.
261         * doc/posix-functions/utime.texi (utime): Enhance documentation.
262         * doc/posix-functions/utimes.texi (utimes): Likewise.
263         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
264         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
265         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
266         * doc/posix-functions/futimens.texi (futimens): Likewise.
267
268         fdutimensat: new module
269         * modules/fdutimensat: New file.
270         * lib/fdutimensat.c (fdutimensat): Likewise.
271         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
272         * MODULES.html.sh (File system functions): Mention module.
273         * modules/fdutimensat-tests: New test.
274         * tests/test-fdutimensat.c: Likewise.
275
276         doc: regenerate INSTALL
277         * doc/INSTALL: Reflect recent autoconf update.
278         * doc/INSTALL.ISO: Likewise.
279         * doc/INSTALL.UTF-8: Likewise.
280
281 2009-10-20  Pádraig Brady  <P@draigBrady.com>
282
283         acl: warn if ACL support is not detected
284         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
285
286 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
287
288         * lib/nproc.h: Add extern "C" block for C++.
289
290 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
291             Bruno Haible  <bruno@clisp.org>
292
293         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
294         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
295         * doc/posix-functions/isalpha.texi: Likewise.
296         * doc/posix-functions/isblank.texi: Likewise.
297         * doc/posix-functions/iscntrl.texi: Likewise.
298         * doc/posix-functions/isdigit.texi: Likewise.
299         * doc/posix-functions/isgraph.texi: Likewise.
300         * doc/posix-functions/islower.texi: Likewise.
301         * doc/posix-functions/isprint.texi: Likewise.
302         * doc/posix-functions/ispunct.texi: Likewise.
303         * doc/posix-functions/isspace.texi: Likewise.
304         * doc/posix-functions/isupper.texi: Likewise.
305         * doc/posix-functions/isxdigit.texi: Likewise.
306
307 2009-10-18  Bruno Haible  <bruno@clisp.org>
308
309         Tests for module 'isblank'.
310         * modules/isblank-tests: New file.
311         * tests/test-isblank.c: New file.
312
313         New module 'isblank'.
314         * lib/isblank.c: New file.
315         * m4/isblank.m4: New file.
316         * modules/isblank: New file.
317         * doc/posix-functions/isblank.texi: Mention the new module.
318
319 2009-10-18  Bruno Haible  <bruno@clisp.org>
320
321         New module 'ctype'.
322         * lib/ctype.in.h: New file.
323         * m4/ctype.m4: New file.
324         * modules/ctype: New file.
325         * doc/posix-headers/ctype.texi: Mention the new module.
326
327 2009-10-18  Jim Meyering  <meyering@redhat.com>
328
329         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
330         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
331         right after its initialization, rather than farther down.
332         Keeping these in close proximity makes it easier to ensure
333         that each such variable is initialized.  E.g.,
334
335             LIB_CLOCK_GETTIME=
336             AC_SUBST([LIB_CLOCK_GETTIME])
337
338         This change also increments these serial numbers.
339         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
340         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
342
343 2009-10-18  Bruno Haible  <bruno@clisp.org>
344
345         Don't let environment variables perturb build.
346         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
347         (gl_PREREQ_GETHRXTIME): ... not here.
348
349 2009-10-18  Bruno Haible  <bruno@clisp.org>
350
351         Avoid symlink attack in localcharset module.
352         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
353         (O_NOFOLLOW): Define fallback.
354         (get_charset_aliases): Don't open the file if it is a symbolic link.
355         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
356         gl_FCNTL_H.
357         (gl_FCNTL_H): Require it.
358         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
359         * modules/localcharset (Files): Add m4/fcntl_h.m4.
360         Reported by Fergal Glynn <fglynn@veracode.com>.
361
362 2009-10-18  Bruno Haible  <bruno@clisp.org>
363
364         Implement nproc for mingw.
365         * lib/nproc.c: Include <windows.h>
366         (num_processors): On native Windows platforms, try GetSystemInfo.
367
368 2009-10-18  Bruno Haible  <bruno@clisp.org>
369
370         Implement nproc for IRIX.
371         * lib/nproc.c: Include <sys/sysmp.h>.
372         (num_processors): On IRIX systems, try sysmp.
373         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
374
375 2009-10-18  Bruno Haible  <bruno@clisp.org>
376
377         Implement nproc for HP-UX.
378         * lib/nproc.c: Include <sys/pstat.h>
379         (num_processors): On HP-UX systems, try pstat_getdynamic.
380         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
381         pstat_getdynamic.
382
383 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
384             Bruno Haible  <bruno@clisp.org>
385
386         Implement nproc for NetBSD, OpenBSD.
387         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
388         (ARRAY_SIZE): New macro.
389         (num_processors): On BSD systems, try sysctl of HW_NCPU.
390         * m4/nproc.m4: New file.
391         * modules/nproc (Files): Add m4/nproc.m4.
392         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
393         (Makefile.am): Instead, augment lib_SOURCES.
394
395 2009-10-18  Bruno Haible  <bruno@clisp.org>
396
397         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
398         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
399         sys/param.h.
400
401 2009-10-16  Eric Blake  <ebb9@byu.net>
402
403         utimensat: new module
404         * modules/utimensat: New file.
405         * lib/utimensat.c (utimensat): Likewise.
406         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
407         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
408         so we can work around Linux bugs.
409         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
410         * modules/sys_stat (Makefile.am): Substitute them.
411         * lib/sys_stat.in.h (utimensat): Declare it.
412         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
413         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
414         * modules/utimensat-tests: New test.
415         * tests/test-utimensat.c: Likewise.
416
417         utimens: let lutimens work on non-symlinks
418         * lib/utimens.c (lutimens): Fall back to utimens rather than
419         failing with ENOSYS, when file is not a symlink.
420         (utimens): Reduce redirection.
421         * tests/test-lutimens.h (test_lutimens): Update test to cover
422         non-symlinks.
423         * tests/test-utimens.h (test_utimens): Update test to cover
424         symlinks.
425         * tests/test-utimens.c (main): Update caller.
426
427         utimens: cache whether utimensat syscall works
428         * lib/utimens.c (utimensat_works_really): New cache variable.
429         (fdutimens, lutimens): Use it to avoid failing syscall.
430
431         test-stat-time, test-utimens: improve portability
432         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
433         ext4 on alpha, and for cygwin.
434         * tests/test-utimens-common.h: New file.
435         (nap): Factor delays into single function.
436         * tests/test-lutimens.h (test_lutimens): Use new header.
437         * tests/test-futimens.h (test_futimens): Likewise.
438         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
439         timestamps to occur from same machine, as was done previously for
440         test_utimens.
441         * modules/utimens-tests (Files): Ship new file.
442         * modules/futimens-tests (Files): Likewise.
443         Reported in part by Jim Meyering.
444
445         sys_stat: sort replacement declarations
446         * lib/sys_stat.in.h: Sort declarations.
447         * lib/futimens.c (futimens): Fix typo.
448
449 2009-10-15  Jim Meyering  <meyering@redhat.com>
450
451         don't let environment settings perturb build
452         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
453         could cause a configure-time and/or build-time malfunction.
454         Typically, a configure-time function-in-library test is performed
455         via code like this:
456
457           LIB_VAR=
458           AC_SUBST([LIB_VAR])
459           prefix_saved_LIBS=$LIBS
460             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
461                        [test "$ac_cv_search_FUNC" = "none required" ||
462                         LIB_VAR=$ac_cv_search_FUNC])
463           LIBS=$prefix_saved_LIBS
464
465         However, in each of the files affected by this change, the LIB_VAR=
466         initialization was omitted.  Thus, when set in the environment, its
467         value would propagate into generated Makefiles when FUNC is not found
468         in LIB_NAME.
469         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
470         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
472
473 2009-10-14  Eric Blake  <ebb9@byu.net>
474
475         fchdir: avoid infinite recursion in mingw
476         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
477         recursing.
478
479         test-stat-time: port to mingw
480         * tests/test-stat-time.c (force_unlink): Return a value.
481         (test_ctime) [W32]: Fix compilation error.
482         (nap): Don't call usleep with too large an argument.  Use
483         force_unlink.
484         * doc/pastposix-functions/usleep.texi (usleep): Document the
485         portability issue.
486
487 2009-10-13  Jim Meyering  <meyering@redhat.com>
488
489         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
490         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
491         * modules/pipe-filter-ii: Likewise.
492         * modules/sys_socket-tests: Likewise.
493         * modules/tsearch-tests: Likewise.
494         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
495         (check): Depend on it.
496
497 2009-10-12  Eric Blake  <ebb9@byu.net>
498
499         utimens-tests: port to NFS file systems
500         * tests/test-utimens.h (test_utimens): Refactor utimecmp
501         comparisons to avoid spurious failures from timestamp drift
502         between NFS machines.
503
504 2009-10-12  Eric Blake  <ebb9@byu.net>
505
506         stat-time-tests: minor cleanups
507         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
508         * tests/test-stat-time.c (nap): Separate assignment from call.
509         Suggested by Paolo Bonzini and Bruno Haible.
510
511         sys_stat: guarantee struct timespec
512         * lib/sys_stat.in.h (includes): Always include <time.h>
513         * modules/sys_stat (Depends-on): Add time.
514         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
515         mode_t permission values.
516         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
517         get at subsecond timestamps.
518
519 2009-10-10  Eric Blake  <ebb9@byu.net>
520
521         futimens: new module
522         * modules/futimens: New file.
523         * lib/futimens.c (futimens): Likewise.
524         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
525         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
526         we can work around Linux bugs.
527         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
528         * modules/sys_stat (Makefile.am): Substitute them.
529         * lib/sys_stat.in.h (futimens): Declare it.
530         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
531         * doc/posix-functions/futimens.texi (futimens): Likewise.
532         * modules/futimens-tests: New test.
533         * tests/test-futimens.c: Likewise.
534
535         utimens: introduce fdutimens
536         * lib/utimens.h (fdutimens): New prototype.
537         * lib/utimens.c (gl_futimens): Move guts...
538         (fdutimens): ...to new interface.
539         * tests/test-utimens.c (do_fdutimens): Use it.
540
541         utimens: add UTIME_NOW and UTIME_OMIT support
542         * lib/utimens.c (validate_timespec, update_timespec): New helper
543         functions.
544         (gl_futimens, lutimens): Use them.
545         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
546         stdbool, sys_stat.
547         (Link): Mention resulting library dependency.
548         * modules/utimecmp (Link): Likewise.
549         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
550         (Makefile.am): Pick up library dependency.
551         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
552         definition.
553         * tests/test-sys_stat.c: Test the definitions.
554         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
555         * NEWS: Document library dependency.
556
557         utimecmp: support symlink timestamps
558         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
559         hashing when possible.  Use pathconf when available.
560         (SYSCALL_RESOLUTION): Recognize tighter resolution.
561         * modules/utimecmp (Depends-on): Add lstat.
562
563         utimens: add lutimens interface
564         * lib/utimens.c (lutimens): New function.
565         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
566         * lib/utimens.h (lutimens): Declare new interface.
567         * tests/test-utimens.c (main): Enhance test.
568         * tests/test-lutimens.h (test_lutimens): New file.
569         * modules/utimens-tests (Files): Distribute it.
570         (Depends-on): Add symlink.
571         (configure.ac): Check for usleep.
572
573         utimens: validate futimens usage
574         * lib/utimens.c (gl_futimens): Require valid fd up front, using
575         fewer syscalls on failure later on.  Avoid compiler warning on
576         mingw.
577         * modules/utimens (Depends-on): Add dup2.
578
579         utimens: add test
580         * modules/utimens-tests: New test.
581         * tests/test-utimens.h: New file.
582         * tests/test-futimens.h: Likewise.
583         * tests/test-utimens.c: Likewise.
584
585         doc: mention timestamp portability issues
586         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
587         instead.
588         * doc/posix-functions/utime.texi (utime): Likewise.
589         * doc/posix-functions/utimes.texi (utimes): Likewise.
590         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
591         instead.
592         * doc/posix-functions/futimens.texi (futimens): Mention utimens
593         module.
594         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
595         Mention weakness with symlink timestamps.
596         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
597         to utimensat/futimens instead.
598         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
599
600         test-dup2: enhance test
601         * tests/test-dup2.c (main): Also check AT_FDCWD.
602
603         test-stat-time: avoid more spurious failures
604         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
605         xfs; and avoid race if the two timestamps cross quantization edge.
606
607         relocatable: prefer 'file system' over 'filesystem'
608         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
609         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
610         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
611         * doc/relocatable.texi (Enabling Relocatability): Likewise.
612         * lib/relocatable.c (compute_curr_prefix): Likewise.
613
614 2009-10-10  Jim Meyering  <meyering@redhat.com>
615
616         stat-time-tests: check for the usleep function
617         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
618
619 2009-10-10  Bruno Haible  <bruno@clisp.org>
620
621         * modules/xnanosleep: Put the Link section after the Include section.
622
623 2009-10-09  Eric Blake  <ebb9@byu.net>
624
625         dup2: work around FreeBSD 6.1 bug
626         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
627         * doc/posix-functions/dup2.texi (dup2): Document it.
628         Reported by Nelson H. F. Beebe and Jim Meyering.
629
630         test-stat-time: port to buggy NFS clients
631         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
632         (test_ctime): Also skip test if mtime and ctime are skewed.
633
634         maint: prefer 'file system' over 'filesystem'
635         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
636         * doc/posix-functions/lstat.texi (lstat): Likewise.
637         * lib/file-has-acl.c (file_has_acl): Likewise.
638         * lib/fwriteerror.c [TEST]: Likewise.
639         * tests/test-areadlink.h (test_areadlink): Likewise.
640         * tests/test-areadlinkat-with-size.c (main): Likewise.
641         * tests/test-areadlinkat.c (main): Likewise.
642         * tests/test-canonicalize-lgpl.c (main): Likewise.
643         * tests/test-canonicalize.c (main): Likewise.
644         * tests/test-fstatat.c (main): Likewise.
645         * tests/test-linkat.c (main): Likewise.
646         * tests/test-lstat.h (test_lstat_func): Likewise.
647         * tests/test-mkdir.h (test_mkdir): Likewise.
648         * tests/test-readlink.h (test_readlink): Likewise.
649         * tests/test-remove.c (main): Likewise.
650         * tests/test-rename.h (test_rename): Likewise.
651         * tests/test-renameat.c (main): Likewise.
652         * tests/test-rmdir.h (test_rmdir_func): Likewise.
653         * tests/test-symlink.h (test_symlink): Likewise.
654         * tests/test-symlinkat.c (main): Likewise.
655         * tests/test-unlink.h (test_unlink_func): Likewise.
656         * tests/test-unlinkat.c (main): Likewise.
657
658         maint: make realtime library usage explicit
659         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
660         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
661         * modules/settime (Link): Likewise.
662         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
663
664         test-stat-time: speed up execution
665         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
666         warning on mingw.
667         (nap): New helper function.
668         (prepare_test): Use it to reduce sleep time.
669         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
670         execution.
671         * modules/stat-time-tests (configure.ac): Check for usleep.
672
673 2009-10-09  Jim Meyering  <meyering@redhat.com>
674
675         selinux-h: always use getfilecon wrappers
676         * lib/getfilecon.c: New file.
677         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
678         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
679         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
680         (fgetfilecon): Provide a stub.
681         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
682         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
683         file unconditionally.
684         When <selinux/selinux.h> is found, arrange to use wrappers.
685         * modules/selinux-h (Files): Add getfilecon.c.
686         (Makefile.am): Substitute include-next-related bits
687         into the now-always-generated selinux/selinux.h file.
688         * doc/glibc-functions/lgetfilecon.texi: New file.
689         * doc/glibc-functions/fgetfilecon.texi: New file.
690         * doc/glibc-functions/getfilecon.texi: New file.
691         * doc/glibc-functions/getfilecon-desc.texi: New file.
692         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
693         which to pull in the new files.
694         * MODULES.html.sh (Misc): Add selinux-h.
695
696 2009-10-08  Jim Meyering  <meyering@redhat.com>
697
698         unistd: fix comment typo
699         * lib/unistd.in.h (euidaccess): Fix a comment typo.
700
701 2009-10-08  Eric Blake  <ebb9@byu.net>
702
703         areadlink: use SIZE_MAX consistently
704         * modules/areadlink (Depends-on): Add stdint.
705         * modules/areadlink-with-size (Depends-on): Likewise.
706         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
707         gives NULL; drop sys/types, since unistd gives size_t; and add
708         stdint for SIZE_MAX.
709         (SIZE_MAX): Rely on headers.
710         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
711         and add stdint.
712         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
713         (SIZE_MAX): Likewise.
714         (INITIAL_BUF_SIZE): Turn into enum.
715         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
716
717 2009-10-08  Jim Meyering  <meyering@redhat.com>
718
719         areadlinkat: avoid compilation failure
720         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
721         Fix typo in comment.
722
723 2009-10-07  Eric Blake  <ebb9@byu.net>
724
725         areadlinkat-with-size: new module
726         * modules/areadlinkat-with-size: New module.
727         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
728         * lib/areadlink.h (areadlinkat): Declare it.
729         * MODULES.html.sh (File system functions): Mention it.
730         * modules/areadlinkat-with-size-tests: New test.
731         * tests/test-areadlinkat-with-size.c: New file.
732
733         xreadlinkat: new module
734         * modules/xreadlinkat: New module.
735         * lib/xreadlinkat.c (xreadlinkat): New file.
736         * lib/xreadlink.h (xreadlinkat): Declare it.
737         * MODULES.html.sh (File system functions): Mention it.
738
739         areadlinkat: new module
740         * lib/at-func.c (FUNC_FAIL): New define.
741         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
742         * modules/areadlinkat: New module.
743         * lib/linkat.c (areadlinkat): Move...
744         * lib/areadlinkat.c (areadlinkat): ...to new file.
745         * lib/areadlink.h (areadlinkat): Declare it.
746         * modules/linkat (Depends-on): Add areadlinkat.
747         * MODULES.html.sh (File system functions): Mention it.
748         * modules/areadlinkat-tests: New test.
749         * tests/test-areadlinkat.c: New file.
750
751         areadlink, areadlink-with-size: add tests
752         * modules/areadlink-tests: New test.
753         * modules/areadlink-with-size-tests: Likewise.
754         * tests/test-areadlink.h: New file.
755         * tests/test-areadlink.c: Likewise.
756         * tests/test-areadlink-with-size.c: Likewise.
757
758         maint: minor cleanups
759         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
760         _UNUSED_PARAMETER_ instead.
761         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
762         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
763         * modules/linkat-tests (Files): Distribute test-link.h.
764
765         openat, utimens: whitespace cleanup
766         * lib/openat.c: Prefer space throughout, rather than mix of 8
767         spaces vs. tabs.
768         * lib/at-func.c: Likewise.
769         * lib/utimens.c: Likewise.
770
771         openat: avoid using wrong fd
772         * lib/openat.c (openat_permissive): Reject user's fd if saving the
773         working directory chooses same fd.
774         * lib/at-func.c (AT_FUNC_NAME): Likewise.
775
776         mkdir, mkdirat: fix cygwin 1.5.x bug
777         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
778         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
779         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
780         bug.
781         (gl_PREREQ_MKDIR): Delete unused macro.
782         * modules/mkdir (Files): Track file rename.
783         (configure.ac): Update macro name.
784         * modules/openat (Depends-on): Add mkdir.
785         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
786
787         mkdir, mkdirat: add tests
788         * modules/mkdir-tests: New test.
789         * tests/test-mkdir.h: New file.
790         * tests/test-mkdir.c: Likewise.
791         * tests/test-mkdirat.c: Likewise.
792         * modules/openat-tests (Files): Add new files.
793         (Makefile.am): Run new test.
794
795 2009-10-06  Eric Blake  <ebb9@byu.net>
796
797         doc: tweak *at function documentation
798         * doc/posix-functions/faccessat.texi (faccessat): Mention
799         known issue with replacement.
800         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
801         * doc/posix-functions/linkat.texi (linkat): Likewise.
802         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
803         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
804         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
805         * doc/posix-functions/renameat.texi (renameat): Likewise.
806         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
807
808         openat: fix GNU/Hurd bug in unlinkat
809         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
810         broken.
811         * doc/posix-functions/unlink.texi (unlink): Document this.
812         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
813
814         fdopendir: fix GNU/Hurd bug
815         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
816         allowing non-directory fds.
817         * lib/fdopendir.c (rpl_fdopendir): Work around it.
818         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
819         * modules/dirent (Makefile.am): Substitute it.
820         * lib/dirent.in.h (fdopendir): Declare replacement.
821         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
822         * tests/test-fdopendir.c (main): Test something other than
823         /dev/null, since on Hurd that behaves like a directory.
824
825         test-symlink: port to GNU/Hurd
826         * tests/test-symlink.h (test_symlink): Relax expected errno.
827
828         doc: tweak more cygwin information
829         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
830         now compatible with glibc.
831         * doc/posix-functions/getopt.texi (getopt): Likewise.
832
833         getopt-gnu: add another test
834         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
835         guarantee behavior relied on by m4.
836         * tests/test-getopt.c (main): Use it.
837         * modules/getopt-posix-tests (Depends-on): Add setenv.
838         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
839
840         getopt: fix compilation on darwin
841         * lib/getopt.in.h (includes): Leave breadcrumbs during system
842         include.
843         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
844         Reported by Ludovic Courtès.
845
846 2009-10-06  Bruno Haible  <bruno@clisp.org>
847
848         * modules/size_max (Description): Discourage its use.
849         Reported by Simon Josefsson.
850
851 2009-10-06  Jim Meyering  <meyering@redhat.com>
852
853         linkat: avoid compilation failure
854         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
855
856 2009-10-05  Eric Blake  <ebb9@byu.net>
857
858         linkat: support Linux 2.6.17
859         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
860         linkat on Linux, but allow cache variable override.
861         * lib/linkat.c (rpl_linkat): Define override.
862         * modules/linkat (Depends-on): Add symlinkat.
863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
864         * modules/unistd (Makefile.am): Substitute it.
865         * lib/unistd.in.h (linkat): Declare replacement.
866         Reported by Pádraig Brady.
867
868         quotearg: port test to systems with C.UTF-8 locale
869         * tests/test-quotearg.c (struct result_strings): Add another
870         member, differentiating between C.ASCII and C.UTF-8 handling.
871         (compare_strings): Add parameter.
872         (main): Adjust all callers.
873
874         getopt: avoid clash with FreeBSD _getopt_internal
875         * lib/getopt.in.h (_getopt_internal): Override the name.
876         * lib/getopt_int.h (includes): Pick up any overrides.
877         Reported by Reuben Thomas.
878
879         hash: allow C89 compilation
880         * lib/hash.c (check_tuning): Move declaration before statement.
881         Reported by Reuben Thomas.
882
883 2009-10-05  Karl Berry  <karl@gnu.org>
884
885         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
886
887 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
888             Bruno Haible  <bruno@clisp.org>
889
890         * lib/uname.c (uname): Use a table-driven algorithm to compute
891         Windows NT versions.
892
893 2009-10-04  Bruno Haible  <bruno@clisp.org>
894
895         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
896         program_invocation_short_name.
897         * modules/progname (configure.ac): Test for presence of
898         program_invocation_short_name.
899         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
900
901 2009-10-04  Bruno Haible  <bruno@clisp.org>
902
903         * lib/progname.c (set_program_name): Fix comment.
904         Reported by Jim Meyering.
905
906 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
907             Bruno Haible  <bruno@clisp.org>
908
909         * lib/uname.c: Include <string.h>.
910         (uname): Do only one call to GetVersionEx in the common case.
911
912 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
913             Bruno Haible  <bruno@clisp.org>
914
915         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
916         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
917         (uname): Add support for Windows CE and various non-x86 CPU types.
918
919 2009-10-03  Bruno Haible  <bruno@clisp.org>
920
921         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
922         invocation to tests/configure.ac.
923         Reported by Ian Beckwith <ianb@erislabs.net>.
924
925 2009-10-02  Eric Blake  <ebb9@byu.net>
926
927         fchdir: avoid compiler warning
928         * lib/fchdir.c (canonicalize_file_name)
929         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
930
931         test-open: support mingw errno values
932         * tests/test-open.h (test_open): Relax test.
933         * tests/test-fopen.h (test_fopen): Likewise.
934         * tests/test-openat-safer.c (main): Likewise.
935
936         open: fix opening directory on mingw
937         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
938
939         test-open: on GNU/Hurd, /dev/null is a directory
940         * tests/test-fopen.h (main): Rename...
941         (test_fopen): ...to this.  Use a guaranteed non-directory when
942         confirming open behavior on trailing slash.
943         * tests/test-openat-safer.c (main): Likewise.
944         * tests/test-open.h (main): Likewise....
945         (test_open): ...to this.
946         * tests/test-fopen.c (main): Adjust caller.
947         * tests/test-fopen-safer.c (main): Likewise.
948         * tests/test-open.c (main): Likewise.
949         * tests/test-fcntl-safer.c (main): Likewise.
950         Reported by Samuel Thibault.
951
952         rename, fchdir: don't ignore chdir failure
953         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
954         * lib/rename.c (rpl_rename) [W32]: Likewise.
955         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
956         an empty destination directory if source cannot be renamed,
957         although there is still possibility for failure.
958         * doc/posix-functions/rename.texi (rename): Document the race.
959         Reported by Jim Meyering.
960
961         maint: cleanup whitespace in recent commits
962         * lib/rename.c (rpl_rename): Remove tabs.
963         * tests/test-link.h (test_link): Likewise.
964         * lib/fchdir.c (get_name): Likewise.
965         Reported by Jim Meyering.
966
967 2009-10-02  Ben Pfaff  <blp@gnu.org>
968
969         relocatable-prog-wrapper: Add missing dependency on
970         double-slash-root.
971         * modules/relocatable-prog-wrapper: Add dependency.
972         Reported by Ian Beckwith <ianb@erislabs.net>.
973
974 2009-10-02  Eric Blake  <ebb9@byu.net>
975
976         renameat: fix Solaris bugs
977         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
978         needed fixing.
979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
980         * modules/stdio (Makefile.am): Substitute it.
981         * lib/stdio.in.h (renameat): Declare replacement.
982         * lib/renameat.c (rpl_renameat): Implement fix.
983
984         renameat: new module
985         * modules/renameat: New file.
986         * lib/renameat.c (renameat): Likewise.
987         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
989         * modules/stdio (Makefile.am): Substitute them.
990         * lib/stdio.in.h (renameat): Declare it.
991         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
992         * doc/posix-functions/renameat.texi (renameat): Likewise.
993         * modules/renameat-tests: New test.
994         * tests/test-renameat.c: Likewise.
995
996         rename: fix mingw bugs
997         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
998         directory overwrite bugs.
999
1000         rename: fix another cygwin 1.5 bug
1001         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
1002         checks.
1003         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
1004         unnecessary cygwin workarounds.  Also work around bug with moving
1005         full directory onto an empty one.
1006         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
1007
1008         rename-dest-slash: merge into rename module
1009         * modules/rename-dest-slash (Status): Mark obsolete.
1010         (Depends-on): Add rename.
1011         (Files): Let rename do it all.
1012         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
1013         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
1014         * m4/rename-dest-slash.m4: ...so this file can be deleted.
1015         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
1016         * lib/rename.c (rpl_rename): Update comments.
1017
1018         rename: fix cygwin 1.5.x bugs
1019         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
1020         * lib/rename.c (rpl_rename): Work around them.
1021         * modules/rename (Depends-on): Add same-inode.
1022
1023         rename: fix Solaris 10 bug
1024         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
1025         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
1026         was the only bug.
1027
1028         rename: fix Solaris 9 bug
1029         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
1030         on non-directory.  Avoid calling exit.
1031         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
1032         strdup.
1033         * modules/rename-tests (Depends-on): Drop lstat.
1034         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
1035         (gl_PREREQ_RENAME): Delete unused macro.
1036
1037         rename-dest-slash: fix NetBSD bug
1038         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
1039         links.
1040         * modules/rename-dest-slash (Depends-on): Add same-inode.
1041
1042         rename-tests: new test, exposes several platform bugs
1043         * modules/rename-tests: New file.
1044         * tests/test-rename.h: Likewise.
1045         * tests/test-rename.c: Likewise.
1046         * doc/posix-functions/rename.texi (rename): Improve documentation,
1047         including bugs that will eventually be fixed in gnulib.
1048
1049 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
1050
1051         * lib/uname.c: Include <stdlib.h>
1052         (uname): Assume version info is available.
1053
1054 2009-10-02  Jim Meyering  <meyering@redhat.com>
1055
1056         gnu-web-doc-update: correct --help output
1057         * build-aux/gnu-web-doc-update: Make --help output relevant.
1058
1059         gnu-web-doc-update: add standard options
1060         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
1061
1062         gnu-web-doc-update: New module.
1063         Use this script to automatically update the on-line web documentation
1064         for your GNU project at http://www.gnu.org/software/$pkg/manual/
1065         * modules/gnu-web-doc-update: New file, from coreutils.
1066         * build-aux/gnu-web-doc-update: New script.
1067
1068 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
1069
1070         link: LoadLibrary is not needed.
1071         * lib/link.c: Use GetModuleHandle.
1072
1073 2009-10-01  Eric Blake  <ebb9@byu.net>
1074
1075         getopt: bump serial number
1076         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
1077         change.
1078
1079         tests: tighten link, rmdir, and remove tests
1080         * tests/test-link.h (includes): No need to use <config.h> here.
1081         Clean up if directory hard link was created, otherwise test for
1082         trailing '.'.
1083         * tests/test-linkat.c (main): Simplify.
1084         * tests/test-remove.c (main): Enhance test for trailing '.'.
1085         * tests/test-rmdir.h (test_rmdir_func): Likewise.
1086
1087 2009-10-01  Jim Meyering  <meyering@redhat.com>
1088
1089         maint.mk: requiring "make major" was annoying, for a "minor" release.
1090         What is intended is "stable", to contrast with alpha and beta,
1091         so require "make stable", not "make major".
1092         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
1093         (get_tool_versions): Likewise.
1094         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
1095
1096 2009-09-30  Ben Pfaff  <blp@gnu.org>
1097
1098         Fix broken build of replacement for Windows tmpfile().
1099         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
1100         flags argument added along with the 'mkostemp' module.
1101
1102 2009-09-28  Bruno Haible  <bruno@clisp.org>
1103
1104         Avoid identifier clash with POSIX function 'remove' defined as a macro.
1105         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
1106         to 'remove_elt'.
1107         (gl_list_remove): Update.
1108         * lib/gl_list.c (gl_list_remove): Update.
1109         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
1110         to 'remove_elt'.
1111         (gl_oset_remove): Update.
1112         * lib/gl_list.c (gl_oset_remove): Update.
1113         Reported by Eric Blake.
1114
1115 2009-09-28  Eric Blake  <ebb9@byu.net>
1116
1117         doc: mention yet more cygwin 1.7 status
1118         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
1119         cygwin.
1120         * doc/glibc-functions/execvpe.texi (execvpe): New file.
1121         * doc/gnulib.texi (Glibc unistd.h): Mention it.
1122
1123         argp: fix test failure
1124         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
1125         that are not upper-case.  Pass correct range to tolower.
1126
1127 2009-09-27  Jim Meyering  <meyering@redhat.com>
1128
1129         test-yesno: work around sparc-dash here-document infelicity
1130         Without this change, the literal \177 byte in a here document
1131         would make dash 0.5.5.1-3 access uninitialized memory.
1132         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
1133         Instead, use a marker, "@", and filter through tr to create the desired
1134         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
1135
1136 2009-09-27  Bruno Haible  <bruno@clisp.org>
1137
1138         Disable untested support for new flavours of ACLs on AIX.
1139         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
1140         progress.
1141         * lib/set-mode-acl.c (qset_acl): Likewise.
1142
1143 2008-12-07  Bruno Haible  <bruno@clisp.org>
1144
1145         Add support for new flavours of ACLs on AIX. (Untested.)
1146         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
1147         (file_has_acl): Add support for newer AIX.
1148         * lib/set-mode-acl.c (qset_acl): Likewise.
1149         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
1150         Rainer Tammer <tammer@tammer.net>.
1151
1152 2009-09-26  Eric Blake  <ebb9@byu.net>
1153
1154         argp: fix compilation of getopt
1155         * lib/getopt.in.h (includes): Use different guard than glibc.
1156         Reported by Sergey Poznyakoff.
1157
1158         doc: mention more cygwin 1.7 status
1159         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
1160         bug.
1161         * doc/posix-functions/execl.texi (execl): Likewise.
1162         * doc/posix-functions/execle.texi (execle): Likewise.
1163         * doc/posix-functions/execlp.texi (execlp): Likewise.
1164         * doc/posix-functions/execv.texi (execv): Likewise.
1165         * doc/posix-functions/execve.texi (execve): Likewise.
1166         * doc/posix-functions/execvp.texi (execvp): Likewise.
1167         * doc/glibc-functions/canonicalize_file_name.texi
1168         (canonicalize_file_name): Cygwin 1.7 now provides this.
1169         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
1170         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
1171         on AT_SYMLINK_NOFOLLOW.
1172
1173 2009-09-24  Eric Blake  <ebb9@byu.net>
1174
1175         test-linkat: make test more robust
1176         * tests/test-linkat.c (main): Avoid collision with EEXIST.
1177
1178         getopt: fix inclusion guards for cygwin
1179         * modules/getopt-posix (Depends-on): Add include-next.
1180         (Makefile.am): Substitute more items in replacement header.
1181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
1182         <getopt.h>.
1183         * lib/getopt.in.h (includes): Use split inclusion guard, and
1184         prefer <getopt.h> over include <unistd.h> when one is present.
1185         (option): Also override name of 'struct option'.
1186
1187         same-inode: revert prior change; it is not yet ready
1188         * NEWS: Undo mention of this change.
1189         * lib/same-inode.h (same-inode.h): Undo tri-state change.
1190         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
1191         * lib/cycle-check.c (cycle_check): Likewise.
1192         * lib/same.c (same_name): Likewise.
1193         * lib/at-func2.c (at_func2): Likewise.
1194
1195 2009-09-23  Eric Blake  <ebb9@byu.net>
1196
1197         linkat: new module
1198         * modules/linkat: New file.
1199         * lib/at-func2.c (at_func2): Likewise.
1200         * lib/linkat.c (linkat): Likewise.
1201         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1202         * lib/openat-priv.h (at_func2): Add declaration.
1203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1204         * modules/unistd (Makefile.am): Substitute them.
1205         * lib/unistd.in.h (linkat): Declare it.
1206         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1207         * doc/posix-functions/linkat.texi (linkat): Likewise.
1208         * doc/posix-functions/link.texi (link): Tweak wording.
1209         * tests/test-link.c (main): Move guts...
1210         * tests/test-link.h (test_link): ...into new file.
1211         * modules/linkat-tests: New test.
1212         * tests/test-linkat.c: Likewise.
1213         * modules/link-tests (Files): Ship new file.
1214         (Depends-on): Add stdbool.
1215
1216         dirname: add library-safe mdir_name
1217         * lib/dirname.h (mdir_name): New prototype.
1218         * lib/dirname.c (dir_name): Move guts...
1219         (mdir_name): ...to new function that avoids xalloc_die.
1220
1221         fchdir: another mingw fix
1222         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
1223         * lib/fchdir.c (get_name): New helper method; skips canonicalize
1224         on mingw (where it has not yet been ported), and make it optional
1225         elsewhere.
1226         (_gl_register_fd): Use it.
1227
1228         same-inode: make SAME_INODE tri-state, to port to mingw
1229         * NEWS: Mention this change.
1230         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
1231         st_ino always being 0.
1232         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
1233         * lib/cycle-check.c (cycle_check): Likewise.
1234         * lib/same.c (same_name): Likewise.
1235
1236         lstat: avoid mingw compilation error
1237         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
1238         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
1239         lstat ourselves.
1240         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
1241         was adequate.
1242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
1243         the checks for lstat.
1244         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
1245
1246         link: fix test failure on Solaris 9
1247         * lib/link.c (rpl_link): Don't assume link will catch bogus
1248         trailing slash on source.
1249
1250         test-symlinkat: enhance test
1251         * tests/test-readlink.c (main): Move guts...
1252         * tests/test-readlink.h (test_readlink): ...into new file.
1253         * tests/test-symlink.c (main): Move guts...
1254         * tests/test-symlink.h (test_symlink): ...into new file.
1255         * tests/test-symlinkat.c (main): Use new files for further
1256         coverage.
1257         (do_symlink, do_readlink): New helper functions.
1258         * modules/symlink-tests (Files): Ship new file.
1259         (Depends-on): Add stdbool.
1260         * modules/readlink-tests (Files): Ship new file.
1261         (Depends-on): Add stdbool.
1262         * modules/symlinkat-tests (Files): Use new files.
1263
1264 2009-09-23  Eric Blake  <ebb9@byu.net>
1265
1266         readlink: document portability issue with symlink length
1267         * doc/posix-functions/lstat.texi (lstat): Mention that some file
1268         systems have bogus st_size on symlinks, and mention the
1269         areadlink-with-size module.
1270         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
1271         * doc/posix-functions/readlink.texi (readlink): Mention the
1272         areadlink module, and ERANGE failure.
1273         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1274         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
1275
1276         readlink: fix Solaris 9 bug with trailing slash
1277         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
1278         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
1279         * doc/posix-functions/readlink.texi (readlink): Document this.
1280         * modules/readlink-tests: New test.
1281         * tests/test-readlink.c: Likewise.
1282
1283         readlink: fix cygwin 1.5.x bug with return type
1284         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
1285         * lib/unistd.in.h (readlink): Use ssize_t.
1286         * lib/readlink.c (readlink): Likewise.
1287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1288         * modules/unistd (Makefile.am): Substitute it.
1289         * lib/unistd.in.h (readlink): Declare replacement.
1290         * doc/posix-functions/readlink.texi (readlink): Document this.
1291
1292         symlink: use throughout gnulib
1293         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
1294         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
1295         symlink is not used.
1296         * modules/symlinkat (Depends-on): Add symlink.
1297         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1298         * modules/canonicalize-tests (Depends-on): Likewise.
1299         * modules/lstat-tests (Depends-on): Likewise.
1300         * modules/openat-tests (Depends-on): Likewise.
1301         * modules/remove-tests (Depends-on): Likewise.
1302         * modules/rmdir-tests (Depends-on): Likewise.
1303         * modules/unlink-tests (Depends-on): Likewise.
1304         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
1305         * tests/test-canonicalize.c (symlink): Likewise.
1306         * tests/test-fstatat.c (symlink): Likewise.
1307         * tests/test-lstat.c (symlink): Likewise.
1308         * tests/test-remove.c (symlink): Likewise.
1309         * tests/test-rmdir.c (symlink): Likewise.
1310         * tests/test-unlink.c (symlink): Likewise.
1311         * tests/test-unlinkat.c (symlink): Likewise.
1312
1313         symlink: new module, for Solaris 9 bug
1314         * modules/symlink: New file.
1315         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1316         * lib/symlink.c: Likewise.
1317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
1318         * modules/unistd (Makefile.am): Substitute them.
1319         * lib/unistd.in.h (symlink): Declare replacement.
1320         * MODULES.html.sh (File system functions): Mention it.
1321         * doc/posix-functions/symlink.texi (symlink): Likewise.
1322         * modules/symlink-tests: New test.
1323         * tests/test-symlink.c: Likewise.
1324
1325 2009-09-23  Bruno Haible  <bruno@clisp.org>
1326
1327         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
1328         when needed.
1329         Test case: gnulib-tool --import --with-tests atexit inttypes.
1330         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
1331
1332 2009-09-23  Bruno Haible  <bruno@clisp.org>
1333
1334         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
1335         subcommand, not in a subshell.
1336
1337 2009-09-22  Eric Blake  <ebb9@byu.net>
1338
1339         unistd: sort replacement declarations
1340         * lib/unistd.in.h: Sort declarations.
1341
1342         open, openat: minor optimization
1343         * lib/open.c (open): If open succeeded, len is non-zero.
1344         * lib/openat.c (rpl_openat): Likewise.
1345
1346         link-follow: ensure correct result
1347         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
1348         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
1349         distinguish between possible failures.
1350
1351 2009-09-21  Eric Blake  <ebb9@byu.net>
1352
1353         fts: avoid compiler warning
1354         * lib/fts.c (dirent_inode_sort_may_be_useful)
1355         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
1356
1357 2009-09-19  Bruno Haible  <bruno@clisp.org>
1358
1359         * lib/progreloc.c (canonicalize_file_name): New declaration.
1360
1361 2009-09-19  Eric Blake  <ebb9@byu.net>
1362
1363         link: fix quoting
1364         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
1365
1366         openat: fix openat bugs on Solaris 9
1367         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
1368         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
1369         * modules/openat (Depends-on): Add open.
1370         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
1371         * modules/fcntl-h (Makefile.am): Substitute it.
1372         * lib/fcntl.in.h (openat): Declare replacement.
1373         * doc/posix-functions/openat.texi (openat): Document this.
1374
1375         openat: move fstatat and unlinkat into correct files
1376         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
1377         compiled.
1378         * lib/openat.c (fstatat, unlinkat): Move...
1379         * lib/fstatat.c (fstatat): ...into correct files.
1380         * lib/unlinkat.c (unlinkat): Likewise.
1381
1382         openat: fix unlinkat bugs on Solaris 9
1383         * lib/unlinkat.c (unlinkat): New file.
1384         * modules/openat (Depends-on): Add unlink.
1385         (Files): Distribute it.
1386         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
1387         trailing slash behavior is broken.
1388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1389         * modules/unistd (Makefile.am): Substitute it.
1390         * lib/unistd.in.h (unlinkat): Declare replacement.
1391         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
1392
1393         openat: fix fstatat bugs on Solaris 9
1394         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
1395         stat.
1396         * doc/posix-functions/fstatat.texi (fstatat): Document this.
1397
1398         test-unlinkat: enhance test, to expose Solaris 9 bug
1399         * tests/test-unlink.c (main): Factor guts...
1400         * tests/test-unlink.h (test_rmdir_func): ...into new file.
1401         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
1402         * tests/test-rmdir.c (main): Adjust caller.
1403         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
1404         (unlinker): New helper function.
1405         (rmdirat): Enhance check.
1406         * modules/rmdir-tests (Depends-on): Add stdbool.
1407         * modules/unlink-tests (Depends-on): Likewise.
1408         (Files): Add test-unlink.h.
1409         * modules/openat-tests (Files): Likewise.
1410         (Depends-on): Add unlinkdir.
1411
1412         test-fstatat: new test, to expose Solaris 9 bugs
1413         * tests/test-stat.c (main): Factor guts...
1414         * tests/test-stat.h (test_stat_func): ...into new file.
1415         * tests/test-lstat.c (main): Factor guts...
1416         * tests/test-lstat.h (test_lstat_func): ...into new file.
1417         * tests/test-fstatat.c: New file.
1418         * modules/stat-tests (Files): Add test-stat.h.
1419         * modules/lstat-tests (Files): Add test-lstat.h.
1420         (Depends-on): Add stdbool.
1421         * modules/openat-tests (Depends-on): Add pathmax.
1422         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
1423         (Makefile.am): Run new test.
1424
1425         remove: new module, for mingw and Solaris 9 bugs
1426         * modules/remove: New file.
1427         * lib/remove.c: Likewise.
1428         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
1429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
1430         * modules/stdio (Makefile.am): Use them.
1431         * lib/stdio.in.h (remove): Declare replacement.
1432         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1433         * doc/posix-functions/remove.texi (remove): Likewise.
1434         * modules/remove-tests: New test.
1435         * tests/test-remove.c: Likewise.
1436
1437         unlink: new module, for Solaris 9 bug
1438         * modules/unlink: New file.
1439         * lib/unlink.c: Likewise.
1440         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1442         * modules/unistd (Makefile.am): Use them.
1443         * lib/unistd.in.h (stat): Declare replacement.
1444         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1445         * doc/posix-functions/unlink.texi (unlink): Likewise.
1446         * modules/unlink-tests: New test.
1447         * tests/test-unlink.c: Likewise.
1448
1449         lstat: fix Solaris 9 bug
1450         * lib/lstat.c (lstat): Also check for trailing slash on
1451         non-symlink, non-directories.  Use stat module to simplify logic.
1452         * doc/posix-functions/lstat.texi (lstat): Document it.
1453         * modules/lstat-tests (Depends-on): Add errno, same-inode.
1454         (configure.ac): Check for symlink.
1455         * tests/test-lstat.c (main): Add more tests.
1456
1457         stat: add as dependency to other modules
1458         * modules/chown (Depends-on): Add stat.
1459         * modules/euidaccess (Depends-on): Likewise.
1460         * modules/fchdir (Depends-on): Likewise.
1461         * modules/isdir (Depends-on): Likewise.
1462         * modules/link (Depends-on): Likewise.
1463         * modules/lstat (Depends-on): Likewise.
1464         * modules/mkdir-p (Depends-on): Likewise.
1465         * modules/modechange (Depends-on): Likewise.
1466         * modules/open (Depends-on): Likewise.
1467         * modules/readlink (Depends-on): Likewise.
1468         * modules/same (Depends-on): Likewise.
1469
1470         stat: fix Solaris 9 bug
1471         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
1472         slash.
1473         * lib/stat.c (rpl_stat): Work around it.
1474         * doc/posix-functions/stat.texi (stat): Update documentation.
1475
1476         stat: new module, for mingw bug
1477         * modules/stat: New file.
1478         * lib/stat.c: Likewise.
1479         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1480         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1481         * modules/sys_stat (Makefile.am): Use them.
1482         * lib/sys_stat.in.h (stat): Declare replacement.
1483         * lib/openat.c (fstatat): Deal with lstat and stat being function
1484         macros.
1485         * modules/openat (Depends-on): Add inline.
1486         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1487         * doc/posix-functions/stat.texi (stat): Likewise.
1488         * modules/stat-tests: New test.
1489         * tests/test-stat.c: Likewise.
1490
1491 2009-09-19  Jim Meyering  <meyering@redhat.com>
1492
1493         syntax-check: detect unnecessary inclusion of canonicalize.h
1494         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
1495
1496 2009-09-19  Eric Blake  <ebb9@byu.net>
1497
1498         canonicalize-lgpl: adjust clients to use correct header
1499         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1500         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
1501         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
1502         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
1503         * lib/progreloc.c (includes): Likewise.
1504
1505 2009-09-19  Jim Meyering  <meyering@redhat.com>
1506
1507         test-posixtm.c: correct a comment
1508         * tests/test-posixtm.c: Correct first-line comment.
1509         Spotted by Eric Blake.
1510
1511 2009-09-16  Jim Meyering  <meyering@redhat.com>
1512
1513         posixtm-tests: make T const-correct; add a test case
1514         * tests/test-posixtm.c (T): Declare const.
1515         Add a test for -(2^31+1).
1516         Remove useless can-succeed-only-in-2002 test.
1517
1518         posixtm-tests: adjust the sole failing test
1519         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
1520         expected output matches what mktime now produces.  Cross-checked via
1521         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
1522
1523         posixtm: move #ifdef'd tests into a new module
1524         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
1525         * tests/test-posixtm.c: ... this new file.
1526         * modules/posixtm-tests: New module.
1527
1528 2009-09-19  Eric Blake  <ebb9@byu.net>
1529
1530         openat: simplify use of at-func.c
1531         * lib/at-func.c (includes): Include prerequisites here, to
1532         simplify requirements on client files.
1533         * lib/openat-priv.h: Add double-inclusion guard.
1534         * lib/faccessat.c (includes): Simplify.
1535         * lib/fchmodat.c (includes): Likewise.
1536         * lib/fchownat.c (includes): Likewise.
1537         * lib/mkdirat.c (includes): Likewise.
1538         * lib/mkfifoat.c (includes): Likewise.
1539         * lib/symlinkat.c (includes): Likewise.
1540
1541         openat: allow return of fd 0
1542         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
1543         * modules/save-cwd (Depends-on): Replace fcntl-safer with
1544         unistd-safer.
1545         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
1546         <fcntl.h>; this module does not leak fds.
1547         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
1548         must be allowed to return 0, leaving openat_safer to add the
1549         safety.
1550         (openat_permissive): Avoid writing to just-opened fd 2 if
1551         restoring the current directory fails.
1552         * lib/openat-die.c (openat_restore_fail): Add comment.
1553         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
1554         (save_cwd): Guarantee safe fd, but without use of open_safer.
1555         * tests/test-openat.c: New test.
1556         * modules/openat-tests (Files, Makefile.am): Distribute and build
1557         new file.
1558
1559         relocatable-prog-wrapper: fix build
1560         * modules/relocatable-prog-wrapper (Files): Update name of
1561         canonicalize m4 file, broken on 2009-09-17.
1562         Reported by emad hajjar <aleppos@hotmail.com>.
1563
1564 2009-09-19  Bruno Haible  <bruno@clisp.org>
1565
1566         * lib/safe-alloc.h: Use the standard header with GPL copyright.
1567         * lib/safe-alloc.c: Likewise.
1568         Reported by Ian Beckwith <ianb@erislabs.net>.
1569
1570 2009-09-18  Bruno Haible  <bruno@clisp.org>
1571
1572         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
1573         Reported by <erobles@sensacd.com.mx>.
1574
1575 2009-09-17  Eric Blake  <ebb9@byu.net>
1576
1577         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
1578         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
1579         slashes when checking if last component is missing.
1580         * tests/test-canonicalize.c (main): Test this.
1581
1582         canonicalize, canonicalize-lgpl: honor // if distinct from /
1583         * modules/canonicalize (Files): Add double-slash-root.m4.
1584         * modules/canonicalize-lgpl (Files): Likewise.
1585         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1586         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
1587         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
1588         fallback definition.
1589         (canonicalize_filename_mode): Use it to protect //.
1590         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
1591         (__realpath): Likewise.
1592         * tests/test-canonicalize.c (main): Test this.
1593         * tests/test-canonicalize-lgpl.c (main): Likewise.
1594         * modules/canonicalize-tests (Depends-on): Add same-inode.
1595         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1596
1597         canonicalize-lgpl: fix glibc bug with trailing slash
1598         * m4/canonicalize-lgpl.m4: Move contents...
1599         * m4/canonicalize.m4: ...here.
1600         (gl_CANONICALIZE_LGPL): Factor realpath check...
1601         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
1602         glibc 2.3.5 bug, fixed 2005-04-27.
1603         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
1604         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
1605         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
1606         * modules/canonicalize-lgpl (Files): Manage file rename.
1607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1608         * modules/stdlib (Makefile.am): Substitute witness.
1609         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
1610         is needed.
1611         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
1612         replacement is required.
1613         * lib/canonicalize.c (canonicalize_file_name): Likewise.
1614         * doc/glibc-functions/canonicalize_file_name.texi
1615         (canonicalize_file_name): Document this.
1616         * doc/posix-functions/realpath.texi (realpath): Likewise.
1617
1618         canonicalize-lgpl: reject non-directory with trailing slash
1619         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
1620         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
1621         catches failures in glibc 2.3.5.
1622         * tests/test-canonicalize.c (main): Likewise.
1623
1624         canonicalize-lgpl: use native realpath if it works
1625         * lib/canonicalize-lgpl.c (realpath): Guard with
1626         FUNC_REALPATH_WORKS.
1627         * lib/stdlib.in.h (realpath): Make declaration optional based on
1628         HAVE_REALPATH.
1629         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
1630         native realpath works.
1631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1632         * modules/stdlib (Makefile.am): Substitute witness.
1633
1634         canonicalize, canonicalize-lgpl: use <stdlib.h>
1635         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
1636         (Include): Mention <stdlib.h>.
1637         (configure.ac): Mention functions we provide.
1638         * modules/canonicalize (configure.ac): Likewise.
1639         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
1640         realpath if canonicalize_file_name is missing.
1641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
1642         * modules/stdlib (Makefile.am): Substitute witnesses.
1643         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
1644         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
1645         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
1646         * NEWS: Document this.
1647         * doc/glibc-functions/canonicalize_file_name.texi
1648         (canonicalize_file_name): Likewise.
1649         * doc/posix-functions/realpath.texi (realpath): Likewise.
1650         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
1651
1652         test-canonicalize: consolidate into single C program
1653         * tests/test-canonicalize.sh: Delete; move setup into...
1654         * tests/test-canonicalize.c (main): ...the program, making it
1655         easier to run in debugger.  Add some tests.
1656         * modules/canonicalize-tests (Files): Remove unused file.
1657         (Depends-on): Add progname.
1658         (configure.ac, Makefile.am): Simplify.
1659
1660         test-canonicalize-lgpl: consolidate into single C program
1661         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
1662         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
1663         easier to run in debugger.  Add some tests.
1664         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
1665         (configure.ac, Makefile.am): Simplify.
1666
1667         canonicalize: avoid resolvepath
1668         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
1669         unnecessary checks.
1670         * lib/canonicalize.c (includes): Simplify.
1671         (canonicalize_file_name): Drop resolvepath implementation.
1672         * modules/canonicalize (Depends-on): Drop filenamecat.
1673
1674         canonicalize: don't lose errno
1675         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
1676         over calls to free.
1677
1678         canonicalize: simplify errno handling
1679         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
1680         assignment.
1681
1682         canonicalize, canonicalize-lgpl: update module dependencies
1683         * modules/canonicalize (Depends-on): Add extensions, lstat,
1684         pathmax, stdlib.
1685         (Files): Drop pathmax.h.
1686         (configure.ac): Adjust macro name.
1687         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
1688         lstat, stdlib, sys_stat.
1689         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
1690         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
1691         extensions.
1692         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
1693         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
1694         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
1695         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
1696         declaration, if available.
1697         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
1698         we can rely on the readlink module.
1699         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
1700         (includes): Use <unistd.h> unconditionally.
1701
1702 2009-09-17  Eric Blake  <ebb9@byu.net>
1703
1704         maint: make Include sections of modules consistent
1705         * modules/alloca: Use only header name; no need to list #include.
1706         * modules/alloca-opt: Likewise.
1707         * modules/arpa_inet: Likewise.
1708         * modules/canon-host: Likewise.
1709         * modules/configmake: Likewise.
1710         * modules/dirent: Likewise.
1711         * modules/eealloc: Likewise.
1712         * modules/environ: Likewise.
1713         * modules/fchdir: Likewise.
1714         * modules/fcntl: Likewise.
1715         * modules/fcntl-h: Likewise.
1716         * modules/gethrxtime: Likewise.
1717         * modules/gettime: Likewise.
1718         * modules/ignore-value: Likewise.
1719         * modules/inet_ntop: Likewise.
1720         * modules/inet_pton: Likewise.
1721         * modules/inttypes: Likewise.
1722         * modules/isnand-nolibm: Likewise.
1723         * modules/isnanf-nolibm: Likewise.
1724         * modules/mbchar: Likewise.
1725         * modules/mbfile: Likewise.
1726         * modules/mbiter: Likewise.
1727         * modules/mbuiter: Likewise.
1728         * modules/netdb: Likewise.
1729         * modules/netinet_in: Likewise.
1730         * modules/nproc: Likewise.
1731         * modules/pagealign_alloc: Likewise.
1732         * modules/poll: Likewise.
1733         * modules/printf-frexp: Likewise.
1734         * modules/pthread: Likewise.
1735         * modules/putenv: Likewise.
1736         * modules/random_r: Likewise.
1737         * modules/relocatable-prog: Likewise.
1738         * modules/search: Likewise.
1739         * modules/select: Likewise.
1740         * modules/selinux-h: Likewise.
1741         * modules/settime: Likewise.
1742         * modules/signal: Likewise.
1743         * modules/size_max: Likewise.
1744         * modules/socklen: Likewise.
1745         * modules/ssize_t: Likewise.
1746         * modules/stdarg: Likewise.
1747         * modules/stdbool: Likewise.
1748         * modules/stddef: Likewise.
1749         * modules/stdint: Likewise.
1750         * modules/stdio: Likewise.
1751         * modules/stdlib: Likewise.
1752         * modules/string: Likewise.
1753         * modules/strings: Likewise.
1754         * modules/sys_file: Likewise.
1755         * modules/sys_ioctl: Likewise.
1756         * modules/sys_select: Likewise.
1757         * modules/sys_socket: Likewise.
1758         * modules/sys_stat: Likewise.
1759         * modules/sys_time: Likewise.
1760         * modules/sys_times: Likewise.
1761         * modules/sys_utsname: Likewise.
1762         * modules/sys_wait: Likewise.
1763         * modules/sysexits: Likewise.
1764         * modules/time: Likewise.
1765         * modules/times: Likewise.
1766         * modules/tmpfile: Likewise.
1767         * modules/trim: Likewise.
1768         * modules/unistd: Likewise.
1769         * modules/wchar: Likewise.
1770         * modules/wctype: Likewise.
1771
1772 2009-09-17  Bruno Haible  <bruno@clisp.org>
1773
1774         Make getdate.y compile on QNX and NetBSD 5 / i386.
1775         * m4/getdate.m4 (gl_GETDATE): Conditionally define
1776         TIME_T_FITS_IN_LONG_INT.
1777         * lib/getdate.y (long_time_t): New type.
1778         (relative_time): Change type of 'seconds' field to long_time_t.
1779         (get_date): Update types of local variables. Check against overflow
1780         during conversion from long_time_t to time_t.
1781         Reported by Matt Kraai <kraai@ftbfs.org>
1782         and Hasso Tepper <hasso@netbsd.org>.
1783
1784 2009-09-17  Bruno Haible  <bruno@clisp.org>
1785
1786         * modules/COPYING: Update copyright years.
1787         * modules/README: Likeiwse.
1788         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
1789         Reported by Ian Beckwith <ianb@erislabs.net>.
1790
1791 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
1792
1793         * users.txt: Update references for gnuit package.
1794
1795 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
1796
1797         * m4/getdelim.m4: Fix typo in copyright line.
1798
1799 2009-09-17  Bruno Haible  <bruno@clisp.org>
1800
1801         * lib/atoll.c: Use the standard header with GPL copyright.
1802         * lib/argz.in.h: Likewise.
1803         * lib/glob.c: Likewise.
1804         * lib/glob-libc.h: Likewise.
1805         * lib/random_r.c: Likewise.
1806         * lib/siglist.h: Likewise.
1807         * lib/strsignal.c: Likewise.
1808         Reported by Ian Beckwith <ianb@erislabs.net>.
1809
1810 2009-09-17  Eric Blake  <ebb9@byu.net>
1811
1812         rmdir: ensure correct dependency order
1813         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
1814
1815 2009-09-17  Bruno Haible  <bruno@clisp.org>
1816
1817         Disable assertion that fails on NetBSD 5 / i386.
1818         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
1819         Reported by Sam Steingold <sds@gnu.org>
1820         and Hasso Tepper <hasso@netbsd.org>.
1821
1822 2009-09-16  Eric Blake  <ebb9@byu.net>
1823
1824         unlinkdir: port to mingw
1825         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
1826         on which no one can unlink a directory.
1827
1828         stdlib: sort witness names
1829         * modules/stdlib (Makefile.am): Sort replacements.
1830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1831         * lib/stdlib.in.h: Likewise.
1832
1833         parse-duration-tests: avoid link failure
1834         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
1835         LIBINTL.
1836         Reported by Tom G. Christensen.
1837
1838         openat-tests: ensure unlinkat behaves like rmdir
1839         * tests/test-rmdir.c (main): Factor guts...
1840         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
1841         * modules/rmdir-tests (Files): Ship new file.
1842         * modules/openat-tests: New test.
1843         * tests/test-unlinkat.c: Likewise.
1844
1845         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
1846         * modules/rmdir-errno (Status, Notice): Now obsolete.
1847
1848         rmdir: work around cygwin 1.5.x and mingw bugs
1849         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
1850         * lib/rmdir.c (rmdir): Work around it.
1851         * modules/rmdir (Status, Notice): No longer obsolete.
1852         (Files): Add dos.m4.
1853         (Depends-on): Add unistd.
1854         (configure.ac): Set witnesses.
1855         (License): Relax to LGPLv2+.
1856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
1857         * modules/unistd (Makefile.am): Substitute witnesses.
1858         * lib/unistd.in.h (rmdir): Declare replacement.
1859         * doc/posix-functions/rmdir.texi (rmdir): Document this.
1860         * modules/rmdir-tests: New tests.
1861         * tests/test-rmdir.c: Likewise.
1862
1863 2009-09-15  Eric Blake  <ebb9@byu.net>
1864
1865         fchdir: improve use of replacement functions
1866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
1867         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
1868         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
1869         REPLACE_CLOSEDIR.
1870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
1871         * modules/sys_stat (Makefile.am): Substitute correct witness.
1872         * modules/dirent (Makefile.am): Likewise.
1873         * modules/unistd (Makefile.am): Likewise.
1874         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
1875         * lib/unistd.in.h (dup): Likewise.
1876         * lib/sys_stat.in.h (fstat): Likewise.
1877
1878         maint: ignore gnulib-tool temp files
1879         * .gitignore: Ignore files created during gnulib-tool --test.
1880
1881 2009-09-13  Jim Meyering  <meyering@redhat.com>
1882
1883         posixtm: don't reject a time that specify "60" as the number of seconds
1884         * lib/posixtm.c (posixtime): The code to reject invalid dates
1885         would also reject a time specified with the .60 suffix.
1886         But POSIX allows that, in order to accommodate leap seconds.
1887         So don't reject it.
1888         (main): Adjust tests accordingly.
1889         * modules/posixtm (Depends-on): Add stpcpy.
1890
1891 2009-09-11  Jim Meyering  <meyering@redhat.com>
1892
1893         announce-gen: include [$release_type] in emitted Subject:
1894         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
1895         e.g., [stable] in the emitted Subject: line.
1896
1897 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1898
1899         Remove obsolete macros from several modules.
1900         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
1901         obsolete Autoconf macros with their modern counterparts.
1902         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
1903         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
1904         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1905         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1906         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
1907         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1909         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1910         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1911         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
1912         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1913         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1914         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1915         * m4/sockets.m4 (gl_SOCKETS): Likewise.
1916         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
1917         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
1918         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1919         * m4/time_r.m4 (gl_TIME_R): Likewise.
1920         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1921         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
1922         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1923
1924         Fix copyright header in build-aux scripts.
1925         * build-aux/git-version-gen: Fix copyright header to match GPLv3
1926         recommendation.
1927         * build-aux/ncftpput-ftp: Likewise.
1928         * build-aux/update-copyright: Likewise.
1929
1930 2009-09-09  Eric Blake  <ebb9@byu.net>
1931
1932         test-link: allow Linux choice of errno
1933         * tests/test-link.c (main): Relax test for alternate error.
1934
1935         strndup: fix improper m4 caching
1936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
1937         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
1938         (gl_PREREQ_STRNDUP): Delete.
1939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
1940         * modules/string (Makefile.am): Substitute it.
1941         * lib/string.in.h (strndup): Modernize prototype.
1942
1943         getcwd: port to mingw
1944         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
1945         different from the POSIX assumptions made throughout the getcwd
1946         module; fortunately, the mingw getcwd does not need replacement.
1947         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
1948         * modules/getcwd-tests: New test.
1949         * tests/test-getcwd.c: Likewise.
1950
1951         link: fix platform bugs
1952         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
1953         * lib/link.c (link): Work around them.  Fix related mingw bug.
1954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
1955         * modules/unistd (Makefile.am): Substitute it.
1956         * lib/unistd.in.h (link): Declare replacement.
1957         * doc/posix-functions/link.texi (link): Document this.
1958         * modules/link (Depends-on): Add strdup-posix, sys_stat.
1959
1960         test-link: consolidate into single C program, test more cases
1961         * tests/test-link.sh: Delete.
1962         * tests/test-link.c: Test more error conditions.  Exposes bugs on
1963         at least Cygwin and Solaris.
1964         * modules/link-tests (Files): Remove unused file.
1965         (Depends-on): Add errno, sys_stat.
1966         (Makefile.am): Simplify.
1967
1968 2009-09-08  Bruno Haible  <bruno@clisp.org>
1969
1970         Work around towlower, towupper bug on mingw.
1971         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
1972         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
1973         * doc/posix-functions/towlower.texi: Mention the mingw bug.
1974         * doc/posix-functions/towupper.texi: Likewise.
1975         Reported by Eric Blake.
1976
1977 2009-09-08  Jim Meyering  <meyering@redhat.com>
1978
1979         build: don't try to run autoheader if we don't use it
1980         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
1981         is not used in configure.ac.
1982
1983 2009-09-08  Eric Blake  <ebb9@byu.net>
1984
1985         euidaccess: fix compilation error
1986         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
1987
1988         rawmemchr: relax license
1989         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
1990         okay.
1991         Reported by Jim Meyering.
1992
1993         mkfifoat: new module
1994         * modules/mkfifoat: New file.
1995         * lib/mkfifoat.c: Likewise.
1996         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
1997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1998         * modules/sys_stat (Makefile.am): Use them.
1999         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
2000         * MODULES.html.sh (File system functions): Mention module.
2001         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
2002         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
2003         * modules/mkfifoat-tests: New test.
2004         * tests/test-mkfifoat.c: Likewise.
2005
2006         strchrnul: relax license
2007         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
2008         okay.
2009         Reported by Jim Meyering.
2010
2011 2009-09-08  Eric Blake  <ebb9@byu.net>
2012
2013         fstatat: fix compilation on Solaris
2014         * lib/fstatat.c (includes): Add fcntl.h.
2015         Reported by Pádraig Brady.
2016
2017 2009-09-07  Eric Blake  <ebb9@byu.net>
2018
2019         rename: modernize replacement
2020         * modules/rename (Depends-on): Add stdio.
2021         (configure.ac): Declare witness.
2022         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
2023         stdio take care of replacement.
2024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
2025         * modules/stdio (Makefile.am): Substitute them.
2026         * lib/stdio.in.h (rename): Declare replacement.
2027         * lib/rename.c (includes): Allow cross-compilation to non-windows
2028         machines.
2029         * doc/posix-functions/rename.texi (rename): Improve
2030         documentation.
2031
2032         stdio: sort witness names
2033         * modules/stdio (Makefile.am): Sort replacements.
2034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2035         * lib/stdio.in.h: Likewise.
2036
2037         getcwd: minor cleanups
2038         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
2039         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
2040
2041         openat: provide more convenience names
2042         * modules/faccessat (configure.ac): Add C witness.
2043         * lib/unistd.in.h (readlinkat): Fix typo.
2044         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
2045         convenience wrappers.
2046         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
2047         wrappers in syntax checks.
2048
2049 2009-09-06  Eric Blake  <ebb9@byu.net>
2050
2051         doc: fix comments in recent patches
2052         * lib/faccessat.c: Mention correct function.
2053         * lib/fchmodat.c: Likewise.
2054         * lib/fchownat.c: Likewise.
2055         * lib/symlinkat.c: Likewise.
2056         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
2057         constants.
2058
2059         faccessat, symlinkat: continue cleanup of previous patch
2060         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
2061         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
2062         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
2063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
2064         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
2065         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
2066         set.
2067
2068 2009-09-06  Bruno Haible  <bruno@clisp.org>
2069
2070         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
2071         (fstatat): Declare if GNULIB_FSTATAT is set.
2072         (mkdirat): Declare if GNULIB_MKDIRAT is set.
2073         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
2074         (unlinkat): Declare if GNULIB_UNLINKAT is set.
2075         * modules/fcntl-h (Files): Remove m4/openat.m4.
2076         * modules/sys_stat (Files): Remove m4/openat.m4.
2077         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
2078         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
2079         * modules/unistd (Files): Remove m4/openat.m4.
2080         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
2081         GNULIB_OPENAT.
2082         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
2083         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
2084         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
2085         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
2086         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
2087         gl_OPENAT_DEFAULTS.
2088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
2089         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
2090         Don't require gl_OPENAT_DEFAULTS.
2091         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
2092         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
2093         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
2094         (gl_OPENAT_DEFAULTS): Remove macro.
2095
2096 2009-09-06  Bruno Haible  <bruno@clisp.org>
2097
2098         * modules/openat (configure.ac): Remove unneeded witness.
2099
2100 2009-09-06  Bruno Haible  <bruno@clisp.org>
2101
2102         Set errno to ENOSYS when a function is entirely unsupported.
2103         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
2104         EOPNOTSUPP.
2105         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
2106         * modules/chown (Depends-on): Remove errno.
2107
2108 2009-09-06  Bruno Haible  <bruno@clisp.org>
2109
2110         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
2111
2112 2009-09-06  Bruno Haible  <bruno@clisp.org>
2113
2114         * lib/sys_stat.in.h: Fix preprocessor command indentation.
2115
2116 2009-09-06  Ben Pfaff  <blp@gnu.org>
2117             Bruno Haible  <bruno@clisp.org>
2118
2119         Work around a glibc bug in strtok_r.
2120         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
2121         Undefine if UNDEFINE_STRTOK_R is set.
2122         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
2123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2124         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
2125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
2126         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
2127         UNDEFINE_STRTOK_R.
2128         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
2129
2130 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2131
2132         exclude: minor fix
2133         * lib/exclude.c: Include wctype.h
2134
2135 2009-09-06  Akim Demaille  <demaille@gostai.com>
2136
2137         bootstrap: improve error message
2138         * build-aux/bootstrap (find_tool): Upon failure, report the list
2139         of candidates.
2140         Honor the initial value of the envvar.
2141
2142 2009-09-05  Eric Blake  <ebb9@byu.net>
2143
2144         symlinkat: new module
2145         * modules/symlinkat: New file.
2146         * lib/symlinkat.c: Likewise.
2147         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
2149         * modules/unistd (Makefile.am): Use them.
2150         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
2151         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
2152         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
2153         * MODULES.html.sh (File system functions): Mention module.
2154         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2155         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2156         * modules/symlinkat-tests: New test.
2157         * tests/test-symlinkat.c: Likewise.
2158
2159         test-openat-safer: add more checks
2160         * tests/test-openat-safer.c (main): Check more code paths.
2161
2162 2009-09-05  Jim Meyering  <meyering@redhat.com>
2163
2164         syntax-check: detect unnecessary inclusion of openat.h
2165         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
2166
2167 2009-09-05  Bruno Haible  <bruno@clisp.org>
2168
2169         Support towlower, towupper.
2170         * doc/posix-functions/towlower.texi: Mention module wctype.
2171         * doc/posix-functions/towupper.texi: Likewise.
2172         * lib/wctype.in.h (towlower, towupper): New functions.
2173         * tests/test-wctype.c: Include stdio.h, stdlib.h.
2174         (ASSERT): New macro.
2175         (e): New variable.
2176         (main): Test also towlower, towupper. Test WEOF argument.
2177         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
2178
2179 2009-09-05  Bruno Haible  <bruno@clisp.org>
2180
2181         Fix conversion behaviour when the input is invalid.
2182         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
2183         mark occurring in first pass of indirect conversion.
2184         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
2185         input.
2186         Found by clang's static analyzer.
2187
2188 2009-09-05  Bruno Haible  <bruno@clisp.org>
2189
2190         * tests/test-striconveh.c (main): Test indirect conversion on platforms
2191         where direct conversion is possible.
2192
2193 2009-09-04  Eric Blake  <ebb9@byu.net>
2194
2195         openat: fail with ENOENT on empty name
2196         * lib/openat-proc.c (openat_proc_name): Special-case the empty
2197         buffer.
2198
2199         link-follow: fix logic bug in prior patch
2200         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
2201         reversed sense of yes and no in prior patch.  Avoid confusing
2202         compilation failure with desired semantics.
2203
2204         link-follow: accomodate mingw and cross-compilation
2205         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
2206         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
2207         cross-compilation results to -1, to make linkat easier to
2208         implement when cross-compiling.  Trivially support mingw.
2209         * modules/link-follow (configure.ac): Call new name.
2210         * NEWS: Mention this.
2211
2212 2009-09-03  Eric Blake  <ebb9@byu.net>
2213
2214         faccessat: compile replacement
2215         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
2216         needed.
2217
2218         fts: fix compilation error
2219         * lib/fts.c (includes): Re-add "openat.h", for
2220         openat_needs_fchdir.
2221
2222         faccessat: new module
2223         * modules/faccessat: New file.
2224         * lib/faccessat.c: Likewise.
2225         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
2226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2227         * modules/unistd (Makefile.am): Use it.
2228         * lib/unistd.in.h (faccessat): Declare it.
2229         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
2230         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
2231         * MODULES.html.sh (File system functions): Mention it.
2232         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
2233         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
2234
2235         euidaccess: prefer POSIX over non-standard implementation
2236         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
2237         * lib/euidaccess.c (euidaccess): Use it if available.
2238
2239         openat: make template easier to use
2240         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
2241         AT_FUNC_F2 to be undefined.
2242         (VALIDATE_FLAG): New macro; use it to reject bad flags.
2243         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
2244         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
2245         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
2246         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
2247         Likewise.
2248         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
2249         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
2250         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
2251         Likewise.
2252
2253         openat: declare in POSIX headers
2254         * NEWS: Mention this.
2255         * modules/openat (configure.ac): Declare witnesses.
2256         (Depends-on): Add fcntl-h, sys_stat, unistd.
2257         (Include): Mention correct headers.
2258         * modules/fcntl-h (Depends-on): Add link-warning.
2259         (Files): Add openat.m4.
2260         (Makefile.am): Substitute witnesses.
2261         * modules/sys_stat (Files, Makefile.am): Likewise.
2262         * modules/unistd (Files, Makefile.am): Likewise.
2263         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
2264         (gl_OPENAT_DEFAULTS): New macro.
2265         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
2266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
2267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
2268         (SYS_STAT_H): Remove unused variable.
2269         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
2270         * lib/fcntl--.h (includes): Remove unneeded header.
2271         * lib/openat-safer.c (includes): Likewise.
2272         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
2273         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
2274         appropriate headers.
2275         (__OPENAT_PREFIX): Delete.
2276         * lib/fcntl.in.h (openat): Provide declaration.
2277         (AT_FDCWD): Fix Solaris bug.
2278         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
2279         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
2280         * lib/fchmodat.c (includes):  Adjust to find declaration.
2281         * lib/fchownat.c (includes): Likewise.
2282         * lib/mkdirat.c (includes): Likewise.
2283         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
2284         still visible.
2285
2286 2009-09-02  Eric Blake  <ebb9@byu.net>
2287
2288         errno: use consistently
2289         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
2290         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
2291         * lib/canonicalize.c (ELOOP): Likewise.
2292         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
2293         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
2294         * lib/lchown.c (EOPNOTSUPP): Likewise.
2295         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
2296         * lib/savewd.c (ESTALE): Likewise.
2297         * lib/settime.c (ENOSYS): Likewise.
2298         * lib/utimens.c (ENOSYS): Likewise.
2299         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
2300         * lib/chdir-safer.c (ELOOP): Likewise.
2301         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
2302         * modules/c-stack (Depends-on): Add errno.
2303         * modules/canonicalize (Depends-on): Likewise.
2304         * modules/chdir-safer (Depends-on): Likewise.
2305         * modules/fdopendir (Depends-on): Likewise.
2306         * modules/inet_ntop (Depends-on): Likewise.
2307         * modules/inet_pton (Depends-on): Likewise.
2308         * modules/lchown (Depends-on): Likewise.
2309         * modules/openat (Depends-on): Likewise.
2310         * modules/savewd (Depends-on): Likewise.
2311         * modules/settime (Depends-on): Likewise.
2312         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
2313
2314         fts: avoid leaking fds
2315         * modules/fts (Depends-on): Add cloexec.
2316         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
2317         flag.
2318
2319         fts: make directory fds more robust
2320         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
2321         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
2322
2323         backupfile, chdir-long, fts, savedir: make safer
2324         * lib/backupfile.c (includes): Use "dirent--.h", since
2325         numbered_backup can write to stderr during readdir.
2326         * lib/savedir.c (includes): Likewise.
2327         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
2328         emulation can write to stderr on failure.
2329         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
2330         * lib/getcwd.c: Document why opendir_safer is unused.
2331         * lib/glob.c: Likewise.
2332         * lib/scandir.c: Likewise.
2333         * lib/openat-proc.c: Likewise, for open_safer.
2334         * modules/backupfile (Depends-on): Add dirent-safer.
2335         * modules/savedir (Depends-on): Likewise.
2336         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
2337         * modules/chdir-long (Depends-on): Add openat-safer.
2338
2339         openat-safer: new module
2340         * modules/openat-safer: New file.
2341         * lib/openat-safer.c: Likewise.
2342         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
2343         * lib/fcntl-safer.h (openat_safer): Declare.
2344         * lib/fcntl--.h (openat): Override.
2345         * MODULES.html.sh (File descriptor based I/O): Mention it.
2346         * lib/openat.h: Add double-inclusion guards.
2347         * lib/openat.c (includes): Only include "fcntl-safer.h", not
2348         "fcntl--.h", so we can implement openat.
2349         * modules/openat-safer-tests: New test.
2350         * tests/test-openat-safer.c: New file.
2351
2352         dirent-safer: new module
2353         * modules/dirent-safer: New file.
2354         * lib/dirent--.h: Likewise.
2355         * lib/dirent-safer.h: Likewise.
2356         * lib/opendir-safer.c: Likewise.
2357         * m4/dirent-safer.m4: Likewise.
2358         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
2359         * modules/dirent-safer-tests: New test.
2360         * tests/test-dirent-safer.c: New file.
2361         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
2362
2363         fdopendir: optimize on mingw
2364         * lib/unistd.in.h (_gl_directory_name): New prototype.
2365         * lib/fchdir.c (_gl_directory_name): Implement it.
2366         (fchdir): Use it to simplify implementation.
2367         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
2368         fchdir, when available, to avoid calling [f]chdir().
2369
2370         fdopendir: split into its own module
2371         * lib/openat.c (fdopendir): Move...
2372         * lib/fdopendir.c: ...into new file.
2373         * modules/fdopendir: New module.
2374         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
2375         * modules/openat (Depends-on): Add fdopendir.
2376         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
2377         fdopendir here.
2378         * modules/savedir (Depends-on): Only need fdopendir, not full
2379         openat.
2380         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
2381         * lib/openat.h (fdopendir): Drop prototype.
2382         * lib/dirent.in.h (fdopendir): Provide prototype.
2383         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
2384         * modules/dirent (Makefile.am): Substitute them.
2385         * MODULES.html.sh (File system functions): Mention it.
2386         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
2387         * modules/fdopendir-tests: New file.
2388         * tests/test-fdopendir.c: Likewise.
2389
2390         fchdir: use more consistent macro convention
2391         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
2392         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
2393         REPLACE_FCHDIR, rather than relying on config.h macros.
2394         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
2395         inside a single make-time REPLACE_FCHDIR block, rather than using
2396         the config.h FCHDIR_REPLACEMENT.
2397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
2398         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
2399         Manage fstat replacement.
2400         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
2401         REPLACE_FCHDIR.
2402         * modules/sys_stat (Files): Add m4/unistd_h.m4.
2403         (Makefile.am): Substitute REPLACE_FCHDIR.
2404         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
2405         FCHDIR_REPLACEMENT.
2406         * lib/dup-safer.c (dup_safer): Likewise.
2407         * lib/dup2.c (rpl_dup2): Likewise.
2408         * lib/dup3.c (rpl_dup3): Likewise.
2409         * lib/open.c (rpl_open): Likewise.
2410
2411         fchdir: simplify error handling, and support dup3
2412         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
2413         stdbool, malloc-posix, realloc-posix.
2414         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
2415         (ensure_dirs_slot): Return false on allocation failure.
2416         (rpl_dup2): Delete.
2417         (_gl_register_dup): New function.
2418         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
2419         (_gl_register_fd): Close fd on allocation failure.
2420         * lib/fcntl.in.h (_gl_register_fd): Update signature.
2421         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
2422         prototype.
2423         (rpl_dup2_fchdir): Delete prototype.
2424         * lib/open.c (open): Update caller.
2425         * lib/dup2.c (dup2): Track fchdir metadata.
2426         * lib/dup3.c (dup3): Likewise.
2427         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
2428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
2429
2430 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2431
2432         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
2433         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
2434         don't pass arguments to AC_OUTPUT.
2435
2436 2009-09-02  Bruno Haible  <bruno@clisp.org>
2437
2438         * modules/mkdtemp (License): Relicense under LGPLv2+.
2439         Reported by Paolo Bonzini.
2440
2441 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2442
2443         Replace uses of obsolete autoconf macros in Jim's modules.
2444         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
2445         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
2446         can evoke a warning from autoconf when run with -Wobsolete
2447         enabled.  They were declared obsolete for good reasons (see
2448         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
2449         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
2450         should not continue using the deprecated macros.
2451         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
2452         obsolete Autoconf macros with modern counterparts.
2453         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2454         * m4/dos.m4 (gl_AC_DOS): Likewise.
2455         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
2456         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2457         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
2458         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
2459         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
2460         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
2461         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
2462         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
2463         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
2464         Likewise.
2465         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2466         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2467         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
2468         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
2469         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2470         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
2471
2472 2009-09-01  Eric Blake  <ebb9@byu.net>
2473
2474         fchdir: fix off-by-one bug in previous patch
2475         * lib/fchdir.c (rpl_fstat): Use correct bounds.
2476         (_gl_unregister_fd): Delete useless if.
2477
2478 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
2479
2480         maint.mk: sort the list of syntax-check rules
2481         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
2482         easier to get a sense of progress when the rules are run sequentially
2483         and take a long time.
2484
2485 2009-09-01  Simon Josefsson  <simon@josefsson.org>
2486
2487         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
2488         * modules/netinet_in: Likewise.
2489         * modules/sys_file: Likewise.
2490         * modules/sys_ioctl: Likewise.
2491         * modules/sys_select: Likewise.
2492         * modules/sys_socket: Likewise.
2493         * modules/sys_stat: Likewise.
2494         * modules/sys_time: Likewise.
2495         * modules/sys_times: Likewise.
2496         * modules/sys_utsname: Likewise.
2497         * modules/sys_wait: Likewise.
2498
2499 2009-09-01  Jim Meyering  <meyering@redhat.com>
2500
2501         fts: help ensure that return values are not ignored
2502         * lib/fts_.h (__GNUC_PREREQ): Define.
2503         (__attribute_warn_unused_result__): Define.
2504         (fts_children, fts_close, fts_open, fts_read): Declare with
2505         __attribute_warn_unused_result__.
2506
2507         fts: fts_close now fails also when closing a dir file descriptor fails
2508         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
2509         and propagate to caller, along with errno.
2510
2511         announce-gen: correct formatting in --help output
2512         * build-aux/announce-gen (usage): Move the one-line description in
2513         --help output "up", to where it belongs, just after Usage:.
2514
2515 2009-08-31  Eric Blake  <ebb9@byu.net>
2516
2517         fchdir: port to mingw
2518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
2519         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
2520         opened, then use a substitute.
2521         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
2522         replacement.
2523         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
2524         (_gl_register_fd): No need to check stat if open already filters
2525         all directories.
2526         (fchdir): Fix error condition to match POSIX.
2527         * modules/fchdir (Depends-on): Add sys_stat.
2528         * doc/posix-functions/open.texi (open): Document the limitation.
2529         * modules/fchdir-tests: New file.
2530         * tests/test-fchdir.c: Likewise.
2531
2532         canonicalize: allow cross-testing from cygwin to mingw
2533         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
2534         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
2535         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
2536         Likewise.
2537         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
2538         target does not support symlinks.
2539         * tests/test-canonicalize-lgpl.sh: Likewise.
2540
2541         chown: avoid compilation warning on mingw
2542         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
2543         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
2544         mingw.
2545         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
2546         * modules/chown (Depends-on): Add errno.
2547
2548 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2549
2550         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
2551         command.
2552
2553 2009-08-31  Jim Meyering  <meyering@redhat.com>
2554
2555         canonicalize: remove useless initialization
2556         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
2557         initialization of local, "end".
2558
2559 2009-08-30  Bruno Haible  <bruno@clisp.org>
2560
2561         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
2562         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
2563         ENOSYS.
2564
2565 2009-08-30  Bruno Haible  <bruno@clisp.org>
2566
2567         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
2568         /usr/xpg4/bin/tr when it exists.
2569         * tests/test-pipe-filter-gi1.sh: Likewise.
2570
2571 2009-08-30  Bruno Haible  <bruno@clisp.org>
2572
2573         Work around deficient /usr/bin/id program on Solaris.
2574         * tests/test-file-has-acl.sh (ID): New variable.
2575         * tests/test-set-mode-acl.sh (ID): Likewise.
2576         * tests/test-copy-acl.sh (ID): Likewise.
2577         * tests/test-copy-file.sh (ID): Likewise.
2578
2579 2009-08-30  Bruno Haible  <bruno@clisp.org>
2580
2581         New module 'xstriconveh'.
2582         * lib/xstriconveh.h: New file.
2583         * lib/xstriconveh.c: New file.
2584         * modules/xstriconveh: New file.
2585
2586 2009-08-30  Bruno Haible  <bruno@clisp.org>
2587
2588         Make it easier to use mem_cd_iconveh.
2589         * lib/striconveh.h (iconveh_t): New type.
2590         (iconveh_open, iconveh_close): New declarations.
2591         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2592         with a single 'const iconveh_t *' argument.
2593         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
2594         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2595         with a single 'const iconveh_t *' argument.
2596         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
2597         * tests/test-striconveh.c (main): Update.
2598         * NEWS: Mention the change.
2599
2600 2009-08-30  Bruno Haible  <bruno@clisp.org>
2601
2602         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
2603         problem.
2604
2605 2009-08-30  Bruno Haible  <bruno@clisp.org>
2606
2607         Work around iconv_open problem on Solaris.
2608         * lib/iconv_open-solaris.gperf: New file.
2609         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
2610         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
2611         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
2612         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
2613         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
2614         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
2615
2616 2009-08-29  Jim Meyering  <meyering@redhat.com>
2617
2618         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
2619         * top/maint.mk (cvs-check): Remove target; it was just an alias
2620         to the better-named vc-diff-check.
2621         (maintainer-distcheck): Remove rule.  It was used only from
2622         the (alpha/beta/major) target, and all of its commands but one
2623         were coreutils-specific.
2624         (vc-dist): Remove rule.
2625         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
2626         Run vc-diff-check, not vc-dist.
2627         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
2628
2629 2009-08-27  Bruno Haible  <bruno@clisp.org>
2630
2631         * tests/test-bitrotate.c (main): Remove test that uses a shift count
2632         of 0.
2633
2634 2009-08-27  Bruno Haible  <bruno@clisp.org>
2635
2636         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
2637         compilers.
2638         * doc/func.texi: Document the SunPRO C bug.
2639
2640 2009-08-27  Bruno Haible  <bruno@clisp.org>
2641
2642         Fix link error on Solaris.
2643         * tests/test-parse-duration.c (xstrdup): Remove function.
2644
2645 2009-08-26  Pádraig Brady  <P@draigbrady.com>
2646
2647         ignore-value: handle pointer types, too
2648         * lib/ignore-value.h (__attribute__): Remove definition.
2649         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
2650         of a more concise and more-often effective "(void) i" statement.
2651         (ignore_ptr): New function to suppress warnings from functions that
2652         return pointers, and to make it explicit that one function doesn't
2653         handle all cases.
2654
2655 2009-08-25  Bruno Haible  <bruno@clisp.org>
2656
2657         dup2: work around a Linux bug.
2658         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
2659         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
2660         * doc/posix-functions/dup2.texi: Mention the Linux bug.
2661         Reported by Simon Josefsson.
2662
2663 2009-08-25  Jim Meyering  <meyering@redhat.com>
2664
2665         libguestfs uses gnulib
2666         * users.txt: Add libguestfs.
2667
2668 2009-08-24  Eric Blake  <ebb9@byu.net>
2669
2670         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
2671         * lib/pipe2.c (includes): Add binary-io.h.
2672         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
2673
2674 2009-08-24  Bruno Haible  <bruno@clisp.org>
2675
2676         Tolerate declared but missing accept4 syscall.
2677         * lib/accept4.c (accept4): Invoke original accept4 function first, if
2678         available.
2679         * lib/sys_socket.in.h (accept4): If the function is already present,
2680         override it.
2681         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
2682         * modules/accept4 (Makefile.am): Compile accept4.c always.
2683         Reported by Paolo Bonzini and Eric Blake.
2684
2685 2009-08-23  Bruno Haible  <bruno@clisp.org>
2686
2687         New module 'accept4'.
2688         * lib/sys_socket.in.h (accept4): New declaration.
2689         * lib/accept4.c: New file.
2690         * m4/accept4.m4: New file.
2691         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2692         GNULIB_ACCEPT4, HAVE_ACCEPT4.
2693         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
2694         HAVE_ACCEPT4.
2695         * modules/accept4: New file.
2696         * doc/glibc-functions/accept4.texi: Mention the new module.
2697
2698 2009-08-24  Jim Meyering  <meyering@redhat.com>
2699
2700         progname: also set global program_invocation_name, when possible
2701         Before this change, a libtool-enabled program that calls glibc's
2702         error function would report the program name as
2703         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
2704         * modules/progname (configure.ac): Check for a declaration of
2705         program_invocation_name.
2706         * lib/progname.c:  Include <errno.h>.
2707         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
2708         Set program_invocation_name.
2709
2710 2009-08-23  Bruno Haible  <bruno@clisp.org>
2711
2712         * lib/dup3.c: Include <string.h>.
2713
2714 2009-08-23  Bruno Haible  <bruno@clisp.org>
2715
2716         * lib/dup3.c (dup3): Test only once whether the system actually exists.
2717         * lib/pipe2.c (pipe2): Likewise.
2718         Suggested by Eric Blake.
2719
2720 2009-08-23  Bruno Haible  <bruno@clisp.org>
2721
2722         Tolerate declared but missing dup3 syscall.
2723         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
2724         * lib/unistd.in.h (dup3): If the function is already present,
2725         override it.
2726         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
2727         * modules/dup3 (Makefile.am): Compile dup3.c always.
2728         Reported by Paolo Bonzini.
2729
2730 2009-08-23  Bruno Haible  <bruno@clisp.org>
2731
2732         Tolerate declared but missing pipe2 syscall.
2733         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
2734         available.
2735         * lib/unistd.in.h (pipe2): If the function is already present,
2736         override it.
2737         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
2738         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
2739         Reported by Paolo Bonzini.
2740
2741 2009-08-23  Bruno Haible  <bruno@clisp.org>
2742
2743         * lib/pipe2.c (pipe2): Move #ifs inside function.
2744
2745 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2746
2747         quotearg: document limitations of quote_these_too
2748         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
2749         those limitations are created.
2750         * lib/quotearg.h (set_char_quoting): Document that digits and
2751         letters that are special after backslash are not permitted.
2752         (quotearg_char): Cross-reference set_char_quoting documentation.
2753
2754 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
2755
2756         quotearg: implement custom_quoting_style
2757         * lib/quotearg.c: (struct quoting_options): Add left_quote and
2758         right_quote fields.
2759         (set_custom_quoting): New public function.
2760         (quotearg_buffer_restyled): Add left_quote and right_quote
2761         arguments, handle them very much like locale quoting, and update
2762         all uses.
2763         (quotearg_n_custom): New public function.
2764         (quotearg_n_custom_mem): New public function.
2765         (quotearg_custom): New public function.
2766         (quotearg_custom_mem): New public function.
2767         * lib/quotearg.h: Prototype and document new public functions.
2768         (enum quoting_style): For escape_quoting_style and
2769         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
2770         ignored even though they're otherwise like c_quoting_style.
2771         Add custom_quoting_style member and document with comparison to
2772         clocale_quoting_style.
2773         * tests/test-quotearg.c (custom_quotes): New array.
2774         (custom_results): New array.
2775         (main): Extend to test custom quoting.
2776
2777 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2778
2779         quotearg: fix right quote escaping when it's in quote_these_too
2780         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
2781         quote, be sure to prepend only one backslash.
2782         * tests/test-quotearg.c (use_quote_double_quotes): New function.
2783         (main): Test it.
2784
2785 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2786
2787         quotearg-tests: test escaping of embedded locale quotes
2788         * tests/test-quotearg.c (struct result_strings): Add member for
2789         new input.
2790         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
2791         (inputs): Add new input.
2792         (results_g): Add expected results.
2793         (flag_results): Likewise.
2794         (locale_results): Likewise.
2795         (compare_strings): Check those.
2796
2797 2009-08-23  Bruno Haible  <bruno@clisp.org>
2798
2799         Tests for module 'dup3'.
2800         * modules/dup3-tests: New file.
2801         * tests/test-dup3.c: New file.
2802
2803         New module 'dup3'.
2804         * lib/unistd.in.h (dup3): New declaration.
2805         * lib/dup3.c: New file.
2806         * m4/dup3.m4: New file.
2807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
2808         HAVE_DUP3.
2809         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
2810         * modules/dup3: New file.
2811         * doc/glibc-functions/dup3.texi: Mention the new module.
2812
2813 2009-08-23  Bruno Haible  <bruno@clisp.org>
2814
2815         Tweak the dup2 test.
2816         * tests/test-dup2.c (main): Create the test file empty. Verify that an
2817         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
2818         the test file is still empty. Fix argument order of lseek.
2819
2820 2009-08-23  Bruno Haible  <bruno@clisp.org>
2821
2822         Avoid test link errors when the modules getopt-gnu, gettext are used.
2823         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
2824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2825
2826 2009-08-23  Bruno Haible  <bruno@clisp.org>
2827
2828         Fix getdtablesize() on mingw.
2829         * lib/getdtablesize.c (getdtablesize): Implement differently.
2830         * lib/unistd.in.h (getdtablesize): Improve comment.
2831
2832 2009-08-23  Bruno Haible  <bruno@clisp.org>
2833
2834         New module 'mkostemp'.
2835         Based on Ulrich Drepper's 2007-08-10 change in glibc.
2836         * lib/stdlib.in.h (mksotemp): New declaration.
2837         * lib/mkostemp.c: New file, from glibc with modifications.
2838         * lib/tempname.h (GT_FILE): Remove outdated comment.
2839         (gen_tempname): Add flags argument.
2840         * lib/tempname.c (__GT_BIGFILE): Remove macro.
2841         (__GT_FILE): Map to 1.
2842         (small_open, large_open): Remove macros.
2843         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
2844         * lib/mkstemp.c (mkstemp): Update.
2845         * lib/mkdtemp.c (mkdtemp): Likewise.
2846         * m4/mkostemp.m4: New file.
2847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
2848         HAVE_MKOSTEMP.
2849         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
2850         HAVE_MKOSTEMP.
2851         * modules/mkostemp: New file, based on modules/mkstemp.
2852         * doc/glibc-functions/mkostemp.texi: Mention the new module.
2853         * NEWS: Mention the change.
2854
2855 2009-08-23  Bruno Haible  <bruno@clisp.org>
2856
2857         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
2858         Reported by Eric Blake.
2859
2860 2009-08-23  Bruno Haible  <bruno@clisp.org>
2861
2862         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
2863         Reported by Eric Blake.
2864
2865 2009-08-23  Bruno Haible  <bruno@clisp.org>
2866
2867         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
2868         * modules/pipe2 (Depends-on): Likewise.
2869
2870 2009-08-23  Eric Blake  <ebb9@byu.net>
2871
2872         fcntl-h: add O_TTY_INIT support
2873         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
2874         * tests/test-fcntl-h.c (o): Test it.
2875         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2876
2877         fcntl-h: rename from fcntl, in preparation for fcntl(2)
2878         * modules/fcntl: Move <fcntl.h> header replacement...
2879         * modules/fcntl-h: ...to new name, so as not to collide with
2880         like-named function.
2881         * tests/test-fcntl.c: Rename...
2882         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
2883         * modules/fcntl-tests: Rename...
2884         * modules/fcntl-h-tests: ...to this.  Update test file name.
2885         * modules/chdir-long (Depends-on): Update clients.
2886         * modules/chdir-safer (Depends-on): Likewise.
2887         * modules/fcntl-safer (Depends-on): Likewise.
2888         * modules/fts (Depends-on): Likewise.
2889         * modules/mkancesdirs (Depends-on): Likewise.
2890         * modules/mkdir-p (Depends-on): Likewise.
2891         * modules/open (Depends-on): Likewise.
2892         * modules/savewd (Depends-on): Likewise.
2893         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
2894         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2895
2896 2009-08-22  Bruno Haible  <bruno@clisp.org>
2897
2898         * modules/binary-io (License): Relicense under LGPL.
2899         * modules/pipe2 (License): Likewise.
2900
2901 2009-08-22  Bruno Haible  <bruno@clisp.org>
2902
2903         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
2904         return value.
2905         * lib/pipe-filter-gi.c (filter_init): Likewise.
2906         Reported by Eric Blake.
2907
2908 2009-08-22  Bruno Haible  <bruno@clisp.org>
2909
2910         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
2911         * modules/pipe (Depends-on): Add pipe2.
2912
2913 2009-08-22  Bruno Haible  <bruno@clisp.org>
2914
2915         Tests for module 'pipe2'.
2916         * modules/pipe2-tests: New file.
2917         * tests/test-pipe2.c: New file.
2918
2919         New module 'pipe2'.
2920         * lib/unistd.in.h (pipe2): New declaration.
2921         * lib/pipe2.c: New file.
2922         * m4/pipe2.m4: New file.
2923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
2924         HAVE_PIPE2.
2925         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
2926         * modules/pipe2: New file.
2927         * doc/glibc-functions/pipe2.texi: Mention the new module.
2928
2929 2009-08-22  Bruno Haible  <bruno@clisp.org>
2930
2931         Reference some new glibc functions.
2932         * doc/glibc-functions/accept4.texi: New file.
2933         * doc/glibc-functions/dup3.texi: New file.
2934         * doc/glibc-functions/mkostemp.texi: New file.
2935         * doc/glibc-functions/pipe2.texi: New file.
2936         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
2937         (Glibc sys/socket.h): Refer to accept4.
2938         (Glibc unistd.h): Refer to dup3, pipe2.
2939         Reported by Eric Blake.
2940
2941 2009-08-22  Jim Meyering  <meyering@redhat.com>
2942             Bruno Haible  <bruno@clisp.org>
2943
2944         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
2945         This makes it so packages using automake-1.11's silent-rules option
2946         can print e.g., a single "GEN    configmake.h" line, rather than
2947         the 30+ statements that perform the job.  If you want to see the
2948         actual commands, you can still run "make V=1".
2949         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
2950         so that make output is abbreviated when those variables are defined
2951         appropriately.
2952         * modules/argz: Likewise.
2953         * modules/arpa_inet: Likewise.
2954         * modules/byteswap: Likewise.
2955         * modules/configmake: Likewise.
2956         * modules/dirent: Likewise.
2957         * modules/errno: Likewise.
2958         * modules/fcntl: Likewise.
2959         * modules/float: Likewise.
2960         * modules/fnmatch: Likewise.
2961         * modules/getopt-posix: Likewise.
2962         * modules/glob: Likewise.
2963         * modules/iconv_open: Likewise.
2964         * modules/inttypes: Likewise.
2965         * modules/localcharset: Likewise.
2966         * modules/locale: Likewise.
2967         * modules/math: Likewise.
2968         * modules/netdb: Likewise.
2969         * modules/netinet_in: Likewise.
2970         * modules/poll: Likewise.
2971         * modules/posix_spawnp-tests: Likewise.
2972         * modules/sched: Likewise.
2973         * modules/search: Likewise.
2974         * modules/selinux-h: Likewise.
2975         * modules/signal: Likewise.
2976         * modules/spawn: Likewise.
2977         * modules/stdarg: Likewise.
2978         * modules/stdbool: Likewise.
2979         * modules/stddef: Likewise.
2980         * modules/stdint: Likewise.
2981         * modules/stdio: Likewise.
2982         * modules/stdlib: Likewise.
2983         * modules/string: Likewise.
2984         * modules/strings: Likewise.
2985         * modules/sys_file: Likewise.
2986         * modules/sys_ioctl: Likewise.
2987         * modules/sys_select: Likewise.
2988         * modules/sys_socket: Likewise.
2989         * modules/sys_stat: Likewise.
2990         * modules/sys_time: Likewise.
2991         * modules/sys_times: Likewise.
2992         * modules/sys_utsname: Likewise.
2993         * modules/sys_wait: Likewise.
2994         * modules/sysexits: Likewise.
2995         * modules/time: Likewise.
2996         * modules/unistd: Likewise.
2997         * modules/wchar: Likewise.
2998         * modules/wctype: Likewise.
2999
3000 2009-08-22  Jim Meyering  <meyering@redhat.com>
3001
3002         announce-gen: detect write failure
3003         * build-aux/announce-gen: Add Coda at end.
3004         Remove equivalent-but-more-verbose block at top.
3005
3006 2009-08-19  Akim Demaille  <demaille@gostai.com>
3007
3008         bootstrap: --help to stdout.
3009         * bootstrap (usage): Don't send --help to stderr.
3010         Use a here doc instead of a long string.
3011
3012 2009-08-21  Eric Blake  <ebb9@byu.net>
3013
3014         test-popen-safer: split from test-popen
3015         * tests/test-popen.c (main): Move...
3016         * tests/test-popen.h: ...into new file.
3017         * tests/test-popen-safer2.c: New file.
3018         * modules/popen-tests (Files): Add test-popen.h.
3019         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
3020         Suggested by Bruno Haible.
3021
3022         test-fcntl-safer: split from test-open
3023         * tests/test-open.c (main): Move...
3024         * tests/test-open.h: ...into new file.
3025         * tests/test-fcntl-safer.c: New file.
3026         * modules/open-tests (Files): Add test-open.h.
3027         * modules/fcntl-safer-tests: New file.
3028         Suggested by Bruno Haible.
3029
3030         test-fopen-safer: split from test-fopen
3031         * tests/test-fopen.c (main): Move...
3032         * tests/test-fopen.h: ...into new file.
3033         * tests/test-fopen-safer.c: New file.
3034         * modules/fopen-tests (Files): Add test-fopen.h.
3035         * modules/fopen-safer-tests: New file.
3036         Suggested by Bruno Haible.
3037
3038 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
3039
3040         popen-safer: test O_CLOEXEC at run-time.
3041         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
3042
3043 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
3044
3045         fcntl: move more flags to the header
3046         * lib/cloexec.c: Do not define FD_CLOEXEC here.
3047         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
3048         * lib/fcntl.in.h: Do both things here.
3049
3050 2009-08-21  Jim Meyering  <meyering@redhat.com>
3051
3052         consistently remove $@-t before redirecting to it
3053         * modules/argz: Remove $@-t and $@ before redirecting to the former.
3054         * modules/alloca-opt: Likewise.
3055         * modules/byteswap: Likewise.
3056         * modules/fnmatch: Likewise.
3057         * modules/getopt-posix: Likewise.
3058         * modules/glob: Likewise.
3059         * modules/poll: Likewise.
3060         * modules/posix_spawnp-tests: Likewise.
3061         * modules/sys_socket: Likewise.
3062         * modules/sysexits: Likewise.
3063
3064 2009-08-21  Eric Blake  <ebb9@byu.net>
3065
3066         popen: simplify access to original popen
3067         * lib/popen.c (rpl_popen): No need to worry about popen being a
3068         macro.
3069         Reported by Bruno Haible.
3070
3071 2009-08-20  Eric Blake  <ebb9@byu.net>
3072
3073         build: avoid some compiler warnings
3074         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
3075         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
3076         type.
3077         (new_exclude_segment, excluded_file_pattern_p)
3078         (excluded_file_name_p): Reduce scope.
3079         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
3080         old-style declaration.
3081
3082 2009-08-20  Simon Josefsson  <simon@josefsson.org>
3083
3084         * tests/test-exclude1.sh: Handle Windows EOL.
3085         * tests/test-exclude2.sh: Likewise.
3086         * tests/test-exclude3.sh: Likewise.
3087         * tests/test-exclude4.sh: Likewise.
3088         * tests/test-exclude5.sh: Likewise.
3089         * tests/test-exclude6.sh: Likewise.
3090         * tests/test-exclude7.sh: Likewise.
3091
3092 2009-08-19  Akim Demaille  <demaille@gostai.com>
3093
3094         bootstrap: find sha1sum when named gsha1sum.
3095         * bootstrap (find_tool): New.
3096         ($SHA1SUM): New.
3097         Use it.
3098
3099 2009-08-20  Jim Meyering  <meyering@redhat.com>
3100
3101         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
3102         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
3103         expression that converts "." in a file name to "\." in the resulting
3104         regexp.  Start with a dummy statement, so that prior shell variable
3105         definitions are expanded portably.  Reported by Simon Josefsson.
3106
3107 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
3108
3109         Fix polling for writeability of a screen buffer.
3110         * lib/poll.c: Distinguish input and screen buffers for the
3111         Win32 implementation.
3112         * lib/select.c: Likewise.
3113
3114 2009-08-19  Eric Blake  <ebb9@byu.net>
3115
3116         popen-safer: prevent popen from clobbering std descriptors
3117         * modules/popen-safer: New file.
3118         * lib/popen-safer.c: Likewise.
3119         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
3120         * lib/stdio--.h (popen): Provide override.
3121         * lib/stdio-safer.h (popen_safer): Provide declaration.
3122         * tests/test-popen.c (includes): Partially test this.
3123         * modules/popen-safer-tests: New file, for more tests.
3124         * tests/test-popen-safer.c: Likewise.
3125         * MODULES.html.sh (file stream based Input/Output): Mention it.
3126
3127         tests: test some of the *-safer modules
3128         * modules/fopen-safer (Depends-on): Add fopen.
3129         * modules/fcntl-safer (Depends-on): Add fcntl.
3130         * modules/stdlib-safer (Depends-on): Add stdlib.
3131         (configure.ac): Set indicator.
3132         * modules/unistd-safer (configure.ac): Likewise.
3133         * modules/tmpfile-safer (configure.ac): Likewise.
3134         (Depends-on): Add tmpfile.
3135         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
3136         active.
3137         * tests/test-fopen.c (includes): Test safer versions when they are
3138         in use.
3139         * tests/test-open.c (includes): Likewise.
3140
3141         popen: fix cygwin 1.5 bug when stdin closed
3142         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
3143         * modules/popen: New file.
3144         * modules/popen-tests: Likewise.
3145         * tests/test-popen.c: Likewise.
3146         * m4/popen.m4: Likewise.
3147         * lib/popen.c: Likewise.
3148         * lib/stdio.in.h (popen): New declaration.
3149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
3150         * modules/stdio (Makefile.am): Likewise.
3151         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
3152
3153 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
3154
3155         maint.mk: give full control over update-copyright exclusions
3156         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
3157         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
3158         (update-copyright): Don't force inclusion of top-level
3159         ChangeLog.  Don't force exclusion of all COPYING files, but make
3160         them the default exclusion instead.
3161
3162 2009-08-16  Bruno Haible  <bruno@clisp.org>
3163
3164         Fix test failures on Solaris 10.
3165         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
3166         tests when Solaris iconv() is used.
3167         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3168         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3169         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3170         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3171         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3172
3173 2009-08-16  Bruno Haible  <bruno@clisp.org>
3174
3175         Fix test failures on Solaris 10.
3176         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
3177         'tr' program and pass it as first argument.
3178         * tests/test-pipe-filter-gi1.sh: Likewise.
3179         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
3180         program as first argument.
3181         * tests/test-pipe-filter-gi1.c (main): Likewise.
3182
3183 2009-08-16  Eric Blake  <ebb9@byu.net>
3184
3185         fpurge: fix previous commits
3186         * modules/fpurge (Makefile.am): Make replacement conditional,
3187         partially reverting 2007-04-29 change; missed in previous
3188         attempt.
3189         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
3190         is missing.
3191
3192 2009-08-16  Bruno Haible  <bruno@clisp.org>
3193
3194         Clarify fpurge's effect on the file position.
3195         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
3196         * tests/test-fpurge.c (main): Make a second pass for checking the file
3197         position.
3198
3199 2009-08-16  Bruno Haible  <bruno@clisp.org>
3200
3201         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
3202         declaration of fpurge is missing.
3203         * tests/test-fpurge.c (main): Check that the file has not more contents
3204         than expected. Close the file before removing it.
3205
3206 2009-08-15  Eric Blake  <ebb9@byu.net>
3207
3208         fpurge: don't wrap working cygwin implementation
3209         * lib/fpurge.c (fpurge): Fix comment typo.
3210         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
3211         1.7 to avoid replacement.
3212         * tests/test-fpurge.c (main): Enhance test.
3213
3214 2009-08-15  Eric Blake  <ebb9@byu.net>
3215         and Jim Meyering  <meyering@redhat.com>
3216
3217         test-update-copyright: skip if perl is insufficient
3218         * tests/test-update-copyright.sh: Failure to run maintainer tool
3219         should not cause testsuite failure on cygwin 1.5.
3220
3221 2009-08-14  Eric Blake  <ebb9@byu.net>
3222
3223         doc: mention more functions added in cygwin 1.7.0
3224         * doc/posix-headers/limits.texi (limits.h): Update for recent
3225         cygwin additions.
3226         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
3227         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3228         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
3229         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
3230         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
3231
3232 2009-08-14  Eric Blake  <ebb9@byu.net>
3233
3234         maint.mk: simplify update-copyright rule
3235         * top/maint.mk (update-copyright-local): Delete, and document how
3236         to do it in cfg.mk instead.
3237         (update-copyright-exclude-regexp): Delete, and document how to do
3238         it in .x-update-copyright instead.
3239         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
3240         exclude ChangeLog.
3241
3242 2009-08-14  Bruno Haible  <bruno@clisp.org>
3243
3244         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
3245
3246 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
3247
3248         maint.mk: support update-copyright-env
3249         * top/maint.mk (update-copyright-env): Define place-holder.
3250         (update-copyright): Expand $(update-copyright-env) before
3251         invoking update-copyright.
3252
3253 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
3254
3255         update-copyright: implement forced reformatting
3256         * build-aux/update-copyright: Implement and document
3257         UPDATE_COPYRIGHT_FORCE.
3258         * tests/test-update-copyright.sh: Test it.
3259
3260 2009-08-14  Eric Blake  <ebb9@byu.net>
3261         and Bruno Haible  <bruno@clisp.org>
3262
3263         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
3264         * tests/test-locale.c: Revert previous patch related to NULL.
3265         * tests/test-stdio.c: Likewise.
3266         * tests/test-stdlib.c: Likewise.
3267         * tests/test-string.c: Likewise.
3268         * tests/test-unistd.c: Likewise.
3269         * modules/time-tests (Depends-on): Add verify.
3270         * modules/wchar-tests (Depends-on): Likewise.
3271         * tests/test-time.c: Test for NULL compliance.
3272         * tests/test-wchar.c: Likewise.
3273         * modules/locale (Depends-on): Add stddef.
3274         * modules/stdio (Depends-on): Likewise.
3275         * modules/stdlib (Depends-on): Likewise.
3276         * modules/string (Depends-on): Likewise.
3277         * modules/time (Depends-on): Likewise.
3278         * modules/unistd (Depends-on): Likewise.
3279         * modules/wchar (Depends-on): Likewise.
3280         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
3281         * lib/stdlib.in.h (includes): Likewise.
3282         * lib/string.in.h (includes): Likewise.
3283         * lib/time.in.h (includes): Likewise.
3284         * lib/unistd.in.h (includes): Likewise.
3285         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
3286         replaced.
3287         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3288         * m4/stddef_h.m4: New file.
3289         * modules/stddef: Likewise.
3290         * lib/stddef.in.h: Likewise.
3291         * modules/stddef-tests: Likewise.
3292         * tests/test-stddef.c: Likewise.
3293         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
3294         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
3295         * doc/posix-headers/locale.texi (locale.h): Likewise.
3296         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
3297         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3298         * doc/posix-headers/string.texi (string.h): Likewise.
3299         * doc/posix-headers/time.texi (time.h): Likewise.
3300         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
3301         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
3302
3303 2009-08-14  Eric Blake  <ebb9@byu.net>
3304
3305         doc: improve git diff of texinfo files
3306         * .gitattributes: Add rule for *.texi files, with hint on how to
3307         use it.
3308         Copied from m4, and based on a report by Bruno Haible.
3309
3310 2009-08-14  Bruno Haible  <bruno@clisp.org>
3311
3312         Disable multithread support by default on Cygwin 1.5.x for real.
3313         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
3314
3315 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
3316
3317         update-copyright: much ado about intervals
3318         * build-aux/update-copyright: Implement and document
3319         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
3320         of copyright year intervals.
3321         Also, document UPDATE_COPYRIGHT_YEAR.
3322         * tests/test-update-copyright.sh: Test it.
3323
3324         update-copyright: convert 2-digit to 4-digit years
3325         * build-aux/update-copyright: Implement and document.
3326         * tests/test-update-copyright.sh: Update.
3327
3328 2009-08-14  Jim Meyering  <meyering@redhat.com>
3329
3330         test-exclude: avoid coreutils "make check" failure
3331         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
3332         just as in test-argmatch.c.
3333
3334 2009-08-13  Eric Blake  <ebb9@byu.net>
3335
3336         test-dup2: fix bad assumption
3337         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
3338         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
3339
3340         test-version-etc: fix CRLF portability issue
3341         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
3342         recognize \r.
3343         * tests/test-argp-version-etc-1.sh: Likewise.
3344
3345         getopt: update client modules
3346         * modules/argp (Depends-on): Use getopt-gnu.
3347         * modules/git-merge-changelog (Depends-on): Likewise.
3348         * modules/long-options (Depends-on): Likewise.
3349         * modules/xstrtol (Depends-on): Likewise.
3350
3351 2009-08-13  Simon Josefsson  <simon@josefsson.org>
3352
3353         * tests/test-version-etc.sh: Don't fail on different
3354         project/version.  Don't fail on CRLF differences.  Rewrite to use
3355         multiple -e instead of multiple sed forks, suggested by Eric Blake
3356         <ebb9@byu.net>.
3357         * tests/test-argp-version-etc-1.sh: Likewise.
3358
3359 2009-08-13  Simon Josefsson  <simon@josefsson.org>
3360
3361         * tests/test-version-etc.sh: Don't fail on different
3362         project/version.
3363
3364 2009-08-12  Bruno Haible  <bruno@clisp.org>
3365
3366         Tests for modules 'getopt-posix', 'getopt-gnu'.
3367         * modules/getopt-posix-tests: New file.
3368         * tests/test-getopt.c: New file.
3369         * tests/test-getopt.h: New file.
3370         * tests/test-getopt_long.h: New file.
3371
3372         New modules 'getopt-posix', 'getopt-gnu'.
3373         * modules/getopt-gnu: New file, renamed from modules/getopt.
3374         * modules/getopt-posix: New file.
3375         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
3376         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
3377         (gl_GETOPT): Remove macro.
3378         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
3379         Disable the test against BSD systems that declare optreset. Test
3380         against mingw bug. Test against lack of support of optional arguments
3381         on many platforms.
3382         * doc/glibc-headers/getopt.texi: Update module name and list of
3383         relevant platforms.
3384         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
3385         'getopt-gnu' and more portability problems.
3386         * NEWS: Mention the changes.
3387
3388 2009-08-12  Bruno Haible  <bruno@clisp.org>
3389
3390         Ensure that optarg etc. get declared by <unistd.h>.
3391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
3392         AC_USE_SYSTEM_EXTENSIONS.
3393         * modules/getopt (Depends-on): Add 'extensions'.
3394
3395 2009-08-12  Bruno Haible  <bruno@clisp.org>
3396
3397         Avoid test link errors.
3398         * modules/pipe-filter-ii-tests (Makefile.am): Define
3399         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
3400         * modules/pipe-filter-gi-tests (Makefile.am): Define
3401         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
3402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3403
3404 2009-08-12  Bruno Haible  <bruno@clisp.org>
3405
3406         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
3407         gl_GETOPT_SUBSTITUTE before.
3408         (gl_GETOPT): Use it.
3409         * m4/argp.m4 (gl_ARGP): Update.
3410         Reported by Sergey Poznyakoff.
3411
3412         * m4/getopt.m4: Reorder macros.
3413         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
3414         (gl_GETOPT_SUBSTITUTE): Remove macro.
3415
3416 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3417
3418         Minor improvement in gitlog-to-changelog
3419
3420         * build-aux/gitlog-to-changelog: New option `--format' makes
3421         output format string configurable.
3422
3423 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3424
3425         Optimize exclude: use hash tables for non-wildcard patterns.
3426
3427         * lib/exclude.c: Include hash.h and mbuiter.h
3428         (struct exclude_pattern, exclude_segment): New data types.
3429         (struct exclude): Rewrite.
3430         (fnmatch_pattern_has_wildcards): New function.
3431         (new_exclude_segment, free_exclude_segment): New functions.
3432         (excluded_file_pattern_p, excluded_file_name_p): New functions.
3433         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
3434         * lib/exclude.h (is_fnmatch_pattern): New prototype.
3435         * modules/exclude: Depend on hash and mbuiter.
3436
3437         * modules/exclude-tests: New file.
3438         * tests/test-exclude.c: New file.
3439         * tests/test-exclude1.sh: New file.
3440         * tests/test-exclude2.sh: New file.
3441         * tests/test-exclude3.sh: New file.
3442         * tests/test-exclude4.sh: New file.
3443         * tests/test-exclude5.sh: New file.
3444         * tests/test-exclude6.sh: New file.
3445         * tests/test-exclude7.sh: New file.
3446
3447 2009-08-12  Bruno Haible  <bruno@clisp.org>
3448
3449         Ensure that getopt() gets declared by <unistd.h>.
3450         * lib/unistd.in.h: Conditionally include getopt.h.
3451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
3452         Set GNULIB_UNISTD_H_GETOPT.
3453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3454         GNULIB_UNISTD_H_GETOPT.
3455         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
3456
3457 2009-08-12  Bruno Haible  <bruno@clisp.org>
3458
3459         Clarify logic.
3460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
3461         gl_replace_getopt instead of GETOPT_H.
3462
3463 2009-08-12  Bruno Haible  <bruno@clisp.org>
3464
3465         * m4/getopt.m4: Add comments.
3466
3467 2009-08-12  Bruno Haible  <bruno@clisp.org>
3468
3469         Disable multithread support by default on Cygwin 1.5.x.
3470         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
3471         set gl_use_threads=no if not specified otherwise.
3472
3473 2009-08-11  Bruno Haible  <bruno@clisp.org>
3474
3475         Avoid compilation error on NetBSD 5.0.
3476         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
3477         * tests/test-stdio.c: Likewise.
3478         * tests/test-stdlib.c: Likewise.
3479         * tests/test-string.c: Likewise.
3480         * tests/test-unistd.c: Likewise.
3481         Reported by Greg Troxel <gdt@ir.bbn.com>
3482         at <https://savannah.gnu.org/support/?106973>.
3483
3484 2009-08-11  Bruno Haible  <bruno@clisp.org>
3485
3486         * modules/dup2-tests (Depends-on): Remove close.
3487
3488         Undo 2009-07-19 commit.
3489         * modules/acl-tests (Depends-on): Remove close.
3490         * modules/binary-io-tests (Depends-on): Likewise.
3491         * modules/closein-tests (Depends-on): Likewise.
3492         * modules/flock-tests (Depends-on): Likewise.
3493         * modules/fsync-tests (Depends-on): Likewise.
3494         * modules/lseek-tests (Depends-on): Likewise.
3495         * modules/pipe-tests (Depends-on): Likewise.
3496         * modules/posix_spawn-tests (Depends-on): Likewise.
3497         * modules/posix_spawnp-tests (Depends-on): Likewise.
3498         * modules/stat-time-tests (Depends-on): Likewise.
3499         * modules/yesno-tests (Depends-on): Likewise.
3500
3501 2009-08-10  Bruno Haible  <bruno@clisp.org>
3502
3503         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
3504
3505 2009-08-10  Bruno Haible  <bruno@clisp.org>
3506
3507         Fix a gcc warning.
3508         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
3509
3510 2009-08-10  Bruno Haible  <bruno@clisp.org>
3511
3512         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
3513         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
3514         not only the first time.
3515         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
3516         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
3517         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
3518         is 1, not only the the first time.
3519
3520 2009-08-10  Bruno Haible  <bruno@clisp.org>
3521
3522         Make it possible to use module 'gethostname' without module 'close'.
3523         * lib/unistd.in.h (close): Evoke a link error only if
3524         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3526         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3527         * modules/unistd (Makefile.am): Substitute
3528         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3529         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
3530         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3532         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3533         * modules/sys_ioctl (Makefile.am): Substitute
3534         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3535         * modules/socket (configure.ac): On native Windows, set
3536         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
3537         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3538         Reported by Sam Steingold <sds@gnu.org>.
3539
3540 2009-08-10  Bruno Haible  <bruno@clisp.org>
3541
3542         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
3543         * modules/ioctl (configure.ac): Likewise.
3544
3545 2009-08-10  Bruno Haible  <bruno@clisp.org>
3546
3547         Avoid collision between gnulib wrapper and libintl wrapper.
3548         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
3549         already defined in intl/printf.c.
3550         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
3551         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
3552
3553 2009-08-09  Bruno Haible  <bruno@clisp.org>
3554
3555         Make <sys/select.h> really self-contained, also on Solaris 10.
3556         * lib/sys_select.in.h: Include <string.h>.
3557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
3558         Solaris 10 problem.
3559         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
3560         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
3561         Reported by Jim Meyering.
3562
3563 2009-08-09  Bruno Haible  <bruno@clisp.org>
3564
3565         Avoid warnings from 'aclocal' that are due to a use of macro name
3566         AM_XGETTEXT_OPTION that is not defined in automake.
3567         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
3568         automake.
3569         * modules/error (configure.ac): Likewise.
3570         * modules/propername (configure.ac): Likewise.
3571         * modules/vasprintf (configure.ac): Likewise.
3572         * modules/verror (configure.ac): Likewise.
3573         * modules/xprintf (configure.ac): Likewise.
3574         * modules/xvasprintf (configure.ac): Likewise.
3575
3576 2009-08-08  Bruno Haible  <bruno@clisp.org>
3577
3578         Avoid compilation error in C++ mode.
3579         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
3580         Reported by Sam Steingold <sds@gnu.org>.
3581
3582 2009-08-08  Bruno Haible  <bruno@clisp.org>
3583
3584         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
3585         for the various Unix platforms.
3586         * doc/posix-headers/limits.texi: Update platforms list regarding
3587         HOST_NAME_MAX.
3588         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3589
3590 2009-08-07  Jim Meyering  <meyering@redhat.com>
3591
3592         selinux-at: fix typo in a comment
3593         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
3594         Spotted by Paolo Bonzini.
3595
3596         selinux-at: remove redundant m4 code, add documentation
3597         * modules/selinux-at (configure.ac): Remove redundant code.
3598         LIB_SELINUX is already set via the dependent module, selinux-h.
3599         (Include): Add quotes around selinux-at.h.
3600         * lib/selinux-at.h: Add documentation.
3601         Reported by Bruno Haible in
3602         http://marc.info/?l=gnulib-bug&m=124958988300749
3603
3604 2009-08-07  Bruno Haible  <bruno@clisp.org>
3605
3606         Avoid link error on MacOS X 10.3 and 10.4.
3607         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
3608         on non-ELF systems.
3609         * lib/argp-pv.c (argp_program_version): Likewise.
3610         Reported by Simon Josefsson.
3611
3612 2009-08-07  Simon Josefsson  <simon@josefsson.org>
3613
3614         * tests/test-version-etc.sh: Use $EXEEXT.
3615
3616 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
3617
3618         update-copyright: update documentation to point to maint.mk
3619         * build-aux/update-copyright: Here.
3620
3621 2009-08-06  Jim Meyering  <meyering@redhat.com>
3622
3623         maint.mk: support update-copyright-local
3624         * top/maint.mk (update-copyright-local): Define place-holder.
3625         (update-copyright): Depend on $(update-copyright-local).
3626
3627 2009-08-06  Jim Meyering  <meyering@redhat.com>
3628
3629         selinux-at: new module
3630         Initially written for coreutils, this module will soon be
3631         used by findutils, too.
3632         * MODULES.html.sh [Misc]: Add selinux-at.
3633         * lib/selinux-at.h: New file, from coreutils.
3634         * lib/selinux-at.c: Likewise.
3635         * modules/selinux-at: Likewise.
3636         (License): Change from LGPL to GPL, since it depends
3637         on the GPL'd openat module.
3638
3639         doc: update README
3640         * README: Remove references to cogito.
3641         Remove cvs-repo-updating instructions from 2007.
3642         Don't imply that CVS is better if you have limited disk space.
3643
3644 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3645
3646         update-copyright: support C-style comments
3647         * build-aux/update-copyright: Implement and document.
3648         * tests/test-update-copyright.sh: Test.
3649
3650 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3651
3652         update-copyright: support omitted "(C)"
3653         * build-aux/update-copyright: Implement and document.  Also,
3654         allow variable whitespace before "(C)".
3655         * tests/test-update-copyright.sh: Test.
3656
3657 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3658
3659         update-copyright: don't trip on non-FSF copyright statements
3660         * build-aux/update-copyright: Fix so that the first correctly
3661         formatted FSF copyright statement is recognized no matter what
3662         appears before it.  Update documentation.
3663         * tests/test-update-copyright.sh: Test that.
3664
3665 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3666
3667         update-copyright: clean up code a little
3668         * build-aux/update-copyright: Append "_re" to the name of any
3669         variable holding a regular expression.
3670         Replace "old" and "new" with "stmt" in variable names.
3671         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
3672         handled correctly.
3673         Format code more consistently.
3674
3675 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3676
3677         update-copyright-tests: improve portability
3678         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
3679         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
3680
3681 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
3682
3683         update-copyright: support @copyright{} and &copy;
3684         * build-aux/update-copyright: Implement and document.
3685         * tests/test-update-copyright.sh: Test.
3686
3687 2009-08-04  Jim Meyering  <meyering@redhat.com>
3688
3689         update-copyright-tests: correctly test EOL=\r\n handling
3690         * tests/test-update-copyright.sh: Put \r at the end of some lines
3691         for the dos-eol tests.  Based on a patch by Joel E. Denny.
3692
3693         maint.mk: make update-copyright exclusion list more configurable
3694         * top/maint.mk (update-copyright): Default to excluding COPYING,
3695         but allow an override, in case someone does want to update that file.
3696
3697         maint.mk: don't update copyright date in COPYING
3698         * top/maint.mk (update-copyright): Exclude COPYING.
3699
3700         maint.mk: add a copyright-updating rule
3701         * top/maint.mk (update-copyright): New rule.
3702         Derived from coreutils/Makefile.am.
3703
3704         update-copyright: rename some variables
3705         * build-aux/update-copyright: Rename a few variables for clarity.
3706         Tweak syntax.  List Joel E. Denny as coauthor.
3707
3708 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
3709
3710         update-copyright: fix bug for 2-digit last year and add tests
3711         * build-aux/update-copyright: Fix bug.
3712         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
3713         specified.
3714         * modules/update-copyright-tests: New
3715         * tests/test-update-copyright.sh: New.
3716
3717 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3718
3719         update-copyright: handle leading tabs in line prefix
3720         * build-aux/update-copyright: Count leading tabs as 8 spaces
3721         when computing margin.  This helps with the formatting of
3722         ChangeLogs, for example.
3723         Fix documentation a little.
3724
3725 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3726
3727         update-copyright: support EOL=\r\n
3728         * build-aux/update-copyright: Implement that.
3729
3730 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3731
3732         update-copyright: automatically format copyright statements
3733         * build-aux/update-copyright: Implement that.
3734         Also, be a little more predictable and safer by always failing
3735         when the full copyright format is not perfectly recognized as an
3736         unbroken whole.  Discussed at
3737         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
3738         Rewrite documentation.
3739
3740 2009-08-03  Bruno Haible  <bruno@clisp.org>
3741
3742         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
3743
3744 2009-08-02  Bruno Haible  <bruno@clisp.org>
3745
3746         Tests for module 'uname'.
3747         * modules/uname-tests: New file.
3748         * tests/test-uname.c: New file.
3749
3750         New module 'uname'.
3751         * lib/uname.c: New file.
3752         * m4/uname.m4: New file.
3753         * modules/uname: New file.
3754         * doc/posix-functions/uname.texi: Mention the new module.
3755
3756 2009-08-02  Bruno Haible  <bruno@clisp.org>
3757
3758         Tests for module 'sys_utsname'.
3759         * modules/sys_utsname-tests: New file.
3760         * tests/test-sys_utsname.c: New file.
3761
3762         New module 'sys_utsname'.
3763         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
3764         * m4/sys_utsname_h.m4: New file.
3765         * modules/sys_utsname: New file.
3766         * doc/posix-headers/sys_utsname.texi: Mention the new module.
3767
3768 2009-08-02  Bruno Haible  <bruno@clisp.org>
3769
3770         Implicitly initialize the sockets library.
3771         * lib/gethostname.c: Include sockets.h.
3772         (rpl_gethostname): Invoke gl_sockets_startup.
3773         * lib/socket.c: Include sockets.h.
3774         (rpl_socket): Invoke gl_sockets_startup.
3775         * modules/gethostname (Depends-on): Add sockets.
3776         * modules/socket (Depends-on): Likewise.
3777         * tests/test-poll.c: Don't include sockets.h.
3778         (main): Don't invoke gl_sockets_startup.
3779         * tests/test-select.c: Don't include sockets.h.
3780         (main): Don't invoke gl_sockets_startup.
3781
3782 2009-08-02  Bruno Haible  <bruno@clisp.org>
3783
3784         Allow multiple calls to gl_sockets_startup.
3785         * lib/sockets.c (initialized_sockets_version): New variable.
3786         (gl_sockets_startup): Do nothing if already called for this or a higher
3787         version.
3788         (gl_sockets_cleanup): Reset initialized_sockets_version.
3789
3790 2009-08-03  Simon Josefsson  <simon@josefsson.org>
3791
3792         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
3793         different project/version.
3794
3795 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
3796             Bruno Haible  <bruno@clisp.org>
3797
3798         Tests for module 'pipe-filter-gi'.
3799         * modules/pipe-filter-gi-tests: New file.
3800         * tests/test-pipe-filter-gi1.sh: New file.
3801         * tests/test-pipe-filter-gi1.c: New file.
3802         * tests/test-pipe-filter-gi2.sh: New file.
3803         * tests/test-pipe-filter-gi2-main.c: New file.
3804         * tests/test-pipe-filter-gi2-child.c: New file.
3805
3806         New module 'pipe-filter-gi'.
3807         * lib/pipe-filter-gi.c: New file.
3808         * modules/pipe-filter-gi: New file.
3809
3810 2009-08-02  Bruno Haible  <bruno@clisp.org>
3811             Paolo Bonzini  <bonzini@gnu.org>
3812
3813         Tests for module 'pipe-filter-ii'.
3814         * modules/pipe-filter-ii-tests: New file.
3815         * tests/test-pipe-filter-ii1.sh: New file.
3816         * tests/test-pipe-filter-ii1.c: New file.
3817         * tests/test-pipe-filter-ii2.sh: New file.
3818         * tests/test-pipe-filter-ii2-main.c: New file.
3819         * tests/test-pipe-filter-ii2-child.c: New file.
3820
3821         New module 'pipe-filter-ii'.
3822         * lib/pipe-filter.h: New file.
3823         * lib/pipe-filter-ii.c: New file.
3824         * lib/pipe-filter-aux.h: New file.
3825         * modules/pipe-filter-ii: New file.
3826
3827 2009-08-02  Simon Josefsson  <simon@josefsson.org>
3828
3829         * lib/gc-libgcrypt.c: Change copyright to FSF.
3830         * lib/gc-gnulib.c: Likewise.
3831
3832 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
3833
3834         * lib/gethostname.c: Include limits.h.
3835
3836 2009-08-02  Simon Josefsson  <simon@josefsson.org>
3837             Bruno Haible  <bruno@clisp.org>
3838
3839         Ensure HOST_NAME_MAX as part of the gethostname module.
3840         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
3841         define also HOST_NAME_MAX.
3842         * tests/test-gethostname.c: Include <limits.h>.
3843         (main): Check also HOST_NAME_MAX.
3844         * doc/posix-headers/limits.texi: Document the mingw problem.
3845
3846 2009-08-02  Bruno Haible  <bruno@clisp.org>
3847
3848         * lib/gethostname.c (gethostname): Fix handling of large len argument.
3849         Add comments.
3850
3851 2009-03-31  Simon Josefsson  <simon@josefsson.org>
3852
3853         * lib/gethostname.c: Add Windows wrapper.
3854         * m4/gethostname.m4: Look for gethostname in -lws2_32.
3855         * modules/gethostname: Depend on sys_socket & errno, for also
3856         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
3857         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
3858
3859 2009-07-31  Jim Meyering  <meyering@redhat.com>
3860
3861         getloadavg: fix symbol name in comment
3862         * lib/getloadavg.c: Correct a typo I introduced when adding
3863         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
3864         Matt Kraai spotted the problem.
3865
3866 2009-07-29  Matt Kraai  <mkraai@beckman.com>
3867
3868         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
3869         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
3870         code also if ! defined N_NAME_POINTER.
3871         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
3872         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
3873         but the n_name member is a 12-byte array.
3874
3875 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
3876
3877         update-copyright: generalize comment handling
3878         * build-aux/update-copyright: Handle copyright statements
3879         within more comment styles.
3880         Document usage.
3881         Report any file with an external copyright holder or parse failure.
3882
3883 2009-07-29  Jim Meyering  <meyering@redhat.com>
3884
3885         mktime: correct setting of REPLACE_MKTIME
3886         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
3887
3888         update-copyright: new module
3889         * modules/update-copyright: New file.
3890         * build-aux/update-copyright: New file.
3891         * MODULES.html.sh (maint+release support): Add update-copyright.
3892
3893 2009-07-27  Bruno Haible  <bruno@clisp.org>
3894
3895         Fix compilation error when <ctime> is used and mktime is replaced.
3896         * lib/time.in.h (mktime): New declaration.
3897         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
3898         REPLACE_MKTIME instead of defining mktime in config.h.
3899         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
3900         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
3901         Reported by Ross McFarland <rwmcfa1@neces.com>.
3902
3903 2009-07-27  Bruno Haible  <bruno@clisp.org>
3904
3905         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
3906         Reported by Matt Kraai <mkraai@beckman.com>.
3907
3908 2009-07-25  Jim Meyering  <meyering@redhat.com>
3909
3910         maint.mk: avoid warnings about missing files
3911         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
3912         diagnostic when .prev-version does not exist.
3913         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
3914         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
3915         nonexistent cfg.mk.
3916         Suggestions from Simon Josefsson.
3917
3918 2009-07-25  Bruno Haible  <bruno@clisp.org>
3919
3920         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
3921         defined as macros. Needed on QNX 6.4.1.
3922         Reported by Matt Kraai <mkraai@beckman.com>.
3923
3924 2009-07-23  Jim Meyering  <meyering@redhat.com>
3925
3926         maint.mk: invoke "make dist" with a working value of XZ_OPT
3927         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
3928
3929 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
3930
3931         Make fseeko.c compile on QNX.
3932         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
3933
3934 2009-07-22  Peter Simons  <simons@cryp.to>
3935
3936         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
3937         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
3938         * lib/md4.h: Likewise.
3939         * lib/md5.h: Likewise.
3940         * lib/sha1.h: Likewise.
3941         * lib/sha256.h: Likewise.
3942         * lib/sha512.h: Likewise.
3943
3944         tests-sha1: don't assign literal string to 'char *' variable
3945         * tests/test-sha1.c (main): Declare locals with "const" to match
3946         attributes of the right hand side.
3947
3948 2009-07-21  Eric Blake  <ebb9@byu.net>
3949
3950         dup2: fix more mingw problems
3951         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
3952         fd to itself.
3953         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3954         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
3955         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
3956         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
3957         care of mingw bugs.
3958
3959 2009-07-21  Jim Meyering  <meyering@redhat.com>
3960
3961         vc-list-files: avoid failure when /bin/sh is dash
3962         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
3963         On some Debian based systems, /bin/sh is a symlink to dash, and running
3964         this command would omit the "/" following each 'tests' prefix:
3965           dash -x build-aux/vc-list-files -C . tests
3966         That is because bash and dash work differently:
3967           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
3968           bash ok
3969           dash odd
3970
3971 2009-07-21  Eric Blake  <ebb9@byu.net>
3972
3973         dup2-tests: test previous patch
3974         * modules/dup2-tests: New file.
3975         * tests/test-dup2.c: Likewise.
3976         * tests/test-open.c (main): Avoid unspecified behavior.
3977         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
3978         test.
3979
3980         dup2: work around mingw and cygwin 1.5 bug
3981         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
3982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3983         * modules/unistd (Makefile.am): Substitute it.
3984         * lib/unistd.in.h (dup2): Declare the replacement.
3985         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
3986         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
3987         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
3988         * modules/execute (Depends-on): Add dup2.
3989         * modules/fseterr (Depends-on): Likewise.
3990         * modules/pipe (Depends-on): Likewise.
3991         * modules/posix_spawn-internal (Depends-on): Likewise.
3992
3993 2009-07-21  Bruno Haible  <bruno@clisp.org>
3994
3995         * modules/.gitattributes: New file.
3996
3997 2009-07-20  Bruno Haible  <bruno@clisp.org>
3998
3999         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
4000         (main): Use it.
4001
4002 2009-07-20  Eric Blake  <ebb9@byu.net>
4003
4004         test-pipe: make a bit more robust.
4005         * tests/test-pipe.c (myerr): Allow error messages regardless of
4006         what we do to stderr.
4007         (test_pipe): Rearrange to avoid deadlock.
4008         (child_main): Try a larger read, to ensure we avoided deadlock.
4009         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
4010         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
4011         if misused.
4012
4013 2009-07-19  Jim Meyering  <meyering@redhat.com>
4014
4015         fts: avoid false-positive cycle-detection
4016         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
4017         for each new command line argument.
4018
4019 2009-07-19  Bruno Haible  <bruno@clisp.org>
4020
4021         Fix build error on mingw with the modules sys_select and unistd.
4022         * modules/acl-tests (Depends-on): Add close.
4023         * modules/binary-io-tests (Depends-on): Likewise.
4024         * modules/closein-tests (Depends-on): Likewise.
4025         * modules/flock-tests (Depends-on): Likewise.
4026         * modules/fsync-tests (Depends-on): Likewise.
4027         * modules/lseek-tests (Depends-on): Likewise.
4028         * modules/pipe-tests (Depends-on): Likewise.
4029         * modules/posix_spawn-tests (Depends-on): Likewise.
4030         * modules/posix_spawnp-tests (Depends-on): Likewise.
4031         * modules/stat-time-tests (Depends-on): Likewise.
4032         * modules/yesno-tests (Depends-on): Likewise.
4033
4034 2009-07-19  Bruno Haible  <bruno@clisp.org>
4035
4036         Unify conditionals.
4037         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
4038         macros, not at the compiler macros.
4039         * lib/pipe.c: Likewise.
4040         * lib/execute.c: Likewise.
4041         * lib/spawni.c: Likewise.
4042
4043 2009-07-19  Bruno Haible  <bruno@clisp.org>
4044
4045         Fix handling of closed stdin/stdout/stderr on mingw.
4046         * lib/w32spawn.h: Include unistd.h.
4047         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
4048         file descriptor with O_NOINHERIT flag.
4049         (fd_safer_noinherit): New function, based on fd-safer.c.
4050         (dup_safer_noinherit): New function, based on dup-safer.c.
4051         (undup_safer_noinherit): New function.
4052         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
4053         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
4054         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
4055         instead of fd_safer.
4056         * tests/test-pipe.c: Include <windows.h>.
4057         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
4058
4059         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
4060         from main.
4061         (test_pipe): Pass an extra argument for disambiguation.
4062         (main): Invoke parent_main or child_main.
4063
4064         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
4065         consistently.
4066
4067 2009-07-18  Eric Blake  <ebb9@byu.net>
4068
4069         test-pipe: fix mingw build
4070         * tests/test-pipe.c (main): Avoid fcntl on mingw.
4071
4072 2009-07-18  Bruno Haible  <bruno@clisp.org>
4073
4074         * modules/pipe-tests (Makefile.am): Fix typo.
4075
4076 2009-07-18  Eric Blake  <ebb9@byu.net>
4077
4078         error: fix mingw build
4079         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
4080         Reported by Bruno Haible.
4081
4082         error: avoid undefined use of stdout
4083         * lib/error.c (error, error_at_line): Check that fd 1 is open
4084         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
4085         is handling faults and the close_stdout module wants to report the
4086         detection of closed stdout as an error.
4087
4088 2009-07-17  Eric Blake  <ebb9@byu.net>
4089
4090         pipe: be robust in face of closed fds
4091         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
4092         should cause child to misbehave.
4093         * modules/pipe-tests: New module.
4094         * tests/test-pipe.c: New file.
4095         * tests/test-pipe.sh: New file.
4096         Reported by Akim Demaille.
4097
4098 2009-07-14  Bruno Haible  <bruno@clisp.org>
4099
4100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
4101         Reported by anonymous kc.
4102
4103 2009-07-07  Jim Meyering  <meyering@redhat.com>
4104
4105         maint.mk: don't look for translatable strings in *.m4 or *.mk
4106         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
4107         when searching for translatable strings.
4108
4109 2009-07-05  Jim Meyering  <meyering@redhat.com>
4110
4111         remove superfluous parentheses in STREQ definition
4112         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
4113         * lib/getugroups.c (STREQ): Likewise.
4114         * lib/fnmatch.c (STREQ): Likewise.
4115         Spotted by Bruno Haible.
4116
4117 2009-07-04  Jim Meyering  <meyering@redhat.com>
4118
4119         argv-iter: new module
4120         * MODULES.html.sh: Add argv-iter.
4121         * lib/argv-iter.c, lib/argv-iter.h: New files.
4122         * modules/argv-iter: New file.
4123         * modules/argv-iter-tests: New file.
4124         * tests/test-argv-iter.c: Test it.
4125
4126 2009-07-04  Bruno Haible  <bruno@clisp.org>
4127
4128         Fix assertion.
4129         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
4130         contains more exact copies of a given entry than file2, leave the extra
4131         copies unpaired rather than aborting.
4132         Reported by Eric Blake.
4133
4134 2009-07-02  Bruno Haible  <bruno@clisp.org>
4135
4136         Speedup git-merge-changelog for git cherry-pick.
4137         * lib/git-merge-changelog.c (struct entries_mapping): New type.
4138         (entries_mapping_get): New function, extracted from compute_mapping.
4139         (entries_mapping_reverse_get): New function.
4140         (compute_mapping): Add a 'full' argument. Return the result in a
4141         'struct entries_mapping'.
4142         (main): Update. Access the mappings through entries_mapping_get.
4143         Reported by Eric Blake.
4144
4145 2009-07-02  Bruno Haible  <bruno@clisp.org>
4146
4147         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
4148         best_i.
4149
4150 2009-07-02  Bruno Haible  <bruno@clisp.org>
4151
4152         Speed up approximate search for matching ChangeLog entries.
4153         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
4154         argument. Call fstrcmp_bounded instead of fstrcmp.
4155         (compute_mapping, try_split_merged_entry, main): Update callers.
4156
4157 2009-07-02  Bruno Haible  <bruno@clisp.org>
4158
4159         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
4160
4161 2009-06-30  Bruno Haible  <bruno@clisp.org>
4162
4163         Reduce the number of uc_is_cased calls.
4164         * lib/unicase.h (casing_suffix_context_t): Add
4165         'first_char_except_ignorable' field.
4166         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
4167         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
4168         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
4169         Update initializer.
4170         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
4171         case-ignorable characters.
4172         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
4173         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
4174         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
4175         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
4176         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
4177
4178 2009-06-30  Bruno Haible  <bruno@clisp.org>
4179
4180         Tests for module 'unicase/ignorable'.
4181         * modules/unicase/ignorable-tests: New file.
4182         * tests/unicase/test-ignorable.c: New file, generated by
4183         gen-uni-tables.
4184
4185         Tests for module 'unicase/cased'.
4186         * modules/unicase/cased-tests: New file.
4187         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
4188         * tests/unicase/test-predicate-part1.h: New file, derived from
4189         tests/unictype/test-predicate-part1.h.
4190         * tests/unicase/test-predicate-part2.h: New file, same as
4191         tests/unictype/test-predicate-part2.h.
4192
4193         Fix evaluation of "Before C" condition of FINAL_SIGMA.
4194         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
4195         (output_casing_properties): New function.
4196         (main): Call it.
4197         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
4198         * lib/unicase/cased.c: Include unictype/bitmap.h.
4199         (uc_is_cased): Define through a bitmap lookup.
4200         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
4201         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
4202         (uc_is_case_ignorable): Define through a bitmap lookup.
4203         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
4204         lib/unictype/bitmap.h.
4205         (Depends-on): Add inline. Clean up.
4206         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
4207         lib/unictype/bitmap.h.
4208         (Depends-on): Add inline. Clean up.
4209         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
4210         recognition.
4211         * tests/unicase/test-u16-tolower.c (main): Likewise.
4212         * tests/unicase/test-u32-tolower.c (main): Likewise.
4213
4214 2009-06-30  Bruno Haible  <bruno@clisp.org>
4215
4216         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
4217         * lib/unicase/u16-casemap.c: Likewise.
4218         * lib/unicase/u32-casemap.c: Likewise.
4219
4220 2009-06-29  Bruno Haible  <bruno@clisp.org>
4221
4222         Define u32_casefold as a wrapper around u32_ct_casefold.
4223         * lib/unicase/u32-casefold.c: Update.
4224         * modules/unicase/u32-casefold (Depends-on): Add
4225         unicase/u32-ct-casefold, unicase/empty-prefix-context,
4226         unicase/empty-suffix-context. Clean up.
4227
4228         Define u16_casefold as a wrapper around u16_ct_casefold.
4229         * lib/unicase/u16-casefold.c: Update.
4230         * modules/unicase/u16-casefold (Depends-on): Add
4231         unicase/u16-ct-casefold, unicase/empty-prefix-context,
4232         unicase/empty-suffix-context. Clean up.
4233
4234         Define u8_casefold as a wrapper around u8_ct_casefold.
4235         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
4236         * lib/unicase/u8-casefold.c: Update.
4237         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
4238         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4239
4240         Define u32_totitle as a wrapper around u32_ct_totitle.
4241         * lib/unicase/u32-totitle.c: Update.
4242         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
4243         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4244
4245         Define u16_totitle as a wrapper around u16_ct_totitle.
4246         * lib/unicase/u16-totitle.c: Update.
4247         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
4248         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4249
4250         Define u8_totitle as a wrapper around u8_ct_totitle.
4251         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
4252         functions.
4253         (FUNC): Delegate to U_CT_TOTITLE.
4254         * lib/unicase/u8-totitle.c: Update.
4255         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
4256         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4257
4258         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
4259         invocation.
4260         * modules/unicase/u32-tolower (Depends-on): Add
4261         unicase/empty-prefix-context, unicase/empty-suffix-context.
4262
4263         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
4264         invocation.
4265         * modules/unicase/u16-tolower (Depends-on): Add
4266         unicase/empty-prefix-context, unicase/empty-suffix-context.
4267
4268         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
4269         * modules/unicase/u8-tolower (Depends-on): Add
4270         unicase/empty-prefix-context, unicase/empty-suffix-context.
4271
4272         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
4273         invocation.
4274         * modules/unicase/u32-toupper (Depends-on): Add
4275         unicase/empty-prefix-context, unicase/empty-suffix-context.
4276
4277         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
4278         invocation.
4279         * modules/unicase/u16-toupper (Depends-on): Add
4280         unicase/empty-prefix-context, unicase/empty-suffix-context.
4281
4282         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
4283         * modules/unicase/u8-toupper (Depends-on): Add
4284         unicase/empty-prefix-context, unicase/empty-suffix-context.
4285
4286         New module 'unicase/u32-ct-casefold'.
4287         * lib/unicase/u32-ct-casefold.c: New file.
4288         * modules/unicase/u32-ct-casefold: New file.
4289
4290         New module 'unicase/u16-ct-casefold'.
4291         * lib/unicase/u16-ct-casefold.c: New file.
4292         * modules/unicase/u16-ct-casefold: New file.
4293
4294         New module 'unicase/u8-ct-casefold'.
4295         * lib/unicase/u8-ct-casefold.c: New file.
4296         * lib/unicase/u-ct-casefold.h: New file, derived from
4297         lib/unicase/u-casefold.h.
4298         * modules/unicase/u8-ct-casefold: New file.
4299
4300         New module 'unicase/u32-ct-totitle'.
4301         * lib/unicase/u32-ct-totitle.c: New file.
4302         * modules/unicase/u32-ct-totitle: New file.
4303
4304         New module 'unicase/u16-ct-totitle'.
4305         * lib/unicase/u16-ct-totitle.c: New file.
4306         * modules/unicase/u16-ct-totitle: New file.
4307
4308         New module 'unicase/u8-ct-totitle'.
4309         * lib/unicase/u8-ct-totitle.c: New file.
4310         * lib/unicase/u-ct-totitle.h: New file, derived from
4311         lib/unicase/u-totitle.h.
4312         * modules/unicase/u8-ct-totitle: New file.
4313
4314         New module 'unicase/u32-ct-tolower'.
4315         * lib/unicase/u32-ct-tolower.c: New file.
4316         * modules/unicase/u32-ct-tolower: New file.
4317
4318         New module 'unicase/u16-ct-tolower'.
4319         * lib/unicase/u16-ct-tolower.c: New file.
4320         * modules/unicase/u16-ct-tolower: New file.
4321
4322         New module 'unicase/u8-ct-tolower'.
4323         * lib/unicase/u8-ct-tolower.c: New file.
4324         * modules/unicase/u8-ct-tolower: New file.
4325
4326         New module 'unicase/u32-ct-toupper'.
4327         * lib/unicase/u32-ct-toupper.c: New file.
4328         * modules/unicase/u32-ct-toupper: New file.
4329
4330         New module 'unicase/u16-ct-toupper'.
4331         * lib/unicase/u16-ct-toupper.c: New file.
4332         * modules/unicase/u16-ct-toupper: New file.
4333
4334         New module 'unicase/u8-ct-toupper'.
4335         * lib/unicase/u8-ct-toupper.c: New file.
4336         * modules/unicase/u8-ct-toupper: New file.
4337
4338         Add context arguments to u*_casemap functions.
4339         * lib/unicase/unicasemap.h: Include unicase.h.
4340         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
4341         suffix_context arguments.
4342         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
4343         functions.
4344         (FUNC): Add prefix_context and suffix_context arguments. Use
4345         uc_is_cased and uc_is_case_ignorable.
4346         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
4347         * lib/unicase/u16-casemap.c: Likewise.
4348         * lib/unicase/u32-casemap.c: Likewise.
4349         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
4350         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
4351         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
4352         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
4353         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
4354         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
4355
4356         New module 'unicase/u32-suffix-context'.
4357         * lib/unicase/u32-suffix-context.c: New file.
4358         * modules/unicase/u32-suffix-context: New file.
4359
4360         New module 'unicase/u16-suffix-context'.
4361         * lib/unicase/u16-suffix-context.c: New file.
4362         * modules/unicase/u16-suffix-context: New file.
4363
4364         New module 'unicase/u8-suffix-context'.
4365         * lib/unicase/u8-suffix-context.c: New file.
4366         * lib/unicase/u-suffix-context.h: New file.
4367         * modules/unicase/u8-suffix-context: New file.
4368
4369         New module 'unicase/empty-suffix-context'.
4370         * lib/unicase/empty-suffix-context.c: New file.
4371         * modules/unicase/empty-suffix-context: New file.
4372
4373         New module 'unicase/u32-prefix-context'.
4374         * lib/unicase/u32-prefix-context.c: New file.
4375         * modules/unicase/u32-prefix-context: New file.
4376
4377         New module 'unicase/u16-prefix-context'.
4378         * lib/unicase/u16-prefix-context.c: New file.
4379         * modules/unicase/u16-prefix-context: New file.
4380
4381         New module 'unicase/u8-prefix-context'.
4382         * lib/unicase/u8-prefix-context.c: New file.
4383         * lib/unicase/u-prefix-context.h: New file.
4384         * lib/unicase/context.h: New file.
4385         * modules/unicase/u8-prefix-context: New file.
4386
4387         New module 'unicase/empty-prefix-context'.
4388         * lib/unicase/empty-prefix-context.c: New file.
4389         * modules/unicase/empty-prefix-context: New file.
4390
4391         New module 'unicase/ignorable'.
4392         * lib/unicase/ignorable.c: New file.
4393         * modules/unicase/ignorable: New file.
4394
4395         New module 'unicase/cased'.
4396         * lib/unicase/caseprop.h: New file.
4397         * lib/unicase/cased.c: New file.
4398         * modules/unicase/cased: New file.
4399
4400         New functions for case mapping of substrings.
4401         * lib/unicase.h (casing_prefix_context_t): New type.
4402         (unicase_empty_prefix_context): New variable.
4403         (u8_casing_prefix_context, u16_casing_prefix_context,
4404         u32_casing_prefix_context, u8_casing_prefixes_context,
4405         u16_casing_prefixes_context, u32_casing_prefixes_context): New
4406         declarations.
4407         (casing_suffix_context_t): New type.
4408         (unicase_empty_suffix_context): New variable.
4409         (u8_casing_suffix_context, u16_casing_suffix_context,
4410         u32_casing_suffix_context, u8_casing_suffixes_context,
4411         u16_casing_suffixes_context, u32_casing_suffixes_context,
4412         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4413         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4414         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
4415         declarations.
4416
4417 2009-06-28  Jim Meyering  <meyering@redhat.com>
4418
4419         boostrap: indent only with spaces
4420         * build-aux/bootstrap: Indent only with spaces, never TABs.
4421
4422         bootstrap: split long lines
4423         * build-aux/bootstrap: Keep line length < 80.
4424
4425         bootstrap: sync from coreutils
4426         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
4427         just as autoreconf does.  Verify a list of prerequisite
4428         package-name,version-number pairs if defined in bootstrap.conf.
4429         Refer to README-prereq, if prerequisites are not satisfied.
4430
4431 2009-06-27  Eric Blake  <ebb9@byu.net>
4432
4433         tests: add test for bogus NULL definition
4434         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
4435         * tests/test-stdlib.c: Likewise.
4436         * tests/test-string.c: Likewise.
4437         * tests/test-locale.c: Likewise.
4438         * tests/test-unistd.c: Likewise.
4439         * modules/stdio-tests (Depends-on): Add verify.
4440         * modules/stdlib-tests (Depends-on): Likewise.
4441         * modules/string-tests (Depends-on): Likewise.
4442         * modules/locale-tests (Depends-on): Likewise.
4443         * modules/unistd-tests (Depends-on): Likewise.
4444
4445 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4446
4447         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
4448         self-explaining comment.
4449         * m4/selinux-selinux-h: Update serial.
4450         (gl_LIBSELINUX): New macro, adding a warning for missing development
4451         packages to code extracted from...
4452         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
4453         Add warning for missing development packages here, too.
4454
4455 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
4456
4457         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
4458
4459 2009-06-25  Eric Blake  <ebb9@byu.net>
4460
4461         version-etc: fix regression
4462         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
4463         gcc.
4464         (version_etc): Use it, to catch bugs with trailing NULL.
4465         * lib/version-etc.c (version_etc_arn): Delete unused argument.
4466         (version_etc_va): Fix logic bug.
4467         * modules/version-etc-tests: Add test.
4468         * tests/test-version-etc.c: New file.
4469         * tests/test-version-etc.sh: Likewise.
4470
4471 2009-06-25  Sam Steingold  <sds@gnu.org>
4472
4473         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
4474         mbtowc declaration.
4475
4476 2009-06-25  Eric Blake  <ebb9@byu.net>
4477
4478         fpurge: migrate into <stdio.h>
4479         * lib/fpurge.h: Delete...
4480         * lib/stdio.in.h (fpurge): ...and declare here, instead.
4481         * lib/fpurge.c (fpurge): Change declaring header.
4482         * modules/fpurge (Files): Drop deleted file.
4483         (Depends-on): Add stdio.
4484         (configure.ac): Set witness.
4485         * modules/stdio (Makefile.am): Support fpurge macros.
4486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4487         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
4488         * lib/fflush.c: Update client.
4489         * tests/test-fpurge.c: Likewise.
4490         * NEWS: Mention the change.
4491
4492 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4493
4494         * lib/argp-version-etc.c (program_authors): Add const
4495         qualifier.
4496         * lib/version-etc.c: Fix typos in the comments.
4497         * modules/argp-version-etc: Depends on version-etc.
4498
4499 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4500
4501         argp-version-etc: new module.
4502
4503         * lib/argp-version-etc.c: New file.
4504         * lib/argp-version-etc.h: New file.
4505         * modules/argp-version-etc: New file.
4506         * modules/argp-version-etc-tests: New file.
4507         * tests/test-argp-version-etc.c: New test.
4508         * tests/test-argp-version-etc-1.sh: New test.
4509
4510 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4511
4512         Provide additional interfaces and documentation for version-etc
4513         module.
4514
4515         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
4516         interfaces.
4517         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
4518         prototypes.
4519
4520 2009-06-24  Bruno Haible  <bruno@clisp.org>
4521
4522         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
4523         HAVE_LIB${NAME} macro.
4524         Reported by Sam Steingold <sds@gnu.org>.
4525
4526 2009-06-23  Simon Josefsson  <simon@josefsson.org>
4527
4528         * modules/hash-tests (test_hash_LDADD): Link to libintl when
4529         needed.
4530
4531 2009-06-21  Bruno Haible  <bruno@clisp.org>
4532
4533         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
4534         work.
4535         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
4536         together with LIB${NAME}, LTLIB${NAME}.
4537         Reported by Sam Steingold <sds@gnu.org>.
4538
4539 2009-06-20  Jim Meyering  <meyering@redhat.com>
4540
4541         tests: make sc_require_test_exit_idiom more generic
4542         * top/maint.mk (Exit_witness_file): New overridable variable.
4543         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
4544         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
4545
4546 2009-06-19  Jim Meyering  <meyering@redhat.com>
4547
4548         hash: reverse order of src/dst parameters in an internal interface
4549         * lib/hash.c (transfer_entries): Reverse order of parameters to
4550         put DST before SRC.  Adjust callers.
4551
4552         tests: test-hash: avoid wholesale duplication
4553         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
4554         Instead, use a loop and add a single conditional.
4555
4556         tests: test-hash: allow seed selection via a command line argument
4557         * tests/test-hash.c (get_seed): New function.
4558         (main): Use it.
4559
4560 2009-06-19  Eric Blake  <ebb9@byu.net>
4561
4562         hash: avoid memory leak on allocation failure
4563         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
4564         failure.  Factor repeated algorithm...
4565         (transfer_entries): ...into new helper routine.
4566         (hash_delete): React to hash_rehash return value.
4567
4568         hash: reduce memory pressure in hash_rehash no-op case
4569         * lib/hash.c (next_prime): Avoid overflow.
4570         (hash_initialize): Factor bucket size computation...
4571         (compute_bucket_size): ...into new helper function.
4572         (hash_rehash): Use new function and open coding to reduce memory
4573         pressure, and avoid a memory leak in USE_OBSTACK code.
4574         Reported by Jim Meyering.
4575
4576 2009-06-18  Eric Blake  <ebb9@byu.net>
4577
4578         hash: make rotation more obvious
4579         * modules/hash (Depends-on): Add bitrotate and stdint.
4580         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
4581         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
4582         (SIZE_MAX): Rely on headers for definition.
4583         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
4584         (raw_hasher): Use rotr_sz.
4585         Suggested by Jim Meyering.
4586
4587         hash: fix memory leak in last patch
4588         * lib/hash.c (hash_rehash): Avoid memory leak.
4589
4590         hash: avoid no-op rehashing
4591         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
4592
4593         hash: provide default callback functions
4594         * lib/hash.c (raw_hasher, raw_comparator): New functions.
4595         (hash_initialize): Use them as defaults.
4596         * tests/test-hash.c (main): Test this.
4597
4598         hash: minor optimization
4599         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
4600         when possible.
4601         (hash_initialize): Document this promise.
4602         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
4603         * tests/test-hash.c (hash_compare_strings): Test this.
4604
4605 2009-06-18  Bruno Haible  <bruno@clisp.org>
4606
4607         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
4608         going to be replaced anyway.
4609
4610 2009-06-18  Bruno Haible  <bruno@clisp.org>
4611
4612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
4613         in one place.
4614         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
4615         be replaced anyway.
4616
4617 2009-06-18  Eric Blake  <ebb9@byu.net>
4618
4619         hash: check for resize before insertion
4620         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
4621         threshold before insertion, so that a pathological hash_rehash
4622         that fills every bucket can still trigger another rehash.
4623
4624 2009-06-18  Jim Meyering  <meyering@redhat.com>
4625
4626         hash-tests: add a loop around the small tests
4627         * tests/test-hash.c (main): Repeat small tests with selected
4628         small initial table sizes.
4629
4630 2009-06-17  Eric Blake  <ebb9@byu.net>
4631
4632         hash: minor cleanups
4633         * lib/hash.h (hash_entry): Make opaque, by moving...
4634         * lib/hash.c (hash_entry): ...here.
4635         (hash_insert): Clarify restrictions on what can be inserted.
4636         (hash_get_next): Clarify when it is safe to remove an element
4637         during traversal.
4638         (check_tuning): Skip verification when tuning is known safe.
4639         (hash_initialize): Clarify restrictions on tuning.
4640
4641 2009-06-17  Jim Meyering  <jim@meyering.net>
4642         and Eric Blake  <ebb9@byu.net>
4643
4644         hash-tests: new module
4645         * modules/hash-tests: New file.
4646         * tests/test-hash.c: New file.
4647
4648 2009-06-17  Eric Blake  <ebb9@byu.net>
4649
4650         strstr-simple: document new module
4651         * MODULES.html.sh: Document new module.
4652
4653         strstr, strcasestr: replace on platforms with broken memchr
4654         * modules/strstr: Split into...
4655         * modules/strstr-simple: ...new module that does not care about
4656         performance, but does care about glibc bug.
4657         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
4658         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
4659         if platform memchr is broken, per Debian bug 521737.
4660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
4661         memchr.
4662         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
4663         * doc/posix-functions/strstr.texi (strstr): Document the fix.
4664         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4665         * modules/mountlist (Depends-on): Add strstr-simple.
4666         * modules/gen-uni-tables (Depends-on): Likewise.
4667         * modules/argz (Depends-on): Add strstr.
4668
4669 2009-06-17  Bruno Haible  <bruno@clisp.org>
4670
4671         * modules/posix_spawn-internal (Depends-on): Add errno.
4672
4673 2009-06-17  Bruno Haible  <bruno@clisp.org>
4674
4675         Define missing ESTALE on Interix 3.5.
4676         * lib/errno.in.h (ESTALE): Assign a value if missing.
4677         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
4678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
4679         missing.
4680         * doc/posix-headers/errno.texi: Mention the Interix bug.
4681         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
4682
4683 2009-06-15  Eric Blake  <ebb9@byu.net>
4684
4685         memchr, memchr2: add valgrind exception
4686         * lib/memchr.valgrind: New file.
4687         * lib/memchr2.valgrind: New file.
4688         * modules/memchr (Files): Distribute valgrind file.
4689         * modules/memchr2 (Files): Likewise.
4690
4691         docs: memchr is no longer obsolete
4692         * MODULES.html.sh: Move memchr from obsolete to string.h section.
4693         * lib/string.in.h (memchr): Simplify logic.
4694
4695 2009-06-14  Jim Meyering  <meyering@redhat.com>
4696
4697         link-follow: fix the "checking..." message to not mention trailing slash
4698         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
4699         never considered trailing slashes.
4700
4701 2009-06-14  Bruno Haible  <bruno@clisp.org>
4702
4703         * m4/memchr.m4: Mention also the bug on IA-64.
4704         * doc/posix-functions/memchr.texi: Likewise.
4705
4706 2009-06-12  Eric Blake  <ebb9@byu.net>
4707
4708         memchr: detect broken x86_64 and alpha implementations
4709         * modules/memchr-tests (Depends-on): Move mmap detection...
4710         * modules/memchr (Depends-on): ...here.
4711         (configure.ac): Set indicator.
4712         * lib/string.in.h (memchr): Declare replacement.
4713         * modules/string (Makefile.am): Trigger replacement.
4714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
4715         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
4716         bugs.
4717         * doc/posix-functions/memchr.texi (memchr): Document the bug.
4718         * modules/getpagesize (License): Relax license.
4719
4720 2009-06-11  Bruno Haible  <bruno@clisp.org>
4721
4722         * lib/idpriv.h: Add more references.
4723
4724 2009-06-08  Bruno Haible  <bruno@clisp.org>
4725
4726         Tests for module 'idpriv-droptemp'.
4727         * modules/idpriv-droptemp-tests: New file.
4728         * tests/test-idpriv-droptemp.sh: New file.
4729         * tests/test-idpriv-droptemp.su.sh: New file.
4730         * tests/test-idpriv-droptemp.c: New file.
4731
4732         New module 'idpriv-droptemp'.
4733         * lib/idpriv-droptemp.c: New file.
4734         * modules/idpriv-droptemp: New file.
4735
4736 2009-06-08  Bruno Haible  <bruno@clisp.org>
4737
4738         Tests for module 'idpriv-drop'.
4739         * modules/idpriv-drop-tests: New file.
4740         * tests/test-idpriv-drop.sh: New file.
4741         * tests/test-idpriv-drop.su.sh: New file.
4742         * tests/test-idpriv-drop.c: New file.
4743
4744         New module 'idpriv-drop'.
4745         * lib/idpriv.h: New file.
4746         * lib-idpriv-drop.c: New file.
4747         * m4/idpriv.m4: New file.
4748         * modules/idpriv-drop: New file.
4749
4750 2009-06-08  Bruno Haible  <bruno@clisp.org>
4751
4752         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
4753         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4754         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4755         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4756         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4757         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4758         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4759
4760 2009-06-08  Eric Blake  <ebb9@byu.net>
4761
4762         test-strstr: use memory fence, when possible
4763         * tests/test-strstr.c (main): Use memory fence, in order to be
4764         more likely to trigger Debian bug 521737.
4765         * modules/strstr-tests (Files): Pull in additional files.
4766
4767         memchr: no longer obsolete, for wider field testing
4768         * modules/memchr (Status, Notice): Delete, this module is no
4769         longer obsolete.
4770         * modules/vasnprintf (Depends-on): Add memchr.
4771
4772 2009-06-07  Jim Meyering  <meyering@redhat.com>
4773
4774         hash: declare some functions with the warn_unused_result attribute
4775         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
4776
4777 2009-06-07  Bruno Haible  <bruno@clisp.org>
4778
4779         * tests/test-alignof.c: Don't test int64_t if it does not exist.
4780         Reported by Eric Blake.
4781
4782 2009-06-06  Eric Blake  <ebb9@byu.net>
4783
4784         test-alignof: fix typo with long double
4785         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
4786         compiler error.
4787
4788 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
4789
4790         Escape non-texinfo { and }s.
4791         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
4792         markup error.
4793
4794 2009-06-04  Jim Meyering  <meyering@redhat.com>
4795
4796         gitlog-to-changelog: don't infloop on an empty commit log
4797         * build-aux/gitlog-to-changelog: Warn about an empty log message.
4798         Reported by Boris Petersen <transacid@centerim.org>.
4799
4800 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
4801
4802         version-etc: extend for packagers
4803         Add three new configure options, intended for packagers:
4804           --with-packager="packager name"
4805           --with-packager-version="packager-specific version"
4806           --with-packager-bug-reports="packager bug reporting"
4807         An example with coreutils:
4808           $ ./configure \
4809             --with-packager=Gentoo \
4810             --with-packager-bug-report=http://bugs.gentoo.org/ \
4811             --with-packager-version="patchset 1.6"
4812           $ ./src/ls --version | head -n3
4813           ls (GNU coreutils) 7.1-dirty
4814           Packaged by Gentoo (patchset 1.6)
4815           Copyright (C) 2009 Free Software Foundation, Inc.
4816         Note that the bug reporting info via --help doesn't show up because
4817         coreutils uses its own custom emit_bug_reporting_address() implementation
4818         in src/system.h.  If it didn't, it'd look like:
4819           $ ./src/ls --help | tail -n4
4820           Report bugs to <bug-coreutils@gnu.org>.
4821           Report Gentoo bugs to <http://bugs.gentoo.org/>.
4822           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
4823           General help using GNU software: <http://www.gnu.org/gethelp/>.
4824         * lib/version-etc.c: Print new information, if provided.
4825         * m4/version-etc.m4: New file.
4826         * modules/version-etc (Files): Add m4/version-etc.m4.
4827         (configure.ac): Add gl_VERSION_ETC.
4828
4829 2009-05-31  Bruno Haible  <bruno@clisp.org>
4830
4831         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
4832         and 'int64_t'.
4833         * modules/alignof-tests (Dependencies): Add stdint.
4834         Reported by Eric Blake.
4835
4836 2009-05-31  Bruno Haible  <bruno@clisp.org>
4837
4838         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
4839         restriction due to compiler bugs.
4840         Reported by Eric Blake.
4841
4842 2009-05-31  Simon Josefsson  <simon@josefsson.org>
4843             Bruno Haible  <bruno@clisp.org>
4844
4845         Fix test-alignof failure.
4846         * lib/alignof.h (alignof_slot): New macro.
4847         (alignof_type): New macro, with the same semantics as the previous
4848         'alignof'.
4849         (alignof): Alias to alignof_slot.
4850         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
4851         check that the results are usable as constant expressions.
4852
4853 2009-05-31  Bruno Haible  <bruno@clisp.org>
4854
4855         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
4856         * tests/test-memchr.c (main): Check that memchr does not read past the
4857         first occurrence of the byte.
4858         * tests/test-strstr.c (main): Update comment.
4859         Suggested by Eric Blake.
4860
4861 2009-05-30  Bruno Haible  <bruno@clisp.org>
4862
4863         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
4864         detail how to use dumpbin.
4865         Reported by David Byron <dbyron@dbyron.com>.
4866
4867 2009-06-02  Simon Josefsson  <simon@josefsson.org>
4868
4869         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
4870
4871 2009-06-02  Simon Josefsson  <simon@josefsson.org>
4872
4873         * m4/manywarnings.m4: Add GCC 4.4 warnings.
4874
4875 2009-05-28  Bruno Haible  <bruno@clisp.org>
4876
4877         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
4878         build-aux/ files.
4879
4880 2009-05-28  Simon Josefsson  <simon@josefsson.org>
4881
4882         * gnulib-tool (func_import): Transform license on build-aux/ files too.
4883
4884 2009-05-27  Simon Josefsson  <simon@josefsson.org>
4885
4886         * gnulib-tool (sed_transform_main_lib_file)
4887         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
4888         regexps.
4889
4890 2009-05-26  Simon Josefsson  <simon@josefsson.org>
4891
4892         * tests/test-strstr.c: Add another self-test.
4893         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
4894         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
4895
4896 2009-05-23  Bruno Haible  <bruno@clisp.org>
4897
4898         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
4899         change.
4900
4901 2009-05-21  Bruno Haible  <bruno@clisp.org>
4902
4903         Simplify use of mode_t varargs.
4904         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
4905         uses 'mode_t' or 'int'.
4906         * lib/openat.c (openat): Likewise.
4907         * lib/open-safer.c (open_safer): Likewise.
4908         * m4/mode_t.m4: New file.
4909         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
4910         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
4911         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
4912         * modules/open (Files): Add m4/mode_t.m4.
4913         * modules/openat (Files): Likewise.
4914         * modules/fcntl-safer (Files): Likewise.
4915         Suggested by Eric Blake.
4916
4917 2009-05-21  Pádraig Brady  <P@draigbrady.com>
4918
4919         * doc/glibc-functions/fallocate.texi: New file.
4920         * doc/gnulib.texi: Include it.
4921
4922 2009-05-21  Eric Blake  <ebb9@byu.net>
4923             Bruno Haible  <bruno@clisp.org>
4924
4925         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
4926         invocations.
4927         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4928
4929 2009-05-21  Eric Blake  <ebb9@byu.net>
4930             Bruno Haible  <bruno@clisp.org>
4931
4932         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
4933         include_next. Fix of 2008-11-20 commit.
4934         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
4935         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
4936         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
4937         NEXT_MATH_H.
4938         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
4939         instead of NEXT_MATH_H.
4940
4941 2009-05-21  Bruno Haible  <bruno@clisp.org>
4942
4943         Avoid redefinition warnings for SIZE_MAX.
4944         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
4945         Reported by Simon Josefsson.
4946
4947 2009-05-21  Bruno Haible  <bruno@clisp.org>
4948
4949         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
4950         AC_CACHE_VAL.
4951
4952 2009-05-20  Bruno Haible  <bruno@clisp.org>
4953
4954         Make zeroptr.h work on mingw.
4955         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
4956         mprotect.
4957         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
4958         * modules/memchr2-tests (configure.ac): Likewise.
4959         * modules/memcmp-tests (configure.ac): Likewise.
4960         * modules/memmem-tests (configure.ac): Likewise.
4961         * modules/memrchr-tests (configure.ac): Likewise.
4962         Reported by Simon Josefsson.
4963
4964 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4965
4966         * tests/test-glob.c: Include string.h for strcmp prototype.
4967
4968 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4969
4970         * modules/getdelim (Depends-on): Add explicit stdint, although it
4971         was implicitly already pulled in via realloc-posix.
4972         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
4973
4974 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4975
4976         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
4977         G. Christensen" <tgc@jupiterrise.com>.
4978         * m4/sys_socket_h.m4: Check for sa_family_t.
4979         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
4980         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
4981         * tests/test-sys_socket.c: Check that sa_family_t works.
4982
4983 2009-05-18  Eric Blake  <ebb9@byu.net>
4984
4985         maint.mk: allow gnulib_dir in VPATH build
4986         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
4987
4988 2009-05-15  Jim Meyering  <meyering@redhat.com>
4989
4990         maint.mk: Give gnulib_dir a default definition.
4991         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
4992         Thus, most packages no longer need to specify this variable in cfg.mk
4993
4994 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
4995
4996         rename.m4: fix typos that would make non-mingw cross-configure fail
4997         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
4998
4999 2009-05-13  Eric Blake  <ebb9@byu.net>
5000
5001         mmap-anon: avoid out-of-order autoconf expansion
5002         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
5003         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
5004         * modules/memchr-tests (Depends-on): Add extensions.
5005         * modules/memchr2-tests (Depends-on): Add extensions.
5006         * modules/memcmp-tests (Depends-on): Add extensions.
5007         * modules/memmem-tests (Depends-on): Add extensions.
5008         * modules/memrchr-tests (Depends-on): Add extensions.
5009
5010 2009-05-13  Bruno Haible  <bruno@clisp.org>
5011
5012         Make some tests ISO C 99 compliant.
5013         * tests/zerosize-ptr.h: New file.
5014         * tests/test-memchr.c: Include zerosize-ptr.h.
5015         (main): Use a zero-size object pointer instead of NULL.
5016         * tests/test-memchr2.c: Include zerosize-ptr.h.
5017         (main): Use a zero-size object pointer instead of NULL.
5018         * tests/test-memcmp.c: Include zerosize-ptr.h.
5019         (main): Use a zero-size object pointer instead of NULL.
5020         * tests/test-memmem.c: Include zerosize-ptr.h.
5021         (main): Use a zero-size object pointer instead of NULL.
5022         * tests/test-memrchr.c: Include zerosize-ptr.h.
5023         (main): Use a zero-size object pointer instead of NULL.
5024         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
5025         m4/mmap-anon.m4.
5026         (Depends-on): Add getpagesize.
5027         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
5028         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
5029         m4/mmap-anon.m4.
5030         (Depends-on): Add getpagesize.
5031         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
5032         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
5033         m4/mmap-anon.m4.
5034         (Depends-on): Add getpagesize.
5035         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
5036         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
5037         m4/mmap-anon.m4.
5038         (Depends-on): Add getpagesize.
5039         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
5040         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
5041         m4/mmap-anon.m4.
5042         (Depends-on): Add getpagesize.
5043         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
5044
5045 2009-05-12  Bruno Haible  <bruno@clisp.org>
5046
5047         Tests for module 'alignof'.
5048         * modules/alignof-tests: New file.
5049         * tests/test-alignof.c: New file.
5050
5051 2009-05-12  Bruno Haible  <bruno@clisp.org>
5052
5053         Fix alignof macro.
5054         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
5055         vendor compilers that are always correct.
5056
5057 2009-05-12  Bruno Haible  <bruno@clisp.org>
5058
5059         Make the MAP_ANONYMOUS detection work on HP-UX 11.
5060         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
5061         not whether its fully works.
5062
5063 2009-05-12  Bruno Haible  <bruno@clisp.org>
5064
5065         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
5066
5067 2009-05-12  Jim Meyering  <meyering@redhat.com>
5068
5069         * top/maint.mk: Adjust backslash alignment.
5070
5071 2009-05-11  Simon Josefsson  <simon@josefsson.org>
5072
5073         * top/maint.mk: Make $(srcdir)/build-aux configurable.
5074
5075 2009-05-11  Eric Blake  <ebb9@byu.net>
5076
5077         argp: avoid undefined behavior
5078         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
5079         macros.
5080
5081 2009-05-08  Simon Josefsson  <simon@josefsson.org>
5082
5083         * tests/test-vc-list-files-git.sh: Do git config of user.email and
5084         user.name to prevent git commit from complaining.
5085
5086 2009-05-10  Bruno Haible  <bruno@clisp.org>
5087
5088         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
5089         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
5090         it rewrites every file name only once.
5091         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
5092
5093 2009-05-08  Bruno Haible  <bruno@clisp.org>
5094
5095         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
5096         instead of 'max'.
5097
5098 2009-05-08  Simon Josefsson  <simon@josefsson.org>
5099
5100         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
5101         sockaddr_storage test.
5102
5103 2009-05-07  Simon Josefsson  <simon@josefsson.org>
5104
5105         * modules/sys_socket (Makefile.am): Substitute
5106         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
5107         * m4/sys_socket_h.m4: Check for sockaddr_storage.
5108         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
5109         * tests/test-sys_socket.c: Check sockaddr_storage.
5110
5111 2009-05-08  Bruno Haible  <bruno@clisp.org>
5112
5113         New module 'alignof'.
5114         * lib/alignof.h: New file.
5115         * modules/alignof: New file.
5116
5117 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5118             Bruno Haible  <bruno@clisp.org>
5119
5120         Fix test-file-has-acl on FreeBSD.
5121         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
5122         mask is implicitly added.
5123         * tests/test-file-has-acl.c: Include <signal.h>.
5124         (main): Terminate the test after 5 seconds.
5125         * modules/acl-tests (configure.ac): Check for alarm function.
5126
5127 2009-05-04  Bruno Haible  <bruno@clisp.org>
5128
5129         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
5130         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
5131         * modules/errno (configure.ac): Drop AC_REQUIRE.
5132         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
5133         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
5134
5135 2009-05-04  Simon Josefsson  <simon@josefsson.org>
5136
5137         * modules/glob-tests: New module.
5138         * tests/test-glob.c: Add.
5139
5140 2009-05-04  Simon Josefsson  <simon@josefsson.org>
5141
5142         * modules/fnmatch-tests: New module.
5143         * tests/test-fnmatch.c: Add.
5144
5145 2009-05-04  Eric Blake  <ebb9@byu.net>
5146
5147         maint: make the new no-submodule-changes rule VPATH-safe
5148         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
5149
5150 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5151             Bruno Haible  <bruno@clisp.org>
5152
5153         acl: Fix infinite loop on FreeBSD.
5154         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
5155         of return value from acl_get_entry.
5156         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
5157         Likewise.
5158
5159 2009-05-03  Bruno Haible  <bruno@clisp.org>
5160
5161         * lib/acl-internal.h (acl_entries): Clarify return value.
5162         * lib/acl_entries.c (acl_entries): Likewise.
5163
5164 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5165
5166         Bug fix in acl module.
5167         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
5168
5169 2009-05-03  Bruno Haible  <bruno@clisp.org>
5170
5171         Create gperf-generated file in the source dir, not in the build dir.
5172         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
5173         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
5174         * modules/unicase/locale-language (unicase/locale-languages.h):
5175         Likewise.
5176         * modules/unicase/special-casing (unicase/special-casing-table.h):
5177         Likewise.
5178         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
5179         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
5180         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
5181         Reported by Ralf Wildenhues.
5182
5183 2009-05-03  Bruno Haible  <bruno@clisp.org>
5184
5185         * modules/fnmatch (Description, configure.ac): Taken from
5186         fnmatch-posix.
5187         * modules/fnmatch-posix: Turn into a symbolic reference to the
5188         'fnmatch' module, and deprecate.
5189         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
5190
5191 2009-05-03  Bruno Haible  <bruno@clisp.org>
5192
5193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
5194         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
5195         Reported by Ralf Wildenhues.
5196
5197 2009-05-04  Simon Josefsson  <simon@josefsson.org>
5198
5199         * m4/fnmatch.m4: Fix fnmatch re-define.
5200
5201 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5202
5203         priv-set: new module and tests; adapt write-any-file
5204         * lib/priv-set.c: New file.
5205         * lib/priv-set.h: New file.
5206         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
5207         * lib/write-any-file.c: Simplify by using priv-set module.
5208         * m4/priv-set.m4: New file.
5209         * modules/priv-set: New file.
5210         * modules/unlinkdir: Add dependency on priv-set module.
5211         * modules/write-any-file: Likewise.
5212
5213         Tests for module 'priv-set'.
5214         * modules/priv-set-tests: New file.
5215         * tests/test-priv-set.c: New file.
5216
5217 2009-05-03  Jim Meyering  <meyering@redhat.com>
5218             Bruno Haible  <bruno@clisp.org>
5219
5220         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
5221         use the converted UTF-8 variant of the name instead.
5222
5223 2009-05-03  Jim Meyering  <meyering@redhat.com>
5224
5225         tests: tighten some getdate tests
5226         * tests/test-getdate.c (main): Tighten tests: require equality,
5227         not just greater than.  Set TZ envvar to UTC0.
5228
5229 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5230
5231         getdate: correctly interpret "next monday" when run on a Monday
5232         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
5233         that e.g., "next tues" (when run on a tuesday) results in a date
5234         that is one week in the future, and not today's date.
5235         I.e., add a week when the wday is the same as the current one.
5236         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
5237         and earlier by Martin Bernreuther and Jan Minář.
5238         * tests/test-getdate.c (main): Check that "next DAY" is always in
5239         the future and that "last DAY" is always in the past.
5240
5241 2009-05-02  Jim Meyering  <meyering@redhat.com>
5242
5243         build: ensure that a release build fails when a submodule is unclean
5244         * top/maint.mk (no-submodule-changes): New rule.
5245         (alpha beta major): Depend on it.
5246
5247 2009-05-02  Bruno Haible  <bruno@clisp.org>
5248
5249         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
5250         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
5251         shell variable gl_fnmatch_required to detect which variant is
5252         requested.
5253         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
5254         gl_FUNC_FNMATCH_POSIX.
5255         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
5256         exclude fnmatch-posix.
5257
5258 2009-05-02  Bruno Haible  <bruno@clisp.org>
5259
5260         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
5261         * modules/mbsrtowcs (License): Change to LGPLv2+.
5262         * modules/strnlen1 (License): Likewise.
5263         Reported by Simon Josefsson.
5264
5265 2009-05-02  Bruno Haible  <bruno@clisp.org>
5266
5267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
5268         "cross".
5269         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
5270         gnulib-tool was called with option --source-base=lib.
5271
5272 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5273
5274         Use automake *-local hooks without commands, for extensibility.
5275         * modules/localcharset (Makefile.am): Rename install-exec-local
5276         rule to install-exec-localcharset, and make it a prerequisite of
5277         install-exec-local.  Likewise, rename the uninstall-local rule to
5278         uninstall-localcharset, and make it a prerequisite of the former.
5279
5280 2009-05-01  Bruno Haible  <bruno@clisp.org>
5281
5282         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
5283         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
5284         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
5285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
5286         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
5287         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
5288         m4/locale-zh.m4, m4/codeset.m4.
5289
5290         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
5291         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
5292         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
5293         m4/locale-zh.m4.
5294
5295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
5296         REPLACE_WCRTOMB if mbstate_t must be replaced.
5297         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
5298         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
5299
5300 2009-05-01  Bruno Haible  <bruno@clisp.org>
5301
5302         Avoid compiler warnings when redefining macros defined by <libintl.h>.
5303         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
5304         dngettext, dcngettext, textdomain, bindtextdomain,
5305         bind_textdomain_codeset): Undefine before redefining.
5306
5307 2009-04-30  Bruno Haible  <bruno@clisp.org>
5308
5309         Fix bug introduced on 2009-04-25.
5310         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
5311         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
5312         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
5313         is defined.
5314         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
5315         is defined.
5316         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
5317         is defined.
5318         Reported by Elbert_Pol <elbert.pol@gmail.com>.
5319
5320 2009-04-28  Bruno Haible  <bruno@clisp.org>
5321
5322         Comment tweaks.
5323         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
5324         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
5325         * lib/unicase.h (u*_casexfrm): Likewise.
5326         Reported by Paolo Bonzini.
5327
5328 2009-04-28  Bruno Haible  <bruno@clisp.org>
5329
5330         Fix a compilation error.
5331         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
5332         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
5333         Reported by Jim Meyering.
5334
5335 2009-04-27  Bruno Haible  <bruno@clisp.org>
5336
5337         New module 'libunistring'.
5338         * modules/libunistring: New file.
5339         * m4/libunistring.m4: New file.
5340         * MODULES.html.sh (Unicode string functions): Add it.
5341
5342 2009-04-27  Eric Blake  <ebb9@byu.net>
5343
5344         maint.mk: allow package-specific header to provide <config.h>
5345         * top/maint.mk (sc_require_config_h): New variable.
5346         (sc_require_config_h, sc_require_config_h_first): Use it.
5347
5348 2009-04-27  Simon Josefsson  <simon@josefsson.org>
5349
5350         * top/maint.mk (sc_avoid_if_before_free): Except
5351         useless-if-before-free script.
5352
5353 2009-04-27  Eric Blake  <ebb9@byu.net>
5354
5355         maintainer-makefile: depend on all required helper scripts
5356         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
5357         useless-if-before-free.
5358         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
5359         version, rather than assuming gnulib checkout is available.
5360         Reported by Simen Josefsson.
5361
5362 2009-04-26  Bruno Haible  <bruno@clisp.org>
5363
5364         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
5365         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
5366         "../" or "..".
5367
5368 2009-04-26  Bruno Haible  <bruno@clisp.org>
5369
5370         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
5371         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
5372         AC_LIB_HAVE_LINKFLAGS.
5373
5374 2009-04-26  Bruno Haible  <bruno@clisp.org>
5375
5376         Simplify calling convention of u*_conv_from_encoding.
5377         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
5378         u32_conv_from_encoding): Expect a resultbuf argument and return the
5379         result directly as a pointer.
5380         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
5381         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
5382         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
5383         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
5384         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
5385         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
5386         Update.
5387         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
5388         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
5389         * lib/vasnprintf.c (VASNPRINTF): Update.
5390         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
5391         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
5392         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
5393         * NEWS: Mention the change.
5394
5395 2009-04-26  Bruno Haible  <bruno@clisp.org>
5396
5397         Simplify calling convention of u*_conv_to_encoding.
5398         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
5399         u32_conv_to_encoding): Expect a resultbuf argument and return the
5400         result directly as a pointer.
5401         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
5402         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
5403         freeing scaled_offsets if mem_iconveha failed.
5404         * lib/unicase/u-casexfrm.h (FUNC): Update.
5405         * lib/uninorm/u-normxfrm.h (FUNC): Update.
5406         * lib/vasnprintf.c (VASNPRINTF): Update.
5407         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
5408         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
5409         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
5410         * NEWS: Mention the change.
5411
5412 2009-04-26  Bruno Haible  <bruno@clisp.org>
5413
5414         Avoid test failures on AIX and OSF/1.
5415         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
5416         malloc(0).
5417         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
5418         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
5419         Likewise.
5420         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
5421         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
5422         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
5423         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
5424         * doc/posix-functions/malloc.texi: Document the portability problem
5425         related to malloc(0).
5426
5427 2009-04-26  Bruno Haible  <bruno@clisp.org>
5428
5429         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
5430         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
5431         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
5432
5433 2009-04-25  Bruno Haible  <bruno@clisp.org>
5434
5435         Avoid link error when creating a namespace clean library.
5436         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
5437         as macro with arguments if already defined as an alias.
5438         * lib/signbitf.c (gl_signbitf): Don't undefine.
5439         * lib/signbitd.c (gl_signbitd): Don't undefine.
5440         * lib/signbitl.c (gl_signbitl): Don't undefine.
5441
5442 2009-04-25  Jim Meyering  <meyering@redhat.com>
5443
5444         vc-list-files: fix another quoting bug
5445         * build-aux/vc-list-files: Avoid sed backslash expansion
5446         of pathological directory names.
5447
5448 2009-04-25  Eric Blake  <ebb9@byu.net>
5449
5450         vc-list-files: fix shell quoting error
5451         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
5452         timestamp.
5453
5454 2009-04-25  Jim Meyering  <meyering@redhat.com>
5455
5456         vc-list-files: restore lost functionality with subdir argument
5457         * build-aux/vc-list-files: When given a non-"." sub-directory
5458         argument, substitute the $dir/ prefix back onto each resulting name.
5459         Otherwise, coreutils' root_tests check would fail.
5460
5461 2009-04-24  Eric Blake  <ebb9@byu.net>
5462
5463         vc-list-files: ignore git symlinks
5464         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
5465         than ls-files, to ignore git symlinks.
5466
5467         maint.mk: import improvements from m4
5468         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
5469         (move_if_change): Delete unused macro.
5470         (news-date-check, vc-diff-check): Support VPATH builds.
5471         (announcement): Likewise.  Split --bootstrap-tools list...
5472         (boostrap-tools): ...into separate list, which can be overridden
5473         in cfg.mk.
5474         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
5475         requiring dependency on useless-if-before-free module.
5476         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
5477         Support VPATH builds.
5478
5479 2009-04-24  Jim Meyering  <meyering@redhat.com>
5480
5481         maint.mk: remove coreutils-specific rules and variables
5482         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
5483         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
5484         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
5485
5486         maint.mk: remove obsolete rule
5487         * top/maint.mk (rel-check): Remove rule.
5488         (WGET, WGETFLAGS): Remove now-unused variables.
5489
5490 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5491
5492         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
5493         consistency.
5494
5495         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
5496         '$(PATH_SEPARATOR)' instead of ':'.
5497
5498 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5499
5500         * lib/getopt1.c (main): Use 'const' for static array.
5501
5502 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5503
5504         * top/maint.mk: Sync with coreutils.
5505         * NEWS: Explain incompatibilities.
5506
5507 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5508             Bruno Haible  <bruno@clisp.org>
5509
5510         Fix cross-compilation results.
5511         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
5512         statement, as third argument of AC_TRY_RUN.
5513         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5514         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5515         Likewise.
5516         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5517         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5518         Likewise.
5519         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5520         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
5521         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
5522
5523 2009-04-20  Bruno Haible  <bruno@clisp.org>
5524
5525         Avoid test failure on mingw.
5526         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
5527
5528 2009-04-20  Bruno Haible  <bruno@clisp.org>
5529
5530         Avoid compilation error on mingw.
5531         * modules/localename-tests (Depends-on): Add locale.
5532
5533 2009-04-19  Bruno Haible  <bruno@clisp.org>
5534
5535         Support for building a shared library on Windows platforms.
5536         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
5537         (main): Test the presence of UNINORM_NFC here.
5538         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
5539         (main): Test the presence of UNINORM_NFD here.
5540         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
5541         (main): Test the presence of UNINORM_NFKC here.
5542         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
5543         (main): Test the presence of UNINORM_NFKD here.
5544
5545 2009-04-19  Bruno Haible  <bruno@clisp.org>
5546
5547         Avoid a compiler warning.
5548         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
5549         Change type of variable 'sequence'.
5550
5551 2009-04-19  Bruno Haible  <bruno@clisp.org>
5552
5553         * modules/configmake (Makefile.am): When the contents of configmake.h
5554         does not change, arrange to preserve its modification time.
5555
5556 2009-04-17  Simon Josefsson  <simon@josefsson.org>
5557
5558         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
5559         gettext domain.
5560
5561 2009-04-16  Jim Meyering  <meyering@redhat.com>
5562
5563         useless-if-before-free: improve conversion code
5564         * build-aux/useless-if-before-free: Adjust code-in-comment to match
5565         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
5566
5567 2009-04-14  Bruno Haible  <bruno@clisp.org>
5568
5569         * modules/fcntl (Depends-on): Add extensions.
5570         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
5571
5572 2009-04-12  Ben Pfaff  <blp@gnu.org>
5573
5574         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
5575         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
5576
5577 2009-03-20  Ben Pfaff  <blp@gnu.org>
5578
5579         Make rename replace existing destinations on Windows.
5580         * m4/rename.m4: Add test for Mingw.
5581         * lib/rename.c: Add rename replacement that uses MoveFileEx with
5582         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
5583         * doc/posix-functions/rename.texi: Document.
5584
5585 2009-04-10  Bruno Haible  <bruno@clisp.org>
5586
5587         New include file "iconveh.h".
5588         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
5589         * lib/striconveh.h: Include it.
5590         (enum iconv_ilseq_handler): Remove definition.
5591         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
5592         striconveh.h.
5593         * lib/striconveha.c: Include striconveh.h.
5594         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
5595         * modules/striconveh (Files): Add lib/iconveh.h.
5596         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
5597         lib/striconveh.h.
5598
5599 2009-04-10  Bruno Haible  <bruno@clisp.org>
5600
5601         * lib/uniconv.h: Update comment.
5602
5603 2009-04-10  Bruno Haible  <bruno@clisp.org>
5604
5605         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
5606         always.
5607         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5608         * lib/unistr/u16-mbtouc-aux.c: Likewise.
5609         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5610         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
5611         "unistring-notinline.h", so that the function gets defined always.
5612         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5613         * lib/unistr/u8-uctomb.c: Likewise.
5614         * lib/unistr/u16-mbtouc.c: Likewise.
5615         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5616         * lib/unistr/u16-uctomb.c: Likewise.
5617         * lib/unistr/u32-mbtouc.c: Likewise.
5618         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5619         * lib/unistr/u32-uctomb.c: Likewise.
5620
5621 2009-04-10  Bruno Haible  <bruno@clisp.org>
5622
5623         Mark 'utime' obsolete.
5624         * modules/utime (Status, Notice): New sections.
5625         Suggested by Jim Meyering.
5626
5627         Fix cross-compile guess for utime test.
5628         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
5629         autoconf.
5630         * doc/posix-functions/utime.texi: Give more precisions.
5631         Reported by Jan <ipif@ymail.com>.
5632
5633 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
5634
5635         filevercmp: correct today's change
5636         * lib/filevercmp.c: Also handle coreutils' test inputs.
5637         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
5638
5639         Fix regression in 'filevercmp' module. Thanks Sven Joachim
5640         for reporting it.
5641         * lib/filevercmp.c: Special handle for "", "." and "..".
5642         * tests/test-filevercmp.c: Enlarge the set suite.
5643
5644 2009-04-07  Jim Meyering  <meyering@redhat.com>
5645
5646         useless-if-before-free: show how to remove braced useless free, too
5647         * build-aux/useless-if-before-free: still only in a comment, though.
5648
5649 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
5650
5651         maint.mk: import changes to syntax-check macros from coreutils
5652         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
5653         Use them in the relevant macros.
5654
5655 2009-04-06  Bruno Haible  <bruno@clisp.org>
5656
5657         Fix unportable use of bit-fields.
5658         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
5659         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
5660         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
5661
5662 2009-04-06  Bruno Haible  <bruno@clisp.org>
5663
5664         Avoid test failures on AIX and OSF/1.
5665         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
5666         that malloc(0) = NULL.
5667         * tests/unicase/test-u8-tolower.c (check): Likewise.
5668         * tests/unicase/test-u8-totitle.c (check): Likewise.
5669         * tests/unicase/test-u8-toupper.c (check): Likewise.
5670         * tests/unicase/test-u16-casefold.c (check): Likewise.
5671         * tests/unicase/test-u16-tolower.c (check): Likewise.
5672         * tests/unicase/test-u16-totitle.c (check): Likewise.
5673         * tests/unicase/test-u16-toupper.c (check): Likewise.
5674         * tests/unicase/test-u32-casefold.c (check): Likewise.
5675         * tests/unicase/test-u32-tolower.c (check): Likewise.
5676         * tests/unicase/test-u32-totitle.c (check): Likewise.
5677         * tests/unicase/test-u32-toupper.c (check): Likewise.
5678         * tests/uninorm/test-u8-nfc.c (check): Likewise.
5679         * tests/uninorm/test-u8-nfd.c (check): Likewise.
5680         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
5681         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
5682         * tests/uninorm/test-u16-nfc.c (check): Likewise.
5683         * tests/uninorm/test-u16-nfd.c (check): Likewise.
5684         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
5685         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
5686         * tests/uninorm/test-u32-nfc.c (check): Likewise.
5687         * tests/uninorm/test-u32-nfd.c (check): Likewise.
5688         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
5689         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
5690
5691 2009-04-05  Bruno Haible  <bruno@clisp.org>
5692
5693         Work around an autoconf limitation.
5694         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
5695         comment line if it would be longer than 3 KB.
5696
5697 2009-04-05  Bruno Haible  <bruno@clisp.org>
5698
5699         Avoid test failure with libiconv-1.13.
5700         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
5701         of the expected test results.
5702
5703 2009-04-05  Bruno Haible  <bruno@clisp.org>
5704
5705         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
5706         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
5707         that it should be installed.
5708
5709 2009-04-05  Bruno Haible  <bruno@clisp.org>
5710
5711         * gnulib-tool: New option --copy-file.
5712         (func_usage): Document it.
5713         (func_dest_tmpfilename): Moved out of func_import.
5714         (func_add_file, func_update_file): New functions, extracted from
5715         func_import.
5716         (func_import): Update.
5717
5718 2009-04-05  Karl Berry  <karl@gnu.org>
5719
5720         * README: prominently mention gnulib-tool.
5721         Rearrange sections so getting the code is near the top.
5722
5723 2009-04-05  Bruno Haible  <bruno@clisp.org>
5724
5725         * lib/unicase.h: Mention u*_cmp2.
5726         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5727         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
5728         * lib/unicase/ulc-casecmp.c: Likewise.
5729         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
5730         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
5731         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
5732         unistr/u8-cmp.
5733         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
5734         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
5735         unistr/u16-cmp.
5736         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
5737         unistr/u32-cmp.
5738
5739         * lib/uninorm.h: Mention u*_cmp2.
5740         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5741         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
5742         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
5743         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
5744         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
5745         unistr/u8-cmp.
5746         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
5747         unistr/u16-cmp.
5748         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
5749         unistr/u32-cmp.
5750
5751         New module 'unistr/u32-cmp2'.
5752         * lib/unistr/u32-cmp2.c: New file.
5753         * modules/unistr/u32-cmp2: New file.
5754
5755         New module 'unistr/u16-cmp2'.
5756         * lib/unistr/u16-cmp2.c: New file.
5757         * modules/unistr/u16-cmp2: New file.
5758
5759         New module 'unistr/u8-cmp2'.
5760         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
5761         * lib/unistr/u8-cmp2.c: New file.
5762         * lib/unistr/u-cmp2.h: New file.
5763         * modules/unistr/u8-cmp2: New file.
5764
5765 2009-04-05  Bruno Haible  <bruno@clisp.org>
5766
5767         * lib/unictype.h (uc_property_is_valid): New macro.
5768         * tests/unictype/test-pr_byname.c (main): Use it.
5769
5770         * lib/unistr.h: Doc fixes.
5771         * lib/uniconv.h: Doc fixes.
5772         * lib/unictype.h: Doc fixes.
5773
5774 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
5775
5776         Port coreutils 7.2 to Solaris 8.
5777
5778         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
5779         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
5780         for Solaris 8.  This is a bit of a hack, as it means it's the
5781         caller's responsibility to add -lnsl if needed, but most likely it
5782         won't be needed since only getaddrinfo uses this and getaddrinfo
5783         isn't needed on Solaris 8.
5784
5785         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
5786         problem to Solaris 8 encountered with coreutils 7.2, which
5787         resulted in a message "fnmatch.c:292: warning: passing argument 4
5788         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
5789         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
5790
5791 2009-04-03  Simon Josefsson  <simon@josefsson.org>
5792
5793         * m4/ld-version-script.m4: Add FIXME comment.
5794
5795 2009-04-02  Simon Josefsson  <simon@josefsson.org>
5796
5797         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
5798         SOVERSION variable.
5799
5800 2009-04-02  Bruno Haible  <bruno@clisp.org>
5801
5802         * Makefile (info, html, dvi, pdf): Combine the rules.
5803         Suggested by Jim Meyering.
5804
5805 2009-04-01  Bruno Haible  <bruno@clisp.org>
5806
5807         * Makefile (info, html, dvi, pdf): New targets.
5808         Reported by Reuben Thomas <rrt@sc3d.org>.
5809
5810 2009-04-01  Bruno Haible  <bruno@clisp.org>
5811
5812         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
5813         can be put into PATH.
5814         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
5815
5816 2009-04-01  Bruno Haible  <bruno@clisp.org>
5817
5818         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
5819
5820 2009-04-01  Bruno Haible  <bruno@clisp.org>
5821
5822         Rename module 'visibility'.
5823         * modules/lib-symbol-visibility: Renamed from modules/visibility.
5824         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
5825         * doc/gnulib.texi: Update.
5826         * MODULES.html.sh (Misc): Update.
5827         * NEWS: Mention the change.
5828
5829 2009-04-01  Simon Josefsson  <simon@josefsson.org>
5830
5831         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
5832         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
5833         Eric Blake <ebb9@byu.net> for review.
5834         * MODULES.html.sh: Add lib-msvc-compat.
5835         * doc/gnulib.texi: Link to new section.
5836         * m4/ld-output-def.m4: New file.
5837         * doc/ld-output-def.texi: New file.
5838
5839 2009-04-01  Simon Josefsson  <simon@josefsson.org>
5840
5841         Rename ld-version-script to lib-symbol-versions.  Suggested by
5842         Bruno Haible <bruno@clisp.org>.
5843         * modules/ld-version-script: Renamed to lib-symbol-versions.
5844         * doc/ld-version-script.texi: Fix module name.
5845         * MODULES.html.sh: Add lib-symbol-versions.
5846
5847 2009-03-31  Simon Josefsson  <simon@josefsson.org>
5848
5849         * modules/u64-tests: New file.
5850         * tests/test-u64.c: New file.
5851
5852 2009-03-04  Simon Josefsson  <simon@josefsson.org>
5853
5854         * MODULES.html.sh: Mention u64.
5855         * modules/u64: New module.
5856         * modules/crypto/sha512: Depend on u64 module instead of providing
5857         u64.h.
5858
5859 2009-03-27  Eric Blake  <ebb9@byu.net>
5860
5861         test-strerror: make debugging EAI_SYSTEM easier
5862         * modules/getaddrinfo-tests (Depends-on): Add strerror.
5863         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
5864         failure was EAI_SYSTEM.
5865
5866 2009-03-25  Bruno Haible  <bruno@clisp.org>
5867
5868         Fix a problem with --enable-relocatable on Solaris 7.
5869         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
5870         since 2008-02-24.
5871
5872 2009-03-25  Eric Blake  <ebb9@byu.net>
5873
5874         test-sockets: avoid gcc warning
5875         * tests/test-sockets.c (main): Silence compiler warning.
5876
5877 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5878
5879         New modules nproc, pthread, contributed by Glen Lenker.
5880
5881         * MODULES.html.sh: Add pthread, nproc.
5882         * lib/nproc.c: New file.
5883         * lib/nproc.h: New file.
5884         * lib/pthread.in.h: New file.
5885         * m4/pthread.m4: New file.
5886         * modules/nproc: New file.
5887         * modules/pthread: New file.
5888
5889 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5890
5891         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
5892         New variable.
5893
5894 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
5895
5896         filevercmp: handle simple~ and numbered.~3~ backup suffixes
5897         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
5898         * tests/test-filevercmp.c: Add tests for backup suffixes.
5899
5900 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5901
5902         * modules/stdlib (Depends-on): Add stdint, needed when defining
5903         struct random_data on, for example, HP-UX 10.20.  Reported by
5904         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5905
5906 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5907
5908         * lib/readline.c (readline): Call fflush on stdout after printing
5909         prompt.
5910
5911 2009-03-20  Bruno Haible  <bruno@clisp.org>
5912
5913         Remove dependency from 'close' module to -lws2_32 on native Windows.
5914         * lib/close-hook.h: New file.
5915         * lib/close-hook.c: New file.
5916         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
5917         w32sock.h.
5918         (_gl_close_fd_maybe_socket): Remove function.
5919         (rpl_close): Invoke execute_all_close_hooks instead of
5920         _gl_close_fd_maybe_socket.
5921         * lib/sockets.c: Include close-hook.h, w32sock.h.
5922         (close_fd_maybe_socket): New function, essentially from lib/close.c.
5923         (close_sockets_hook): New variable.
5924         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
5925         (gl_sockets_cleanup): Unregister it.
5926         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
5927         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
5928         * modules/close-hook: New file.
5929         * modules/close (Files): Remove lib/w32sock.h.
5930         (Depends-on): Add close-hook.
5931         (Link): Remove section.
5932         * modules/sockets (Files): Add lib/w32sock.h.
5933         (Depends-on): Add close-hook.
5934         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
5935         invocation.
5936         * NEWS: Mention that LIB_CLOSE is gone.
5937
5938 2009-03-23  Eric Blake  <ebb9@byu.net>
5939
5940         signal-tests: test previous patch
5941         * tests/test-signal.c: New file.
5942         * modules/signal-tests: Likewise.
5943
5944         signal.h: always support 'volatile sig_atomic_t'
5945         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
5946         (gl_SIGNAL_H_DEFAULTS): Add a default.
5947         * modules/signal (Makefile.am): Substitute if needed.
5948         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
5949         users can blindly add volatile.
5950         * doc/posix-headers/signal.texi (signal.h): Document it.
5951         Reported by Matthew Woehlke.
5952
5953 2009-03-23  Jim Meyering  <meyering@redhat.com>
5954
5955         pathmax: PATH_MAX: use pathconf only when available
5956         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
5957         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
5958         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
5959         This avoids a link failure in a PSP cross-compilation environment
5960         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
5961
5962         * lib/vasnprintf.c (divide): Fix typo in comment.
5963
5964 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5965
5966         * gnulib-tool (func_filter_filelist): Fix comment.
5967
5968 2009-03-20  Bruno Haible  <bruno@clisp.org>
5969
5970         Make sockets.h self-contained.
5971         * lib/sockets.c: Include sockets.h first.
5972         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
5973
5974 2009-03-19  Eric Blake  <ebb9@byu.net>
5975
5976         doc: mention more functions added in cygwin 1.7.0
5977         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
5978         addition.
5979         * doc/posix-functions/log2f.texi: Likewise.
5980
5981 2009-03-19  Jim Meyering  <meyering@redhat.com>
5982
5983         fsusage: avoid syntax error due to statement-before-declaration
5984         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
5985         after all declarations.  Reported by Matthew Woehlke in
5986         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
5987
5988 2009-03-18  Eric Blake  <ebb9@byu.net>
5989
5990         build-aux/compile: sync from automake
5991         * build-aux/compile: New file, from automake.
5992         * config/srclist.txt: Mention build-aux/compile.
5993
5994 2009-03-17  Bruno Haible  <bruno@clisp.org>
5995
5996         * lib/git-merge-changelog.c: Fix typo in comment.
5997         Reported by Reuben Thomas <rrt@sc3d.org>.
5998
5999 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
6000
6001         * m4/regex.m4: update and improve help for
6002         --without-included-regex.
6003
6004 2009-03-17  Simon Josefsson  <simon@josefsson.org>
6005
6006         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
6007         failure on missing include files.
6008
6009 2009-03-17  Eric Blake  <ebb9@byu.net>
6010
6011         doc: mention more functions added in cygwin 1.7.0
6012         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
6013         addition.
6014         * doc/posix-functions/fwscanf.texi: Likewise.
6015         * doc/posix-functions/swprintf.texi: Likewise.
6016         * doc/posix-functions/swscanf.texi: Likewise.
6017         * doc/posix-functions/vfwprintf.texi: Likewise.
6018         * doc/posix-functions/vfwscanf.texi: Likewise.
6019         * doc/posix-functions/vswprintf.texi: Likewise.
6020         * doc/posix-functions/vswscanf.texi: Likewise.
6021         * doc/posix-functions/vwprintf.texi: Likewise.
6022         * doc/posix-functions/vwscanf.texi: Likewise.
6023         * doc/posix-functions/wcscasecmp.texi: Likewise.
6024         * doc/posix-functions/wcsdup.texi: Likewise.
6025         * doc/posix-functions/wcsftime.texi: Likewise.
6026         * doc/posix-functions/wcsncasecmp.texi: Likewise.
6027         * doc/posix-functions/wprintf.texi: Likewise.
6028         * doc/posix-functions/wscanf.texi: Likewise.
6029         * doc/glibc-functions/gethostbyname2.texi: Likewise.
6030
6031 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6032
6033         maint.mk: really add $(AM_MAKEFLAGS)
6034         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
6035         was inadvertently omitted in the last commit.
6036         Spotted by Bruno Haible.
6037
6038         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
6039         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
6040         $(AM_MAKEFLAGS)' rather than plain `make'.
6041
6042         gnulib-tool: execute $MAKE not make
6043         * gnulib-tool: Default $MAKE to 'make'.
6044         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
6045         than make.  Initialize $MAKE in the do-autobuild script.
6046
6047         gnulib-tool: use $MAKE not make in generated files
6048         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
6049         make, in generated files.  Initialize $MAKE in the do-autobuild
6050         script.
6051
6052         * top/GNUmakefile (_have-git-version-gen): Fix typo.
6053
6054         GNUmakefile: disable parallelism only for multiple, recursive targets
6055         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
6056         additions in the Makefile.
6057         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
6058         by Automake.
6059         (.NOTPARALLEL): Only disable parallel builds if multiple targets
6060         are listed on the command line and at least one of them is
6061         listed in $(ALL_RECURSIVE_TARGETS).
6062
6063 2009-03-14  Bruno Haible  <bruno@clisp.org>
6064
6065         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
6066         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
6067         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
6068         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
6069         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
6070         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
6071         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
6072         unistr/u8-uctomb.
6073         * modules/unistr/u8-strchr (Depends-on): Likewise.
6074         * modules/unistr/u8-strrchr (Depends-on): Likewise.
6075         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
6076         unistr/u16-uctomb.
6077         * modules/unistr/u16-strchr (Depends-on): Likewise.
6078         * modules/unistr/u16-strrchr (Depends-on): Likewise.
6079
6080 2009-03-12  Bruno Haible  <bruno@clisp.org>
6081
6082         Work around select() bug on Interix 3.5.
6083         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
6084         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
6085         * m4/select.m4: New file.
6086         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
6087         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
6088         * modules/select (Files): Add m4/select.m4.
6089         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
6090         * modules/nanosleep (Depends-on): Add select.
6091         * modules/poll (Depends-on): Likewise.
6092         * doc/posix-functions/select.texi: Mention the Interix bug.
6093         Reported by Markus Duft <mduft@gentoo.org>.
6094
6095         * lib/select.c: Renamed from lib/winsock-select.c.
6096         * modules/select (Files): Add lib/select.c, remove
6097         lib/winsock-select.c.
6098         (configure.ac): Update.
6099
6100 2009-03-12  Jim Meyering  <meyering@redhat.com>
6101
6102         avoid gcc warnings about unused macro definitions
6103         * lib/readtokens.c (STREQ): Remove unused definition.
6104         * lib/xmalloc.c (SIZE_MAX): Likewise.
6105         * lib/openat-die.c (N_): Likewise.
6106         * lib/mountlist.c (SIZE_MAX): Remove definition.
6107         Instead, include <stdint.h>.
6108         * lib/readutmp.c: Likewise.
6109         * modules/readutmp (Depends-on): Add stdint.
6110         * modules/mountlist (Depends-on): Add stdint.
6111         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
6112
6113 2009-03-10  Bruno Haible  <bruno@clisp.org>
6114
6115         Tests for module 'mbmemcasecoll'.
6116         * modules/mbmemcasecoll-tests: New file.
6117         * tests/test-mbmemcasecoll1.sh: New file.
6118         * tests/test-mbmemcasecoll2.sh: New file.
6119         * tests/test-mbmemcasecoll3.sh: New file.
6120         * tests/test-mbmemcasecoll.c: New file.
6121
6122         New module 'mbmemcasecoll'.
6123         * lib/mbmemcasecoll.h: New file.
6124         * lib/mbmemcasecoll.c: New file.
6125         * modules/mbmemcasecoll: New file.
6126
6127         * tests/test-mbmemcasecmp.h: New file, extracted from
6128         tests/test-mbmemcasecmp.c.
6129         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
6130         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
6131         (main): Update.
6132         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
6133
6134 2009-03-09  Bruno Haible  <bruno@clisp.org>
6135
6136         Tests for module 'mbmemcasecmp'.
6137         * modules/mbmemcasecmp-tests: New file.
6138         * tests/test-mbmemcasecmp1.sh: New file.
6139         * tests/test-mbmemcasecmp2.sh: New file.
6140         * tests/test-mbmemcasecmp3.sh: New file.
6141         * tests/test-mbmemcasecmp.c: New file.
6142
6143         New module 'mbmemcasecmp'.
6144         * lib/mbmemcasecmp.h: New file.
6145         * lib/mbmemcasecmp.c: New file.
6146         * modules/mbmemcasecmp: New file.
6147
6148 2009-03-09  Bruno Haible  <bruno@clisp.org>
6149
6150         Tests for module 'unicase/ulc-casecoll'.
6151         * modules/unicase/ulc-casecoll-tests: New file.
6152         * tests/unicase/test-ulc-casecoll1.sh: New file.
6153         * tests/unicase/test-ulc-casecoll2.sh: New file.
6154         * tests/unicase/test-ulc-casecoll.c: New file.
6155
6156         New module 'unicase/ulc-casecoll'.
6157         * lib/unicase.h (ulc_casecoll): New declaration.
6158         * lib/unicase/ulc-casecoll.c: New file.
6159         * modules/unicase/ulc-casecoll: New file.
6160
6161         New module 'unicase/ulc-casexfrm'.
6162         * lib/unicase.h (ulc_casexfrm): New declaration.
6163         * lib/unicase/ulc-casexfrm.c: New file.
6164         * modules/unicase/ulc-casexfrm: New file.
6165
6166 2009-03-09  Bruno Haible  <bruno@clisp.org>
6167
6168         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
6169         invocations.
6170
6171         * m4/mbscasecmp.m4: Remove file.
6172         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
6173         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
6174
6175         * m4/mbscasestr.m4: Remove file.
6176         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
6177         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
6178
6179         * m4/mbschr.m4: Remove file.
6180         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
6181         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
6182
6183         * m4/mbscspn.m4: Remove file.
6184         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
6185         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
6186
6187         * m4/mbslen.m4: Remove file.
6188         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
6189         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
6190
6191         * m4/mbsncasecmp.m4: Remove file.
6192         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
6193         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
6194
6195         * m4/mbsnlen.m4: Remove file.
6196         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
6197         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
6198
6199         * m4/mbspbrk.m4: Remove file.
6200         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
6201         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
6202
6203         * m4/mbspcasecmp.m4: Remove file.
6204         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
6205         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
6206
6207         * m4/mbsrchr.m4: Remove file.
6208         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
6209         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
6210
6211         * m4/mbssep.m4: Remove file.
6212         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
6213         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
6214
6215         * m4/mbsspn.m4: Remove file.
6216         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
6217         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
6218
6219         * m4/mbsstr.m4: Remove file.
6220         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
6221         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
6222
6223         * m4/mbstok_r.m4: Remove file.
6224         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
6225         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
6226
6227         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
6228
6229         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
6230         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
6231
6232         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
6233
6234 2009-03-08  Bruno Haible  <bruno@clisp.org>
6235
6236         Tests for module 'unicase/ulc-casecmp'.
6237         * modules/unicase/ulc-casecmp-tests: New file.
6238         * tests/unicase/test-ulc-casecmp1.sh: New file.
6239         * tests/unicase/test-ulc-casecmp2.sh: New file.
6240         * tests/unicase/test-ulc-casecmp.c: New file.
6241
6242         New module 'unicase/ulc-casecmp'.
6243         * lib/unicase.h (ulc_casecmp): New declaration.
6244         * lib/unicase/ulc-casecmp.c: New file.
6245         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
6246         'const SRC_UNIT *'.
6247         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
6248         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
6249         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
6250         * modules/unicase/ulc-casecmp: New file.
6251
6252         Tests for module 'unicase/u32-is-cased'.
6253         * modules/unicase/u32-is-cased-tests: New file.
6254         * tests/unicase/test-u32-is-cased.c: New file.
6255
6256         Tests for module 'unicase/u16-is-cased'.
6257         * modules/unicase/u16-is-cased-tests: New file.
6258         * tests/unicase/test-u16-is-cased.c: New file.
6259
6260         Tests for module 'unicase/u8-is-cased'.
6261         * modules/unicase/u8-is-cased-tests: New file.
6262         * tests/unicase/test-u8-is-cased.c: New file.
6263         * tests/unicase/test-is-cased.h: New file.
6264
6265         New module 'unicase/u32-is-cased'.
6266         * lib/unicase/u32-is-cased.c: New file.
6267         * modules/unicase/u32-is-cased: New file.
6268
6269         New module 'unicase/u16-is-cased'.
6270         * lib/unicase/u16-is-cased.c: New file.
6271         * modules/unicase/u16-is-cased: New file.
6272
6273         New module 'unicase/u8-is-cased'.
6274         * lib/unicase/u8-is-cased.c: New file.
6275         * lib/unicase/u-is-cased.h: New file.
6276         * modules/unicase/u8-is-cased: New file.
6277
6278         Tests for module 'unicase/u32-is-casefolded'.
6279         * modules/unicase/u32-is-casefolded-tests: New file.
6280         * tests/unicase/test-u32-is-casefolded.c: New file.
6281
6282         Tests for module 'unicase/u16-is-casefolded'.
6283         * modules/unicase/u16-is-casefolded-tests: New file.
6284         * tests/unicase/test-u16-is-casefolded.c: New file.
6285
6286         Tests for module 'unicase/u8-is-casefolded'.
6287         * modules/unicase/u8-is-casefolded-tests: New file.
6288         * tests/unicase/test-u8-is-casefolded.c: New file.
6289         * tests/unicase/test-is-casefolded.h: New file.
6290
6291         New module 'unicase/u32-is-casefolded'.
6292         * lib/unicase/u32-is-casefolded.c: New file.
6293         * modules/unicase/u32-is-casefolded: New file.
6294
6295         New module 'unicase/u16-is-casefolded'.
6296         * lib/unicase/u16-is-casefolded.c: New file.
6297         * modules/unicase/u16-is-casefolded: New file.
6298
6299         New module 'unicase/u8-is-casefolded'.
6300         * lib/unicase/u8-is-casefolded.c: New file.
6301         * modules/unicase/u8-is-casefolded: New file.
6302
6303         Tests for module 'unicase/u32-is-titlecase'.
6304         * modules/unicase/u32-is-titlecase-tests: New file.
6305         * tests/unicase/test-u32-is-titlecase.c: New file.
6306
6307         Tests for module 'unicase/u16-is-titlecase'.
6308         * modules/unicase/u16-is-titlecase-tests: New file.
6309         * tests/unicase/test-u16-is-titlecase.c: New file.
6310
6311         Tests for module 'unicase/u8-is-titlecase'.
6312         * modules/unicase/u8-is-titlecase-tests: New file.
6313         * tests/unicase/test-u8-is-titlecase.c: New file.
6314         * tests/unicase/test-is-titlecase.h: New file.
6315
6316         New module 'unicase/u32-is-titlecase'.
6317         * lib/unicase/u32-is-titlecase.c: New file.
6318         * modules/unicase/u32-is-titlecase: New file.
6319
6320         New module 'unicase/u16-is-titlecase'.
6321         * lib/unicase/u16-is-titlecase.c: New file.
6322         * modules/unicase/u16-is-titlecase: New file.
6323
6324         New module 'unicase/u8-is-titlecase'.
6325         * lib/unicase/u8-is-titlecase.c: New file.
6326         * modules/unicase/u8-is-titlecase: New file.
6327
6328         Tests for module 'unicase/u32-is-lowercase'.
6329         * modules/unicase/u32-is-lowercase-tests: New file.
6330         * tests/unicase/test-u32-is-lowercase.c: New file.
6331
6332         Tests for module 'unicase/u16-is-lowercase'.
6333         * modules/unicase/u16-is-lowercase-tests: New file.
6334         * tests/unicase/test-u16-is-lowercase.c: New file.
6335
6336         Tests for module 'unicase/u8-is-lowercase'.
6337         * modules/unicase/u8-is-lowercase-tests: New file.
6338         * tests/unicase/test-u8-is-lowercase.c: New file.
6339         * tests/unicase/test-is-lowercase.h: New file.
6340
6341         New module 'unicase/u32-is-lowercase'.
6342         * lib/unicase/u32-is-lowercase.c: New file.
6343         * modules/unicase/u32-is-lowercase: New file.
6344
6345         New module 'unicase/u16-is-lowercase'.
6346         * lib/unicase/u16-is-lowercase.c: New file.
6347         * modules/unicase/u16-is-lowercase: New file.
6348
6349         New module 'unicase/u8-is-lowercase'.
6350         * lib/unicase/u8-is-lowercase.c: New file.
6351         * modules/unicase/u8-is-lowercase: New file.
6352
6353         Tests for module 'unicase/u32-is-uppercase'.
6354         * modules/unicase/u32-is-uppercase-tests: New file.
6355         * tests/unicase/test-u32-is-uppercase.c: New file.
6356
6357         Tests for module 'unicase/u16-is-uppercase'.
6358         * modules/unicase/u16-is-uppercase-tests: New file.
6359         * tests/unicase/test-u16-is-uppercase.c: New file.
6360
6361         Tests for module 'unicase/u8-is-uppercase'.
6362         * modules/unicase/u8-is-uppercase-tests: New file.
6363         * tests/unicase/test-u8-is-uppercase.c: New file.
6364         * tests/unicase/test-is-uppercase.h: New file.
6365
6366         New module 'unicase/u32-is-uppercase'.
6367         * lib/unicase/u32-is-uppercase.c: New file.
6368         * modules/unicase/u32-is-uppercase: New file.
6369
6370         New module 'unicase/u16-is-uppercase'.
6371         * lib/unicase/u16-is-uppercase.c: New file.
6372         * modules/unicase/u16-is-uppercase: New file.
6373
6374         New module 'unicase/u8-is-uppercase'.
6375         * lib/unicase/u8-is-uppercase.c: New file.
6376         * modules/unicase/u8-is-uppercase: New file.
6377
6378         New module 'unicase/u32-is-invariant'.
6379         * lib/unicase/u32-is-invariant.c: New file.
6380         * modules/unicase/u32-is-invariant: New file.
6381
6382         New module 'unicase/u16-is-invariant'.
6383         * lib/unicase/u16-is-invariant.c: New file.
6384         * modules/unicase/u16-is-invariant: New file.
6385
6386         New module 'unicase/u8-is-invariant'.
6387         * lib/unicase/u8-is-invariant.c: New file.
6388         * lib/unicase/invariant.h: New file.
6389         * lib/unicase/u-is-invariant.h: New file.
6390         * modules/unicase/u8-is-invariant: New file.
6391
6392         Tests for module 'unicase/u32-casecoll'.
6393         * modules/unicase/u32-casecoll-tests: New file.
6394         * tests/unicase/test-u32-casecoll.c: New file.
6395
6396         Tests for module 'unicase/u16-casecoll'.
6397         * modules/unicase/u16-casecoll-tests: New file.
6398         * tests/unicase/test-u16-casecoll.c: New file.
6399
6400         Tests for module 'unicase/u8-casecoll'.
6401         * modules/unicase/u8-casecoll-tests: New file.
6402         * tests/unicase/test-u8-casecoll.c: New file.
6403
6404         New module 'unicase/u32-casecoll'.
6405         * lib/unicase/u32-casecoll.c: New file.
6406         * modules/unicase/u32-casecoll: New file.
6407
6408         New module 'unicase/u16-casecoll'.
6409         * lib/unicase/u16-casecoll.c: New file.
6410         * modules/unicase/u16-casecoll: New file.
6411
6412         New module 'unicase/u8-casecoll'.
6413         * lib/unicase/u8-casecoll.c: New file.
6414         * lib/unicase/u-casecoll.h: New file.
6415         * modules/unicase/u8-casecoll: New file.
6416
6417         New module 'unicase/u32-casexfrm'.
6418         * lib/unicase/u32-casexfrm.c: New file.
6419         * modules/unicase/u32-casexfrm: New file.
6420
6421         New module 'unicase/u16-casexfrm'.
6422         * lib/unicase/u16-casexfrm.c: New file.
6423         * modules/unicase/u16-casexfrm: New file.
6424
6425         New module 'unicase/u8-casexfrm'.
6426         * lib/unicase/u8-casexfrm.c: New file.
6427         * lib/unicase/u-casexfrm.h: New file.
6428         * modules/unicase/u8-casexfrm: New file.
6429
6430         Tests for module 'unicase/u32-casecmp'.
6431         * modules/unicase/u32-casecmp-tests: New file.
6432         * tests/unicase/test-u32-casecmp.c: New file.
6433
6434         Tests for module 'unicase/u16-casecmp'.
6435         * modules/unicase/u16-casecmp-tests: New file.
6436         * tests/unicase/test-u16-casecmp.c: New file.
6437
6438         Tests for module 'unicase/u8-casecmp'.
6439         * modules/unicase/u8-casecmp-tests: New file.
6440         * tests/unicase/test-u8-casecmp.c: New file.
6441         * tests/unicase/test-casecmp.h: New file.
6442
6443         New module 'unicase/u32-casecmp'.
6444         * lib/unicase/u32-casecmp.c: New file.
6445         * modules/unicase/u32-casecmp: New file.
6446
6447         New module 'unicase/u16-casecmp'.
6448         * lib/unicase/u16-casecmp.c: New file.
6449         * modules/unicase/u16-casecmp: New file.
6450
6451         New module 'unicase/u8-casecmp'.
6452         * lib/unicase/u8-casecmp.c: New file.
6453         * lib/unicase/u-casecmp.h: New file.
6454         * modules/unicase/u8-casecmp: New file.
6455
6456         Tests for module 'unicase/u32-casefold'.
6457         * modules/unicase/u32-casefold-tests: New file.
6458         * tests/unicase/test-u32-casefold.c: New file.
6459
6460         Tests for module 'unicase/u16-casefold'.
6461         * modules/unicase/u16-casefold-tests: New file.
6462         * tests/unicase/test-u16-casefold.c: New file.
6463
6464         Tests for module 'unicase/u8-casefold'.
6465         * modules/unicase/u8-casefold-tests: New file.
6466         * tests/unicase/test-u8-casefold.c: New file.
6467
6468         New module 'unicase/u32-casefold'.
6469         * lib/unicase/u32-casefold.c: New file.
6470         * modules/unicase/u32-casefold: New file.
6471
6472         New module 'unicase/u16-casefold'.
6473         * lib/unicase/u16-casefold.c: New file.
6474         * modules/unicase/u16-casefold: New file.
6475
6476         New module 'unicase/u8-casefold'.
6477         * lib/unicase/u8-casefold.c: New file.
6478         * lib/unicase/u-casefold.h: New file.
6479         * modules/unicase/u8-casefold: New file.
6480
6481         New module 'unicase/tocasefold'.
6482         * lib/unicase/casefold.h: New file.
6483         * lib/unicase/tocasefold.c: New file.
6484         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
6485         * modules/unicase/tocasefold: New file.
6486
6487         Tests for module 'unicase/u32-totitle'.
6488         * modules/unicase/u32-totitle-tests: New file.
6489         * tests/unicase/test-u32-totitle.c: New file.
6490
6491         Tests for module 'unicase/u16-totitle'.
6492         * modules/unicase/u16-totitle-tests: New file.
6493         * tests/unicase/test-u16-totitle.c: New file.
6494
6495         Tests for module 'unicase/u8-totitle'.
6496         * modules/unicase/u8-totitle-tests: New file.
6497         * tests/unicase/test-u8-totitle.c: New file.
6498
6499         New module 'unicase/u32-totitle'.
6500         * lib/unicase/u32-totitle.c: New file.
6501         * modules/unicase/u32-totitle: New file.
6502
6503         New module 'unicase/u16-totitle'.
6504         * lib/unicase/u16-totitle.c: New file.
6505         * modules/unicase/u16-totitle: New file.
6506
6507         New module 'unicase/u8-totitle'.
6508         * lib/unicase/u8-totitle.c: New file.
6509         * lib/unicase/u-totitle.h: New file.
6510         * modules/unicase/u8-totitle: New file.
6511
6512         Tests for module 'unicase/u32-tolower'.
6513         * modules/unicase/u32-tolower-tests: New file.
6514         * tests/unicase/test-u32-tolower.c: New file.
6515
6516         Tests for module 'unicase/u16-tolower'.
6517         * modules/unicase/u16-tolower-tests: New file.
6518         * tests/unicase/test-u16-tolower.c: New file.
6519
6520         Tests for module 'unicase/u8-tolower'.
6521         * modules/unicase/u8-tolower-tests: New file.
6522         * tests/unicase/test-u8-tolower.c: New file.
6523
6524         New module 'unicase/u32-tolower'.
6525         * lib/unicase/u32-tolower.c: New file.
6526         * modules/unicase/u32-tolower: New file.
6527
6528         New module 'unicase/u16-tolower'.
6529         * lib/unicase/u16-tolower.c: New file.
6530         * modules/unicase/u16-tolower: New file.
6531
6532         New module 'unicase/u8-tolower'.
6533         * lib/unicase/u8-tolower.c: New file.
6534         * modules/unicase/u8-tolower: New file.
6535
6536         Tests for module 'unicase/u32-toupper'.
6537         * modules/unicase/u32-toupper-tests: New file.
6538         * tests/unicase/test-u32-toupper.c: New file.
6539
6540         Tests for module 'unicase/u16-toupper'.
6541         * modules/unicase/u16-toupper-tests: New file.
6542         * tests/unicase/test-u16-toupper.c: New file.
6543
6544         Tests for module 'unicase/u8-toupper'.
6545         * modules/unicase/u8-toupper-tests: New file.
6546         * tests/unicase/test-u8-toupper.c: New file.
6547
6548         New module 'unicase/u32-toupper'.
6549         * lib/unicase/u32-toupper.c: New file.
6550         * modules/unicase/u32-toupper: New file.
6551
6552         New module 'unicase/u16-toupper'.
6553         * lib/unicase/u16-toupper.c: New file.
6554         * modules/unicase/u16-toupper: New file.
6555
6556         New module 'unicase/u8-toupper'.
6557         * lib/unicase/u8-toupper.c: New file.
6558         * modules/unicase/u8-toupper: New file.
6559
6560         New module 'unicase/u32-casemap'.
6561         * lib/unicase/u32-casemap.c: New file.
6562         * modules/unicase/u32-casemap: New file.
6563
6564         New module 'unicase/u16-casemap'.
6565         * lib/unicase/u16-casemap.c: New file.
6566         * modules/unicase/u16-casemap: New file.
6567
6568         New module 'unicase/u8-casemap'.
6569         * lib/unicase/unicasemap.h: New file.
6570         * lib/unicase/u8-casemap.c: New file.
6571         * lib/unicase/u-casemap.h: New file.
6572         * modules/unicase/u8-casemap: New file.
6573
6574         New module 'unicase/special-casing'.
6575         * lib/unicase/special-casing.h: New file.
6576         * lib/unicase/special-casing.c: New file.
6577         * lib/unicase/special-casing-table.gperf: New file, generated by
6578         gen-uni-tables.c.
6579         * modules/unicase/special-casing: New file.
6580
6581         Tests for module 'unicase/locale-language'.
6582         * modules/unicase/locale-language-tests: New file.
6583         * tests/unicase/test-locale-language.sh: New file.
6584         * tests/unicase/test-locale-language.c: New file.
6585
6586         New module 'unicase/locale-language'.
6587         * lib/unicase/locale-language.c: New file.
6588         * lib/unicase/locale-languages.gperf: New file.
6589         * modules/unicase/locale-language: New file.
6590
6591         Generate more tables for case conversion and case folding.
6592         * lib/gen-uni-tables.c (SCC_*): New enum items.
6593         (struct special_casing_rule): New type.
6594         (casing_rules, num_casing_rules, allocated_casing_rules): New
6595         variables.
6596         (add_casing_rule, fill_casing_rules): New functions.
6597         (struct casefold_rule): New type.
6598         (casefolding_rules, num_casefolding_rules,
6599         allocated_casefolding_rules): New variables.
6600         (fill_casefolding_rules): New function.
6601         (unicode_casefold): New variable.
6602         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
6603         sort_casing_rules, output_casing_rules): New functions.
6604         (main): Accept to more arguments: SpecialCasing.txt and
6605         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
6606         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
6607         Output mapping for casefolding.
6608
6609         * lib/unicase.h: Include stdbool.h, uninorm.h.
6610         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
6611         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
6612         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
6613         arguments.
6614         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
6615         resultp arguments.
6616         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
6617         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
6618         resultp arguments.
6619         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
6620         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
6621         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
6622         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
6623         declarations.
6624         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
6625
6626 2009-03-08  Bruno Haible  <bruno@clisp.org>
6627
6628         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6629         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
6630         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
6631         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6632
6633 2009-03-07  Bruno Haible  <bruno@clisp.org>
6634
6635         Adjust u*_normcmp, u*_normcoll API.
6636         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6637         u16_normcoll, u32_normcoll): Change failure conventions.
6638         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
6639         errno and return -1.
6640         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6641
6642 2009-03-07  Bruno Haible  <bruno@clisp.org>
6643
6644         Tests for module 'uninorm/u32-normcoll'.
6645         * modules/uninorm/u32-normcoll-tests: New file.
6646         * tests/uninorm/test-u32-normcoll.c: New file.
6647
6648         Tests for module 'uninorm/u16-normcoll'.
6649         * modules/uninorm/u16-normcoll-tests: New file.
6650         * tests/uninorm/test-u16-normcoll.c: New file.
6651
6652         Tests for module 'uninorm/u8-normcoll'.
6653         * modules/uninorm/u8-normcoll-tests: New file.
6654         * tests/uninorm/test-u8-normcoll.c: New file.
6655
6656 2009-03-07  Bruno Haible  <bruno@clisp.org>
6657
6658         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
6659         tests/uninorm/test-u32-normcmp.c.
6660         * tests/uninorm/test-u32-normcmp.c: Include it.
6661         (test_nonascii): New function, extracted from main. Add some more
6662         tests.
6663         (main): Invoke test_ascii and test_nonascii.
6664         * modules/uninorm/u32-normcmp-tests (Files): Add
6665         tests/uninorm/test-u32-normcmp.h.
6666         (Depends-on): Remove uninorm/u32-normcmp.
6667
6668         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
6669         tests/uninorm/test-u16-normcmp.c.
6670         * tests/uninorm/test-u16-normcmp.c: Include it.
6671         (test_nonascii): New function, extracted from main. Add some more
6672         tests.
6673         (main): Invoke test_ascii and test_nonascii.
6674         * modules/uninorm/u16-normcmp-tests (Files): Add
6675         tests/uninorm/test-u16-normcmp.h.
6676         (Depends-on): Remove uninorm/u16-normcmp.
6677
6678         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
6679         tests/uninorm/test-u8-normcmp.c.
6680         * tests/uninorm/test-u8-normcmp.c: Include it.
6681         (test_nonascii): New function, extracted from main. Add some more
6682         tests.
6683         (main): Invoke test_ascii and test_nonascii.
6684         * modules/uninorm/u8-normcmp-tests (Files): Add
6685         tests/uninorm/test-u8-normcmp.h.
6686         (Depends-on): Remove uninorm/u8-normcmp.
6687
6688 2009-03-07  Bruno Haible  <bruno@clisp.org>
6689
6690         New module 'uninorm/u32-normcoll'.
6691         * lib/uninorm/u32-normcoll.c: New file.
6692         * modules/uninorm/u32-normcoll: New file.
6693
6694         New module 'uninorm/u16-normcoll'.
6695         * lib/uninorm/u16-normcoll.c: New file.
6696         * modules/uninorm/u16-normcoll: New file.
6697
6698         New module 'uninorm/u8-normcoll'.
6699         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
6700         declarations.
6701         * lib/uninorm/u8-normcoll.c: New file.
6702         * lib/uninorm/u-normcoll.h: New file.
6703         * modules/uninorm/u8-normcoll: New file.
6704
6705         New module 'uninorm/u32-normxfrm'.
6706         * lib/uninorm/u32-normxfrm.c: New file.
6707         * modules/uninorm/u32-normxfrm: New file.
6708
6709         New module 'uninorm/u16-normxfrm'.
6710         * lib/uninorm/u16-normxfrm.c: New file.
6711         * modules/uninorm/u16-normxfrm: New file.
6712
6713         New module 'uninorm/u8-normxfrm'.
6714         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
6715         declarations.
6716         * lib/uninorm/u8-normxfrm.c: New file.
6717         * lib/uninorm/u-normxfrm.h: New file.
6718         * modules/uninorm/u8-normxfrm: New file.
6719
6720 2009-03-07  Bruno Haible  <bruno@clisp.org>
6721
6722         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
6723         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
6724         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
6725
6726 2009-03-07  Bruno Haible  <bruno@clisp.org>
6727
6728         New module 'memxfrm'.
6729         * lib/memxfrm.h: New file.
6730         * lib/memxfrm.c: New file.
6731         * modules/memxfrm: New file.
6732
6733 2009-03-07  Bruno Haible  <bruno@clisp.org>
6734
6735         New module 'memcmp2'.
6736         * lib/memcmp2.h: New file.
6737         * lib/memcmp2.c: New file.
6738         * modules/memcmp2: New file.
6739
6740 2009-03-07  Bruno Haible  <bruno@clisp.org>
6741
6742         Tests for module 'uninorm/decomposing-form'.
6743         * modules/uninorm/decomposing-form-tests: New file.
6744         * tests/uninorm/test-decomposing-form.c: New file.
6745
6746         New module 'uninorm/decomposing-form'.
6747         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
6748         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
6749         Add 'decomposing_variant' field.
6750         * lib/uninorm/decomposing-form.c: New file.
6751         * lib/uninorm/nfc.c (uninorm_nfc): Update.
6752         * lib/uninorm/nfd.c (uninorm_nfd): Update.
6753         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
6754         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
6755         * modules/uninorm/decomposing-form: New file.
6756         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
6757         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
6758
6759 2009-03-07  Bruno Haible  <bruno@clisp.org>
6760
6761         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
6762         strings.
6763
6764 2009-03-06  Bruno Haible  <bruno@clisp.org>
6765
6766         Tests for module 'uninorm/u32-normcmp'.
6767         * tests/uninorm/test-u32-normcmp.c: New file.
6768         * modules/uninorm/u32-normcmp-tests: New file.
6769
6770         Tests for module 'uninorm/u16-normcmp'.
6771         * tests/uninorm/test-u16-normcmp.c: New file.
6772         * modules/uninorm/u16-normcmp-tests: New file.
6773
6774         Tests for module 'uninorm/u8-normcmp'.
6775         * tests/uninorm/test-u8-normcmp.c: New file.
6776         * modules/uninorm/u8-normcmp-tests: New file.
6777
6778         New module 'uninorm/u32-normcmp'.
6779         * lib/uninorm/u32-normcmp.c: New file.
6780         * modules/uninorm/u32-normcmp: New file.
6781
6782         New module 'uninorm/u16-normcmp'.
6783         * lib/uninorm/u16-normcmp.c: New file.
6784         * modules/uninorm/u16-normcmp: New file.
6785
6786         New module 'uninorm/u8-normcmp'.
6787         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
6788         declarations.
6789         * lib/uninorm/u8-normcmp.c: New file.
6790         * lib/uninorm/u-normcmp.h: New file.
6791         * modules/uninorm/u8-normcmp: New file.
6792
6793 2009-03-06  Bruno Haible  <bruno@clisp.org>
6794
6795         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
6796         Reported by Eric Blake.
6797
6798 2009-03-06  Eric Blake  <ebb9@byu.net>
6799             Bruno Haible  <bruno@clisp.org>
6800
6801         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
6802         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
6803         condition.
6804         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6805         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
6806         condition.
6807         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6808
6809 2009-03-06  Eric Blake  <ebb9@byu.net>
6810
6811         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
6812         to avoid compiler warnings.
6813         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
6814
6815 2009-03-05  Bruno Haible  <bruno@clisp.org>
6816
6817         * tests/test-ftell.c (main): Disable test beyond end of file on
6818         FreeMiNT.
6819         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6820
6821 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
6822
6823         * lib/filevercmp.c: Move hidden files up in ordering.
6824         * tests/test-filevercmp.c: Add tests for hidden files.
6825
6826 2009-03-04  Bruno Haible  <bruno@clisp.org>
6827
6828         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
6829         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
6830         AM_CFLAGS.
6831         Reported by Simon Josefsson.
6832
6833 2009-03-03  Bruno Haible  <bruno@clisp.org>
6834
6835         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
6836         Reported by Simon Josefsson.
6837
6838         * doc/ld-version-script.texi: Update node reference.
6839
6840 2009-03-03  Bruno Haible  <bruno@clisp.org>
6841
6842         * modules/visibility (License): Change to 'unlimited'.
6843         Suggested by Simon Josefsson.
6844
6845 2009-03-03  Jim Meyering  <meyering@redhat.com>
6846
6847         unlinkdir: cannot_unlink_dir may modify process state
6848         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
6849         it's neither thread-safe nor appropriate for use in a library.
6850
6851 2009-03-03  Eric Blake  <ebb9@byu.net>
6852
6853         test-closein: silence test under Darwin
6854         * tests/test-closein.sh: Ignore stderr from cat, since we don't
6855         care if it dies from EPIPE or EBADF.
6856
6857 2009-03-03  Bruno Haible  <bruno@clisp.org>
6858
6859         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
6860         earlier.
6861         * doc/visibility.texi: Fix @node and @section.
6862
6863 2009-03-03  Simon Josefsson  <simon@josefsson.org>
6864
6865         * doc/gnulib.texi: Link to sections for ld version script and
6866         visibility.
6867         * doc/visibility.texi: Add @node and @section.
6868         * modules/ld-version-script: New module.
6869         * m4/ld-version-script.m4: New file.
6870         * doc/ld-version-script.texi: New file.
6871
6872 2009-03-02  David Lutterkort  <lutter@redhat.com>
6873
6874         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
6875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6876
6877 2009-03-02  Bruno Haible  <bruno@clisp.org>
6878
6879         * doc/visibility.texi: Mention libtool's -export-symbols option.
6880
6881 2009-03-02  Jim Meyering  <meyering@redhat.com>
6882
6883         announce-gen: new option: --no-print-checksums
6884         * build-aux/announce-gen (usage): Describe it.
6885         (print_checksums): Print a newline here, not in the [*] footnote.
6886         (main): Honor it.
6887
6888 2009-03-01  Bruno Haible  <bruno@clisp.org>
6889
6890         Use socklen_t in the native Windows replacements prototypes.
6891         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
6892         instead of 'int'.
6893         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6894         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6895         * modules/getsockopt (Depends-on): Add socklen.
6896         * modules/setsockopt (Depends-on): Add socklen.
6897
6898 2009-03-01  Bruno Haible  <bruno@clisp.org>
6899
6900         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
6901         least 4.2.
6902
6903 2009-03-01  Eric Blake  <ebb9@byu.net>
6904             Bruno Haible  <bruno@clisp.org>
6905
6906         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
6907         error messages.
6908         * lib/wait-process.c (wait_subprocess): Omit error message about
6909         deadly signal sent to the child of termsigp != NULL.
6910
6911 2009-03-01  Eric Blake  <ebb9@byu.net>
6912
6913         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
6914
6915 2009-03-01  Bruno Haible  <bruno@clisp.org>
6916
6917         Avoid a gcc warning.
6918         * tests/test-sched.c (b): Make global.
6919         Reported by Eric Blake.
6920
6921 2009-01-19  Martin Lambers  <marlam@marlam.de>
6922
6923         Provide POSIX semantics for socket timeout options on W32.
6924         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
6925         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
6926         * modules/setsockopt: Depend on sys_time module for struct timeval.
6927         * modules/getsockopt: Depend on sys_time module for struct timeval.
6928
6929 2009-03-01  Simon Josefsson  <simon@josefsson.org>
6930
6931         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
6932         __USE_GNU, for consistency with netdb.in.h.
6933         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6934
6935 2009-03-01  Bruno Haible  <bruno@clisp.org>
6936
6937         More support for FreeMiNT.
6938         * lib/fseeko.c (rpl_fseeko): Complete last commit.
6939         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6940
6941 2009-03-01  Bruno Haible  <bruno@clisp.org>
6942
6943         More support for FreeMiNT.
6944         * lib/fpurge.c (fpurge): Correct last commit.
6945         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6946
6947 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6948
6949         Fix unportable awk script in vc-list-files.
6950         * build-aux/vc-list-files: In the replacement awk script, use
6951         substr with a second argument of 1, not zero.
6952         Report by Simon Josefsson.
6953
6954 2009-02-28  Bruno Haible  <bruno@clisp.org>
6955
6956         More support for FreeMiNT.
6957         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
6958         to FreeMiNT today.
6959         * lib/fwriting.c (fwriting): Likewise.
6960         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
6961
6962 2009-02-28  Bruno Haible  <bruno@clisp.org>
6963
6964         * tests/test-freadseek.c (main): Disable test beyond end of file on
6965         FreeMiNT.
6966         * tests/test-ftello.c (main): Likewise.
6967         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6968
6969 2009-02-28  Bruno Haible  <bruno@clisp.org>
6970
6971         Add tentative support for FreeMiNT.
6972         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
6973         * lib/fpurge.c (fpurge): Likewise.
6974         * lib/freadable.c (freadable): Likewise.
6975         * lib/freading.c (freading): Likewise.
6976         * lib/freadptr.c (freadptr): Likewise.
6977         * lib/freadseek.c (freadptrinc): Likewise.
6978         * lib/fseeko.c (rpl_fseeko): Likewise.
6979         * lib/fseterr.c (fseterr): Likewise.
6980         * lib/fwritable.c (fwritable): Likewise.
6981         * lib/fwriting.c (fwriting): Likewise.
6982         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
6983         Hourihane.
6984         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6985
6986 2009-02-28  Bruno Haible  <bruno@clisp.org>
6987
6988         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
6989         SIGCHLD.
6990         Reported by Jim Meyering.
6991
6992 2009-02-28  Bruno Haible  <bruno@clisp.org>
6993
6994         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
6995         Mention the results of these tests on various platforms.
6996         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
6997         order.
6998         * doc/posix-functions/printf.texi: Likewise.
6999         * doc/posix-functions/snprintf.texi: Likewise.
7000         * doc/posix-functions/sprintf.texi: Likewise.
7001         * doc/posix-functions/vfprintf.texi: Likewise.
7002         * doc/posix-functions/vprintf.texi: Likewise.
7003         * doc/posix-functions/vsnprintf.texi: Likewise.
7004         * doc/posix-functions/vsprintf.texi: Likewise.
7005         * doc/glibc-functions/obstack_printf.texi: Likewise.
7006         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7007
7008 2009-02-28  Bruno Haible  <bruno@clisp.org>
7009
7010         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
7011         Reported by Loïc Minier <lool@dooz.org>.
7012
7013 2009-02-27  Bruno Haible  <bruno@clisp.org>
7014
7015         * gnulib-tool (func_import): Make the sed expression used to create the
7016         sed script for updating the .gitignore file POSIX compliant.
7017         Reported by Eric Blake.
7018
7019 2009-02-27  Bruno Haible  <bruno@clisp.org>
7020
7021         * gnulib-tool (sed): Don't alias as "sed --posix".
7022         Reported by Eric Blake.
7023
7024 2009-02-27  Bruno Haible  <bruno@clisp.org>
7025
7026         Avoid test link errors.
7027         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
7028         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
7029         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
7030         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
7031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7032
7033 2009-02-27  Bruno Haible  <bruno@clisp.org>
7034
7035         Avoid spurious "(cached)" in configure output.
7036         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
7037         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
7038         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7039         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7040         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7041         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
7042         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7043         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
7044         Reported by Eric Blake.
7045
7046 2009-02-27  Eric Blake  <ebb9@byu.net>
7047
7048         printf: fix regression in previous patch
7049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
7050
7051 2009-02-27  Bruno Haible  <bruno@clisp.org>
7052
7053         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
7054         value.
7055         * lib/stdint.in.h: Likewise.
7056         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
7057
7058 2009-02-27  Eric Blake  <ebb9@byu.net>
7059
7060         doc: mention more functions added in cygwin 1.7.0
7061         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
7062         addition.
7063         * doc/posix-functions/open_wmemstream.texi: Likewise.
7064         * doc/posix-functions/wcsnlen.texi: Likewise.
7065         * doc/posix-functions/wcsnrtombs.texi: Likewise.
7066         * doc/posix-functions/wcstod.texi: Likewise.
7067         * doc/posix-functions/wcstof.texi: Likewise.
7068         * doc/posix-functions/wcstoimax.texi: Likewise.
7069         * doc/posix-functions/wcstok.texi: Likewise.
7070         * doc/posix-functions/wcstoumax.texi: Likewise.
7071
7072         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
7073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
7074         * doc/posix-functions/fprintf.texi: Update.
7075         * doc/posix-functions/printf.texi: Update.
7076         * doc/posix-functions/snprintf.texi: Update.
7077         * doc/posix-functions/sprintf.texi: Update.
7078         * doc/posix-functions/vfprintf.texi: Update.
7079         * doc/posix-functions/vprintf.texi: Update.
7080         * doc/posix-functions/vsnprintf.texi: Update.
7081         * doc/posix-functions/vsprintf.texi: Update.
7082         * doc/glibc-functions/obstack_printf.texi: Update.
7083         * doc/glibc-functions/obstack_vprintf.texi: Update.
7084
7085 2009-02-26  Eric Blake  <ebb9@byu.net>
7086
7087         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
7088         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
7089         compilation bug by using runtime conversion.
7090         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7091         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
7092         * modules/ceill-tests (Files): Use nan.h.
7093         * modules/floorl-tests (Files): Likewise.
7094         * modules/frexpl-tests (Files): Likewise.
7095         * modules/isnanl-tests (Files): Likewise.
7096         * modules/ldexpl-tests (Files): Likewise.
7097         * modules/roundl-tests (Files): Likewise.
7098         * modules/truncl-tests (Files): Likewise.
7099         * tests/test-ceill.c (main): Use a working NaN.
7100         * tests/test-floorl.c (main): Likewise.
7101         * tests/test-frexpl.c (main): Likewise.
7102         * tests/test-isnan.c (test_long_double): Likewise.
7103         * tests/test-isnanl.h (main): Likewise.
7104         * tests/test-ldexpl.h (main): Likewise.
7105         * tests/test-roundl.h (main): Likewise.
7106         * tests/test-truncl.h (main): Likewise.
7107         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
7108
7109 2009-02-26  Eric Blake  <ebb9@byu.net>
7110             Bruno Haible  <bruno@clisp.org>
7111
7112         Work around a *printf bug with %ls on Solaris.
7113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
7114         precision is specified, sprintf stops converting the wide string
7115         argument when the number of bytes that have been produced by this
7116         conversion equals or exceeds the precision.
7117         * doc/posix-functions/fprintf.texi: Update.
7118         * doc/posix-functions/printf.texi: Update.
7119         * doc/posix-functions/snprintf.texi: Update.
7120         * doc/posix-functions/sprintf.texi: Update.
7121         * doc/posix-functions/vfprintf.texi: Update.
7122         * doc/posix-functions/vprintf.texi: Update.
7123         * doc/posix-functions/vsnprintf.texi: Update.
7124         * doc/posix-functions/vsprintf.texi: Update.
7125         * doc/glibc-functions/obstack_printf.texi: Update.
7126         * doc/glibc-functions/obstack_vprintf.texi: Update.
7127
7128 2009-02-26  Eric Blake  <ebb9@byu.net>
7129
7130         stdlib: favor compiler check of random.h
7131         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
7132         to avoid an ObjC random.h installed by Swarm.
7133
7134 2009-02-26  Bruno Haible  <bruno@clisp.org>
7135
7136         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
7137         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
7138         Reported by Gary V. Vaughan <gary@gnu.org>.
7139
7140 2009-02-26  Bruno Haible  <bruno@clisp.org>
7141
7142         Fix *printf behaviour regarding the %ls directive.
7143         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
7144         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
7145         NEED_PRINTF_DIRECTIVE_LS.
7146         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
7147         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7149         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
7150         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
7151         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
7152         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
7153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7155         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7157         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
7158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7161         * doc/posix-functions/fprintf.texi: Update.
7162         * doc/posix-functions/printf.texi: Update.
7163         * doc/posix-functions/snprintf.texi: Update.
7164         * doc/posix-functions/sprintf.texi: Update.
7165         * doc/posix-functions/vfprintf.texi: Update.
7166         * doc/posix-functions/vprintf.texi: Update.
7167         * doc/posix-functions/vsnprintf.texi: Update.
7168         * doc/posix-functions/vsprintf.texi: Update.
7169         * doc/glibc-functions/obstack_printf.texi: Update.
7170         * doc/glibc-functions/obstack_vprintf.texi: Update.
7171         Reported by Eric Blake.
7172
7173 2009-02-25  Bruno Haible  <bruno@clisp.org>
7174
7175         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
7176         with known value.
7177         Reported by Gary V. Vaughan <gary@gnu.org>.
7178
7179 2009-02-25  Bruno Haible  <bruno@clisp.org>
7180
7181         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
7182         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
7183         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
7184         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
7185         Reported by Gary V. Vaughan <gary@gnu.org>.
7186
7187 2009-02-25  Bruno Haible  <bruno@clisp.org>
7188
7189         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
7190         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
7191         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
7192         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
7193         Reported by Gary V. Vaughan <gary@gnu.org>.
7194
7195 2009-02-25  Eric Blake  <ebb9@byu.net>
7196
7197         tests: skip fseek/ftell tests if ungetc is broken
7198         * m4/ungetc.m4: New file.
7199         * modules/fseek-tests: Split test, so ungetc dependency is
7200         separate from rest of test.
7201         * modules/fseeko-tests: Likewise.
7202         * modules/ftell-tests: Likewise.
7203         * modules/ftello-tests: Likewise.
7204         * tests/test-fseek.c (main): Isolate ungetc dependency.
7205         * tests/test-fseeko.c (main): Likewise.
7206         * tests/test-ftell.c (main): Likewise.
7207         * tests/test-ftello.c (main): Likewise.
7208         * tests/test-fseek2.sh: New file.
7209         * tests/test-fseeko2.sh: Likewise.
7210         * tests/test-ftell2.sh: Likewise.
7211         * tests/test-ftello2.sh: Likewise.
7212
7213 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
7214
7215         test-getaddrinfo: fix usage of skip return code 77
7216         * tests/test-gettaddrinfo.c: Return skip code 77 only
7217         for first occurance of skip (4x77 is not 77)
7218
7219 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
7220
7221         strtod: avoid C99 decl-after-statement
7222         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
7223
7224 2009-02-24  Eric Blake  <ebb9@byu.net>
7225
7226         strtod: detect HP-UX 11.31 bug
7227         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
7228         Reported by Gary V. Vaughan.
7229
7230 2009-02-23  Bruno Haible  <bruno@clisp.org>
7231
7232         Fix invalid read past end of memory block.
7233         * lib/vasnprintf.c (DCHAR_SET): Define.
7234         (local_wcslen): Define only when needed.
7235         (local_strnlen, local_wcsnlen): New functions.
7236         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
7237         directives that involve a conversion ourselves.
7238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
7239         wcsnlen, mbrtowc, wcrtomb.
7240         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
7241         * tests/test-vasprintf-posix.c (test_function): Likewise.
7242         * tests/test-snprintf-posix.h (test_function): Likewise.
7243         * tests/test-sprintf-posix.h (test_function): Likewise.
7244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7245
7246 2009-02-22  Bruno Haible  <bruno@clisp.org>
7247
7248         Implement new clarified decomposition of Hangul syllables.
7249         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
7250         of type LTV, return only a pairwise decomposition.
7251         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
7252         Likewise.
7253         * tests/uninorm/test-decomposition.c (main): Updated expected result.
7254         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
7255         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
7256
7257 2009-02-22  Bruno Haible  <bruno@clisp.org>
7258
7259         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
7260         zero-length results and shrink excess allocated memory.
7261         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
7262         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
7263         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
7264         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
7265         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
7266         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
7267         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
7268         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
7269         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
7270         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
7271         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
7272         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
7273
7274 2009-02-21  Bruno Haible  <bruno@clisp.org>
7275
7276         * doc/gnulib.texi: Include safe-alloc.texi earlier.
7277         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
7278         spaces after a period. Put a space between a macro name and its
7279         argument list. Trivial rewordings.
7280         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
7281         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
7282         (main): Return 0 explicitly.
7283
7284 2009-02-21  Bruno Haible  <bruno@clisp.org>
7285
7286         Tests for module 'uninorm/filter'.
7287         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
7288         * modules/uninorm/filter-tests: New file.
7289
7290         New module 'uninorm/filter'.
7291         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
7292         uninorm_filter_flush, uninorm_filter_free): New declarations.
7293         * lib/uninorm/uninorm-filter.c: New file.
7294         * modules/uninorm/filter: New file.
7295
7296 2009-02-21  Bruno Haible  <bruno@clisp.org>
7297
7298         Tests for module 'uninorm/nfkc'.
7299         * tests/uninorm/test-nfkc.c: New file.
7300         * tests/uninorm/test-u8-nfkc.c: New file.
7301         * tests/uninorm/test-u16-nfkc.c: New file.
7302         * tests/uninorm/test-u32-nfkc.c: New file.
7303         * tests/uninorm/test-u32-nfkc-big.sh: New file.
7304         * tests/uninorm/test-u32-nfkc-big.c: New file.
7305         * modules/uninorm/nfkc-tests: New file.
7306
7307         New module 'uninorm/nfkc'.
7308         * lib/uninorm/nfkc.c: New file.
7309         * modules/uninorm/nfkc: New file.
7310
7311         Tests for module 'uninorm/nfkd'.
7312         * tests/uninorm/test-nfkd.c: New file.
7313         * tests/uninorm/test-u8-nfkd.c: New file.
7314         * tests/uninorm/test-u16-nfkd.c: New file.
7315         * tests/uninorm/test-u32-nfkd.c: New file.
7316         * tests/uninorm/test-u32-nfkd-big.sh: New file.
7317         * tests/uninorm/test-u32-nfkd-big.c: New file.
7318         * modules/uninorm/nfkd-tests: New file.
7319
7320         New module 'uninorm/nfkd'.
7321         * lib/uninorm/nfkd.c: New file.
7322         * modules/uninorm/nfkd: New file.
7323
7324         Tests for module 'uninorm/nfc'.
7325         * tests/uninorm/test-nfc.c: New file.
7326         * tests/uninorm/test-u8-nfc.c: New file.
7327         * tests/uninorm/test-u16-nfc.c: New file.
7328         * tests/uninorm/test-u32-nfc.c: New file.
7329         * tests/uninorm/test-u32-nfc-big.sh: New file.
7330         * tests/uninorm/test-u32-nfc-big.c: New file.
7331         * modules/uninorm/nfc-tests: New file.
7332
7333         New module 'uninorm/nfc'.
7334         * lib/uninorm/nfc.c: New file.
7335         * modules/uninorm/nfc: New file.
7336
7337         Tests for module 'uninorm/nfd'.
7338         * tests/uninorm/test-nfd.c: New file.
7339         * tests/uninorm/test-u8-nfd.c: New file.
7340         * tests/uninorm/test-u16-nfd.c: New file.
7341         * tests/uninorm/test-u32-nfd.c: New file.
7342         * tests/uninorm/test-u32-nfd-big.sh: New file.
7343         * tests/uninorm/test-u32-nfd-big.c: New file.
7344         * tests/uninorm/test-u32-normalize-big.h: New file.
7345         * tests/uninorm/test-u32-normalize-big.c: New file.
7346         * tests/uninorm/NormalizationTest.txt: New file, created from
7347         Unicode 5.1.0 NormalizationTest.txt.
7348         * modules/uninorm/nfd-tests: New file.
7349
7350         New module 'uninorm/nfd'.
7351         * lib/uninorm/nfd.c: New file.
7352         * modules/uninorm/nfd: New file.
7353
7354         New module 'uninorm/u32-normalize'.
7355         * lib/uninorm/u32-normalize.c: New file.
7356         * modules/uninorm/u32-normalize: New file.
7357
7358         New module 'uninorm/u16-normalize'.
7359         * lib/uninorm/u16-normalize.c: New file.
7360         * modules/uninorm/u16-normalize: New file.
7361
7362         New module 'uninorm/u8-normalize'.
7363         * lib/uninorm/u8-normalize.c: New file.
7364         * lib/uninorm/normalize-internal.h: New file.
7365         * lib/uninorm/u-normalize-internal.h: New file.
7366         * modules/uninorm/u8-normalize: New file.
7367
7368         New module 'uninorm/decompose-internal'.
7369         * lib/uninorm/decompose-internal.c: New file.
7370         * modules/uninorm/decompose-internal: New file.
7371
7372         Tests for module 'uninorm/composition'.
7373         * tests/uninorm/test-composition.c: New file.
7374         * modules/uninorm/composition-tests: New file.
7375
7376         New module 'uninorm/composition'.
7377         * lib/uninorm/composition.c: New file.
7378         * lib/uninorm/composition-table.gperf: New file, generated by
7379         gen-uni-tables.
7380         * modules/uninorm/composition: New file.
7381
7382         Tests for module 'uninorm/compat-decomposition'.
7383         * tests/uninorm/test-compat-decomposition.c: New file.
7384         * modules/uninorm/compat-decomposition-tests: New file.
7385
7386         New module 'uninorm/compat-decomposition'.
7387         * lib/uninorm/decompose-internal.h: New file.
7388         * lib/uninorm/compat-decomposition.c: New file.
7389         * modules/uninorm/compat-decomposition: New file.
7390
7391         Tests for module 'uninorm/canonical-decomposition'.
7392         * tests/uninorm/test-canonical-decomposition.c: New file.
7393         * modules/uninorm/canonical-decomposition-tests: New file.
7394
7395         New module 'uninorm/canonical-decomposition'.
7396         * lib/uninorm/canonical-decomposition.c: New file.
7397         * modules/uninorm/canonical-decomposition: New file.
7398
7399         Tests for module 'uninorm/decomposition'.
7400         * tests/uninorm/test-decomposition.c: New file.
7401         * modules/uninorm/decomposition-tests: New file.
7402
7403         New module 'uninorm/decomposition'.
7404         * lib/uninorm/decomposition.c: New file.
7405         * modules/uninorm/decomposition: New file.
7406
7407         New module 'uninorm/decomposition-table'.
7408         * lib/uninorm/decomposition-table.h: New file.
7409         * lib/uninorm/decomposition-table.c: New file.
7410         * lib/uninorm/decomposition-table1.h: New file, generated by
7411         gen-uni-tables.
7412         * lib/uninorm/decomposition-table2.h: New file, generated by
7413         gen-uni-tables.
7414         * modules/uninorm/decomposition-table: New file.
7415
7416         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
7417         (UC_DECOMP_*): New enumeration items.
7418         (get_decomposition): New function.
7419         (struct decomp_table): New type.
7420         (output_decomposition, output_decomposition_tables): New functions.
7421         (unicode_composition_exclusions): New variable.
7422         (fill_composition_exclusions, debug_output_composition_tables): New
7423         functions.
7424         (main): Accept one more argument. Invoke fill_composition_exclusions.
7425         Output decomposition and composition tables.
7426
7427         New module 'uninorm/base'.
7428         * lib/uninorm.h: New file.
7429         * lib/unictype.h: Update comment.
7430         * modules/uninorm/base: New file.
7431
7432 2009-02-21  David Lutterkort  <lutter@redhat.com>
7433
7434         Tests for module 'safe-alloc'.
7435         * tests/test-safe-alloc.c: New file.
7436         * modules/safe-alloc-tests: New file.
7437
7438         New module 'safe-alloc'.
7439         * lib/safe-alloc.h: New file.
7440         * lib/safe-alloc.c: New file.
7441         * m4/safe-alloc.m4: New file.
7442         * modules/safe-alloc: New file.
7443         * doc/safe-alloc.texi: New file.
7444         * doc/gnulib.texi: Include it.
7445         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7446         safe-alloc.
7447
7448 2009-02-18  Bruno Haible  <bruno@clisp.org>
7449
7450         Fix link error on non-glibc systems.
7451         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
7452         variable.
7453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7454
7455 2009-02-18  Jim Meyering  <meyering@redhat.com>
7456
7457         fts: avoid used-uninitialized error due to recent change
7458         * lib/fts.c (fts_read): Guard uses of the new member,
7459         parent->fts_n_dirs_remaining, since it's not relevant for
7460         the parent of a directory specified on the command-line.
7461
7462 2009-02-17  James Youngman  <jay@gnu.org>
7463             Bruno Haible  <bruno@clisp.org>
7464
7465         * m4/include_next.m4: Reformulate comment.
7466
7467 2009-02-16  Jim Meyering  <meyering@redhat.com>
7468
7469         fts: add #if guards so that the fts_lgpl module still builds
7470         * lib/fts.c: Guard just-added hash-table-using parts with
7471         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
7472         Reported by Simon Josefsson.
7473
7474 2009-02-15  Bruno Haible  <bruno@clisp.org>
7475
7476         * modules/array-mergesort-tests: New file.
7477         * tests/test-array-mergesort.c: New file.
7478
7479         New module 'array-mergesort'.
7480         * modules/array-mergesort: New file.
7481         * lib/array-mergesort.h: New file.
7482
7483 2009-02-15  Bruno Haible  <bruno@clisp.org>
7484
7485         Fix 2009-02-07 commit.
7486         * lib/gen-uni-tables.c (output_predicate, output_category,
7487         output_combclass, output_bidi_category, output_decimal_digit,
7488         output_digit, output_numeric, output_mirror, output_scripts,
7489         output_ident_category, output_simple_mapping): Fix format directives.
7490         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
7491
7492 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
7493
7494         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
7495         fixes are available from IBM.
7496
7497 2009-02-13  Jim Meyering  <meyering@redhat.com>
7498
7499         fts: arrange not to stat non-directories in more cases
7500         This makes GNU find (when it doesn't need to stat each file)
7501         *much* more efficient at traversing reiserfs file systems.
7502         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
7503         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
7504         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
7505         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
7506         (leaf_optimization_applies): New function.
7507         (LCO_hash, LCO_compare): New helper functions.
7508         (link_count_optimize_ok): New function.
7509         (fts_stat): Initialize new member (if dir).
7510         (fts_read): Decrement parent's fts_n_dirs_remaining count if
7511         we've just stat'ed a directory.  Skip the stat call when possible.
7512         ---
7513         Note this AFS-related exchange:
7514         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
7515         and note find's pioctl call in find/fstype.c.
7516         But that is necessary only if you want to enable the
7517         optimization for AFS, and for now, I don't.
7518
7519         fts: move a function definition "up" (no semantic change)
7520         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
7521         "up" to precede upcoming use of a related function.
7522
7523 2009-02-11  Jim Meyering  <meyering@redhat.com>
7524
7525         fts: correct internal computation of nlinks (optimization-related)
7526         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
7527         whether the current entry is a directory, so don't test it.
7528
7529 2009-02-10  Bruno Haible  <bruno@clisp.org>
7530
7531         Tests for module 'uniwbrk/ulc-wordbreaks'.
7532         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
7533         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
7534         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
7535
7536         Tests for module 'uniwbrk/u32-wordbreaks'.
7537         * modules/uniwbrk/u32-wordbreaks-tests: New file.
7538         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
7539
7540         Tests for module 'uniwbrk/u16-wordbreaks'.
7541         * modules/uniwbrk/u16-wordbreaks-tests: New file.
7542         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
7543
7544         Tests for module 'uniwbrk/u8-wordbreaks'.
7545         * modules/uniwbrk/u8-wordbreaks-tests: New file.
7546         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
7547
7548 2009-02-10  Bruno Haible  <bruno@clisp.org>
7549
7550         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
7551         property.
7552         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
7553         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
7554         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
7555
7556 2009-02-10  Simon Josefsson  <simon@josefsson.org>
7557
7558         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
7559         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
7560
7561 2009-02-10  Bruno Haible  <bruno@clisp.org>
7562
7563         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
7564         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
7565         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
7566         * lib/unilbrk/u8-possible-linebreaks.c: Update.
7567         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
7568         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
7569
7570 2009-02-09  Simon Josefsson  <simon@josefsson.org>
7571
7572         * lib/sockets.h (gl_fd_to_handle): New function.
7573
7574         * tests/test-sockets.c: Call gl_fd_to_handle.
7575
7576 2009-02-09  Bruno Haible  <bruno@clisp.org>
7577
7578         * doc/havelib.texi: Document the conventions on bi-arch systems.
7579
7580 2009-02-08  Bruno Haible  <bruno@clisp.org>
7581
7582         Document the AC_LIB_LINKFLAGS macro.
7583         * doc/havelib.texi: New file, mostly written on 2005-05-24.
7584         * doc/gnulib.texi: Include it.
7585
7586 2009-02-08  Bruno Haible  <bruno@clisp.org>
7587
7588         Fix wrong order of sections, compared to TOC.
7589         * doc/gnulib.texi: Include relocatable-maint.texi after the
7590         "Regular expressions" node, not before.
7591
7592 2009-02-08  Bruno Haible  <bruno@clisp.org>
7593
7594         Tests for module 'unicase/totitle'.
7595         * modules/unicase/totitle-tests: New file.
7596
7597         Tests for module 'unicase/tolower'.
7598         * modules/unicase/tolower-tests: New file.
7599
7600         Tests for module 'unicase/toupper'.
7601         * modules/unicase/toupper-tests: New file.
7602         * tests/unicase/test-mapping-part1.h: New file.
7603         * tests/unicase/test-mapping-part2.h: New file.
7604
7605         New module 'unicase/totitle'.
7606         * modules/unicase/totitle: New file.
7607         * lib/unicase/totitle.c: New file.
7608
7609         New module 'unicase/tolower'.
7610         * modules/unicase/tolower: New file.
7611         * lib/unicase/tolower.c: New file.
7612
7613         New module 'unicase/toupper'.
7614         * modules/unicase/toupper: New file.
7615         * lib/unicase/toupper.c: New file.
7616         * lib/unicase/simple-mapping.h: New file.
7617
7618         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
7619         (mapping_table): New structure.
7620         (output_simple_mapping): New function.
7621         (main): Invoke output_simple_mapping_test and output_simple_mapping.
7622         * modules/gen-uni-tables (Description): Update.
7623         * lib/unicase/toupper.h: New file, automatically generated by
7624         gen-uni-tables.
7625         * lib/unicase/tolower.h: New file, automatically generated by
7626         gen-uni-tables.
7627         * lib/unicase/totitle.h: New file, automatically generated by
7628         gen-uni-tables.
7629         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
7630         gen-uni-tables.
7631         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
7632         gen-uni-tables.
7633         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
7634         gen-uni-tables.
7635
7636         New module 'unicase/base'.
7637         * modules/unicase/base: New file.
7638         * lib/unicase.h: New file.
7639
7640 2009-02-08  Bruno Haible  <bruno@clisp.org>
7641
7642         New module 'uniwbrk/ulc-wordbreaks'.
7643         * modules/uniwbrk/ulc-wordbreaks: New file.
7644         * lib/uniwbrk/ulc-wordbreaks.c: New file.
7645
7646         New module 'uniwbrk/u32-wordbreaks'.
7647         * modules/uniwbrk/u32-wordbreaks: New file.
7648         * lib/uniwbrk/u32-wordbreaks.c: New file.
7649
7650         New module 'uniwbrk/u16-wordbreaks'.
7651         * modules/uniwbrk/u16-wordbreaks: New file.
7652         * lib/uniwbrk/u16-wordbreaks.c: New file.
7653
7654         New module 'uniwbrk/u8-wordbreaks'.
7655         * modules/uniwbrk/u8-wordbreaks: New file.
7656         * lib/uniwbrk/u8-wordbreaks.c: New file.
7657         * lib/uniwbrk/u-wordbreaks.h: New file.
7658
7659         New module 'uniwbrk/table'.
7660         * modules/uniwbrk/table: New file.
7661         * lib/uniwbrk/wbrktable.h: New file.
7662         * lib/uniwbrk/wbrktable.c: New file.
7663
7664         New module 'uniwbrk/wordbreak-property'.
7665         * modules/uniwbrk/wordbreak-property: New file.
7666         * lib/uniwbrk/wordbreak-property.c: New file.
7667
7668         * lib/gen-uni-tables.c (WBP_*): New enum items.
7669         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
7670         (unicode_org_wbp): New variable.
7671         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
7672         New functions.
7673         (wbp_table): New structure.
7674         (output_wbp, output_wbrk_tables): New functions.
7675         (main): Accept additional argument. Invoke fill_org_wbp,
7676         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
7677         output_wbrk_tables.
7678         * modules/gen-uni-tables (Description): Update.
7679         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
7680         gen-uni-tables.
7681
7682         New module 'uniwbrk/base'.
7683         * modules/uniwbrk/base: New file.
7684         * lib/uniwbrk.h: New file.
7685
7686 2009-02-08  Bruno Haible  <bruno@clisp.org>
7687
7688         Update to Unicode 5.1.0.
7689         * lib/gen-uni-tables.c (is_property_alphabetic): Include
7690         U+2185..U+2188.
7691         (is_property_default_ignorable_code_point): Don't include characters
7692         of category Cc or Cs and not-a-characters.
7693         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
7694         U+0D79, U+109E, U+109F, U+A60C.
7695         * lib/unictype/bidi_of.h: Regenerated.
7696         * lib/unictype/blocks.h: Regenerated.
7697         * lib/unictype/categ_C.h: Regenerated.
7698         * lib/unictype/categ_Cf.h: Regenerated.
7699         * lib/unictype/categ_Cn.h: Regenerated.
7700         * lib/unictype/categ_L.h: Regenerated.
7701         * lib/unictype/categ_Ll.h: Regenerated.
7702         * lib/unictype/categ_Lm.h: Regenerated.
7703         * lib/unictype/categ_Lo.h: Regenerated.
7704         * lib/unictype/categ_Lu.h: Regenerated.
7705         * lib/unictype/categ_M.h: Regenerated.
7706         * lib/unictype/categ_Mc.h: Regenerated.
7707         * lib/unictype/categ_Me.h: Regenerated.
7708         * lib/unictype/categ_Mn.h: Regenerated.
7709         * lib/unictype/categ_N.h: Regenerated.
7710         * lib/unictype/categ_Nd.h: Regenerated.
7711         * lib/unictype/categ_Nl.h: Regenerated.
7712         * lib/unictype/categ_No.h: Regenerated.
7713         * lib/unictype/categ_P.h: Regenerated.
7714         * lib/unictype/categ_Pd.h: Regenerated.
7715         * lib/unictype/categ_Pe.h: Regenerated.
7716         * lib/unictype/categ_Pf.h: Regenerated.
7717         * lib/unictype/categ_Pi.h: Regenerated.
7718         * lib/unictype/categ_Po.h: Regenerated.
7719         * lib/unictype/categ_Ps.h: Regenerated.
7720         * lib/unictype/categ_S.h: Regenerated.
7721         * lib/unictype/categ_Sk.h: Regenerated.
7722         * lib/unictype/categ_Sm.h: Regenerated.
7723         * lib/unictype/categ_So.h: Regenerated.
7724         * lib/unictype/categ_of.h: Regenerated.
7725         * lib/unictype/combining.h: Regenerated.
7726         * lib/unictype/ctype_alnum.h: Regenerated.
7727         * lib/unictype/ctype_alpha.h: Regenerated.
7728         * lib/unictype/ctype_graph.h: Regenerated.
7729         * lib/unictype/ctype_lower.h: Regenerated.
7730         * lib/unictype/ctype_print.h: Regenerated.
7731         * lib/unictype/ctype_punct.h: Regenerated.
7732         * lib/unictype/ctype_upper.h: Regenerated.
7733         * lib/unictype/decdigit.h: Regenerated.
7734         * lib/unictype/digit.h: Regenerated.
7735         * lib/unictype/mirror.h: Regenerated.
7736         * lib/unictype/numeric.h: Regenerated.
7737         * lib/unictype/pr_alphabetic.h: Regenerated.
7738         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
7739         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
7740         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
7741         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
7742         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
7743         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
7744         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
7745         * lib/unictype/pr_combining.h: Regenerated.
7746         * lib/unictype/pr_dash.h: Regenerated.
7747         * lib/unictype/pr_decimal_digit.h: Regenerated.
7748         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
7749         * lib/unictype/pr_deprecated.h: Regenerated.
7750         * lib/unictype/pr_diacritic.h: Regenerated.
7751         * lib/unictype/pr_extender.h: Regenerated.
7752         * lib/unictype/pr_format_control.h: Regenerated.
7753         * lib/unictype/pr_grapheme_base.h: Regenerated.
7754         * lib/unictype/pr_grapheme_extend.h: Regenerated.
7755         * lib/unictype/pr_grapheme_link.h: Regenerated.
7756         * lib/unictype/pr_id_continue.h: Regenerated.
7757         * lib/unictype/pr_id_start.h: Regenerated.
7758         * lib/unictype/pr_ideographic.h: Regenerated.
7759         * lib/unictype/pr_ignorable_control.h: Regenerated.
7760         * lib/unictype/pr_lowercase.h: Regenerated.
7761         * lib/unictype/pr_math.h: Regenerated.
7762         * lib/unictype/pr_numeric.h: Regenerated.
7763         * lib/unictype/pr_other_alphabetic.h: Regenerated.
7764         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
7765         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
7766         * lib/unictype/pr_other_id_continue.h: Regenerated.
7767         * lib/unictype/pr_other_lowercase.h: Regenerated.
7768         * lib/unictype/pr_other_math.h: Regenerated.
7769         * lib/unictype/pr_punctuation.h: Regenerated.
7770         * lib/unictype/pr_sentence_terminal.h: Regenerated.
7771         * lib/unictype/pr_soft_dotted.h: Regenerated.
7772         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
7773         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
7774         * lib/unictype/pr_unified_ideograph.h: Regenerated.
7775         * lib/unictype/pr_uppercase.h: Regenerated.
7776         * lib/unictype/pr_xid_continue.h: Regenerated.
7777         * lib/unictype/pr_xid_start.h: Regenerated.
7778         * lib/unictype/pr_zero_width.h: Regenerated.
7779         * lib/unictype/scripts.h: Regenerated.
7780         * lib/unictype/scripts_byname.gperf: Regenerated.
7781         * lib/unictype/sy_java_ident.h: Regenerated.
7782         * lib/unilbrk/lbrkprop1.h: Regenerated.
7783         * lib/unilbrk/lbrkprop2.h: Regenerated.
7784         * tests/unictype/test-categ_C.c: Regenerated.
7785         * tests/unictype/test-categ_Cf.c: Regenerated.
7786         * tests/unictype/test-categ_Cn.c: Regenerated.
7787         * tests/unictype/test-categ_L.c: Regenerated.
7788         * tests/unictype/test-categ_Ll.c: Regenerated.
7789         * tests/unictype/test-categ_Lm.c: Regenerated.
7790         * tests/unictype/test-categ_Lo.c: Regenerated.
7791         * tests/unictype/test-categ_Lu.c: Regenerated.
7792         * tests/unictype/test-categ_M.c: Regenerated.
7793         * tests/unictype/test-categ_Mc.c: Regenerated.
7794         * tests/unictype/test-categ_Me.c: Regenerated.
7795         * tests/unictype/test-categ_Mn.c: Regenerated.
7796         * tests/unictype/test-categ_N.c: Regenerated.
7797         * tests/unictype/test-categ_Nd.c: Regenerated.
7798         * tests/unictype/test-categ_Nl.c: Regenerated.
7799         * tests/unictype/test-categ_No.c: Regenerated.
7800         * tests/unictype/test-categ_P.c: Regenerated.
7801         * tests/unictype/test-categ_Pd.c: Regenerated.
7802         * tests/unictype/test-categ_Pe.c: Regenerated.
7803         * tests/unictype/test-categ_Pf.c: Regenerated.
7804         * tests/unictype/test-categ_Pi.c: Regenerated.
7805         * tests/unictype/test-categ_Po.c: Regenerated.
7806         * tests/unictype/test-categ_Ps.c: Regenerated.
7807         * tests/unictype/test-categ_S.c: Regenerated.
7808         * tests/unictype/test-categ_Sk.c: Regenerated.
7809         * tests/unictype/test-categ_Sm.c: Regenerated.
7810         * tests/unictype/test-categ_So.c: Regenerated.
7811         * tests/unictype/test-ctype_alnum.c: Regenerated.
7812         * tests/unictype/test-ctype_alpha.c: Regenerated.
7813         * tests/unictype/test-ctype_graph.c: Regenerated.
7814         * tests/unictype/test-ctype_lower.c: Regenerated.
7815         * tests/unictype/test-ctype_print.c: Regenerated.
7816         * tests/unictype/test-ctype_punct.c: Regenerated.
7817         * tests/unictype/test-ctype_upper.c: Regenerated.
7818         * tests/unictype/test-decdigit.h: Regenerated.
7819         * tests/unictype/test-digit.h: Regenerated.
7820         * tests/unictype/test-numeric.h: Regenerated.
7821         * tests/unictype/test-pr_alphabetic.c: Regenerated.
7822         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
7823         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
7824         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
7825         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
7826         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
7827         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
7828         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
7829         * tests/unictype/test-pr_combining.c: Regenerated.
7830         * tests/unictype/test-pr_dash.c: Regenerated.
7831         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
7832         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
7833         * tests/unictype/test-pr_deprecated.c: Regenerated.
7834         * tests/unictype/test-pr_diacritic.c: Regenerated.
7835         * tests/unictype/test-pr_extender.c: Regenerated.
7836         * tests/unictype/test-pr_format_control.c: Regenerated.
7837         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
7838         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
7839         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
7840         * tests/unictype/test-pr_id_continue.c: Regenerated.
7841         * tests/unictype/test-pr_id_start.c: Regenerated.
7842         * tests/unictype/test-pr_ideographic.c: Regenerated.
7843         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
7844         * tests/unictype/test-pr_lowercase.c: Regenerated.
7845         * tests/unictype/test-pr_math.c: Regenerated.
7846         * tests/unictype/test-pr_numeric.c: Regenerated.
7847         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
7848         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
7849         Regenerated.
7850         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
7851         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
7852         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
7853         * tests/unictype/test-pr_other_math.c: Regenerated.
7854         * tests/unictype/test-pr_punctuation.c: Regenerated.
7855         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
7856         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
7857         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
7858         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
7859         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
7860         * tests/unictype/test-pr_uppercase.c: Regenerated.
7861         * tests/unictype/test-pr_xid_continue.c: Regenerated.
7862         * tests/unictype/test-pr_xid_start.c: Regenerated.
7863         * tests/unictype/test-pr_zero_width.c: Regenerated.
7864
7865         Update to Unicode 5.1.0.
7866         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
7867         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
7868         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
7869         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
7870         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
7871         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
7872         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
7873         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
7874         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
7875         (nonspacing_table_ind): Update.
7876         * tests/uniwidth/test-uc_width2.sh: Update expected result.
7877
7878         Update to Unicode 5.1.0.
7879         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
7880         code transform.
7881         * lib/uniname/uniname.c (unicode_character_name,
7882         unicode_name_character): Add the range 0x1Fxxx to the code transform.
7883         * lib/uniname/uninames.h: Regenerated.
7884         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
7885
7886 2009-02-07  Bruno Haible  <bruno@clisp.org>
7887
7888         Merge gen-ctype and gen-lbrk into a single program.
7889         * lib/gen-uni-tables.c: New file, incorporating
7890         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
7891         Add directory prefixes to the names of the generated files.
7892         * lib/unictype/gen-ctype.c: Remove file.
7893         * lib/unilbrk/gen-lbrk.c: Remove file.
7894         * modules/gen-uni-tables: New file.
7895         * modules/unictype/gen-ctype: Remove file.
7896         * modules/unilbrk/gen-lbrk: Remove file.
7897
7898 2009-02-07  Bruno Haible  <bruno@clisp.org>
7899
7900         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
7901
7902         New module 'unistr/u32-strcoll'.
7903         * modules/unistr/u32-strcoll: New file.
7904         * lib/unistr/u32-strcoll.c: New file.
7905
7906         New module 'unistr/u16-strcoll'.
7907         * modules/unistr/u16-strcoll: New file.
7908         * lib/unistr/u16-strcoll.c: New file.
7909
7910         New module 'unistr/u8-strcoll'.
7911         * modules/unistr/u8-strcoll: New file.
7912         * lib/unistr/u8-strcoll.c: New file.
7913         * lib/unistr/u-strcoll.h: New file.
7914
7915 2009-02-07  Bruno Haible  <bruno@clisp.org>
7916
7917         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
7918         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7919         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7920         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
7921         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
7922         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
7923
7924 2009-02-07  Bruno Haible  <bruno@clisp.org>
7925
7926         Make 64-bit clean.
7927         * lib/unictype/gen-ctype.c (output_predicate, output_category,
7928         output_combclass, output_bidi_category, output_decimal_digit,
7929         output_digit, output_numeric, output_mirror, output_scripts,
7930         output_ident_category): Use proper width specifier in format strings.
7931
7932 2009-02-07  Bruno Haible  <bruno@clisp.org>
7933
7934         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
7935         failure behaviour.
7936
7937 2009-02-07  Jim Meyering  <meyering@redhat.com>
7938
7939         regex: avoid compilation failure with upcoming gcc-4.4
7940         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
7941         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
7942         "... error: integer overflow in preprocessor expression".
7943
7944 2009-02-05  Ben Pfaff  <blp@gnu.org>
7945
7946         Fix link errors on Windows when close module is used.
7947         * modules/close: Add $(LIB_CLOSE) to Link section.
7948         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
7949         $(LIB_CLOSE) on Windows.
7950
7951 2009-02-05  Jim Meyering  <meyering@redhat.com>
7952
7953         still avoid unused-parameter warnings, but do it cleanly
7954         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
7955         (get_fs_usage): Cast to void instead.
7956         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
7957         (dev_from_mount_options, read_file_system_list): Cast to void.
7958         Prompted by Bruno Haible.
7959
7960 2009-02-04  Jim Meyering  <meyering@redhat.com>
7961
7962         fsusage.c: correct copyright year
7963         * lib/fsusage.c: Reflect year in which the change is pushed into
7964
7965         avoid misc. warnings
7966         * lib/fsusage.c (UNUSED_PARAM): Define.
7967         (get_fs_usage): Mark parameter "disk" as unused.
7968         * lib/getugroups.c (getgrent): Use "void" in prototype.
7969         * lib/mountlist.c: Mark unused parameters.
7970         (read_file_system_list): Declare a local with "const".
7971         * lib/nanosleep.c (getnow): Declare static.
7972         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
7973
7974         dirfd: set errno upon failure
7975         * lib/dirfd.c: Include <errno.h>.
7976         Set errno to ENOTSUP when returning -1.
7977         * modules/dirfd (Depends-on): Add errno.
7978         Suggested by John Kodis <kodis@comcast.net>.
7979
7980 2009-02-01  Bruno Haible  <bruno@clisp.org>
7981
7982         Don't assume sizeof (long) >= sizeof (void *).
7983         * lib/memcmp.c: Include stdint.h.
7984         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
7985         srcp2 to 'const byte *'.
7986         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
7987         types to uintptr_t.
7988         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
7989         * modules/memcmp (Depends-on): Add stdint.
7990         Reported by Ozkan Sezer <sezeroz@gmail.com>.
7991
7992 2009-01-30  Eric Blake  <ebb9@byu.net>
7993
7994         fix more require-before-expand issues
7995         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
7996         expand, AC_PROG_AWK.
7997         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
7998
7999 2009-01-28  Eric Blake  <ebb9@byu.net>
8000
8001         version-etc: use consistent URL formatting
8002         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
8003         Improve formatting.  Use fputs for string without %.
8004
8005 2009-01-28  Jim Meyering  <meyering@redhat.com>
8006
8007         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
8008         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
8009         "underquoted definition of NAME" from autoconf-2.59.
8010
8011 2009-01-28  Bruno Haible  <bruno@clisp.org>
8012
8013         * doc/gnulib.texi: Add "Obsolete modules" to index.
8014
8015 2009-01-28  Jim Meyering  <meyering@redhat.com>
8016
8017         useless-if-before-free: recognize more variants
8018         * build-aux/useless-if-before-free: Also recognize e.g.,
8019         if (NULL != p) free (p);
8020
8021 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
8022
8023         test-getaddrinfo: skip (don't fail) this test when there's no network
8024         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
8025         on the presumption that it means you lack network access.
8026
8027 2009-01-26  Jim Meyering  <meyering@redhat.com>
8028
8029         fflush: avoid warnings on modern systems
8030         * lib/fflush.c (rpl_fflush): Move declarations of locals,
8031         pos and result, into scopes where they're used.
8032
8033 2009-01-26  Eric Blake  <ebb9@byu.net>
8034
8035         Silence warning reintroduced by recent extensions patch.
8036         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
8037         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
8038         autoconf.
8039
8040         Backport improved autoconf semantics of AC_DEFUN_ONCE.
8041         * m4/00gnulib.m4: New file.
8042         * gnulib-tool (func_get_filelist): Always use it.
8043         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
8044         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
8045
8046 2009-01-25  Bruno Haible  <bruno@clisp.org>
8047
8048         Make test-quotearg work on MacOS X and AIX.
8049         * tests/test-quotearg.sh: New file.
8050         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
8051         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
8052         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
8053         include <libintl.h>.
8054         (fake_locale): Remove variable.
8055         (gettext, dgettext, dcgettext): Remove functions.
8056         (main): Instead of setting a fake locale, set a real locale. Call
8057         textdomain and bindtextdomain.
8058         * modules/quotearg-tests (Files): Add the new files.
8059         (Depends-on): Add gettext, setenv, unsetenv.
8060         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
8061         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
8062         Augment TESTS_ENVIRONMENT.
8063
8064 2009-01-25  Bruno Haible  <bruno@clisp.org>
8065
8066         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
8067         fr_FR.ISO8859-1 locale on MacOS X.
8068         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
8069         ja_JP.eucJP locale on MacOS X.
8070         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
8071         zh_CN.GB18030 locale on MacOS X.
8072
8073 2009-01-25  Bruno Haible  <bruno@clisp.org>
8074
8075         Avoid link errors on MacOS X 10.3.
8076         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
8077         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
8078
8079 2009-01-25  Bruno Haible  <bruno@clisp.org>
8080
8081         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
8082         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
8083         * modules/pipe (Files): Remove m4/posix_spawn.m4.
8084         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
8085         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
8086         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
8087         posix_spawnattr_init, posix_spawnattr_setsigmask,
8088         posix_spawnattr_setflags, posix_spawnattr_destroy.
8089
8090         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
8091         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
8092         * modules/execute (Files): Remove m4/posix_spawn.m4.
8093         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
8094         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
8095         posix_spawnattr_init, posix_spawnattr_setsigmask,
8096         posix_spawnattr_setflags, posix_spawnattr_destroy.
8097
8098 2009-01-25  Bruno Haible  <bruno@clisp.org>
8099
8100         * lib/glthread/threadlib.c: Include <stdlib.h>.
8101
8102 2009-01-25  Bruno Haible  <bruno@clisp.org>
8103
8104         * lib/glthread/threadlib.c (dummy): New declaration.
8105
8106 2009-01-25  Bruno Haible  <bruno@clisp.org>
8107
8108         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
8109         multibyte characters also for the GB18030 encoding. Don't crash when
8110         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
8111
8112 2009-01-25  Bruno Haible  <bruno@clisp.org>
8113
8114         Avoid redefining 'struct random_data' on OSF/1 5.1.
8115         * lib/stdlib.in.h: Include <random.h> if it exists.
8116         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
8117         HAVE_RANDOM_H. Include <random.h> when testing whether
8118         'struct random_data' exists.
8119         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
8120
8121 2009-01-25  Bruno Haible  <bruno@clisp.org>
8122
8123         Don't install charset.alias on MacOS X >= 10.3.
8124         * lib/localcharset.c (DARWIN7): New macro.
8125         (get_charset_aliases): Hardcode the result for Darwin7.
8126         * modules/localcharset (install-exec-local): Don't install
8127         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
8128
8129 2009-01-25  Bruno Haible  <bruno@clisp.org>
8130
8131         Don't install charset.alias on mingw and Cygwin.
8132         * modules/localcharset (install-exec-local): Don't install
8133         charset.alias on mingw and Cygwin, if the file does not yet exist.
8134         The result for these platforms is hardcoded in localcharset.c.
8135
8136 2009-01-25  Bruno Haible  <bruno@clisp.org>
8137
8138         Make it possible again to use AC_GNU_SOURCE together with gnulib.
8139         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
8140         before requiring AC_USE_SYSTEM_EXTENSIONS.
8141
8142 2009-01-25  Jim Meyering  <meyering@redhat.com>
8143
8144         c-strtod: avoid warnings
8145         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
8146         "assignment discards qualifiers from pointer target type" warnings.
8147
8148 2009-01-24  Bruno Haible  <bruno@clisp.org>
8149
8150         Add support for non-UTF-8 locales on MacOS X.
8151         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
8152         canonical encodings. For Darwin 7 and newer, don't map traditional
8153         encodings to UTF-8.
8154         Reported by Vincent Lefevre <vincent@vinc17.org>
8155         at <http://savannah.gnu.org/bugs/?25235>.
8156
8157 2009-01-24  Bruno Haible  <bruno@clisp.org>
8158
8159         * doc/gnulib.texi (Obsolete modules): New section.
8160         Reported by Mike Frysinger <vapier@gentoo.org>.
8161
8162 2009-01-24  Bruno Haible  <bruno@clisp.org>
8163
8164         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
8165         (%.dvi): New rule.
8166
8167 2009-01-24  Bruno Haible  <bruno@clisp.org>
8168
8169         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
8170         Reported by Eric Blake.
8171
8172 2009-01-24  Bruno Haible  <bruno@clisp.org>
8173
8174         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
8175         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
8176         Reported by Gary V. Vaughan <gary@gnu.org>.
8177
8178 2009-01-24  Bruno Haible  <bruno@clisp.org>
8179
8180         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
8181
8182 2009-01-23  Bruno Haible  <bruno@clisp.org>
8183
8184         Make c-strtod, c-strtold usable in libraries.
8185         * lib/c-strtod.c: Include string.h instead of xalloc.h.
8186         (C_STRTOD): Call strdup instead of xstrdup.
8187         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
8188         * modules/c-strtold (Depends-on): Likewise.
8189         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
8190         * NEWS: Mention the change.
8191         Reported by Michael Gold <mgold@ncf.ca>.
8192
8193 2009-01-23  Jim Meyering  <meyering@redhat.com>
8194
8195         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
8196         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
8197         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
8198
8199 2009-01-23  Simon Josefsson  <simon@josefsson.org>
8200
8201         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
8202         GNU CoreUtils.
8203         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
8204         * modules/version-etc (Description): Update.
8205
8206 2009-01-22  Bruno Haible  <bruno@clisp.org>
8207
8208         Cache the C locale object.
8209         * lib/c-strtod.c (c_locale_cache): New variable.
8210         (c_locale): New function.
8211         (C_STRTOD): Use it, and don't call freelocale.
8212         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
8213         Suggested by Paolo Bonzini.
8214
8215 2009-01-21  Bruno Haible  <bruno@clisp.org>
8216
8217         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
8218         conditions other than overflow.
8219
8220 2009-01-21  Bruno Haible  <bruno@clisp.org>
8221
8222         * lib/c-strtod.c: Include errno.h.
8223         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
8224         value from STRTOD_L and STRTOD.
8225
8226 2009-01-21  Bruno Haible  <bruno@clisp.org>
8227         and Jim Meyering  <meyering@redhat.com>
8228
8229         nanosleep: skip configure test (fail it) for apple universal builds
8230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
8231         universal builds, assume that nanosleep does not work.
8232         * modules/nanosleep (Depends-on): Add multiarch.
8233
8234         mktime: skip configure test (fail it) for apple universal builds
8235         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
8236         universal builds, assume that mktime does not work.
8237         * modules/mktime (Depends-on): Add multiarch.
8238
8239 2009-01-21  Eric Blake  <ebb9@byu.net>
8240
8241         multiarch: avoid expand-before-require warning
8242         * modules/multiarch (configure.ac): Require, rather than expand,
8243         gl_MULTIARCH.
8244         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
8245         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
8246         enforce that all clients require it.  Partial reversion of
8247         2008-12-29 patch.
8248
8249         error: avoid expand-before-require warning
8250         * modules/errno (configure.ac): Require, rather than expand,
8251         gl_HEADER_ERRNO_H.
8252         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
8253         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
8254         enforce that all clients require it.
8255
8256         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
8257         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
8258         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
8259         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
8260
8261 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
8262
8263         Revert:
8264         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
8265
8266         regex: do not depend on obsolete modules.
8267         * modules/regex: Remove memcmp and memmove.
8268
8269 2009-01-20  Bruno Haible  <bruno@clisp.org>
8270
8271         Make the 'link' module link on Windows NT 4.
8272         * lib/link.c (_WIN32_WINNT): Don't define.
8273         (CreateHardLinkFuncType): New type.
8274         (CreateHardLinkFunc, initialized): New variables.
8275         (initialize): New function.
8276         (link): Invoke CreateHardLink indirectly through the function pointer.
8277
8278 2009-01-20  Bruno Haible  <bruno@clisp.org>
8279
8280         Fix compilation failure on mingw.
8281         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
8282
8283 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
8284
8285         * doc/c-strtod.texi: Mention a couple of restrictions.
8286
8287 2009-01-20  Jim Meyering  <meyering@redhat.com>
8288
8289         gettimeofday: move more declarations out of functions
8290         * lib/gettimeofday.c: Move extern declarations of tzset and
8291         gmtime out of containing functions.  Prompted by Bruno Haible.
8292
8293 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
8294
8295         regex: do not depend on obsolete modules.
8296         * modules/regex: Remove memcmp and memmove.
8297
8298 2009-01-19  Bruno Haible  <bruno@clisp.org>
8299
8300         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
8301         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
8302         gl_BIGENDIAN, not AC_C_BIGENDIAN.
8303         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
8304         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
8305
8306 2009-01-19  Bruno Haible  <bruno@clisp.org>
8307
8308         * tests/test-link.c: Include <errno.h>.
8309         (main): Exit with code 77 when a hard link cannot be created due to
8310         the file system.
8311         * tests/test-link.sh: Skip test when a hard link cannot be created due
8312         to the file system.
8313         Suggested by Eric Blake.
8314
8315 2009-01-19  Martin Lambers  <marlam@marlam.de>
8316
8317         * modules/link-tests: New file.
8318         * tests/test-link.sh: New file.
8319         * tests/test-link.c: New file.
8320
8321 2009-01-19  Eric Blake  <ebb9@byu.net>
8322
8323         doc: mention another function added in cygwin 1.7.0
8324         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
8325         Another new function in cygwin 1.7.
8326
8327 2009-01-19  Bruno Haible  <bruno@clisp.org>
8328
8329         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
8330         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
8331         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
8332         gl_BIGENDIAN, not AC_C_BIGENDIAN.
8333         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8334         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
8335         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8336         * m4/md4.m4 (gl_MD4): Likewise.
8337         * m4/md5.m4 (gl_MD5): Likewise.
8338         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
8339         * m4/sha1.m4 (gl_SHA1): Likewise.
8340         * m4/sha256.m4 (gl_SHA256): Likewise.
8341         * m4/sha512.m4 (gl_SHA512): Likewise.
8342
8343 2009-01-19  Bruno Haible  <bruno@clisp.org>
8344
8345         * modules/uniname/uniname-tests (Depends-on): Add progname.
8346         * tests/uniname/test-uninames.c: Include progname.h.
8347         (main): Call set_program_name.
8348
8349         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
8350         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
8351         (main): Call set_program_name.
8352
8353         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
8354         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
8355         (main): Call set_program_name.
8356
8357         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
8358         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
8359         (main): Call set_program_name.
8360
8361         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
8362         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
8363         (main): Call set_program_name.
8364
8365         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
8366         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
8367         (main): Call set_program_name.
8368
8369         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
8370         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
8371         (main): Call set_program_name.
8372
8373         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
8374         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
8375         (main): Call set_program_name.
8376
8377         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
8378         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
8379         (main): Call set_program_name.
8380
8381 2009-01-19  Eric Blake  <ebb9@byu.net>
8382
8383         test-unistd: test previous patch
8384         * tests/test-unistd.c: Test *_FILENO macros.
8385
8386         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
8387         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
8388         Guarantee a definition.
8389         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
8390         * modules/unistd-safer (Depends-on): Add dependency on unistd.
8391         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
8392         * lib/dup-safer.c (STDERR_FILENO): Likewise.
8393         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
8394         Likewise.
8395         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
8396         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
8397         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
8398         Likewise.
8399         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
8400         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
8401         (STDERR_FILENO): Likewise.
8402         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
8403         (STDERR_FILENO): Likewise.
8404         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
8405         (STDERR_FILENO): Likewise.
8406         Reported by Elbert Pol.
8407
8408 2009-01-19  Eric Blake  <ebb9@byu.net>
8409
8410         doc: mention more functions added in cygwin 1.7.0
8411         * doc/posix-functions/abort.texi (abort): Update wording related
8412         to cygwin.
8413         * doc/posix-functions/daylight.texi (daylight): Likewise.
8414         * doc/posix-functions/optarg.texi (optarg): Likewise.
8415         * doc/posix-functions/optarg.texi (opterr): Likewise.
8416         * doc/posix-functions/optarg.texi (optind): Likewise.
8417         * doc/posix-functions/optarg.texi (optopt): Likewise.
8418         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
8419         worked in 1.5.x, and was withdrawn in 1.7.
8420         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8421         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
8422         cygwin versions.
8423         * doc/posix-functions/perror.texi (perror): Likewise.
8424         * doc/posix-functions/printf.texi (printf): Likewise.
8425         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
8426         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
8427         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8428         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8429         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8430         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
8431         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
8432         Likewise.
8433         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
8434         Likewise.
8435         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
8436         this function.
8437         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
8438         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
8439         Likewise.
8440         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
8441         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
8442         * doc/posix-functions/confstr.texi (confstr): Likewise.
8443         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
8444         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
8445         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
8446         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
8447         * doc/posix-functions/fputws.texi (fputws): Likewise.
8448         * doc/posix-functions/fwide.texi (fwide): Likewise.
8449         * doc/posix-functions/getwc.texi (getwc): Likewise.
8450         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
8451         * doc/posix-functions/putwc.texi (putwc): Likewise.
8452         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8453         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
8454         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
8455         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8456         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
8457         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
8458         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
8459         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
8460         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
8461         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
8462         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
8463
8464 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
8465
8466         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
8467         * lib/ioctl.c: Include <sys/ioctl.h>.
8468
8469 2009-01-19  Simon Josefsson  <simon@josefsson.org>
8470
8471         * modules/getdate-tests (Depends-on): Add progname.
8472         * tests/test-getdate.c: Use progname module, to avoid link errors
8473         on non-glibc systems.
8474
8475 2009-01-18  Simon Josefsson  <simon@josefsson.org>
8476
8477         * modules/filenamecat-tests (Depends-on): Add progname.
8478         * modules/fstrcmp-tests (Depends-on): Likewise.
8479
8480         * tests/test-filenamecat.c: Use progname module, to avoid link
8481         errors on non-glibc systems.
8482         * tests/test-fstrcmp.c: Likewise.
8483
8484 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
8485
8486         gettimeofday: avoid warning: nested extern declaration of 'localtime'
8487         * lib/gettimeofday.c: Move extern declaration out of function.
8488
8489 2009-01-18  Bruno Haible  <bruno@clisp.org>
8490
8491         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
8492         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
8493         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
8494
8495 2009-01-18  Bruno Haible  <bruno@clisp.org>
8496
8497         * lib/strftime.c (MEMPCPY): Remove unused macro.
8498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
8499
8500 2009-01-18  Martin Lambers  <marlam@marlam.de>
8501
8502         New module 'link'.
8503         * lib/unistd.in.h (link): New declaration.
8504         * lib/link.c: New file.
8505         * m4/link.m4: New file.
8506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
8507         HAVE_LINK.
8508         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
8509         * modules/link: New file.
8510         * doc/posix-functions/link.texi: Mention the new module.
8511
8512 2009-01-18  Bruno Haible  <bruno@clisp.org>
8513
8514         * tests/test-avltree_list.c (main): Call set_program_name.
8515         * tests/test-avltree_oset.c (main): Likewise.
8516         * tests/test-obstack-printf.c: Include progname.h.
8517         (main): Call set_program_name.
8518         * tests/test-quotearg.c: Include progname.h.
8519         (main): Call set_program_name.
8520         * tests/test-xmemdup0.c: Include progname.h.
8521         (main): Call set_program_name.
8522
8523 2009-01-18  Bruno Haible  <bruno@clisp.org>
8524
8525         New module 'alphasort'.
8526         * lib/dirent.in.h (alphasort): New declaration.
8527         * lib/alphasort.c: New file, from glibc with modifications.
8528         * m4/alphasort.m4: New file.
8529         * modules/alphasort: New file.
8530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
8531         HAVE_ALPHASORT.
8532         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
8533         HAVE_ALPHASORT.
8534         * doc/posix-functions/alphasort.texi: Mention the new module and the
8535         portability problems.
8536
8537 2009-01-18  Bruno Haible  <bruno@clisp.org>
8538
8539         New module 'scandir'.
8540         * lib/dirent.in.h (scandir): New declaration.
8541         * lib/scandir.c: New file, from glibc with modifications.
8542         * m4/scandir.m4: New file.
8543         * modules/scandir: New file.
8544         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
8545         HAVE_SCANDIR.
8546         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
8547         HAVE_SCANDIR.
8548         * doc/posix-functions/scandir.texi: Mention the new module and the
8549         portability problems.
8550
8551 2009-01-17  Bruno Haible  <bruno@clisp.org>
8552
8553         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
8554         Update documentation.
8555         (func_remove_suffix): Escape all dots in the suffix. Update
8556         documentation.
8557         (func_filter_filelist): Update documentation.
8558         Reported by Ralf Wildenhues.
8559
8560 2009-01-17  Bruno Haible  <bruno@clisp.org>
8561
8562         * modules/dprintf-posix-tests: New file.
8563         * tests/test-dprintf-posix.sh: New file.
8564         * tests/test-dprintf-posix.c: New file.
8565
8566         New modules 'dprintf', 'dprintf-posix'.
8567         * lib/stdio.in.h (dprintf): New declaration.
8568         * lib/dprintf.c: New file.
8569         * m4/dprintf.m4: New file.
8570         * m4/dprintf-posix.m4: New file.
8571         * modules/dprintf: New file.
8572         * modules/dprintf-posix: New file.
8573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
8574         HAVE_DPRINTF, REPLACE_DPRINTF.
8575         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
8576         HAVE_DPRINTF, REPLACE_DPRINTF.
8577         * doc/posix-functions/dprintf.texi: Mention the new modules.
8578
8579 2009-01-17  Bruno Haible  <bruno@clisp.org>
8580
8581         * modules/vdprintf-posix-tests: New file.
8582         * tests/test-vdprintf-posix.sh: New file.
8583         * tests/test-vdprintf-posix.c: New file.
8584
8585         New modules 'vdprintf', 'vdprintf-posix'.
8586         * lib/stdio.in.h (vdprintf): New declaration.
8587         * lib/vdprintf.c: New file.
8588         * m4/vdprintf.m4: New file.
8589         * m4/vdprintf-posix.m4: New file.
8590         * modules/vdprintf: New file.
8591         * modules/vdprintf-posix: New file.
8592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
8593         HAVE_VDPRINTF, REPLACE_VDPRINTF.
8594         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
8595         HAVE_VDPRINTF, REPLACE_VDPRINTF.
8596         * doc/posix-functions/vdprintf.texi: Mention the new modules.
8597
8598 2009-01-17  Bruno Haible  <bruno@clisp.org>
8599
8600         Fix replacement of fopen on mingw.
8601         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
8602         mingw.
8603
8604 2009-01-17  Bruno Haible  <bruno@clisp.org>
8605
8606         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
8607         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
8608
8609 2009-01-17  Bruno Haible  <bruno@clisp.org>
8610
8611         Avoid test-fflush2.sh failure on mingw.
8612         * tests/test-fflush2.c: Include binary-io.h.
8613         (main): Put standard input into binary mode.
8614         * modules/fflush-tests (Depends-on): Add binary-io.
8615
8616 2009-01-17  Bruno Haible  <bruno@clisp.org>
8617
8618         * lib/wchar.in.h: In another particular situation, include only the
8619         system's <wchar.h> file.
8620         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
8621         Reported by Albert Chin-A-Young <china@thewrittenword.com>
8622         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
8623
8624 2009-01-17  Bruno Haible  <bruno@clisp.org>
8625
8626         Support for stripping executables in --enable-relocatable.
8627         * build-aux/install-reloc: Expect one more argument, or an environment
8628         variable RELOC_STRIP_PROG. If set, strip the destination program and
8629         its wrapper.
8630         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
8631         RELOC_STRIP_PROG.
8632         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
8633         to set RELOCATABLE_STRIP.
8634         * NEWS: Mention the new Makefile requirement.
8635
8636 2009-01-17  Bruno Haible  <bruno@clisp.org>
8637
8638         * build-aux/install-reloc: Remove debugging information left over by
8639         C compiler on MacOS X.
8640
8641 2009-01-17  Bruno Haible  <bruno@clisp.org>
8642
8643         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
8644         * lib/progreloc.c (find_executable): Fix type of pointer passed to
8645         _NSGetExecutablePath.
8646
8647 2009-01-16  Jim Meyering  <meyering@redhat.com>
8648
8649         strerror: avoid warnings about discarding "const"
8650         * lib/strerror.c (rpl_strerror): Instead of returning a const
8651         string from each and every "case", use a variable, and add a single
8652         cast after the switch.
8653
8654 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
8655
8656         * lib/arpa_inet.in.h: Add extern "C" block for C++.
8657
8658 2009-01-16  Bruno Haible  <bruno@clisp.org>
8659
8660         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
8661         array initializer syntax that also works in C++ mode.
8662         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8663
8664 2009-01-16  Jim Meyering  <meyering@redhat.com>
8665
8666         poll: suppress a warning
8667         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
8668         to ignore "...unsigned expression < 0 is always false" warnings.
8669
8670 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
8671
8672         poll: remove declarations of unused variables
8673         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
8674         sockbuf and optlen.
8675
8676 2009-01-15  Bruno Haible  <bruno@clisp.org>
8677
8678         Make fflush-after-ungetc POSIX compliant on BSD systems.
8679         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
8680         (clear_ungetc_buffer): Implement also for other systems.
8681         (rpl_fflush): On glibc systems, invoke
8682         clear_ungetc_buffer_preserving_position. Otherwise, invoke
8683         clear_ungetc_buffer after fetching the stream's position, not before.
8684
8685 2009-01-15  Bruno Haible  <bruno@clisp.org>
8686
8687         Make fflush-after-ungetc POSIX compliant on glibc systems.
8688         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
8689         after ungetc.
8690         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
8691         (rpl_fflush): On glibc systems, simply call the system's fflush
8692         function after clearing the ungetc buffer.
8693         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
8694         Instead, lseek only to the end of file, then use the system's fseeko
8695         for the rest. On glibc systems, reset the EOF indicator bit.
8696
8697 2009-01-15  Jim Meyering  <meyering@redhat.com>
8698
8699         openmp.m4: revert quote-adding change, for portability to older autoconf
8700         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
8701         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
8702         Simon Josefsson noticed the problem when using autoconf-2.61.
8703
8704 2009-01-15  Bruno Haible  <bruno@clisp.org>
8705
8706         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
8707         * tests/test-fflush2.c (ASSERT): Always fail.
8708         (main): Add two tests for fflush() after ungetc(), taking into account
8709         the Austin Group's clarification.
8710         Suggested by Eric Blake.
8711
8712 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
8713
8714         mktime.m4: remove K&R-style function prototypes
8715         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
8716         for the Sun C++ compiler.
8717
8718 2009-01-14  Bruno Haible  <bruno@clisp.org>
8719
8720         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
8721         while including <wchar.h>.
8722         * lib/wchar.in.h: In two particular situations on HP-UX, include only
8723         the system's <wchar.h> file.
8724         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8725
8726 2009-01-14  Bruno Haible  <bruno@clisp.org>
8727
8728         * m4/csharp.m4: Don't mention gettext on the serial number line.
8729         * m4/csharpexec.m4: Likewise.
8730         * m4/eaccess.m4: Likewise.
8731         * m4/javaexec.m4: Likewise.
8732         * m4/sig_atomic_t.m4: Likewise.
8733         * m4/tmpdir.m4: Likewise.
8734         * m4/intldir.m4: Bump gettext version.
8735         * m4/lib-ld.m4: Likewise.
8736
8737 2009-01-14  Bruno Haible  <bruno@clisp.org>
8738
8739         * lib/progname.c (set_program_name): Add more comments.
8740         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8741
8742 2009-01-14  Simon Josefsson  <simon@josefsson.org>
8743
8744         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
8745         were sys/stat.h does not define it.
8746
8747 2009-01-14  Jim Meyering  <meyering@redhat.com>
8748
8749         many *.m4 files: improve m4 quoting
8750         99% of this change was performed by running the following commands:
8751         git ls-files | grep '\.m4$' | xargs perl -pi \
8752           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
8753           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8754           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8755           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
8756         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
8757         The remainder were to add Copyright dates, increment serial numbers,
8758         undo some changes in comments, exclude m4/intl.m4, and add quotes
8759         around the "1" in ",1" where the unusual spacing prohibited the
8760         above regexps from doing the job.  For more details, see
8761         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
8762         * m4/acl.m4: Modified.
8763         * m4/afs.m4: Likewise.
8764         * m4/alloca.m4: Likewise.
8765         * m4/argp.m4: Likewise.
8766         * m4/argz.m4: Likewise.
8767         * m4/atexit.m4: Likewise.
8768         * m4/bison-i18n.m4: Likewise.
8769         * m4/bison.m4: Likewise.
8770         * m4/byteswap.m4: Likewise.
8771         * m4/c-stack.m4: Likewise.
8772         * m4/c-strtod.m4: Likewise.
8773         * m4/calloc.m4: Likewise.
8774         * m4/canonicalize-lgpl.m4: Likewise.
8775         * m4/chown.m4: Likewise.
8776         * m4/clock_time.m4: Likewise.
8777         * m4/codeset.m4: Likewise.
8778         * m4/copy-file.m4: Likewise.
8779         * m4/csharp.m4: Likewise.
8780         * m4/csharpcomp.m4: Likewise.
8781         * m4/csharpexec.m4: Likewise.
8782         * m4/d-ino.m4: Likewise.
8783         * m4/d-type.m4: Likewise.
8784         * m4/dirfd.m4: Likewise.
8785         * m4/double-slash-root.m4: Likewise.
8786         * m4/eaccess.m4: Likewise.
8787         * m4/eealloc.m4: Likewise.
8788         * m4/environ.m4: Likewise.
8789         * m4/errno_h.m4: Likewise.
8790         * m4/euidaccess.m4: Likewise.
8791         * m4/execute.m4: Likewise.
8792         * m4/fatal-signal.m4: Likewise.
8793         * m4/fchdir.m4: Likewise.
8794         * m4/fcntl_h.m4: Likewise.
8795         * m4/fileblocks.m4: Likewise.
8796         * m4/filenamecat.m4: Likewise.
8797         * m4/findprog.m4: Likewise.
8798         * m4/flexmember.m4: Likewise.
8799         * m4/fnmatch.m4: Likewise.
8800         * m4/fopen.m4: Likewise.
8801         * m4/fpending.m4: Likewise.
8802         * m4/fprintf-posix.m4: Likewise.
8803         * m4/free.m4: Likewise.
8804         * m4/frexp.m4: Likewise.
8805         * m4/frexpl.m4: Likewise.
8806         * m4/fsusage.m4: Likewise.
8807         * m4/ftruncate.m4: Likewise.
8808         * m4/gc-camellia.m4: Likewise.
8809         * m4/gc-random.m4: Likewise.
8810         * m4/gc.m4: Likewise.
8811         * m4/getaddrinfo.m4: Likewise.
8812         * m4/getcwd-abort-bug.m4: Likewise.
8813         * m4/getcwd-path-max.m4: Likewise.
8814         * m4/getdate.m4: Likewise.
8815         * m4/getdomainname.m4: Likewise.
8816         * m4/getgroups.m4: Likewise.
8817         * m4/gethostname.m4: Likewise.
8818         * m4/gethrxtime.m4: Likewise.
8819         * m4/getline.m4: Likewise.
8820         * m4/getloadavg.m4: Likewise.
8821         * m4/getndelim2.m4: Likewise.
8822         * m4/getpass.m4: Likewise.
8823         * m4/gettext.m4: Likewise.
8824         * m4/gettime.m4: Likewise.
8825         * m4/gettimeofday.m4: Likewise.
8826         * m4/gnulib-common.m4: Likewise.
8827         * m4/group-member.m4: Likewise.
8828         * m4/host-os.m4: Likewise.
8829         * m4/iconv.m4: Likewise.
8830         * m4/iconv_open.m4: Likewise.
8831         * m4/inet_ntop.m4: Likewise.
8832         * m4/inet_pton.m4: Likewise.
8833         * m4/inline.m4: Likewise.
8834         * m4/intldir.m4: Likewise.
8835         * m4/intlmacosx.m4: Likewise.
8836         * m4/intmax.m4: Likewise.
8837         * m4/intmax_t.m4: Likewise.
8838         * m4/inttypes.m4: Likewise.
8839         * m4/inttypes_h.m4: Likewise.
8840         * m4/inttypes-pri.m4: Likewise.
8841         * m4/isapipe.m4: Likewise.
8842         * m4/isnand.m4: Likewise.
8843         * m4/isnanf.m4: Likewise.
8844         * m4/isnanl.m4: Likewise.
8845         * m4/javacomp.m4: Likewise.
8846         * m4/javaexec.m4: Likewise.
8847         * m4/jm-winsz1.m4: Likewise.
8848         * m4/jm-winsz2.m4: Likewise.
8849         * m4/lchown.m4: Likewise.
8850         * m4/lcmessage.m4: Likewise.
8851         * m4/ldexpl.m4: Likewise.
8852         * m4/lib-ld.m4: Likewise.
8853         * m4/lib-link.m4: Likewise.
8854         * m4/libsigsegv.m4: Likewise.
8855         * m4/link-follow.m4: Likewise.
8856         * m4/localcharset.m4: Likewise.
8857         * m4/locale-fr.m4: Likewise.
8858         * m4/locale-ja.m4: Likewise.
8859         * m4/locale-tr.m4: Likewise.
8860         * m4/locale-zh.m4: Likewise.
8861         * m4/lock.m4: Likewise.
8862         * m4/longlong.m4: Likewise.
8863         * m4/ls-mntd-fs.m4: Likewise.
8864         * m4/lstat.m4: Likewise.
8865         * m4/malloc.m4: Likewise.
8866         * m4/mathl.m4: Likewise.
8867         * m4/mbrtowc.m4: Likewise.
8868         * m4/mbstate_t.m4: Likewise.
8869         * m4/mbswidth.m4: Likewise.
8870         * m4/memchr.m4: Likewise.
8871         * m4/memcmp.m4: Likewise.
8872         * m4/memcpy.m4: Likewise.
8873         * m4/memmem.m4: Likewise.
8874         * m4/memmove.m4: Likewise.
8875         * m4/mempcpy.m4: Likewise.
8876         * m4/memrchr.m4: Likewise.
8877         * m4/memset.m4: Likewise.
8878         * m4/minmax.m4: Likewise.
8879         * m4/mkdir-slash.m4: Likewise.
8880         * m4/mkdtemp.m4: Likewise.
8881         * m4/mktime.m4: Likewise.
8882         * m4/mmap-anon.m4: Likewise.
8883         * m4/mountlist.m4: Likewise.
8884         * m4/nanosleep.m4: Likewise.
8885         * m4/nls.m4: Likewise.
8886         * m4/nocrash.m4: Likewise.
8887         * m4/open.m4: Likewise.
8888         * m4/openat.m4: Likewise.
8889         * m4/openmp.m4: Likewise.
8890         * m4/pathmax.m4: Likewise.
8891         * m4/perl.m4: Likewise.
8892         * m4/physmem.m4: Likewise.
8893         * m4/pipe.m4: Likewise.
8894         * m4/po.m4: Likewise.
8895         * m4/poll.m4: Likewise.
8896         * m4/posixtm.m4: Likewise.
8897         * m4/posixver.m4: Likewise.
8898         * m4/printf-frexp.m4: Likewise.
8899         * m4/printf-frexpl.m4: Likewise.
8900         * m4/printf-posix.m4: Likewise.
8901         * m4/printf-posix-rpl.m4: Likewise.
8902         * m4/printf.m4: Likewise.
8903         * m4/progtest.m4: Likewise.
8904         * m4/putenv.m4: Likewise.
8905         * m4/readline.m4: Likewise.
8906         * m4/readlink.m4: Likewise.
8907         * m4/readutmp.m4: Likewise.
8908         * m4/realloc.m4: Likewise.
8909         * m4/regex.m4: Likewise.
8910         * m4/relocatable.m4: Likewise.
8911         * m4/relocatable-lib.m4: Likewise.
8912         * m4/rename-dest-slash.m4: Likewise.
8913         * m4/rename.m4: Likewise.
8914         * m4/rmdir-errno.m4: Likewise.
8915         * m4/rmdir.m4: Likewise.
8916         * m4/roundf.m4: Likewise.
8917         * m4/roundl.m4: Likewise.
8918         * m4/rpmatch.m4: Likewise.
8919         * m4/save-cwd.m4: Likewise.
8920         * m4/selinux-selinux-h.m4: Likewise.
8921         * m4/setenv.m4: Likewise.
8922         * m4/settime.m4: Likewise.
8923         * m4/sig2str.m4: Likewise.
8924         * m4/sig_atomic_t.m4: Likewise.
8925         * m4/signalblocking.m4: Likewise.
8926         * m4/signbit.m4: Likewise.
8927         * m4/sigpipe.m4: Likewise.
8928         * m4/sockets.m4: Likewise.
8929         * m4/sockpfaf.m4: Likewise.
8930         * m4/st_dm_mode.m4: Likewise.
8931         * m4/stat-time.m4: Likewise.
8932         * m4/stdbool.m4: Likewise.
8933         * m4/stdint.m4: Likewise.
8934         * m4/stdint_h.m4: Likewise.
8935         * m4/stpcpy.m4: Likewise.
8936         * m4/stpncpy.m4: Likewise.
8937         * m4/strcase.m4: Likewise.
8938         * m4/strchrnul.m4: Likewise.
8939         * m4/strcspn.m4: Likewise.
8940         * m4/strdup.m4: Likewise.
8941         * m4/strftime.m4: Likewise.
8942         * m4/strndup.m4: Likewise.
8943         * m4/strnlen.m4: Likewise.
8944         * m4/strpbrk.m4: Likewise.
8945         * m4/strptime.m4: Likewise.
8946         * m4/strsep.m4: Likewise.
8947         * m4/strtod.m4: Likewise.
8948         * m4/strtoimax.m4: Likewise.
8949         * m4/strtok_r.m4: Likewise.
8950         * m4/strtol.m4: Likewise.
8951         * m4/strtoll.m4: Likewise.
8952         * m4/strtoul.m4: Likewise.
8953         * m4/strtoull.m4: Likewise.
8954         * m4/strtoumax.m4: Likewise.
8955         * m4/strverscmp.m4: Likewise.
8956         * m4/threadlib.m4: Likewise.
8957         * m4/timegm.m4: Likewise.
8958         * m4/tm_gmtoff.m4: Likewise.
8959         * m4/tmpdir.m4: Likewise.
8960         * m4/tmpfile.m4: Likewise.
8961         * m4/tzset.m4: Likewise.
8962         * m4/uintmax_t.m4: Likewise.
8963         * m4/unlinkdir.m4: Likewise.
8964         * m4/unlocked-io.m4: Likewise.
8965         * m4/uptime.m4: Likewise.
8966         * m4/userspec.m4: Likewise.
8967         * m4/utimbuf.m4: Likewise.
8968         * m4/utime.m4: Likewise.
8969         * m4/utimes-null.m4: Likewise.
8970         * m4/utimes.m4: Likewise.
8971         * m4/vararrays.m4: Likewise.
8972         * m4/vasnprintf.m4: Likewise.
8973         * m4/vfprintf-posix.m4: Likewise.
8974         * m4/vprintf-posix.m4: Likewise.
8975         * m4/wait-process.m4: Likewise.
8976         * m4/wchar_t.m4: Likewise.
8977         * m4/wint_t.m4: Likewise.
8978         * m4/write-any-file.m4: Likewise.
8979         * m4/yield.m4: Likewise.
8980
8981 2009-01-13  Bruno Haible  <bruno@clisp.org>
8982
8983         Avoid test-copy-file.sh failures when ACL support insufficient.
8984         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
8985         TESTS_ENVIRONMENT.
8986         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
8987         Reported by Jim Meyering.
8988
8989 2009-01-13  Bruno Haible  <bruno@clisp.org>
8990
8991         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
8992         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
8993         * modules/unistdio/u8-printf-parse (Files): Likewise.
8994         * modules/unistdio/u32-printf-parse (Files): Likewise.
8995         * modules/unistdio/ulc-printf-parse (Files): Likewise.
8996
8997 2009-01-13  Simon Josefsson  <simon@josefsson.org>
8998
8999         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
9000         and m4/inttypes_h.m4 too.
9001
9002 2009-01-12  Eric Blake  <ebb9@byu.net>
9003
9004         tests: IRIX 6.2 cc can't compile -0.0 into .data
9005         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
9006         rather than at compile-time.
9007         * tests/test-floorl.c (minus_zero): Likewise.
9008         * tests/test-frexpl.c (minus_zero): Likewise.
9009         * tests/test-isnan.c (minus_zerol): Likewise.
9010         * tests/test-isnanl.h (minus_zero): Likewise.
9011         * tests/test-ldexpl.c (minus_zero): Likewise.
9012         * tests/test-roundl.c (minus_zero): Likewise.
9013         * tests/test-signbit.c (minus_zerol): Likewise.
9014         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
9015         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
9016         * tests/test-truncl.c (minus_zero): Likewise.
9017         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
9018         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
9019         Reported by Tom G. Christensen and Nelson H. F. Beebe.
9020
9021 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
9022
9023         regex: fix glibc bug 9697
9024         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
9025         handling.
9026
9027 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
9028
9029         regex: fix glibc bug 697
9030         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
9031         being NULL also if there are no backreferences.
9032
9033 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
9034
9035         regex: merge glibc changes
9036         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
9037         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
9038         re_string_skip_chars, re_string_reconstruct): Likewise.
9039         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
9040
9041 2009-01-07  Jim Meyering  <meyering@redhat.com>
9042
9043         poll: filter through cppi
9044         * lib/poll.c: Indent cpp directives to reflect nesting.
9045
9046 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
9047
9048         poll: don't return uninitialized
9049         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
9050
9051 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
9052
9053         avoid compile failure on AIX 6.1
9054         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
9055         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
9056
9057 2009-01-04  Jim Meyering  <meyering@redhat.com>
9058
9059         remove duplicate inclusion of <stdio.h>
9060         * tests/test-fprintf-posix.c: Likewise.
9061         * tests/test-printf-posix.c: Likewise.
9062         * tests/test-snprintf-posix.c: Likewise.
9063         * tests/test-sprintf-posix.c: Likewise.
9064         * tests/test-vasprintf-posix.c: Likewise.
9065         * tests/test-vfprintf-posix.c: Likewise.
9066         * tests/test-vprintf-posix.c: Likewise.
9067         * tests/test-vsnprintf-posix.c: Likewise.
9068         * tests/test-vsprintf-posix.c: Likewise.
9069
9070 2009-01-03  Jim Meyering  <meyering@redhat.com>
9071
9072         gnulib-tool: fix sed-based filtering
9073         * gnulib-tool (func_filter_filelist): Remove extra backslash
9074         in sed_fff_filter definition.
9075
9076 2009-01-02  Jim Meyering  <meyering@redhat.com>
9077
9078         strftime: avoid compilation failure on Solaris 2.6
9079         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
9080         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
9081         Don't #define mbrlen or mbsinit, since now they're guaranteed to
9082         be available.  Reported by Tom G. Christensen.  Details in
9083         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
9084
9085 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9086             Bruno Haible  <bruno@clisp.org>
9087
9088         Speed up gnulib-tool by doing more string processing through shell
9089         built-ins.
9090         * gnulib-tool (fast_func_append): New variable.
9091         (func_remove_prefix, func_remove_suffix): New functions.
9092         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
9093         (func_filter_filelist): New function.
9094         (func_get_dependencies): Use func_remove_suffix instead of sed.
9095         (func_get_automake_snippet): Use func_filter_filelist instead of a
9096         subshell and sed invocation.
9097
9098 2009-01-01  Bruno Haible  <bruno@clisp.org>
9099
9100         Fix a security bug.
9101         * gnulib-tool (func_import, import, update): Don't allow the characters
9102         '"', '$', '`', '\' in macro arguments that become part of commands that
9103         are evaluated.
9104
9105 2009-01-01  Bruno Haible  <bruno@clisp.org>
9106
9107         * gnulib-tool (func_reset_sigpipe): Add more comments.
9108
9109 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9110
9111         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
9112         func_emit_tests_Makefile_am, func_import): Abort loops early if we
9113         already know the answer.
9114
9115 2009-01-01  Jim Meyering  <meyering@redhat.com>
9116
9117         * lib/version-etc.c (version_etc_va): Update copyright year.
9118
9119 2008-12-30  Bruno Haible  <bruno@clisp.org>
9120
9121         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
9122         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
9123         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
9124
9125 2008-12-29  Eric Blake  <ebb9@byu.net>
9126
9127         multiarch: avoid autoconf AC_REQUIRE bug
9128         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
9129         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
9130         2.63 and older.
9131         Reported by Bruno Haible, and analyzed in
9132         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
9133
9134 2008-12-29  Bruno Haible  <bruno@clisp.org>
9135
9136         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
9137         files in subdirectories correctly.
9138         Reported by Ralf Wildenhues.
9139
9140 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9141
9142         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
9143         rather than 'join FILE -', for Solaris join.
9144
9145 2008-12-29  Bruno Haible  <bruno@clisp.org>
9146
9147         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
9148         quoting.
9149         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9150         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9151         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9152         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
9153         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9154         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9155         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9156         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9157         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9158         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9159         * m4/nls.m4 (AM_NLS): Likewise.
9160         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
9161         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9162         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9163         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9164         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9165         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9166         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
9167         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9168         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9169         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9170         * m4/xsize.m4 (gl_XSIZE): Likewise.
9171         Suggested by Jim Meyering.
9172
9173 2008-11-17  Bruce Korb  <bkorb@gnu.org>
9174
9175         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
9176         * lib/parse-duration.c: use a switch instead of cascading if's.
9177
9178 2008-12-29  Eric Blake  <ebb9@byu.net>
9179
9180         wchar.h: supply WEOF on Irix 5.3
9181         * lib/wchar.in.h (wint_t): Also supply WEOF.
9182         * lib/wctype.in.h (wint_t): Likewise.
9183         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
9184         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
9185         Reported by Tom G. Christensen.
9186
9187 2008-12-26  Bruno Haible  <bruno@clisp.org>
9188
9189         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
9190         i486, i586, i686.
9191
9192 2008-12-26  Bruno Haible  <bruno@clisp.org>
9193
9194         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
9195
9196 2008-12-26  Bruno Haible  <bruno@clisp.org>
9197
9198         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
9199         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
9200         not __STDC_CONSTANT_MACROS.
9201         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
9202
9203 2008-12-25  Bruno Haible  <bruno@clisp.org>
9204
9205         Add support for universal builds to vasnprintf.
9206         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
9207         universal builds, guess no.
9208         * modules/vasnprintf-posix (Depends-on): Add multiarch.
9209         * modules/vasprintf-posix (Depends-on): Likewise.
9210         * modules/fprintf-posix (Depends-on): Likewise.
9211         * modules/vfprintf-posix (Depends-on): Likewise.
9212         * modules/snprintf-posix (Depends-on): Likewise.
9213         * modules/vsnprintf-posix (Depends-on): Likewise.
9214         * modules/sprintf-posix (Depends-on): Likewise.
9215         * modules/vsprintf-posix (Depends-on): Likewise.
9216         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9223
9224         Add support for universal builds to <inttypes.h>.
9225         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9226         _SCNu64_PREFIX): In Apple
9227         universal builds, define directly, using _LP64.
9228         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
9229         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
9230         * modules/inttypes (Depends-on): Add multiarch.
9231         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
9232
9233         Add support for universal builds to <stdint.h>.
9234         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
9235         universal builds, define directly, using _LP64.
9236         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
9237         Apple universal builds, don't test for the size and suffix of ptrdiff_t
9238         and size_t.
9239         * modules/stdint (Depends-on): Add multiarch.
9240         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
9241
9242         New module 'multiarch'.
9243         * modules/multiarch: New file.
9244         * m4/multiarch.m4: New file.
9245
9246 2008-12-25  Bruno Haible  <bruno@clisp.org>
9247
9248         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
9249
9250 2008-12-25  Bruno Haible  <bruno@clisp.org>
9251
9252         * modules/btowc (License): Relicense under LGPLv2+.
9253         * modules/mbsinit (License): Likewise.
9254         * modules/mbrtowc (License): Likewise.
9255         * modules/wcrtomb (License): Likewise.
9256         * modules/streq (License): Likewise.
9257         Reported by David Lutterkort <lutter@redhat.com>.
9258
9259 2008-12-23  Bruno Haible  <bruno@clisp.org>
9260
9261         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
9262
9263 2008-12-23  Bruno Haible  <bruno@clisp.org>
9264
9265         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
9266         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
9267         GETADDRINFO_LIB, not in LIBS.
9268         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
9269         * modules/canon-host (Link): Likewise.
9270         * NEWS: Mention the change.
9271         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
9272         GETADDRINFO_LIB.
9273
9274 2008-12-22  Bruno Haible  <bruno@clisp.org>
9275
9276         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
9277         * doc/posix-functions/iswalpha_l.texi: Likewise.
9278         * doc/posix-functions/iswblank_l.texi: Likewise.
9279         * doc/posix-functions/iswcntrl_l.texi: Likewise.
9280         * doc/posix-functions/iswctype_l.texi: Likewise.
9281         * doc/posix-functions/iswdigit_l.texi: Likewise.
9282         * doc/posix-functions/iswgraph_l.texi: Likewise.
9283         * doc/posix-functions/iswlower_l.texi: Likewise.
9284         * doc/posix-functions/iswprint_l.texi: Likewise.
9285         * doc/posix-functions/iswpunct_l.texi: Likewise.
9286         * doc/posix-functions/iswspace_l.texi: Likewise.
9287         * doc/posix-functions/iswupper_l.texi: Likewise.
9288         * doc/posix-functions/iswxdigit_l.texi: Likewise.
9289         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
9290         * doc/posix-functions/open_wmemstream.texi: Likewise.
9291         * doc/posix-functions/swscanf.texi: Likewise.
9292         * doc/posix-functions/towctrans_l.texi: Likewise.
9293         * doc/posix-functions/towlower.texi: Likewise.
9294         * doc/posix-functions/towlower_l.texi: Likewise.
9295         * doc/posix-functions/towupper.texi: Likewise.
9296         * doc/posix-functions/towupper_l.texi: Likewise.
9297         * doc/posix-functions/vfwprintf.texi: Likewise.
9298         * doc/posix-functions/vfwscanf.texi: Likewise.
9299         * doc/posix-functions/vswscanf.texi: Likewise.
9300         * doc/posix-functions/vwprintf.texi: Likewise.
9301         * doc/posix-functions/vwscanf.texi: Likewise.
9302         * doc/posix-functions/wcpcpy.texi: Likewise.
9303         * doc/posix-functions/wcpncpy.texi: Likewise.
9304         * doc/posix-functions/wcscasecmp.texi: Likewise.
9305         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
9306         * doc/posix-functions/wcscoll_l.texi: Likewise.
9307         * doc/posix-functions/wcsdup.texi: Likewise.
9308         * doc/posix-functions/wcsncasecmp.texi: Likewise.
9309         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
9310         * doc/posix-functions/wcsnlen.texi: Likewise.
9311         * doc/posix-functions/wcsnrtombs.texi: Likewise.
9312         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
9313         * doc/posix-functions/wctrans_l.texi: Likewise.
9314         * doc/posix-functions/wctype_l.texi: Likewise.
9315         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
9316         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
9317         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
9318         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
9319         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
9320         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
9321         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
9322         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
9323         * doc/glibc-functions/wcschrnul.texi: Likewise.
9324         * doc/glibc-functions/wcsftime_l.texi: Likewise.
9325         * doc/glibc-functions/wcstod_l.texi: Likewise.
9326         * doc/glibc-functions/wcstof_l.texi: Likewise.
9327         * doc/glibc-functions/wcstol_l.texi: Likewise.
9328         * doc/glibc-functions/wcstold_l.texi: Likewise.
9329         * doc/glibc-functions/wcstoll_l.texi: Likewise.
9330         * doc/glibc-functions/wcstoq.texi: Likewise.
9331         * doc/glibc-functions/wcstoul_l.texi: Likewise.
9332         * doc/glibc-functions/wcstoull_l.texi: Likewise.
9333         * doc/glibc-functions/wcstouq.texi: Likewise.
9334         * doc/glibc-functions/wmempcpy.texi: Likewise.
9335
9336 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
9337             Eric Blake  <ebb9@byu.net>
9338             Paolo Bonzini  <bonzini@gnu.org>
9339             Bruno Haible  <bruno@clisp.org>
9340
9341         Make c-stack work on Haiku.
9342         * lib/c-stack.c (SA_ONSTACK): Define fallback.
9343         (c_stack_action): Use SA_ONSTACK flag.
9344
9345 2008-12-22  Bruno Haible  <bruno@clisp.org>
9346
9347         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
9348
9349 2008-12-22  Bruno Haible  <bruno@clisp.org>
9350
9351         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
9352         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
9353         being overridden.
9354         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
9355         New macros.
9356         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
9357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
9358         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
9359         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
9360
9361 2008-12-22  Bruno Haible  <bruno@clisp.org>
9362
9363         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
9364         from test code.
9365
9366 2008-12-22  Eric Blake  <ebb9@byu.net>
9367
9368         Avoid gcc warnings on cygwin.
9369         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
9370         Avoid unused variable.
9371         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
9372         Likewise.
9373
9374 2008-12-22  Bruno Haible  <bruno@clisp.org>
9375
9376         Remove HAVE_MBRTOWC conditionals.
9377         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
9378         (mbscasecmp): Assume mbrtowc function.
9379         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
9380         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
9381         * lib/mbschr.c: Include mbuiter.h unconditionally.
9382         (mbschr): Assume mbrtowc function.
9383         * lib/mbscspn.c: Include mbuiter.h unconditionally.
9384         (mbscspn): Assume mbrtowc function.
9385         * lib/mbslen.c: Include mbuiter.h unconditionally.
9386         (mbslen): Assume mbrtowc function.
9387         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
9388         (mbsncasecmp): Assume mbrtowc function.
9389         * lib/mbsnlen.c: Include mbiter.h unconditionally.
9390         (mbsnlen): Assume mbrtowc function.
9391         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
9392         (mbspbrk): Assume mbrtowc function.
9393         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
9394         (mbspcasecmp): Assume mbrtowc function.
9395         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
9396         (mbsrchr): Assume mbrtowc function.
9397         * lib/mbssep.c: Include mbuiter.h unconditionally.
9398         (mbssep): Assume mbrtowc function.
9399         * lib/mbsspn.c: Include mbuiter.h unconditionally.
9400         (mbsspn): Assume mbrtowc function.
9401         * lib/mbsstr.c: Include mbuiter.h unconditionally.
9402         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
9403         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
9404         (mbstok_r): Assume mbrtowc function.
9405         * lib/propername.c: Include mbuiter.h unconditionally.
9406         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
9407         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
9408         (trim2): Assume mbrtowc function.
9409         * lib/mbswidth.c (mbsinit): Remove fallback definition.
9410         (mbsnwidth): Assume mbrtowc function.
9411         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
9412         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
9413         fallback definitions.
9414         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
9415
9416 2008-12-22  Bruno Haible  <bruno@clisp.org>
9417
9418         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
9419
9420 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
9421
9422         * modules/regex: Request emulations for the mb*/wc* functions we need.
9423         * m4/regex.m4: Don't look for those functions here.
9424         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
9425
9426 2008-12-22  Bruno Haible  <bruno@clisp.org>
9427
9428         * modules/fnmatch (Depends-on): Remove duplicated dependency.
9429
9430 2008-12-21  Bruno Haible  <bruno@clisp.org>
9431
9432         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
9433         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
9434         (Include): Remove conditionalization.
9435         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
9436         (Include): Remove conditionalization.
9437         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
9438         (Include): Remove conditionalization.
9439         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
9440         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9441         * NEWS: Mention the change.
9442         Reported by Alan Hourihane <alanh@fairlite.co.uk>
9443         via Sergey Poznyakoff <gray@gnu.org.ua>.
9444
9445 2008-12-21  Bruno Haible  <bruno@clisp.org>
9446
9447         * MODULES.html.sh (Extended multibyte and wide character utilities
9448         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
9449         wcrtomb, wcsrtombs.
9450         (Support for systems lacking POSIX:2008): Add accept, bind, close,
9451         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
9452         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
9453         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
9454
9455 2008-12-21  Bruno Haible  <bruno@clisp.org>
9456
9457         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
9458
9459 2008-12-21  Bruno Haible  <bruno@clisp.org>
9460
9461         * modules/wcsnrtombs-tests: New file.
9462         * tests/test-wcsnrtombs1.sh: New file.
9463         * tests/test-wcsnrtombs2.sh: New file.
9464         * tests/test-wcsnrtombs3.sh: New file.
9465         * tests/test-wcsnrtombs4.sh: New file.
9466         * tests/test-wcsnrtombs.c: New file.
9467
9468         New module 'wcsnrtombs'.
9469         * lib/wchar.in.h (wcsnrtombs): New declaration.
9470         * lib/wcsnrtombs.c: New file.
9471         * lib/wcsrtombs-state.c: New file.
9472         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
9473         (internal_state): Remove variable.
9474         * m4/wcsnrtombs.m4: New file.
9475         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
9476         compilation units.
9477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
9478         HAVE_WCSNRTOMBS.
9479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
9480         HAVE_WCSNRTOMBS.
9481         * modules/wcsnrtombs: New file.
9482         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
9483         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9484
9485 2008-12-21  Bruno Haible  <bruno@clisp.org>
9486
9487         * modules/wcsrtombs-tests: New file.
9488         * tests/test-wcsrtombs1.sh: New file.
9489         * tests/test-wcsrtombs2.sh: New file.
9490         * tests/test-wcsrtombs3.sh: New file.
9491         * tests/test-wcsrtombs4.sh: New file.
9492         * tests/test-wcsrtombs.c: New file.
9493
9494         New module 'wcsrtombs'.
9495         * lib/wchar.in.h (wcsrtombs): New declaration.
9496         * lib/wcsrtombs.c: New file.
9497         * m4/wcsrtombs.m4: New file.
9498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
9499         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
9501         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9502         * modules/wcsrtombs: New file.
9503         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
9504         bugs.
9505
9506 2008-12-21  Bruno Haible  <bruno@clisp.org>
9507
9508         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
9509         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
9510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
9511         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
9512         if not correct.
9513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
9514         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
9515         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9516         m4/locale-zh.m4, m4/codeset.m4.
9517         * doc/posix-functions/wcrtomb.texi: Document the bug.
9518
9519 2008-12-21  Bruno Haible  <bruno@clisp.org>
9520
9521         Work around a btowc() bug on IRIX 6.5.
9522         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
9523         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
9524         REPLACE_WTOBC if not.
9525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
9526         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
9527         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
9528
9529 2008-12-21  Bruno Haible  <bruno@clisp.org>
9530
9531         * modules/wcrtomb-tests: New file.
9532         * tests/test-wcrtomb.sh: New file.
9533         * tests/test-wcrtomb.c: New file.
9534
9535         New module 'wcrtomb'.
9536         * lib/wchar.in.h (wcrtomb): New declaration.
9537         * lib/wcrtomb.c: New file.
9538         * m4/wcrtomb.m4: New file.
9539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
9540         HAVE_WCRTOMB.
9541         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
9542         HAVE_WCRTOMB.
9543         * modules/wcrtomb: New file.
9544         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9545
9546 2008-12-21  Bruno Haible  <bruno@clisp.org>
9547
9548         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
9549         * modules/mbsrtowcs (Files): Likewise.
9550         * modules/wctob (Files): Likewise.
9551         * modules/c-strcase-tests (Files): Likewise.
9552         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9553         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9554         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9555         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9556         * modules/vasnprintf-posix-tests (Files): Likewise.
9557
9558 2008-12-21  William Pursell  <bill.pursell@gmail.com>
9559
9560         gitlog-to-changelog: pass all command-line arguments to git-log
9561         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
9562         it is sometimes convenient to filter the commits in various ways.
9563         gitlog-to-changelog only allows --since to specify a start date,
9564         but git-log itself supports many other filtering mechanisms.
9565         At the moment, I want to filter by branch name.  Rather than
9566         adding a --branch option to gitlog-to-changelog, it seems more
9567         flexible to simply pass all options directly to git-log and let
9568         git do the work.  Notice that this effectively makes --since a
9569         redundant option for gitlog-to-changelog, but removing it would
9570         require current usage to change since calls would then require
9571         an additional '--'.
9572
9573 2008-12-21  Bruno Haible  <bruno@clisp.org>
9574
9575         * modules/mbsnrtowcs-tests: New file.
9576         * tests/test-mbsnrtowcs1.sh: New file.
9577         * tests/test-mbsnrtowcs2.sh: New file.
9578         * tests/test-mbsnrtowcs3.sh: New file.
9579         * tests/test-mbsnrtowcs4.sh: New file.
9580         * tests/test-mbsnrtowcs.c: New file.
9581
9582         New module 'mbsnrtowcs'.
9583         * lib/wchar.in.h (mbsnrtowcs): New declaration.
9584         * lib/mbsnrtowcs.c: New file.
9585         * lib/mbsrtowcs-state.c: New file.
9586         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
9587         (internal_state): Remove variable.
9588         * m4/mbsnrtowcs.m4: New file.
9589         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
9590         compilation units.
9591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
9592         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9593         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
9594         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9595         * modules/mbsnrtowcs: New file.
9596         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
9597         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
9598         portability problem.
9599
9600 2008-12-21  Bruno Haible  <bruno@clisp.org>
9601
9602         Work around mbsrtowcs bug.
9603         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
9604         (gl_FUNC_MBSRTOWCS): Invoke it.
9605         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9606         m4/locale-zh.m4.
9607         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
9608
9609 2008-12-21  Bruno Haible  <bruno@clisp.org>
9610
9611         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
9612
9613 2008-12-21  Bruno Haible  <bruno@clisp.org>
9614
9615         Update doc for AIX.
9616         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
9617         16-bit wchar_t type.
9618         * doc/posix-functions/btowc.texi: Likewise.
9619         * doc/posix-functions/fgetwc.texi: Likewise.
9620         * doc/posix-functions/fgetws.texi: Likewise.
9621         * doc/posix-functions/fputwc.texi: Likewise.
9622         * doc/posix-functions/fputws.texi: Likewise.
9623         * doc/posix-functions/fwide.texi: Likewise.
9624         * doc/posix-functions/fwprintf.texi: Likewise.
9625         * doc/posix-functions/fwscanf.texi: Likewise.
9626         * doc/posix-functions/getwchar.texi: Likewise.
9627         * doc/posix-functions/getwc.texi: Likewise.
9628         * doc/posix-functions/iswalnum.texi: Likewise.
9629         * doc/posix-functions/iswalpha.texi: Likewise.
9630         * doc/posix-functions/iswblank.texi: Likewise.
9631         * doc/posix-functions/iswcntrl.texi: Likewise.
9632         * doc/posix-functions/iswctype.texi: Likewise.
9633         * doc/posix-functions/iswdigit.texi: Likewise.
9634         * doc/posix-functions/iswgraph.texi: Likewise.
9635         * doc/posix-functions/iswlower.texi: Likewise.
9636         * doc/posix-functions/iswprint.texi: Likewise.
9637         * doc/posix-functions/iswpunct.texi: Likewise.
9638         * doc/posix-functions/iswspace.texi: Likewise.
9639         * doc/posix-functions/iswupper.texi: Likewise.
9640         * doc/posix-functions/iswxdigit.texi: Likewise.
9641         * doc/posix-functions/mbrtowc.texi: Likewise.
9642         * doc/posix-functions/mbsrtowcs.texi: Likewise.
9643         * doc/posix-functions/mbstowcs.texi: Likewise.
9644         * doc/posix-functions/mbtowc.texi: Likewise.
9645         * doc/posix-functions/putwchar.texi: Likewise.
9646         * doc/posix-functions/putwc.texi: Likewise.
9647         * doc/posix-functions/swprintf.texi: Likewise.
9648         * doc/posix-functions/tolower.texi: Likewise.
9649         * doc/posix-functions/toupper.texi: Likewise.
9650         * doc/posix-functions/towctrans.texi: Likewise.
9651         * doc/posix-functions/ungetwc.texi: Likewise.
9652         * doc/posix-functions/vswprintf.texi: Likewise.
9653         * doc/posix-functions/wcrtomb.texi: Likewise.
9654         * doc/posix-functions/wcscat.texi: Likewise.
9655         * doc/posix-functions/wcschr.texi: Likewise.
9656         * doc/posix-functions/wcscmp.texi: Likewise.
9657         * doc/posix-functions/wcscoll.texi: Likewise.
9658         * doc/posix-functions/wcscpy.texi: Likewise.
9659         * doc/posix-functions/wcscspn.texi: Likewise.
9660         * doc/posix-functions/wcsftime.texi: Likewise.
9661         * doc/posix-functions/wcslen.texi: Likewise.
9662         * doc/posix-functions/wcsncat.texi: Likewise.
9663         * doc/posix-functions/wcsncmp.texi: Likewise.
9664         * doc/posix-functions/wcsncpy.texi: Likewise.
9665         * doc/posix-functions/wcspbrk.texi: Likewise.
9666         * doc/posix-functions/wcsrchr.texi: Likewise.
9667         * doc/posix-functions/wcsrtombs.texi: Likewise.
9668         * doc/posix-functions/wcsspn.texi: Likewise.
9669         * doc/posix-functions/wcsstr.texi: Likewise.
9670         * doc/posix-functions/wcstod.texi: Likewise.
9671         * doc/posix-functions/wcstof.texi: Likewise.
9672         * doc/posix-functions/wcstoimax.texi: Likewise.
9673         * doc/posix-functions/wcstok.texi: Likewise.
9674         * doc/posix-functions/wcstold.texi: Likewise.
9675         * doc/posix-functions/wcstoll.texi: Likewise.
9676         * doc/posix-functions/wcstol.texi: Likewise.
9677         * doc/posix-functions/wcstombs.texi: Likewise.
9678         * doc/posix-functions/wcstoull.texi: Likewise.
9679         * doc/posix-functions/wcstoul.texi: Likewise.
9680         * doc/posix-functions/wcstoumax.texi: Likewise.
9681         * doc/posix-functions/wcswidth.texi: Likewise.
9682         * doc/posix-functions/wcsxfrm.texi: Likewise.
9683         * doc/posix-functions/wctob.texi: Likewise.
9684         * doc/posix-functions/wctomb.texi: Likewise.
9685         * doc/posix-functions/wctrans.texi: Likewise.
9686         * doc/posix-functions/wctype.texi: Likewise.
9687         * doc/posix-functions/wcwidth.texi: Likewise.
9688         * doc/posix-functions/wmemchr.texi: Likewise.
9689         * doc/posix-functions/wmemcmp.texi: Likewise.
9690         * doc/posix-functions/wmemcpy.texi: Likewise.
9691         * doc/posix-functions/wmemmove.texi: Likewise.
9692         * doc/posix-functions/wmemset.texi: Likewise.
9693         * doc/posix-functions/wprintf.texi: Likewise.
9694         * doc/posix-functions/wscanf.texi: Likewise.
9695
9696 2008-12-21  Bruno Haible  <bruno@clisp.org>
9697
9698         Update doc for HP-UX 11.11.
9699         * doc/posix-functions/btowc.texi: Clarify that the function is missing
9700         in HP-UX version 11.00, not in all versions of HP-UX 11.
9701         * doc/posix-functions/fwide.texi: Likewise.
9702         * doc/posix-functions/fwprintf.texi: Likewise.
9703         * doc/posix-functions/fwscanf.texi: Likewise.
9704         * doc/posix-functions/inet_ntop.texi: Likewise.
9705         * doc/posix-functions/inet_pton.texi: Likewise.
9706         * doc/posix-functions/mbrlen.texi: Likewise.
9707         * doc/posix-functions/mbrtowc.texi: Likewise.
9708         * doc/posix-functions/mbsinit.texi: Likewise.
9709         * doc/posix-functions/mbsrtowcs.texi: Likewise.
9710         * doc/posix-functions/swprintf.texi: Likewise.
9711         * doc/posix-functions/swscanf.texi: Likewise.
9712         * doc/posix-functions/towctrans.texi: Likewise.
9713         * doc/posix-functions/vfwprintf.texi: Likewise.
9714         * doc/posix-functions/vswprintf.texi: Likewise.
9715         * doc/posix-functions/vwprintf.texi: Likewise.
9716         * doc/posix-functions/wcrtomb.texi: Likewise.
9717         * doc/posix-functions/wcsrtombs.texi: Likewise.
9718         * doc/posix-functions/wcsstr.texi: Likewise.
9719         * doc/posix-functions/wctob.texi: Likewise.
9720         * doc/posix-functions/wctrans.texi: Likewise.
9721         * doc/posix-functions/wmemchr.texi: Likewise.
9722         * doc/posix-functions/wmemcmp.texi: Likewise.
9723         * doc/posix-functions/wmemcpy.texi: Likewise.
9724         * doc/posix-functions/wmemmove.texi: Likewise.
9725         * doc/posix-functions/wmemset.texi: Likewise.
9726         * doc/posix-functions/wprintf.texi: Likewise.
9727         * doc/posix-functions/wscanf.texi: Likewise.
9728
9729 2008-12-21  Bruno Haible  <bruno@clisp.org>
9730
9731         Work around a portability problem.
9732         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
9733         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
9734
9735 2008-12-20  Bruno Haible  <bruno@clisp.org>
9736
9737         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
9738         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
9739         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
9740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
9741         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
9742
9743         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
9744         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
9745         set.
9746         (GNULIB_defined_mbstate_t): New macro.
9747         (mbsinit): Redefine if REPLACE_MBSINIT is set.
9748         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
9749         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
9750         reuses the system's mbrtowc function but works around the bugs.
9751         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
9752         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
9753         macros.
9754         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
9755         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
9756         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
9757         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
9758         REPLACE_MBSINIT if mbsinit needs to be overridden.
9759         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
9760         REPLACE_MBSINIT, REPLACE_MBRTOWC.
9761         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
9762         REPLACE_MBSINIT, REPLACE_MBRTOWC.
9763         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9764         m4/locale-zh.m4.
9765         (Depends): Add mbsinit.
9766         * modules/mbsinit (Depends): Add mbrtowc.
9767         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
9768
9769 2008-12-20  Bruno Haible  <bruno@clisp.org>
9770
9771         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
9772         so that there are no conversion errors on AIX.
9773         * tests/test-mbsrtowcs.c (main): LIkewise.
9774
9775 2008-12-20  Bruno Haible  <bruno@clisp.org>
9776
9777         Work around wctob bug on Solaris <= 9.
9778         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
9779         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
9780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
9781         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
9782         * modules/wctob (Files): Add m4/locale-fr.m4.
9783         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
9784
9785 2008-12-20  Bruno Haible  <bruno@clisp.org>
9786
9787         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
9788         /dev/null.
9789         * tests/test-select-in.sh: Likewise.
9790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9791
9792 2008-12-20  Bruno Haible  <bruno@clisp.org>
9793
9794         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
9795         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
9796         Cygwin 1.5.x.
9797
9798 2008-12-20  Bruno Haible  <bruno@clisp.org>
9799
9800         Ensure mbstate_t is defined on HP-UX 11.11.
9801         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
9802         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
9803         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
9804         AC_USE_SYSTEM_EXTENSIONS.
9805         * modules/fnmatch (Depends-on): Add extensions.
9806         * modules/mbrlen (Depends-on): Likewise.
9807         * modules/mbrtowc (Depends-on): Likewise.
9808         * modules/mbsinit (Depends-on): Likewise.
9809         * modules/mbsrtowcs (Depends-on): Likewise.
9810         * modules/mbswidth (Depends-on): Likewise.
9811         * modules/quotearg (Depends-on): Likewise.
9812         * modules/strftime (Depends-on): Likewise.
9813
9814 2008-12-20  Bruno Haible  <bruno@clisp.org>
9815
9816         Ensure wctob is declared on IRIX 6.5.
9817         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
9818         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
9819         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
9820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
9821         of HAVE_WCTOB.
9822         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
9823         HAVE_WCTOB.
9824         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
9825
9826 2008-12-19  Bruno Haible  <bruno@clisp.org>
9827
9828         * modules/mbsrtowcs-tests: New file.
9829         * tests/test-mbsrtowcs1.sh: New file.
9830         * tests/test-mbsrtowcs2.sh: New file.
9831         * tests/test-mbsrtowcs3.sh: New file.
9832         * tests/test-mbsrtowcs4.sh: New file.
9833         * tests/test-mbsrtowcs.c: New file.
9834
9835         New module 'mbsrtowcs'.
9836         * lib/wchar.in.h (mbsrtowcs): New declaration.
9837         * lib/mbsrtowcs.c: New file.
9838         * m4/mbsrtowcs.m4: New file.
9839         * modules/mbsrtowcs: New file.
9840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
9841         HAVE_MBSRTOWCS.
9842         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
9843         HAVE_MBSRTOWCS.
9844         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
9845
9846 2008-12-19  Bruno Haible  <bruno@clisp.org>
9847
9848         New module 'mbrlen'.
9849         * lib/wchar.in.h (mbrlen): New declaration.
9850         * lib/mbrlen.c: New file.
9851         * m4/mbrlen.m4: New file.
9852         * modules/mbrlen: New file.
9853         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
9854         HAVE_MBRLEN.
9855         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
9856         HAVE_MBRLEN.
9857         * doc/posix-functions/mbrlen.texi: Document the new module.
9858
9859 2008-12-19  Bruno Haible  <bruno@clisp.org>
9860
9861         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
9862         * modules/mbrtowc (Depends-on): Add verify.
9863         Suggested by Paul Eggert.
9864
9865 2008-12-18  Bruno Haible  <bruno@clisp.org>
9866
9867         * modules/mbsinit-tests: New file.
9868         * tests/test-mbsinit.sh: New file.
9869         * tests/test-mbsinit.c: New file.
9870
9871 2008-12-18  Bruno Haible  <bruno@clisp.org>
9872
9873         * modules/mbrtowc-tests: New file.
9874         * tests/test-mbrtowc1.sh: New file.
9875         * tests/test-mbrtowc2.sh: New file.
9876         * tests/test-mbrtowc3.sh: New file.
9877         * tests/test-mbrtowc4.sh: New file.
9878         * tests/test-mbrtowc.c: New file.
9879
9880         New module 'mbrtowc'.
9881         * lib/wchar.in.h (mbstate_t): Override when the system does not have
9882         mbsinit and mbrtowc.
9883         (mbrtowc): New declaration.
9884         * lib/mbrtowc.c: New file.
9885         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
9886         * modules/mbrtowc: New file.
9887         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
9888         HAVE_MBRTOWC.
9889         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
9890         HAVE_MBRTOWC.
9891         * doc/posix-functions/mbrtowc.texi: Document the new module.
9892
9893 2008-12-18  Bruno Haible  <bruno@clisp.org>
9894
9895         New module 'wctob'.
9896         * lib/wchar.in.h (wctob): New declaration.
9897         * lib/wctob.c: New file.
9898         * m4/wctob.m4: New file.
9899         * modules/wctob: New file.
9900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
9901         HAVE_WCTOB.
9902         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
9903         * doc/posix-functions/wctob.texi: Document the new module.
9904
9905 2008-12-18  Bruno Haible  <bruno@clisp.org>
9906
9907         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
9908         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
9909
9910 2008-12-18  Simon Josefsson  <simon@josefsson.org>
9911
9912         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
9913         G. Christensen" <tgc@jupiterrise.com>.
9914
9915         * lib/flock.c: Need to include errno.h.  Reported by "Tom
9916         G. Christensen" <tgc@jupiterrise.com>.
9917
9918         * lib/flock.c: Need to include string.h.  Reported by "Tom
9919         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
9920         <ebb9@byu.net>.
9921
9922 2008-12-18  Bruno Haible  <bruno@clisp.org>
9923
9924         * m4/locale-ja.m4: New file, from GNU gettext.
9925
9926 2008-12-17  Bruno Haible  <bruno@clisp.org>
9927
9928         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
9929         Suggested by Eric Blake.
9930
9931 2008-12-17  Bruno Haible  <bruno@clisp.org>
9932
9933         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
9934
9935 2008-12-17  Bruno Haible  <bruno@clisp.org>
9936
9937         * lib/mbsinit.c: Include verify.h. Verify an assumption.
9938         * modules/mbsinit (Depends-on): Add verify.
9939         Suggested by Paul Eggert.
9940
9941 2008-12-17  Bruno Haible  <bruno@clisp.org>
9942
9943         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
9944         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
9945         gl_FUNC_MBRTOWC.
9946         * m4/mbiter.m4 (gl_MBITER): LIkewise.
9947         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
9948         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
9949         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
9950         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
9951         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
9952         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
9953         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
9954         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
9955         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
9956         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
9957         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
9958         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
9959         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
9960         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
9961         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9962         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
9963         * modules/trim (configure.ac): Likewise.
9964
9965 2008-12-17  Bruno Haible  <bruno@clisp.org>
9966
9967         * modules/btowc-tests: New file.
9968         * tests/test-btowc1.sh: New file.
9969         * tests/test-btowc2.sh: New file.
9970         * tests/test-btowc.c: New file.
9971
9972         New module 'btowc'.
9973         * lib/wchar.in.h (btowc): New declaration.
9974         * lib/btowc.c: New file.
9975         * m4/btowc.m4: New file.
9976         * modules/btowc: New file.
9977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
9978         HAVE_BTOWC.
9979         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
9980         * doc/posix-functions/btowc.texi: Document the new module.
9981
9982 2008-12-17  Bruno Haible  <bruno@clisp.org>
9983
9984         New module 'mbsinit'.
9985         * lib/wchar.in.h (mbsinit): New declaration.
9986         * lib/mbsinit.c: New file.
9987         * m4/mbsinit.m4: New file.
9988         * modules/mbsinit: New file.
9989         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
9990         HAVE_MBSINIT.
9991         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
9992         HAVE_MBSINIT.
9993         * doc/posix-functions/mbsinit.texi: Document the new module.
9994
9995 2008-12-16  Bruno Haible  <bruno@clisp.org>
9996
9997         * lib/unistd.in.h: Add comment.
9998         * tests/test-environ.c: Don't include <stdlib.h>.
9999
10000 2008-12-16  Bruno Haible  <bruno@clisp.org>
10001
10002         * lib/parse-duration.h (parse_duration): Document return value
10003         convention.
10004         * lib/parse-duration.c: Include specification header first. Add
10005         comments.
10006         (_): Remove macro.
10007         (parse_year_month_day, parse_hour_minute_second): Move side effects
10008         outside of strchr call.
10009         (parse_non_iso8601): Move side effects outside of isspace call.
10010         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
10011         call.
10012
10013 2008-12-16  Bruno Haible  <bruno@clisp.org>
10014
10015         * tests/test-parse-duration.sh: Produce no output when the test
10016         succeeds.
10017
10018 2008-12-16  Bruno Haible  <bruno@clisp.org>
10019
10020         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
10021         expressions.
10022
10023 2008-12-15  Bruno Haible  <bruno@clisp.org>
10024
10025         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
10026         * doc/glibc-functions/flistxattr.texi: Likewise.
10027         * doc/glibc-functions/fopencookie.texi: Likewise.
10028         * doc/glibc-functions/fremovexattr.texi: Likewise.
10029         * doc/glibc-functions/fsetxattr.texi: Likewise.
10030         * doc/glibc-functions/getxattr.texi: Likewise.
10031         * doc/glibc-functions/lgetxattr.texi: Likewise.
10032         * doc/glibc-functions/listxattr.texi: Likewise.
10033         * doc/glibc-functions/llistxattr.texi: Likewise.
10034         * doc/glibc-functions/lremovexattr.texi: Likewise.
10035         * doc/glibc-functions/lsetxattr.texi: Likewise.
10036         * doc/glibc-functions/removexattr.texi: Likewise.
10037         * doc/glibc-functions/setxattr.texi: Likewise.
10038         * doc/posix-functions/open_memstream.texi: Likewise.
10039
10040 2008-12-15  Eric Blake  <ebb9@byu.net>
10041
10042         Update doc for cygwin 1.7.
10043         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
10044         functions.
10045         * doc/posix-functions/fchmodat.texi: Likewise.
10046         * doc/posix-functions/fchownat.texi: Likewise.
10047         * doc/posix-functions/fdopendir.texi: Likewise.
10048         * doc/posix-functions/fmemopen.texi: Likewise.
10049         * doc/posix-functions/freeaddrinfo.texi: Likewise.
10050         * doc/posix-functions/fstatat.texi: Likewise.
10051         * doc/posix-functions/futimens.texi: Likewise.
10052         * doc/posix-functions/gai_strerror.texi: Likewise.
10053         * doc/posix-functions/getaddrinfo.texi: Likewise.
10054         * doc/posix-functions/getnameinfo.texi: Likewise.
10055         * doc/posix-functions/if_freenameindex.texi: Likewise.
10056         * doc/posix-functions/if_indextoname.texi: Likewise.
10057         * doc/posix-functions/if_nameindex.texi: Likewise.
10058         * doc/posix-functions/if_nametoindex.texi: Likewise.
10059         * doc/posix-functions/insque.texi: Likewise.
10060         * doc/posix-functions/linkat.texi: Likewise.
10061         * doc/posix-functions/llrint.texi: Likewise.
10062         * doc/posix-functions/llrintf.texi: Likewise.
10063         * doc/posix-functions/llrintl.texi: Likewise.
10064         * doc/posix-functions/lockf.texi: Likewise.
10065         * doc/posix-functions/lrintl.texi: Likewise.
10066         * doc/posix-functions/mkdirat.texi: Likewise.
10067         * doc/posix-functions/mkfifoat.texi: Likewise.
10068         * doc/posix-functions/mknodat.texi: Likewise.
10069         * doc/posix-functions/mq_close.texi: Likewise.
10070         * doc/posix-functions/mq_getattr.texi: Likewise.
10071         * doc/posix-functions/mq_notify.texi: Likewise.
10072         * doc/posix-functions/mq_open.texi: Likewise.
10073         * doc/posix-functions/mq_receive.texi: Likewise.
10074         * doc/posix-functions/mq_send.texi: Likewise.
10075         * doc/posix-functions/mq_setattr.texi: Likewise.
10076         * doc/posix-functions/mq_timedreceive.texi: Likewise.
10077         * doc/posix-functions/mq_timedsend.texi: Likewise.
10078         * doc/posix-functions/mq_unlink.texi: Likewise.
10079         * doc/posix-functions/open_memstream.texi: Likewise.
10080         * doc/posix-functions/openat.texi: Likewise.
10081         * doc/posix-functions/posix_fadvise.texi: Likewise.
10082         * doc/posix-functions/posix_fallocate.texi: Likewise.
10083         * doc/posix-functions/posix_madvise.texi: Likewise.
10084         * doc/posix-functions/posix_memalign.texi: Likewise.
10085         * doc/posix-functions/posix_openpt.texi: Likewise.
10086         * doc/posix-functions/readlinkat.texi: Likewise.
10087         * doc/posix-functions/remque.texi: Likewise.
10088         * doc/posix-functions/renameat.texi: Likewise.
10089         * doc/posix-functions/rintl.texi: Likewise.
10090         * doc/posix-functions/sem_unlink.texi: Likewise.
10091         * doc/posix-functions/shm_open.texi: Likewise.
10092         * doc/posix-functions/shm_unlink.texi: Likewise.
10093         * doc/posix-functions/signgam.texi: Likewise.
10094         * doc/posix-functions/sigset.texi: Likewise.
10095         * doc/posix-functions/stpcpy.texi: Likewise.
10096         * doc/posix-functions/stpncpy.texi: Likewise.
10097         * doc/posix-functions/strerror.texi: Likewise.
10098         * doc/posix-functions/strtod.texi: Likewise.
10099         * doc/posix-functions/symlinkat.texi: Likewise.
10100         * doc/posix-functions/unlinkat.texi: Likewise.
10101         * doc/posix-functions/utimensat.texi: Likewise.
10102         * doc/glibc-functions/bindresvport.texi: Likewise.
10103         * doc/glibc-functions/dn_expand.texi: Likewise.
10104         * doc/glibc-functions/exp10.texi: Likewise.
10105         * doc/glibc-functions/exp10f.texi: Likewise.
10106         * doc/glibc-functions/fgetxattr.texi: Likewise.
10107         * doc/glibc-functions/flistxattr.texi: Likewise.
10108         * doc/glibc-functions/fopencookie.texi: Likewise.
10109         * doc/glibc-functions/freeifaddrs.texi: Likewise.
10110         * doc/glibc-functions/fremovexattr.texi: Likewise.
10111         * doc/glibc-functions/fsetxattr.texi: Likewise.
10112         * doc/glibc-functions/getifaddrs.texi: Likewise.
10113         * doc/glibc-functions/getxattr.texi: Likewise.
10114         * doc/glibc-functions/lgetxattr.texi: Likewise.
10115         * doc/glibc-functions/listxattr.texi: Likewise.
10116         * doc/glibc-functions/llistxattr.texi: Likewise.
10117         * doc/glibc-functions/lremovexattr.texi: Likewise.
10118         * doc/glibc-functions/lsetxattr.texi: Likewise.
10119         * doc/glibc-functions/pow10.texi: Likewise.
10120         * doc/glibc-functions/pow10f.texi: Likewise.
10121         * doc/glibc-functions/rcmd_af.texi: Likewise.
10122         * doc/glibc-functions/removexattr.texi: Likewise.
10123         * doc/glibc-functions/res_init.texi: Likewise.
10124         * doc/glibc-functions/res_mkquery.texi: Likewise.
10125         * doc/glibc-functions/res_query.texi: Likewise.
10126         * doc/glibc-functions/res_querydomain.texi: Likewise.
10127         * doc/glibc-functions/res_send.texi: Likewise.
10128         * doc/glibc-functions/rresvport_af.texi: Likewise.
10129         * doc/glibc-functions/setxattr.texi: Likewise.
10130         * doc/glibc-functions/strcasestr.texi: Likewise.
10131
10132 2008-12-15  Bruno Haible  <bruno@clisp.org>
10133
10134         Fix compilation error on OSF/1 4.0.
10135         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
10136         <sys/time.h>, simply delegate to the system header.
10137         Reported by Daniel Richard G. <oss@teragram.com>.
10138
10139 2008-12-15  Bruno Haible  <bruno@clisp.org>
10140
10141         * doc/posix-functions/openat.texi: Mention the 'openat' module.
10142         * doc/posix-functions/fchmodat.texi: Likewise.
10143         * doc/posix-functions/fchownat.texi: Likewise.
10144         * doc/posix-functions/fdopendir.texi: Likewise.
10145         * doc/posix-functions/fstatat.texi: Likewise.
10146         * doc/posix-functions/mkdirat.texi: Likewise.
10147         * doc/posix-functions/unlinkat.texi: Likewise.
10148
10149 2008-12-14  Bruno Haible  <bruno@clisp.org>
10150
10151         Update doc for POSIX:2008.
10152         * doc/posix-functions/faccessat.texi: New file.
10153         * doc/posix-functions/fchmodat.texi: New file.
10154         * doc/posix-functions/fchownat.texi: New file.
10155         * doc/posix-functions/fdopendir.texi: New file.
10156         * doc/posix-functions/fstatat.texi: New file.
10157         * doc/posix-functions/futimens.texi: New file.
10158         * doc/posix-functions/linkat.texi: New file.
10159         * doc/posix-functions/mkdirat.texi: New file.
10160         * doc/posix-functions/mkfifoat.texi: New file.
10161         * doc/posix-functions/mknodat.texi: New file.
10162         * doc/posix-functions/open_wmemstream.texi: New file.
10163         * doc/posix-functions/openat.texi: New file.
10164         * doc/posix-functions/psiginfo.texi: New file.
10165         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
10166         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
10167         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
10168         * doc/posix-functions/readlinkat.texi: New file.
10169         * doc/posix-functions/renameat.texi: New file.
10170         * doc/posix-functions/strerror_l.texi: New file.
10171         * doc/posix-functions/symlinkat.texi: New file.
10172         * doc/posix-functions/unlinkat.texi: New file.
10173         * doc/posix-functions/utimensat.texi: New file.
10174         * doc/gnulib.texi (Function Substitutes): Add these subsections.
10175
10176 2008-12-14  Bruno Haible  <bruno@clisp.org>
10177
10178         Update doc for POSIX:2008.
10179         * doc/posix-functions/alphasort.texi: Renamed from
10180         doc/glibc-functions/alphasort.texi.
10181         * doc/posix-functions/dirfd.texi: Renamed from
10182         doc/glibc-functions/dirfd.texi.
10183         * doc/posix-functions/dprintf.texi: Renamed from
10184         doc/glibc-functions/dprintf.texi.
10185         * doc/posix-functions/duplocale.texi: Renamed from
10186         doc/glibc-functions/duplocale.texi.
10187         * doc/posix-functions/fexecve.texi: Renamed from
10188         doc/glibc-functions/fexecve.texi.
10189         * doc/posix-functions/fmemopen.texi: Renamed from
10190         doc/glibc-functions/fmemopen.texi.
10191         * doc/posix-functions/freelocale.texi: Renamed from
10192         doc/glibc-functions/freelocale.texi.
10193         * doc/posix-functions/getdate_err.texi: Renamed from
10194         doc/glibc-functions/getdate_err.texi.
10195         * doc/posix-functions/isalnum_l.texi: Renamed from
10196         doc/glibc-functions/isalnum_l.texi.
10197         * doc/posix-functions/isalpha_l.texi: Renamed from
10198         doc/glibc-functions/isalpha_l.texi.
10199         * doc/posix-functions/isblank_l.texi: Renamed from
10200         doc/glibc-functions/isblank_l.texi.
10201         * doc/posix-functions/iscntrl_l.texi: Renamed from
10202         doc/glibc-functions/iscntrl_l.texi.
10203         * doc/posix-functions/isdigit_l.texi: Renamed from
10204         doc/glibc-functions/isdigit_l.texi.
10205         * doc/posix-functions/isgraph_l.texi: Renamed from
10206         doc/glibc-functions/isgraph_l.texi.
10207         * doc/posix-functions/islower_l.texi: Renamed from
10208         doc/glibc-functions/islower_l.texi.
10209         * doc/posix-functions/isprint_l.texi: Renamed from
10210         doc/glibc-functions/isprint_l.texi.
10211         * doc/posix-functions/ispunct_l.texi: Renamed from
10212         doc/glibc-functions/ispunct_l.texi.
10213         * doc/posix-functions/isspace_l.texi: Renamed from
10214         doc/glibc-functions/isspace_l.texi.
10215         * doc/posix-functions/isupper_l.texi: Renamed from
10216         doc/glibc-functions/isupper_l.texi.
10217         * doc/posix-functions/iswalnum_l.texi: Renamed from
10218         doc/glibc-functions/iswalnum_l.texi.
10219         * doc/posix-functions/iswalpha_l.texi: Renamed from
10220         doc/glibc-functions/iswalpha_l.texi.
10221         * doc/posix-functions/iswblank_l.texi: Renamed from
10222         doc/glibc-functions/iswblank_l.texi.
10223         * doc/posix-functions/iswcntrl_l.texi: Renamed from
10224         doc/glibc-functions/iswcntrl_l.texi.
10225         * doc/posix-functions/iswctype_l.texi: Renamed from
10226         doc/glibc-functions/iswctype_l.texi.
10227         * doc/posix-functions/iswdigit_l.texi: Renamed from
10228         doc/glibc-functions/iswdigit_l.texi.
10229         * doc/posix-functions/iswgraph_l.texi: Renamed from
10230         doc/glibc-functions/iswgraph_l.texi.
10231         * doc/posix-functions/iswlower_l.texi: Renamed from
10232         doc/glibc-functions/iswlower_l.texi.
10233         * doc/posix-functions/iswprint_l.texi: Renamed from
10234         doc/glibc-functions/iswprint_l.texi.
10235         * doc/posix-functions/iswpunct_l.texi: Renamed from
10236         doc/glibc-functions/iswpunct_l.texi.
10237         * doc/posix-functions/iswspace_l.texi: Renamed from
10238         doc/glibc-functions/iswspace_l.texi.
10239         * doc/posix-functions/iswupper_l.texi: Renamed from
10240         doc/glibc-functions/iswupper_l.texi.
10241         * doc/posix-functions/iswxdigit_l.texi: Renamed from
10242         doc/glibc-functions/iswxdigit_l.texi.
10243         * doc/posix-functions/isxdigit_l.texi: Renamed from
10244         doc/glibc-functions/isxdigit_l.texi.
10245         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
10246         doc/glibc-functions/mbsnrtowcs.texi.
10247         * doc/posix-functions/mkdtemp.texi: Renamed from
10248         doc/glibc-functions/mkdtemp.texi.
10249         * doc/posix-functions/newlocale.texi: Renamed from
10250         doc/glibc-functions/newlocale.texi.
10251         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
10252         doc/glibc-functions/nl_langinfo_l.texi.
10253         * doc/posix-functions/open_memstream.texi: Renamed from
10254         doc/glibc-functions/open_memstream.texi.
10255         * doc/posix-functions/opterr.texi: Renamed from
10256         doc/glibc-functions/opterr.texi.
10257         * doc/posix-functions/optind.texi: Renamed from
10258         doc/glibc-functions/optind.texi.
10259         * doc/posix-functions/optopt.texi: Renamed from
10260         doc/glibc-functions/optopt.texi.
10261         * doc/posix-functions/psignal.texi: Renamed from
10262         doc/glibc-functions/psignal.texi.
10263         * doc/posix-functions/scandir.texi: Renamed from
10264         doc/glibc-functions/scandir.texi.
10265         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
10266         doc/glibc-functions/sched_get_priority_min.texi.
10267         * doc/posix-functions/signgam.texi: Renamed from
10268         doc/glibc-functions/signgam.texi.
10269         * doc/posix-functions/stpcpy.texi: Renamed from
10270         doc/glibc-functions/stpcpy.texi.
10271         * doc/posix-functions/stpncpy.texi: Renamed from
10272         doc/glibc-functions/stpncpy.texi.
10273         * doc/posix-functions/strcasecmp_l.texi: Renamed from
10274         doc/glibc-functions/strcasecmp_l.texi.
10275         * doc/posix-functions/strcoll_l.texi: Renamed from
10276         doc/glibc-functions/strcoll_l.texi.
10277         * doc/posix-functions/strfmon_l.texi: Renamed from
10278         doc/glibc-functions/strfmon_l.texi.
10279         * doc/posix-functions/strftime_l.texi: Renamed from
10280         doc/glibc-functions/strftime_l.texi.
10281         * doc/posix-functions/strncasecmp_l.texi: Renamed from
10282         doc/glibc-functions/strncasecmp_l.texi.
10283         * doc/posix-functions/strndup.texi: Renamed from
10284         doc/glibc-functions/strndup.texi.
10285         * doc/posix-functions/strnlen.texi: Renamed from
10286         doc/glibc-functions/strnlen.texi.
10287         * doc/posix-functions/strsignal.texi: Renamed from
10288         doc/glibc-functions/strsignal.texi.
10289         * doc/posix-functions/strxfrm_l.texi: Renamed from
10290         doc/glibc-functions/strxfrm_l.texi.
10291         * doc/posix-functions/timer_gettime.texi: Renamed from
10292         doc/glibc-functions/timer_gettime.texi.
10293         * doc/posix-functions/tolower_l.texi: Renamed from
10294         doc/glibc-functions/tolower_l.texi.
10295         * doc/posix-functions/toupper_l.texi: Renamed from
10296         doc/glibc-functions/toupper_l.texi.
10297         * doc/posix-functions/towctrans_l.texi: Renamed from
10298         doc/glibc-functions/towctrans_l.texi.
10299         * doc/posix-functions/towlower_l.texi: Renamed from
10300         doc/glibc-functions/towlower_l.texi.
10301         * doc/posix-functions/towupper_l.texi: Renamed from
10302         doc/glibc-functions/towupper_l.texi.
10303         * doc/posix-functions/uselocale.texi: Renamed from
10304         doc/glibc-functions/uselocale.texi.
10305         * doc/posix-functions/vdprintf.texi: Renamed from
10306         doc/glibc-functions/vdprintf.texi.
10307         * doc/posix-functions/wcpcpy.texi:
10308         Renamed from doc/glibc-functions/wcpcpy.texi.
10309         * doc/posix-functions/wcpncpy.texi: Renamed from
10310         doc/glibc-functions/wcpncpy.texi.
10311         * doc/posix-functions/wcscasecmp.texi: Renamed from
10312         doc/glibc-functions/wcscasecmp.texi.
10313         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
10314         doc/glibc-functions/wcscasecmp_l.texi.
10315         * doc/posix-functions/wcscoll_l.texi: Renamed from
10316         doc/glibc-functions/wcscoll_l.texi.
10317         * doc/posix-functions/wcsdup.texi: Renamed from
10318         doc/glibc-functions/wcsdup.texi.
10319         * doc/posix-functions/wcsncasecmp.texi: Renamed from
10320         doc/glibc-functions/wcsncasecmp.texi.
10321         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
10322         doc/glibc-functions/wcsncasecmp_l.texi.
10323         * doc/posix-functions/wcsnlen.texi: Renamed from
10324         doc/glibc-functions/wcsnlen.texi.
10325         * doc/posix-functions/wcsnrtombs.texi: Renamed from
10326         doc/glibc-functions/wcsnrtombs.texi.
10327         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
10328         doc/glibc-functions/wcsxfrm_l.texi.
10329         * doc/posix-functions/wctrans_l.texi: Renamed from
10330         doc/glibc-functions/wctrans_l.texi.
10331         * doc/posix-functions/wctype_l.texi: Renamed from
10332         doc/glibc-functions/wctype_l.texi.
10333         * doc/gnulib.texi (Function Substitutes): Add these subsections.
10334         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
10335         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
10336         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
10337         these subsections.
10338         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
10339         Remove sections.
10340
10341 2008-12-14  Bruno Haible  <bruno@clisp.org>
10342
10343         Update doc for POSIX:2008.
10344         * doc/posix-functions/*.texi: Update URL of POSIX specification.
10345
10346 2008-12-14  Bruno Haible  <bruno@clisp.org>
10347
10348         Update doc for POSIX:2008.
10349         * doc/pastposix-functions/bcmp.texi: Renamed from
10350         doc/posix-functions/bcmp.texi.
10351         * doc/pastposix-functions/bcopy.texi: Renamed from
10352         doc/posix-functions/bcopy.texi.
10353         * doc/pastposix-functions/bsd_signal.texi: Renamed from
10354         doc/posix-functions/bsd_signal.texi.
10355         * doc/pastposix-functions/bzero.texi: Renamed from
10356         doc/posix-functions/bzero.texi.
10357         * doc/pastposix-functions/ecvt.texi: Renamed from
10358         doc/posix-functions/ecvt.texi.
10359         * doc/pastposix-functions/fcvt.texi: Renamed from
10360         doc/posix-functions/fcvt.texi.
10361         * doc/pastposix-functions/ftime.texi: Renamed from
10362         doc/posix-functions/ftime.texi.
10363         * doc/pastposix-functions/gcvt.texi: Renamed from
10364         doc/posix-functions/gcvt.texi.
10365         * doc/pastposix-functions/getcontext.texi: Renamed from
10366         doc/posix-functions/getcontext.texi.
10367         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
10368         doc/posix-functions/gethostbyaddr.texi.
10369         * doc/pastposix-functions/gethostbyname.texi: Renamed from
10370         doc/posix-functions/gethostbyname.texi.
10371         * doc/pastposix-functions/getwd.texi: Renamed from
10372         doc/posix-functions/getwd.texi.
10373         * doc/pastposix-functions/h_errno.texi: Renamed from
10374         doc/posix-functions/h_errno.texi.
10375         * doc/pastposix-functions/index.texi: Renamed from
10376         doc/posix-functions/index.texi.
10377         * doc/pastposix-functions/makecontext.texi: Renamed from
10378         doc/posix-functions/makecontext.texi.
10379         * doc/pastposix-functions/mktemp.texi: Renamed from
10380         doc/posix-functions/mktemp.texi.
10381         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
10382         doc/posix-functions/pthread_attr_getstackaddr.texi.
10383         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
10384         doc/posix-functions/pthread_attr_setstackaddr.texi.
10385         * doc/pastposix-functions/rindex.texi: Renamed from
10386         doc/posix-functions/rindex.texi.
10387         * doc/pastposix-functions/scalb.texi: Renamed from
10388         doc/posix-functions/scalb.texi.
10389         * doc/pastposix-functions/setcontext.texi: Renamed from
10390         doc/posix-functions/setcontext.texi.
10391         * doc/pastposix-functions/swapcontext.texi: Renamed from
10392         doc/posix-functions/swapcontext.texi.
10393         * doc/pastposix-functions/ualarm.texi: Renamed from
10394         doc/posix-functions/ualarm.texi.
10395         * doc/pastposix-functions/usleep.texi: Renamed from
10396         doc/posix-functions/usleep.texi.
10397         * doc/pastposix-functions/vfork.texi: Renamed from
10398         doc/posix-functions/vfork.texi.
10399         * doc/pastposix-functions/wcswcs.texi: Renamed from
10400         doc/posix-functions/wcswcs.texi.
10401         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
10402         (Function Substitutes): Update.
10403
10404 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10405
10406         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
10407         m4/strerror.m4.
10408
10409 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10410             Bruno Haible  <bruno@clisp.org>
10411
10412         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
10413
10414 2008-12-13  Bruno Haible  <bruno@clisp.org>
10415
10416         * modules/strtoull (Depends-on): Remove unistd.
10417
10418 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10419
10420         * modules/strtoull (Depends-on): Add stdlib.
10421
10422 2008-12-11  Simon Josefsson  <simon@josefsson.org>
10423
10424         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
10425
10426 2008-12-10  Jim Meyering  <meyering@redhat.com>
10427
10428         gl_ASSERT: don't say assertions are disabled when they're not
10429         * m4/assert.m4 (gl_ASSERT): Do not make configure report
10430         "checking whether to enable assertions... no", when they are in
10431         fact enabled.  This is solely a bug in the output of configure.
10432         In spite of saying "no", NDEBUG was not defined in that case.
10433         Also, as noted by Eric Blake, leave assertions enabled upon
10434         --enable-assert=INVALID.
10435
10436 2008-12-10  Bruno Haible  <bruno@clisp.org>
10437
10438         Change MODULES.html to refer to POSIX:2008 where possible.
10439         * MODULES.html.sh (POSIX2008_URL): New variable.
10440         (posix_headers): Remove sys/timeb, ucontext.
10441         (posix2001_headers): New variable.
10442         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
10443         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
10444         index, makecontext, mktemp, pthread_attr_getstackaddr,
10445         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
10446         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
10447         (posix2001_functions): New variable.
10448         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
10449         otherwise.
10450
10451 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10452
10453         add missing include to parse-duration.c
10454         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
10455         * modules/parse-duration (Depends-on): Add xalloc.
10456
10457         fix sed script reading maint.mk
10458         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
10459         (syntax-check-rules): Use it.
10460
10461 2008-12-09  Bruno Haible  <bruno@clisp.org>
10462
10463         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
10464         MacOS X 10.4/PowerPC.
10465         Reported by Simon Josefsson.
10466
10467 2008-12-08  Jim Meyering  <meyering@redhat.com>
10468
10469         work around mingw's lack of some S_IF definitions
10470         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
10471         Reported by Simon Josefsson.
10472
10473 2008-12-08  Bruno Haible  <bruno@clisp.org>
10474
10475         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
10476         applied to variables. Needed on MacOS X 10.4/PowerPC.
10477         Reported by Simon Josefsson.
10478
10479 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
10480         and Eric Blake  <ebb9@byu.net>
10481
10482         assert: honor --enable-assert
10483         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
10484         order to honor --enable-assert, rather than treating it as a
10485         synonym for --disable-assert.
10486
10487 2008-12-08  Jim Meyering  <meyering@redhat.com>
10488
10489         * lib/posixtm.c: Remove now-useless declaration of mktime.
10490
10491         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
10492
10493 2008-12-07  Bruno Haible  <bruno@clisp.org>
10494
10495         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
10496         test_once): Mark functions as static.
10497         * tests/test-tls.c (test_tls): Likewise.
10498
10499 2008-12-07  Bruno Haible  <bruno@clisp.org>
10500
10501         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
10502         iconv_register_autodetect.
10503
10504 2008-12-07  Jim Meyering  <meyering@redhat.com>
10505
10506         posixtm.c: avoid a warning
10507         * lib/posixtm.c (posixtime): Don't initialize tm0.
10508         It's no longer needed to placate gcc4's -Wuninitialized,
10509         and the attempt to placate would elicit a new warning.
10510
10511         unicodeio.c: mark unused parameters
10512         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10513         (fallback_failure_callback): Likewise.
10514
10515 2008-12-07  Bruno Haible  <bruno@clisp.org>
10516
10517         * gnulib-tool (func_create_testdir): When building the tests
10518         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
10519         Reported by Simon Josefsson.
10520
10521 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10522
10523         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
10524
10525 2008-12-06  Bruno Haible  <bruno@clisp.org>
10526
10527         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
10528         Suggested by Eric Blake.
10529
10530 2008-12-06  Bruno Haible  <bruno@clisp.org>
10531
10532         Fix a c-stack test failure on MacOS X.
10533         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
10534         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
10535         handler for SIGBUS as well.
10536         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
10537         install a signal handler for SIGBUS as well.
10538         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
10539
10540 2008-12-06  Bruno Haible  <bruno@clisp.org>
10541
10542         Advocacy documentation.
10543         * doc/gnulib-intro.texi (Benefits): New section.
10544         * doc/gnulib.texi: Update.
10545
10546 2008-12-06  Bruno Haible  <bruno@clisp.org>
10547
10548         Document the 'manywarnings' module.
10549         * doc/manywarnings.texi: New file.
10550         * doc/gnulib.texi: Include it.
10551
10552 2008-12-05  Eric Blake  <ebb9@byu.net>
10553
10554         tests: silence some gcc warnings
10555         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
10556         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
10557         type mismatches.
10558
10559 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10560             Bruno Haible  <bruno@clisp.org>
10561
10562         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
10563
10564 2008-11-29  Jim Meyering  <meyering@redhat.com>
10565
10566         unicodeio.c: mark unused parameters
10567         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10568         (fallback_failure_callback): Likewise.
10569
10570         fts: fix a thinko
10571         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
10572         (set_stat_type): Return S_IF*-valued "type" directly.
10573         Prompted by James Youngman's spotting a related bug.
10574         Confirmed by further testing through find.
10575
10576         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
10577         * lib/fts.c (D_TYPE): Define.
10578         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
10579         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
10580         (s_ifmt_shift_bits): New function.
10581         (set_stat_type): New function.
10582         (fts_build): When not calling fts_stat, call set_stat_type
10583         to propagate dirent.d_type info to fts_read caller.
10584         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
10585         fts_statp->st_mode type information may be valid.
10586
10587 2008-11-28  Simon Josefsson  <simon@josefsson.org>
10588
10589         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
10590         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
10591         <sds@gnu.org>.
10592
10593 2008-11-20  Bruno Haible  <bruno@clisp.org>
10594
10595         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
10596         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
10597         INCLUDE_NEXT.
10598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
10599         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
10600         * modules/math (Makefile.am): Substitute
10601         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
10602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10603
10604 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
10605             Bruno Haible  <bruno@clisp.org>
10606
10607         * lib/stdint.in.h: Define all type macros so that their expansion is
10608         a single typedef'ed token. Fixes a compilation failure in Boost which
10609         does "using ::int8_t;".
10610
10611 2008-11-18  Simon Josefsson  <simon@josefsson.org>
10612
10613         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
10614         gl_MANYWARN_ALL_GCC.
10615         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
10616         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
10617         * modules/manywarnings: New file.
10618         * MODULES.html.sh: Mention manywarnings module.
10619
10620 2008-11-18  Bruno Haible  <bruno@clisp.org>
10621
10622         * doc/gnulib-tool.texi (Unit tests): New section.
10623
10624 2008-11-18  Simon Josefsson  <simon@josefsson.org>
10625
10626         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
10627         paths like 'lib/po/foo.po'.
10628
10629 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10630
10631         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
10632         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
10633
10634 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10635
10636         * m4/warnings.m4: Use CPPFLAGS to really check whether the
10637         parameter works.
10638
10639 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10640
10641         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
10642
10643 2008-11-17  Bruce Korb  <bkorb@gnu.org>
10644
10645         * modules/parse-duration-tests: New file.
10646         * tests/test-parse-duration.sh: New file.
10647         * tests/test-parse-duration.c: New file.
10648
10649         New module 'parse-duration'.
10650         * lib/parse-duration.h: New file.
10651         * lib/parse-duration.c: New file.
10652         * modules/parse-duration: New file.
10653
10654 2008-11-17  Bruno Haible  <bruno@clisp.org>
10655
10656         * tests/test-select-out.sh: Comment out the first pipe test.
10657         Reported by Simon Josefsson.
10658
10659 2008-11-17  Bruno Haible  <bruno@clisp.org>
10660
10661         * modules/getaddrinfo (Depends-on): Add servent, hostent.
10662         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
10663         gl_HOSTENT.
10664
10665 2008-11-17  Bruno Haible  <bruno@clisp.org>
10666
10667         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
10668         -lnetwork and -lnet. Needed for Haiku and BeOS.
10669
10670 2008-11-16  Bruno Haible  <bruno@clisp.org>
10671
10672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
10673
10674 2008-11-16  Bruno Haible  <bruno@clisp.org>
10675
10676         Avoid test failure on Haiku.
10677         * tests/test-fsync.c: Include <errno.h>.
10678         (main): Don't require that fsync (0) fails.
10679
10680 2008-11-15  Bruno Haible  <bruno@clisp.org>
10681
10682         New module 'hostent'.
10683         * modules/hostent: New file.
10684         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
10685
10686 2008-11-15  Bruno Haible  <bruno@clisp.org>
10687
10688         New module 'servent'.
10689         * modules/servent: New file.
10690         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
10691
10692 2008-11-15  Bruno Haible  <bruno@clisp.org>
10693
10694         Avoid generating same test program with two different rules.
10695         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
10696         test-frexp to test-frexp-nolibm.
10697         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
10698         test-frexpl to test-frexpl-nolibm.
10699
10700 2008-11-15  Bruno Haible  <bruno@clisp.org>
10701
10702         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
10703         $(FREXPL_LIBM).
10704
10705 2008-11-15  Bruno Haible  <bruno@clisp.org>
10706
10707         * lib/netdb.in.h: Activate the definitions also when the system's
10708         <netdb.h> has 'struct addrinfo'.
10709         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
10710         EAI_OVERFLOW or AI_NUMERICSERV.
10711         * doc/posix-headers/netdb.texi: Document the problem.
10712
10713 2008-11-15  Bruno Haible  <bruno@clisp.org>
10714
10715         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
10716
10717         Make the 'sched' module work on platforms where <sched.h> exists but
10718         is incomplete (such as Haiku).
10719         * lib/sched.in.h; Include the system's <sched.h> if it exists.
10720         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
10721         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
10722         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
10723         HAVE_STRUCT_SCHED_PARAM.
10724         * modules/sched (Depends-on): Add include_next.
10725         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
10726         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
10727         * doc/posix-headers/sched.texi: Document the issue.
10728
10729 2008-11-13  Jim Meyering  <meyering@redhat.com>
10730
10731         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
10732         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
10733         test would fail due to the difference in the Report bugs to ...
10734         line.  The expected address is empty, "<>", while the actual
10735         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
10736
10737 2008-11-12  Bruno Haible  <bruno@clisp.org>
10738
10739         lstat: don't compile lstat.c on systems lacking lstat
10740         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
10741         which don't have lstat; this is handled by lib/sys_stat.in.h already.
10742         Reported by Daniel P. Berrange via Jim Meyering.
10743
10744 2008-11-12  Jim Meyering  <meyering@redhat.com>
10745
10746         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
10747
10748 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10749
10750         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
10751         instead.
10752
10753 2008-11-12  Bruno Haible  <bruno@clisp.org>
10754
10755         * lib/unicodeio.c: Include unistr.h.
10756         (utf8_wctomb): Remove function.
10757         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
10758
10759 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10760
10761         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
10762         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
10763         <bruno@clisp.org>.
10764         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
10765
10766 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10767
10768         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
10769         * doc/gnulib.texi: Add section for warnings.
10770
10771 2008-11-11  Bruno Haible  <bruno@clisp.org>
10772
10773         * lib/sockets.h: Add a comment.
10774
10775 2008-11-11  Karl Berry  <karl@gnu.org>
10776
10777         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
10778
10779 2008-11-11  Eric Blake  <ebb9@byu.net>
10780
10781         fdl.texi: avoid git symlinks
10782         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
10783
10784 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10785
10786         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
10787
10788 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10789
10790         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
10791         (gl_WARN_ADD): Substitute $2 if literal.
10792
10793 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10794
10795         * m4/warning.m4: Remove.
10796
10797 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10798
10799         * m4/warnings.m4: Almost complete rewrite. :-)
10800
10801 2008-11-10  Simon Josefsson  <simon@josefsson.org>
10802
10803         * modules/warnings: New module.
10804         * m4/warnings.m4: New file.
10805         * MODULES.html.sh: Mention warnings module.
10806         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
10807         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10808
10809 2008-11-10  Eric Blake  <ebb9@byu.net>
10810
10811         fdl.texi: make a symlink to the latest version
10812         * doc/standards.texi: Revert today's earlier change.
10813         * doc/fdl-1.2.texi: Rename from old fdl.texi...
10814         * doc/fdl.texi: ...and replace this with a symlink to the newer
10815         fdl-1.3.texi.
10816
10817 2008-11-10  Bruno Haible  <bruno@clisp.org>
10818
10819         * tests/test-select-fd.c (main): Accept the result file name as fourth
10820         argument.
10821         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
10822         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
10823
10824 2008-11-10  Bruno Haible  <bruno@clisp.org>
10825
10826         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
10827         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
10828         as autoconf-substituted macros.
10829         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
10830         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
10831         gl_NETDB_H_DEFAULTS. Set these variables.
10832         * modules/netdb (Makefile.am): Substitute these variables.
10833
10834 2008-11-10  Eric Blake  <ebb9@byu.net>
10835
10836         standards.texi: include correct file for FDL 1.3
10837         * doc/standards.texi (GNU Free Documentation License): Change
10838         include file to pull in FDL 1.3, not 1.2.
10839
10840         fdl.texi: revert accidental change to license
10841         * doc/fdl.texi: This is FDL 1.2, not 1.3.
10842
10843 2008-11-10  Bruno Haible  <bruno@clisp.org>
10844
10845         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
10846         cross-compiling guesses also when the native compile gives no result.
10847
10848 2008-11-10  Bruno Haible  <bruno@clisp.org>
10849
10850         * lib/spawni.c (__spawni): Force variable into the stack.
10851
10852 2008-11-10  Bruno Haible  <bruno@clisp.org>
10853
10854         Add support for Haiku.
10855         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
10856         glibc and BeOS, but also on Haiku.
10857         * lib/fpurge.c (fpurge): Likewise.
10858         * lib/freadable.c (freadable): Likewise.
10859         * lib/freadahead.c (freadahead): Likewise.
10860         * lib/freading.c (freading): Likewise.
10861         * lib/freadptr.c (freadptr): Likewise.
10862         * lib/freadseek.c (freadptrinc): Likewise.
10863         * lib/fseeko.c (rpl_fseeko): Likewise.
10864         * lib/fseterr.c (fseterr): Likewise.
10865         * lib/fwritable.c (fwritable): Likewise.
10866         * lib/fwriting.c (fwriting): Likewise.
10867         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
10868
10869 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
10870
10871         * lib/config.charset: Treat Haiku like BeOS.
10872
10873 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
10874
10875         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
10876         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
10877
10878 2008-11-08  Bruno Haible  <bruno@clisp.org>
10879
10880         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
10881         AC_CACHE_CHECK.
10882
10883 2008-11-08  Bruno Haible  <bruno@clisp.org>
10884
10885         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
10886
10887 2008-11-08  Bruno Haible  <bruno@clisp.org>
10888
10889         * tests/test-select-fd.c: New file.
10890         * tests/test-select-in.sh: New file.
10891         * tests/test-select-out.sh: New file.
10892         * tests/test-select-stdin.c: New file.
10893         * modules/select-tests (Files): Add the new files.
10894         (Depends-on): Add gettimeofday.
10895         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
10896         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
10897         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
10898
10899 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
10900             Bruno Haible  <bruno@clisp.org>
10901
10902         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
10903
10904 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
10905
10906         * build-aux/pmccabe2html: Added support for C++ source files.
10907
10908 2008-11-05  Ben Pfaff  <blp@gnu.org>
10909
10910         Fix lib/close.c build on Windows.
10911         * modules/close (Files): Add lib/w32sock.h.
10912
10913 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
10914
10915         Accept Bison's NEWS format.
10916         * build-aux/announce-gen (print_news_deltas): Tweak
10917         $re_prefix.
10918
10919 2008-11-04  Bruno Haible  <bruno@clisp.org>
10920
10921         * modules/random_r (Maintainer): Add glibc.
10922
10923 2008-11-04  Simon Josefsson  <simon@josefsson.org>
10924
10925         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
10926         by karl@freefriends.org (Karl Berry).
10927         * doc/alloca.texi: Likewise.
10928         * doc/c-ctype.texi: Likewise.
10929         * doc/c-strcase.texi: Likewise.
10930         * doc/c-strcaseeq.texi: Likewise.
10931         * doc/c-strcasestr.texi: Likewise.
10932         * doc/c-strstr.texi: Likewise.
10933         * doc/c-strtod.texi: Likewise.
10934         * doc/c-strtold.texi: Likewise.
10935         * doc/ctime.texi: Likewise.
10936         * doc/error.texi: Likewise.
10937         * doc/fdl.texi: Likewise.
10938         * doc/gcd.texi: Likewise.
10939         * doc/getdate.texi: Likewise.
10940         * doc/gnulib-intro.texi: Likewise.
10941         * doc/gnulib-tool.texi: Likewise.
10942         * doc/gnulib.texi: Likewise.
10943         * doc/inet_ntoa.texi: Likewise.
10944         * doc/maintain.texi: Likewise.
10945         * doc/make-stds.texi: Likewise.
10946         * doc/quote.texi: Likewise.
10947         * doc/regexprops-generic.texi: Likewise.
10948         * doc/standards.texi: Likewise.
10949         * doc/verify.texi: Likewise.
10950         * doc/visibility.texi: Likewise.
10951         * doc/gnulib.texi (GNU Free Documentation License): Include
10952         fdl-1.3.texi instead of fdl.texi.
10953
10954 2008-11-04  Simon Josefsson  <simon@josefsson.org>
10955
10956         * doc/fdl-1.3.texi: New file, from
10957         <http://www.gnu.org/licenses/fdl-1.3.texi>.
10958         * modules/fdl-1.3: Add.
10959         * MODULES.html.sh: Add fdl-1.3.
10960
10961 2008-11-03  Bruno Haible  <bruno@clisp.org>
10962
10963         Make determination of absolute name of header file work with AIX xlc.
10964         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
10965         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
10966         preprocessing.
10967         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10968         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10969
10970 2008-11-03  Simon Josefsson  <simon@josefsson.org>
10971
10972         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
10973         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
10974         <ludo@gnu.org>.
10975
10976 2008-11-02  Bruno Haible  <bruno@clisp.org>
10977
10978         Mark 'strpbrk' obsolete.
10979         * modules/strpbrk (Status, Notice): New sections.
10980         * modules/strtok_r (Depends-on): Add strpbrk.
10981
10982 2008-11-02  Bruno Haible  <bruno@clisp.org>
10983
10984         Mark 'strdup' obsolete.
10985         * modules/strdup (Status, Notice): New sections.
10986         * modules/findprog (Depends-on): Add strdup.
10987         * modules/getaddrinfo (Depends-on): Likewise.
10988         * modules/localename (Depends-on): Likewise.
10989         * modules/relocatable-lib (Depends-on): Likewise.
10990         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
10991         * modules/relocatable-prog (Depends-on): Likewise.
10992         * modules/trim (Depends-on): Likewise.
10993         * modules/unictype/gen-ctype (Depends-on): Likewise.
10994         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10995
10996 2008-11-02  Bruno Haible  <bruno@clisp.org>
10997
10998         Mark 'strcspn' obsolete.
10999         * modules/strcspn (Status, Notice): New sections.
11000
11001 2008-11-02  Bruno Haible  <bruno@clisp.org>
11002
11003         Mark 'rmdir' obsolete.
11004         * modules/rmdir (Status, Notice): New sections.
11005         * modules/clean-temp (Depends-on): Add rmdir.
11006         * modules/openat (Depends-on): Likewise.
11007
11008 2008-11-02  Bruno Haible  <bruno@clisp.org>
11009
11010         Mark 'raise' obsolete.
11011         * modules/raise (Status, Notice): New sections.
11012         (Include): Specify <signal.h>.
11013         * modules/stdio (Depends-on): Add raise.
11014         * modules/write (Depends-on): Likewise.
11015
11016 2008-11-02  Bruno Haible  <bruno@clisp.org>
11017
11018         Mark 'memset' obsolete.
11019         * modules/memset (Status, Notice): New sections.
11020
11021 2008-11-02  Bruno Haible  <bruno@clisp.org>
11022
11023         Mark 'memmove' obsolete.
11024         * modules/memmove (Status, Notice): New sections.
11025         * modules/argp (Depends-on): Add memmove.
11026         * modules/argz (Depends-on): Likewise.
11027         * modules/canonicalize (Depends-on): Likewise.
11028         * modules/canonicalize-lgpl (Depends-on): Likewise.
11029         * modules/fts (Depends-on): Likewise.
11030         * modules/getcwd (Depends-on): Likewise.
11031         * modules/human (Depends-on): Likewise.
11032         * modules/regex (Depends-on): Likewise.
11033         * modules/striconveh (Depends-on): Likewise.
11034         * modules/trim (Depends-on): Likewise.
11035         * modules/unistr/u8-move (Depends-on): Likewise.
11036         * modules/unistr/u16-move (Depends-on): Likewise.
11037         * modules/unistr/u32-move (Depends-on): Likewise.
11038
11039 2008-11-02  Bruno Haible  <bruno@clisp.org>
11040
11041         Mark 'memcpy' obsolete.
11042         * modules/memcpy (Status, Notice): New sections.
11043
11044 2008-11-02  Bruno Haible  <bruno@clisp.org>
11045
11046         Mark 'memcmp' obsolete.
11047         * modules/memcmp (Status, Notice): New sections.
11048         * modules/argmatch (Depends-on): Add memchr.
11049         * modules/backupfile (Depends-on): Likewise.
11050         * modules/c-strcasestr (Depends-on): Likewise.
11051         * modules/crypto/des (Depends-on): Likewise.
11052         * modules/csharpcomp (Depends-on): Likewise.
11053         * modules/fnmatch (Depends-on): Likewise.
11054         * modules/git-merge-changelog (Depends-on): Likewise.
11055         * modules/isnand (Depends-on): Likewise.
11056         * modules/isnand-nolibm (Depends-on): Likewise.
11057         * modules/isnanf (Depends-on): Likewise.
11058         * modules/isnanf-nolibm (Depends-on): Likewise.
11059         * modules/isnanl (Depends-on): Likewise.
11060         * modules/isnanl-nolibm (Depends-on): Likewise.
11061         * modules/mbchar (Depends-on): Likewise.
11062         * modules/memcoll (Depends-on): Likewise.
11063         * modules/quotearg (Depends-on): Likewise.
11064         * modules/regex (Depends-on): Likewise.
11065         * modules/relocatable-prog (Depends-on): Likewise.
11066         * modules/same (Depends-on): Likewise.
11067         * modules/signbit (Depends-on): Likewise.
11068         * modules/strcasestr-simple (Depends-on): Likewise.
11069         * modules/unictype/gen-ctype (Depends-on): Likewise.
11070         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
11071         * modules/uniname/uniname (Depends-on): Likewise.
11072         * modules/unistr/u8-cmp (Depends-on): Likewise.
11073
11074 2008-11-02  Bruno Haible  <bruno@clisp.org>
11075
11076         Mark 'memchr' obsolete.
11077         * modules/memchr (Status, Notice): New sections.
11078         * modules/argp (Depends-on): Add memchr.
11079         * modules/base64 (Depends-on): Likewise.
11080         * modules/c-strcasestr (Depends-on): Likewise.
11081         * modules/chdir-long (Depends-on): Likewise.
11082         * modules/fnmatch (Depends-on): Likewise.
11083         * modules/getsubopt (Depends-on): Likewise.
11084         * modules/git-merge-changelog (Depends-on): Likewise.
11085         * modules/glob (Depends-on): Likewise.
11086         * modules/strcasestr-simple (Depends-on): Likewise.
11087         * modules/strnlen (Depends-on): Likewise.
11088
11089 2008-11-02  Bruno Haible  <bruno@clisp.org>
11090
11091         Mark 'atexit' obsolete.
11092         * modules/atexit (Status, Notice): New sections.
11093         * modules/chdir-long (Depends-on): Add atexit.
11094         * modules/wait-process (Depends-on): Likewise.
11095
11096 2008-11-02  Bruno Haible  <bruno@clisp.org>
11097
11098         * gnulib-tool: New option --with-obsolete.
11099         (func_usage): Document it.
11100         (func_modules_transitive_closure): Drop obsolete dependencies if
11101         incobsolete is not true.
11102         (func_import): Read and save the incobsolete variable to the cache.
11103
11104 2008-11-02  Bruno Haible  <bruno@clisp.org>
11105
11106         * modules/TEMPLATE-EXTENDED: New field 'Status'.
11107         * gnulib-tool: New option --extract-status.
11108         (func_usage): Document it.
11109         (sed_extract_prog): Recognize it.
11110         (func_get_status): New function.
11111
11112 2008-10-30  Simon Josefsson  <simon@josefsson.org>
11113
11114         * modules/sockets (License): Change from LGPL to LGPLv2+.
11115
11116 2008-10-28  Simon Josefsson  <simon@josefsson.org>
11117
11118         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
11119
11120 2008-10-28  Simon Josefsson  <simon@josefsson.org>
11121
11122         * MODULES.html.sh (Support for systems lacking POSIX:2001):
11123         Mention times and sys_times.
11124         * modules/sys_times, modules/sys_times-tests: New modules.
11125         * modules/times, modules/times-tests: Likewise
11126         * m4/sys_times_h.m4: New file.
11127         * lib/sys_times.in.h: Likewise
11128         * lib/times.c: Likewise.
11129         * tests/test-sys_times.c: Likewise.
11130         * tests/test-times.c: Likewise.
11131         * doc/posix-headers/sys_times.texi: Update.
11132         * doc/posix-functions/times.texi: Update.
11133
11134 2008-10-28  Jim Meyering  <meyering@redhat.com>
11135
11136         * modules/tempname (Depends-on): Add lstat.
11137
11138         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
11139
11140 2008-10-28  Simon Josefsson  <simon@josefsson.org>
11141
11142         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
11143         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
11144         using idiom used elsewhere in gnulib.
11145
11146 2008-10-27  Jim Meyering  <meyering@redhat.com>
11147
11148         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
11149
11150 2008-10-27  Simon Josefsson  <simon@josefsson.org>
11151
11152         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
11153         TESTS_ENVIRONMENT, for shell scripts that needs to call built
11154         programs.
11155         * tests/test-argp-2.sh: Use $EXEEXT when needed.
11156
11157 2008-10-27  Simon Josefsson  <simon@josefsson.org>
11158
11159         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
11160
11161 2008-10-27  Bruno Haible  <bruno@clisp.org>
11162
11163         * tests/test-lstat.c: Include <stdio.h>.
11164
11165 2008-10-27  Simon Josefsson  <simon@josefsson.org>
11166
11167         * modules/lstat-tests: New module.
11168         * tests/test-lstat.c: New file.
11169
11170 2008-10-26  Jim Meyering  <meyering@redhat.com>
11171
11172         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
11173
11174 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11175             Bruno Haible  <bruno@clisp.org>
11176
11177         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
11178         * modules/configmake (Include): Add a note that the include must come
11179         after all system headers.
11180         * lib/javaversion.c: Include configmake.h after all other includes.
11181
11182 2008-10-26  Bruno Haible  <bruno@clisp.org>
11183
11184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
11185         HAVE_STRUCT_RANDOM_DATA to 1.
11186         (gl_STDLIB_H): Simplify.
11187
11188 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11189
11190         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
11191         substitute HAVE_STRUCT_RANDOM_DATA.
11192         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
11193         random_data.
11194         * modules/stdlib (Makefile.am): Substitute
11195         HAVE_STRUCT_RANDOM_DATA.
11196
11197 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11198
11199         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
11200         * doc/gnulib-intro.texi (Copyright): Likewise.
11201
11202 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11203
11204         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
11205         findings.
11206
11207 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
11208             Bruno Haible  <bruno@clisp.org>
11209
11210         * lib/unistd.in.h: Include <winsock2.h>.
11211         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
11212         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
11213         Provide dummy declarations.
11214         (gethostname): Override.
11215         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
11216         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
11217         gl_PREREQ_SYS_H_WINSOCK2.
11218         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
11219         * doc/posix-functions/gethostname.texi: More details.
11220
11221 2008-10-25  Bruno Haible  <bruno@clisp.org>
11222
11223         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
11224         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
11225         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
11226
11227         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
11228         here ...
11229         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
11230         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
11231         gl_UNISTD_H_DEFAULTS.
11232
11233 2008-10-25  Eric Blake  <ebb9@byu.net>
11234
11235         signbit: avoid spurious compiler failure
11236         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
11237         declarations inside function.
11238
11239 2008-10-24  Simon Josefsson  <simon@josefsson.org>
11240             Bruno Haible  <bruno@clisp.org>
11241
11242         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
11243         * modules/random_r (Depends-on): Add stdint.
11244
11245 2008-10-24  Bruno Haible  <bruno@clisp.org>
11246
11247         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
11248         Eggert.
11249         * modules/strerror (License): Likewise.
11250
11251 2008-10-24  Jim Meyering  <meyering@redhat.com>
11252
11253         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
11254         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
11255
11256 2008-10-24  Eric Blake  <ebb9@byu.net>
11257
11258         getgroups: fix compilation when getgroups is available
11259         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
11260         but with <config.h> override of getgroups disabled.
11261
11262 2008-10-24  Simon Josefsson  <simon@josefsson.org>
11263
11264         * doc/gnulib.texi (Header files): Add note about C++ problems.
11265         Explained by Bruno Haible <bruno@clisp.org>.
11266
11267 2008-10-23  Bruno Haible  <bruno@clisp.org>
11268
11269         Define a dummy SA_NODEFER macro on Interix.
11270         * lib/signal.in.h (SA_NODEFER): Define fallback.
11271         Reported by Aleksey Cheusov <cheusov@tut.by> via
11272         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
11273
11274 2008-10-23  Bruno Haible  <bruno@clisp.org>
11275
11276         * modules/freadahead (License): Change to LGPLv2+.
11277         Suggested by Simon Josefsson.
11278
11279 2008-10-23  Jim Meyering  <meyering@redhat.com>
11280
11281         random_r: new module
11282         * modules/random_r: New file.
11283         * m4/random_r.m4: New file.
11284         * lib/random_r.c: New file, from glibc.
11285         * modules/random_r-tests: New file.
11286         * tests/test-random_r.c: New file.
11287         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
11288          Declare.
11289         (RAND_MAX): Define.
11290         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
11291         * modules/stdlib: Substitute them, too.
11292         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
11293         * doc/glibc-functions/initstate_r.texi: Mention the new module.
11294         * doc/glibc-functions/random_r.texi: Likewise.
11295         * doc/glibc-functions/setstate_r.texi: Likewise.
11296         * doc/glibc-functions/srandom_r.texi: Likewise.
11297         * config/srclist.txt: Mention it.
11298
11299 2008-10-23  David Lutterkort  <lutter@redhat.com>
11300
11301         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
11302         link requirement
11303
11304 2008-10-23  Jim Meyering  <meyering@redhat.com>
11305
11306         selinux-h: mark parameters of stub functions as intentionally unused
11307         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
11308         * lib/se-context.in.h: Likewise.
11309
11310 2008-10-22  Simon Josefsson  <simon@josefsson.org>
11311
11312         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
11313
11314 2008-10-22  Simon Josefsson  <simon@josefsson.org>
11315
11316         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
11317
11318 2008-10-22  Eric Blake  <ebb9@byu.net>
11319
11320         glthread/thread: avoid compiler warning
11321         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
11322         Add unreachable abort to silence compiler.
11323
11324 2008-10-22  Eric Blake  <ebb9@byu.net>
11325
11326         netdb: also supply struct addrinfo for cygwin 1.5.x
11327         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
11328         older cygwin.
11329         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
11330         cygwin.
11331         * doc/posix-headers/netdb.texi (netdb.h): Document this.
11332
11333 2008-10-22  Bruno Haible  <bruno@clisp.org>
11334
11335         * users.txt: Update entry about pspp.
11336
11337 2008-10-21  Bruno Haible  <bruno@clisp.org>
11338
11339         Simplification.
11340         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
11341         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
11342
11343         Simplification.
11344         * lib/ioctl.c (ioctl): Don't undefine.
11345         * lib/socket.c (socket): Don't undefine.
11346
11347         Remove unused module indicator macros.
11348         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
11349         GNULIB_$1 as a C macro.
11350
11351         * doc/posix-functions/close.texi: Undo last change.
11352         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
11353         Windows platforms.
11354
11355 2008-10-21  Bruno Haible  <bruno@clisp.org>
11356
11357         Add gethostname() declaration to <unistd.h>.
11358         * lib/unistd.in.h (gethostname): New declaration.
11359         * lib/gethostname.c: Include <unistd.h>.
11360         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
11361         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
11362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
11363         and HAVE_GETHOSTNAME.
11364         * modules/gethostname (Depends-on): Add unistd.
11365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11366         (Include): Specify <unistd.h>.
11367         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
11368         HAVE_GETHOSTNAME.
11369         * tests/test-gethostname.c: Include <unistd.h> first.
11370
11371 2008-10-21  Bruno Haible  <bruno@clisp.org>
11372
11373         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
11374         * modules/select-tests (Depends-on): Likewise.
11375         Reported by Simon Josefsson.
11376
11377 2008-10-21  Simon Josefsson  <simon@josefsson.org>
11378
11379         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
11380         * lib/accept.c: New file, based on winsock.c.
11381         * lib/bind.c: New file, based on winsock.c.
11382         * lib/connect.c: New file, based on winsock.c.
11383         * lib/getpeername.c: New file, based on winsock.c.
11384         * lib/getsockname.c: New file, based on winsock.c.
11385         * lib/getsockopt.c: New file, based on winsock.c.
11386         * lib/ioctl.c: New file, based on winsock.c.
11387         * lib/listen.c: New file, based on winsock.c.
11388         * lib/recv.c: New file, based on winsock.c.
11389         * lib/recvfrom.c: New file, based on winsock.c.
11390         * lib/send.c: New file, based on winsock.c.
11391         * lib/sendto.c: New file, based on winsock.c.
11392         * lib/setsockopt.c: New file, based on winsock.c.
11393         * lib/shutdown.c: New file, based on winsock.c.
11394         * lib/socket.c: New file, based on winsock.c.
11395         * lib/w32sock.h: New file, based on winsock.c.
11396         * lib/winsock.c: Remove file.
11397         * modules/accept: Likewise.
11398         * modules/bind: Likewise.
11399         * modules/connect: Likewise.
11400         * modules/getpeername: Likewise.
11401         * modules/getsockname: Likewise.
11402         * modules/getsockopt: Likewise.
11403         * modules/ioctl: Likewise.
11404         * modules/listen: Likewise.
11405         * modules/recv: Likewise.
11406         * modules/recvfrom: Likewise.
11407         * modules/send: Likewise.
11408         * modules/sendto: Likewise.
11409         * modules/setsockopt: Likewise.
11410         * modules/shutdown: Likewise.
11411         * modules/socket: Use socket.c instead of winsock.c.
11412         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
11413         * doc/posix-functions/accept.texi: Doc fix.
11414         * doc/posix-functions/bind.texi: Doc fix.
11415         * doc/posix-functions/close.texi: Doc fix.
11416         * doc/posix-functions/connect.texi: Doc fix.
11417         * doc/posix-functions/getpeername.texi: Doc fix.
11418         * doc/posix-functions/getsockname.texi: Doc fix.
11419         * doc/posix-functions/getsockopt.texi: Doc fix.
11420         * doc/posix-functions/ioctl.texi: Doc fix.
11421         * doc/posix-functions/listen.texi: Doc fix.
11422         * doc/posix-functions/recv.texi: Doc fix.
11423         * doc/posix-functions/recvfrom.texi: Doc fix.
11424         * doc/posix-functions/send.texi: Doc fix.
11425         * doc/posix-functions/sendto.texi: Doc fix.
11426         * doc/posix-functions/setsockopt.texi: Doc fix.
11427         * doc/posix-functions/shutdown.texi: Doc fix.
11428         * doc/posix-functions/socket.texi: Doc fix.
11429
11430 2008-10-20  Bruno Haible  <bruno@clisp.org>
11431
11432         Take into account the role of SIGABRT_COMPAT on Windows 2008.
11433         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
11434         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
11435         as an alias for SIGABRT.
11436         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
11437         (sigaction): Map it to SIGABRT.
11438         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
11439
11440 2008-10-20  Bruno Haible  <bruno@clisp.org>
11441
11442         * lib/fts.c: Don't include lstat.h.
11443         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
11444
11445         Move the lstat() declaration to <sys/stat.h>.
11446         * lib/lstat.h: Remove file.
11447         * lib/sys_stat.in.h: Add special invocation convention.
11448         (lstat): New declaration.
11449         * lib/lstat.c (orig_lstat): New function.
11450         (rpl_lstat): Use orig_lstat instead of lstat.
11451         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
11452         AC_C_INLINE. Set REPLACE_LSTAT.
11453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
11454         and REPLACE_LSTAT.
11455         * modules/lstat (Files): Remove lib/lstat.h.
11456         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
11457         (Include): Specify <sys/stat.h> instead of lstat.h.
11458         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
11459         REPLACE_LSTAT.
11460         * NEWS: Mention the change.
11461
11462 2008-10-20  Bruno Haible  <bruno@clisp.org>
11463
11464         * modules/posix_spawn-tests: New file.
11465         * tests/test-posix_spawn3.c: New file.
11466
11467 2008-10-20  Bruno Haible  <bruno@clisp.org>
11468
11469         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
11470         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
11471         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
11472         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
11473         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
11474
11475 2008-10-20  Bruno Haible  <bruno@clisp.org>
11476
11477         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
11478         of posix_spawn on AIX 5.3.
11479
11480 2008-10-20  Bruno Haible  <bruno@clisp.org>
11481
11482         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
11483
11484 2008-10-20  Bruno Haible  <bruno@clisp.org>
11485
11486         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
11487         of AC_LANG_PROGRAM.
11488
11489 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11490
11491         * lib/netdb.in.h: Don't define GNU specific constants until they
11492         are supported or needed.  Reported by Bruno Haible
11493         <bruno@clisp.org>.
11494
11495 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11496
11497         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
11498
11499 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11500
11501         * lib/getaddrinfo.h: Remove file.
11502         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
11503         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
11504         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
11505         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
11506         * modules/netdb: Substitute GNULIB_GETADDRINFO.
11507         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
11508         * tests/test-getaddrinfo.c: Likewise.
11509         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
11510         * NEWS: Mention change.
11511
11512 2008-10-19  Bruno Haible  <bruno@clisp.org>
11513
11514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
11515
11516 2008-10-19  Bruno Haible  <bruno@clisp.org>
11517
11518         * lib/wait-process.c: Include simply <sys/wait.h>.
11519         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
11520         WIFSTOPPED): Remove fallback definitions.
11521         * modules/wait-process (Depends-on): Add sys_wait.
11522
11523         New module 'sys_wait'.
11524         * modules/sys_wait: New file.
11525         * lib/sys_wait.in.h: New file, partially copied from
11526         lib/wait-process.c.
11527         * m4/sys_wait_h.m4: New file.
11528         * doc/posix-headers/sys_wait.texi: Mention the new module.
11529
11530 2008-10-19  Bruno Haible  <bruno@clisp.org>
11531
11532         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
11533
11534 2008-10-19  Bruno Haible  <bruno@clisp.org>
11535
11536         Assume that waitpid() fills an 'int' status, not a 'union wait'.
11537         * lib/wait-process.c (WAIT_T): Remove type.
11538         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
11539         (wait_subprocess): Update.
11540
11541 2008-10-19  Bruno Haible  <bruno@clisp.org>
11542
11543         New module 'atoll'.
11544         * modules/atoll: New file.
11545         * lib/stdlib.in.h (atoll): New declaration.
11546         * lib/atoll.c: New file, from glibc with modifications.
11547         * m4/atoll.m4: New file.
11548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
11549         HAVE_ATOLL.
11550         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
11551         * doc/posix-functions/atoll.texi: Mention the new module.
11552
11553 2008-10-19  Bruno Haible  <bruno@clisp.org>
11554
11555         Add strtoull() declaration to <stdlib.h>.
11556         * lib/stdlib.in.h (strtoull): New declaration.
11557         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11558         Set HAVE_STRTOULL.
11559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
11560         HAVE_STRTOULL.
11561         * modules/strtoull (Depends-on): Add stdlib.
11562         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11563         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
11564         HAVE_STRTOULL.
11565
11566 2008-10-19  Bruno Haible  <bruno@clisp.org>
11567
11568         Add strtoll() declaration to <stdlib.h>.
11569         * lib/stdlib.in.h (strtoll): New declaration.
11570         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11571         Set HAVE_STRTOLL.
11572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
11573         HAVE_STRTOLL.
11574         * modules/strtoll (Depends-on): Add stdlib.
11575         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11576         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
11577
11578 2008-10-19  Bruno Haible  <bruno@clisp.org>
11579
11580         * modules/bcopy (Depends-on): Add strings.
11581         (Include): Specify <strings.h>.
11582
11583 2008-10-19  Bruno Haible  <bruno@clisp.org>
11584
11585         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
11586
11587 2008-10-19  Bruno Haible  <bruno@clisp.org>
11588
11589         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
11590         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
11591         mingw.
11592
11593 2008-10-19  Bruno Haible  <bruno@clisp.org>
11594
11595         * lib/atanl.c: Don't include isnanl.h.
11596         * lib/cosl.c: Likewise.
11597         * lib/ldexpl.c: Likewise.
11598         * lib/logl.c: Likewise.
11599         * lib/sinl.c: Likewise.
11600         * lib/sqrtl.c: Likewise.
11601         * lib/tanl.c: Likewise.
11602
11603         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
11604         * lib/isnanf.h: Remove file.
11605         * lib/isnand.h: Remove file.
11606         * lib/isnanl.h: Remove file.
11607         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
11608         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
11609         macros.
11610         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
11611         HAVE_ISNANF, don't define it as a C macro.
11612         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
11613         HAVE_ISNAND, don't define it as a C macro.
11614         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
11615         HAVE_ISNANL, don't define it as a C macro.
11616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
11617         HAVE_ISNAN[FDL].
11618         * modules/isnanf (Files): Remove lib/isnanf.h.
11619         (Depends-on): Add math.
11620         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11621         (Include): Specify <math.h> instead of isnanf.h.
11622         * modules/isnand (Files): Remove lib/isnand.h.
11623         (Depends-on): Add math.
11624         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11625         (Include): Specify <math.h> instead of isnand.h.
11626         * modules/isnanl (Files): Remove lib/isnanl.h.
11627         (Depends-on): Add math.
11628         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11629         (Include): Specify <math.h> instead of isnanl.h.
11630         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
11631         HAVE_ISNAN[FDL].
11632         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
11633         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
11634         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
11635         * NEWS: Mention the change.
11636
11637 2008-10-18  Bruno Haible  <bruno@clisp.org>
11638
11639         Add getusershell(), setusershell(), endusershell() declarations to
11640         <unistd.h>.
11641         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
11642         declarations.
11643         * lib/getusershell.c: Include unistd.h.
11644         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
11645         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11646         HAVE_GETUSERSHELL.
11647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
11648         and HAVE_GETUSERSHELL.
11649         * modules/getusershell (Depends-on): Add unistd, extensions.
11650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11651         (Include): Specify <unistd.h>.
11652         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
11653         HAVE_GETUSERSHELL.
11654
11655 2008-10-18  Bruno Haible  <bruno@clisp.org>
11656
11657         Add a getloadavg() declaration to <stdlib.h>.
11658         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
11659         getloadavg declaration.
11660         (getloadavg): New declaration.
11661         * lib/getloadavg.c: Include <stdlib.h> first.
11662         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
11663         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
11664         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
11665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
11666         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11667         * modules/getloadavg (Depends-on): Add stdlib, extensions.
11668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11669         (Include): Specify <stdlib.h>.
11670         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
11671         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11672
11673 2008-10-18  Bruno Haible  <bruno@clisp.org>
11674
11675         * lib/dirchownmod.c: Don't include lchmod.h.
11676
11677         Move the lchmod() declaration to <sys/stat.h>.
11678         * lib/lchmod.h: Remove file.
11679         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
11680         (lchmod): New declaration, moved here from lib/lchown.h.
11681         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
11682         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
11683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
11684         and HAVE_LCHMOD.
11685         * modules/lchmod (Files): Remove lib/lchmod.h.
11686         (Depends-on): Add sys_stat, extensions.
11687         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
11688         (Include): Specify <sys/stat.h> instead of lchmod.h.
11689         * modules/sys_stat (Depends-on): Add link-warning.
11690         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
11691         definition of GL_LINK_WARNING.
11692         * NEWS: Mention the change.
11693
11694 2008-10-18  Bruno Haible  <bruno@clisp.org>
11695
11696         * lib/fchdir.c: Don't include dirfd.h.
11697         * lib/fts.c: Likewise.
11698         * lib/getcwd.c: Likewise.
11699         * lib/glob.c: Likewise.
11700
11701         Move the dirfd() declaration to <dirent.h>.
11702         * lib/dirfd.h: Remove file.
11703         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
11704         (dirfd): New declaration.
11705         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
11706         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
11707         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
11708         HAVE_DECL_DIRFD.
11709         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
11710         HAVE_DECL_DIRFD.
11711         * modules/dirfd (Files): Remove lib/dirfd.h.
11712         (Depends-on): Add dirent, extensions.
11713         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
11714         (Include): Specify <dirent.h> instead of dirfd.h.
11715         * modules/dirent (Depends-on): Add link-warning.
11716         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
11717         definition of GL_LINK_WARNING.
11718         * NEWS: Mention the change.
11719
11720 2008-10-18  Bruno Haible  <bruno@clisp.org>
11721
11722         Move the euidaccess() declaration to <unistd.h>.
11723         * lib/euidaccess.h: Remove file.
11724         * lib/unistd.in.h (euidaccess): New declaration.
11725         * lib/euidaccess.c: Don't include euidaccess.h.
11726         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
11727         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
11728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
11729         and HAVE_EUIDACCESS.
11730         * modules/euidaccess (Files): Remove lib/euidaccess.h.
11731         (Depends-on): Add unistd.
11732         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11733         (Include): Specify <unistd.h> instead of euidaccess.h.
11734         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
11735         HAVE_EUIDACCESS.
11736         * NEWS: Mention the change.
11737
11738 2008-10-18  Bruno Haible  <bruno@clisp.org>
11739
11740         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
11741
11742         Move the getdomainname() declaration to <unistd.h>.
11743         * lib/getdomainname.h: Remove file.
11744         * lib/unistd.in.h (getdomainname): New declaration.
11745         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
11746         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11747         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11748         HAVE_GETDOMAINNAME.
11749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11750         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
11751         * modules/getdomainname (Files): Remove lib/getdomainname.h.
11752         (Depends-on): Add unistd, extensions.
11753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11754         (Includes): Specify <unistd.h> instead of getdomainname.h.
11755         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
11756         HAVE_GETDOMAINNAME.
11757         * NEWS: Mention the change.
11758
11759 2008-10-18  Bruno Haible  <bruno@clisp.org>
11760
11761         * modules/dirent: New file.
11762         * m4/dirent_h.m4: New file.
11763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
11764         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
11765         * modules/fchdir (Files): Remove lib/dirent.in.h.
11766         (Depends-on): Add dirent.
11767         (Makefile.am): Move rules to modules/dirent.
11768         * doc/posix-headers/dirent.texi: Mention the new module.
11769
11770 2008-10-18  Bruno Haible  <bruno@clisp.org>
11771
11772         Avoid -Wunused-parameter warnings in public gnulib header files.
11773         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
11774         macro.
11775         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
11776
11777 2008-10-18  Bruno Haible  <bruno@clisp.org>
11778
11779         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
11780         * doc/glibc-functions/error.texi: Mention the module 'error'.
11781         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
11782         * doc/glibc-functions/getdomainname.texi: Mention the module
11783         'getdomainname'.
11784         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
11785         * doc/glibc-functions/getpagesize.texi: Mention the module
11786         'getpagesize'.
11787         * doc/glibc-functions/getusershell.texi: Mention the module
11788         'getusershell'.
11789         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
11790         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
11791         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
11792         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
11793         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
11794         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
11795         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
11796         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
11797         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
11798         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
11799         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
11800         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
11801         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
11802         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
11803
11804 2008-10-17  Bruno Haible  <bruno@clisp.org>
11805
11806         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
11807         HP-UX and IRIX, use -0.0L.
11808         * tests/test-ceill.c (minus_zero): Likewise.
11809         * tests/test-floorl.c (minus_zero): Likewise.
11810         * tests/test-frexpl.c (minus_zero): Likewise.
11811         * tests/test-isnan.c (minus_zerol): Likewise.
11812         * tests/test-isnanl.h (minus_zero): Likewise.
11813         * tests/test-ldexpl.c (minus_zero): Likewise.
11814         * tests/test-roundl.c (minus_zero): Likewise.
11815         * tests/test-signbit.c (minus_zerol): Likewise.
11816         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11817         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11818         * tests/test-truncl.c (minus_zero): Likewise.
11819         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11820         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11821         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
11822         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11823
11824 2008-10-17  Bruno Haible  <bruno@clisp.org>
11825
11826         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
11827         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
11828         that it gets activated only for gcc >= 3.0.
11829         * lib/dirent.in.h: Likewise.
11830         * lib/errno.in.h: Likewise.
11831         * lib/fcntl.in.h: Likewise.
11832         * lib/float.in.h: Likewise.
11833         * lib/iconv.in.h: Likewise.
11834         * lib/inttypes.in.h: Likewise.
11835         * lib/locale.in.h: Likewise.
11836         * lib/math.in.h: Likewise.
11837         * lib/netdb.in.h: Likewise.
11838         * lib/netinet_in.in.h: Likewise.
11839         * lib/search.in.h: Likewise.
11840         * lib/signal.in.h: Likewise.
11841         * lib/spawn.in.h: Likewise.
11842         * lib/stdarg.in.h: Likewise.
11843         * lib/stdint.in.h: Likewise.
11844         * lib/stdio.in.h: Likewise.
11845         * lib/stdlib.in.h: Likewise.
11846         * lib/string.in.h: Likewise.
11847         * lib/strings.in.h: Likewise.
11848         * lib/sys_file.in.h: Likewise.
11849         * lib/sys_ioctl.in.h: Likewise.
11850         * lib/sys_select.in.h: Likewise.
11851         * lib/sys_socket.in.h: Likewise.
11852         * lib/sys_stat.in.h: Likewise.
11853         * lib/sys_time.in.h: Likewise.
11854         * lib/sysexits.in.h: Likewise.
11855         * lib/time.in.h: Likewise.
11856         * lib/unistd.in.h: Likewise.
11857         * lib/wchar.in.h: Likewise.
11858         * lib/wctype.in.h: Likewise.
11859         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11860
11861 2008-10-17  Jim Meyering  <meyering@redhat.com>
11862
11863         ignore-value: don't depend on inline module
11864         * modules/ignore-value (Depends-on): Remove 'inline'.
11865         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
11866         Suggestion from Bruno Haible.
11867
11868 2008-10-17  Bruno Haible  <bruno@clisp.org>
11869
11870         New implementation of condition variables for Win32.
11871         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
11872         (gl_linked_waitqueue_t): New type.
11873         (gl_cond_t): Use it.
11874         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
11875         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
11876         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
11877         (glthread_cond_init_func, glthread_cond_wait_func,
11878         glthread_cond_timedwait_func, glthread_cond_signal_func,
11879         glthread_cond_broadcast_func, glthread_cond_destroy_func):
11880         Reimplemented on the basis of gl_linked_waitqueue_t.
11881         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
11882         gl_waitqueue_t.
11883         (gl_rwlock_t): Update.
11884         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
11885
11886 2008-10-17  Simon Josefsson  <simon@josefsson.org>
11887
11888         * modules/recvfrom (Depends-on): Add dependency on getpeername.
11889         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11890
11891 2008-10-17  Jim Meyering  <meyering@redhat.com>
11892
11893         ignore-value: new module
11894         * modules/ignore-value: New file.
11895         * lib/ignore-value.h: New file.
11896         * MODULES.html.sh (Compiler warning management): New section,
11897         just for this module.  More to come.
11898
11899 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11900
11901         open-safer.c: avoid 'signed and unsigned in conditional...' warning
11902         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
11903         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
11904
11905 2008-10-16  Jim Meyering  <meyering@redhat.com>
11906
11907         openat-die.c: avoid 'no previous prototype' warning
11908         * lib/openat-die.c: Include "openat.h".
11909         Reported by Reuben Thomas <rrt@sc3d.org>.
11910
11911 2008-10-16  Simon Josefsson  <simon@josefsson.org>
11912
11913         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
11914         * lib/netdb.in.h: Fix typo.
11915         Reported by Bruno Haible  <bruno@clisp.org>
11916
11917         * lib/netdb.in.h: Include sys/socket.h for platforms without
11918         netdb.h, to get structures like hostent on MinGW.
11919         * modules/netdb (Depends-on): Add sys_socket.
11920
11921 2008-10-15  Simon Josefsson  <simon@josefsson.org>
11922
11923         * modules/netdb, modules/netdb-tests: New file.
11924         * m4/netdb_h.m4: New file.
11925         * lib/netdb.in.h: Add, currently just an empty file pending
11926         definitions.
11927         * tests/test-netdb.c: New file.
11928         * doc/posix-headers/netdb.texi: Mention that we replace it if
11929         needed.
11930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11931         netdb.
11932
11933 2008-10-15  Simon Josefsson  <simon@josefsson.org>
11934
11935         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
11936         with code.
11937
11938 2008-10-13  Bruno Haible  <bruno@clisp.org>
11939
11940         * lib/glthread/cond.c (glthread_cond_wait_func,
11941         glthread_cond_timedwait_func): Add a comment.
11942
11943 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11944
11945         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
11946         * tests/test-select.c: Likewise,
11947
11948 2008-10-13  Bruno Haible  <bruno@clisp.org>
11949
11950         * lib/glthread/cond.c (glthread_cond_wait_func,
11951         glthread_cond_timedwait_func): Fix variable name.
11952         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11953
11954 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
11955
11956         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
11957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
11958         struct sockaddr.sa_len.
11959         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
11960
11961 2008-10-13  Simon Josefsson  <simon@josefsson.org>
11962
11963         * build-aux/pmccabe2html: Add css and css_url parameters.
11964
11965 2008-10-12  Bruno Haible  <bruno@clisp.org>
11966
11967         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
11968         calling aclx_get.
11969         Reported by Rainer Tammer <tammer@tammer.net>.
11970
11971 2008-10-12  Bruno Haible  <bruno@clisp.org>
11972
11973         Use msvcrt aware primitives for creation/termination of Win32 threads.
11974         * lib/glthread/thread.c: Include <process.h>.
11975         (glthread_create_func): Use _beginthreadex instead of CreateThread.
11976         (wrapper_func): Update signature.
11977         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
11978
11979 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11980             Bruno Haible  <bruno@clisp.org>
11981
11982         Provide a Win32 implementation of the 'cond' module.
11983         * lib/glthread/cond.h [USE_WIN32]: New implementation.
11984         * lib/glthread/cond.c (glthread_cond_init_func,
11985         glthread_cond_wait_func, glthread_cond_timedwait_func,
11986         glthread_cond_signal_func, glthread_cond_broadcast_func,
11987         glthread_cond_destroy_func) [USE_WIN32]: New functions.
11988         * modules/cond (Dependencies): Add gettimeofday.
11989
11990 2008-10-11  Bruno Haible  <bruno@clisp.org>
11991
11992         Make sleep work on older versions of mingw.
11993         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
11994         only whether it exists.
11995         * doc/posix-functions/sleep.texi: Mention the problem with older
11996         versions of mingw.
11997
11998 2008-10-11  Bruno Haible  <bruno@clisp.org>
11999
12000         New module 'shutdown'.
12001         * modules/shutdown: New file.
12002         * lib/sys_socket.in.h (shutdown): New declaration.
12003         * lib/winsock.c (shutdown): New function.
12004         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12005         GNULIB_SHUTDOWN.
12006         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
12007         * doc/posix-functions/shutdown.texi: Document the new module.
12008
12009 2008-10-11  Jim Meyering  <meyering@redhat.com>
12010
12011         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
12012
12013 2008-10-11  Bruno Haible  <bruno@clisp.org>
12014
12015         New module 'fclose'.
12016         * modules/fclose: New file.
12017         * lib/stdio.in.h (fclose): New declaration.
12018         * lib/fclose.c: New file.
12019         * m4/fclose.m4: New file.
12020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
12021         REPLACE_FCLOSE.
12022         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
12023         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
12024         REPLACE_FCLOSE.
12025         * modules/close (Depends-on): fclose.
12026         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
12027
12028 2008-10-11  Bruno Haible  <bruno@clisp.org>
12029
12030         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
12031         set errno and don't call _close.
12032
12033 2008-10-10  Bruno Haible  <bruno@clisp.org>
12034
12035         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
12036         ACL, not afterwards. Fixes test failure on Cygwin.
12037
12038 2008-10-09  Ben Pfaff  <blp@gnu.org>
12039
12040         * build-aux/announce-gen: Fix gnulib version related part of usage
12041         message.  Die with a useful error message if no tarballs are
12042         found.
12043
12044 2008-10-10  Jim Meyering  <meyering@redhat.com>
12045
12046         bootstrap: use git's --depth=N option only if it's supported
12047         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
12048         recognize the --depth option.  Reported by Pádraig Brady.
12049
12050 2008-10-09  Bruno Haible  <bruno@clisp.org>
12051
12052         New module 'ioctl'.
12053         * modules/ioctl: New file.
12054         * lib/sys_socket.in.h (ioctl): Remove declaration.
12055         * lib/winsock.c: Include <sys/ioctl.h>.
12056         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
12057         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
12058         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
12059         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
12060         * doc/posix-functions/ioctl.texi: Mention the new module.
12061
12062 2008-10-09  Bruno Haible  <bruno@clisp.org>
12063
12064         New module 'sys_ioctl'.
12065         * lib/sys_ioctl.in.h: New file.
12066         * m4/sys_ioctl_h.m4: New file.
12067         * modules/sys_ioctl: New file.
12068         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
12069
12070 2008-10-09  Bruno Haible  <bruno@clisp.org>
12071
12072         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
12073         * lib/winsock.c: Include <stdarg.h>.
12074         (rpl_ioctl): Change to second argument 'int' and then varargs.
12075
12076 2008-10-09  Bruno Haible  <bruno@clisp.org>
12077
12078         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
12079         when the sys_socket module is present and the system has <winsock2.h>.
12080
12081 2008-10-09  Bruno Haible  <bruno@clisp.org>
12082
12083         * doc/posix-functions/close.texi: Mention module 'close' instead of
12084         module 'sys_socket'.
12085
12086 2008-10-09  Bruno Haible  <bruno@clisp.org>
12087
12088         * doc/glibc-headers/sys_ioctl.texi: New file.
12089         * doc/gnulib.texi: Include it.
12090
12091 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12092             Bruno Haible  <bruno@clisp.org>
12093
12094         Combine the two replacements of 'close'.
12095         * lib/sys_socket.in.h (close): Define to a reminder to include
12096         <unistd.h>.
12097         (_gl_close_fd_maybe_socket): New declaration.
12098         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
12099         * lib/winsock.c (close): Remove undefinition.
12100         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
12101         needed for the gnulib module 'close'.
12102         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
12103         define to an error symbol or to a warning, if suitable.
12104         * lib/close.c: Include <sys/socket.h>.
12105         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
12106         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
12107         UNISTD_H_HAVE_WINSOCK2_H.
12108         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
12109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12110         UNISTD_H_HAVE_WINSOCK2_H.
12111         * modules/sys_socket (Files): Add m4/unistd_h.m4.
12112         (configure.ac): Set a module indicator.
12113         (Makefile.am): Substitute GNULIB_CLOSE.
12114         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
12115         * modules/poll-tests (Depends-on): Add close.
12116         * modules/select-tests (Depends-on): Likewise.
12117
12118 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12119             Bruno Haible  <bruno@clisp.org>
12120
12121         New module 'close'.
12122         * modules/close: New file.
12123         * lib/unistd.in.h (close): Move declaration out of the
12124         FCHDIR_REPLACEMENT scope.
12125         (_gl_unregister_fd): New declaration.
12126         * lib/close.c: New file.
12127         * lib/fchdir.c (rpl_close): Remove function.
12128         * m4/close.m4: New file.
12129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
12130         close.
12131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
12132         REPLACE_CLOSE.
12133         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
12134         REPLACE_CLOSE.
12135         * modules/fchdir (Depends-on): Add close.
12136
12137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12138             Bruno Haible  <bruno@clisp.org>
12139
12140         * lib/fcntl.in.h (open): Simplify conditionals.
12141         (_gl_register_fd): New declaration.
12142         * lib/fchdir.c (rpl_open): Remove function.
12143         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
12144         also.
12145         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
12146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
12147         open.
12148
12149 2008-10-09  Jim Meyering  <meyering@redhat.com>
12150
12151         GNUmakefile: use the more name-space-friendly "_version"
12152         * top/GNUmakefile (_dummy): Update.
12153         (_version): Rename from "version".
12154
12155 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12156             Bruno Haible  <bruno@clisp.org>
12157
12158         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
12159         rpl_close.
12160         (_gl_register_fd): New function, extracted from rpl_open.
12161         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
12162         (rpl_open, rpl_opendir): Use _gl_register_fd.
12163
12164 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12165
12166         Fix organization of 'open' replacement.
12167         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
12168         (gl_FUNC_OPEN): Use it.
12169         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
12170
12171 2008-10-08  Bruno Haible  <bruno@clisp.org>
12172
12173         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
12174
12175 2008-10-08  Simon Josefsson  <simon@josefsson.org>
12176
12177         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
12178         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
12179         listen).
12180
12181 2008-10-08  Eric Blake  <ebb9@byu.net>
12182
12183         GNUmakefile: add 'make version' target
12184         * top/GNUmakefile (_curr-ver): Split version update rules...
12185         (version): ...into a target.
12186
12187 2008-10-07  Bruno Haible  <bruno@clisp.org>
12188
12189         Use a more portable replacement expression for -0.0L.
12190         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
12191         instead of -0.0L. Fix m4 quotation.
12192
12193         * tests/test-signbit.c: Include <float.h>.
12194         (minus_zero): New variable.
12195         (test_signbitl): Use minus_zero instead of -zero.
12196         * modules/signbit-tests (Depends-on): Add float.
12197
12198         * tests/test-ceill.c: Include <float.h>.
12199         (zero): Remove variable.
12200         (minus_zero): New variable.
12201         (main): Use minus_zero instead of -zero.
12202         * modules/ceill-tests (Depends-on): Add float.
12203
12204         * tests/test-floorl.c: Include <float.h>.
12205         (zero): Remove variable.
12206         (minus_zero): New variable.
12207         (main): Use minus_zero instead of -zero.
12208         * modules/floorl-tests (Depends-on): Add float.
12209
12210         * tests/test-roundl.c: Include <float.h>.
12211         (zero): Remove variable.
12212         (minus_zero): New variable.
12213         (main): Use minus_zero instead of -zero.
12214         * modules/roundl-tests (Depends-on): Add float.
12215
12216         * tests/test-truncl.c: Include <float.h>.
12217         (zero): Remove variable.
12218         (minus_zero): New variable.
12219         (main): Use minus_zero instead of -zero.
12220         * modules/truncl-tests (Depends-on): Add float.
12221
12222         * tests/test-frexpl.c (zero): Remove variable.
12223         (minus_zero): New variable.
12224         (main): Use minus_zero instead of -zero.
12225         * modules/frexpl-tests (Depends-on): Add float.
12226
12227         * tests/test-isnan.c (zerol): Remove variable.
12228         (minus_zerol): New variable.
12229         (test_long_double): Use minus_zerol instead of -zerol.
12230         * modules/isnan-tests (Depends-on): Add float.
12231
12232         * tests/test-isnanl.h (zero): Remove variable.
12233         (minus_zero): New variable.
12234         (main): Use minus_zero instead of -zero.
12235         * modules/isnanl-nolibm-tests (Depends-on): Add float.
12236         * modules/isnanl-tests (Depends-on): Add float.
12237
12238         * tests/test-ldexpl.c (zero): Remove variable.
12239         (minus_zero): New variable.
12240         (main): Use minus_zero instead of -zero.
12241         * modules/ldexpl-tests (Depends-on): Add float.
12242
12243         * tests/test-snprintf-posix.h (zerol): Remove variable.
12244         (minus_zerol): New variable.
12245         (test_function): Use minus_zerol instead of -zerol.
12246         * modules/snprintf-posix-tests (Depends-on): Add float.
12247         * modules/vsnprintf-posix-tests (Depends-on): Add float.
12248
12249         * tests/test-sprintf-posix.h (zerol): Remove variable.
12250         (minus_zerol): New variable.
12251         (test_function): Use minus_zerol instead of -zerol.
12252         * modules/sprintf-posix-tests (Depends-on): Add float.
12253         * modules/vsprintf-posix-tests (Depends-on): Add float.
12254
12255         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
12256         (minus_zerol): New variable.
12257         (test_function): Use minus_zerol instead of -zerol.
12258         * modules/vasnprintf-posix-tests (Depends-on): Add float.
12259
12260         * tests/test-vasprintf-posix.c (zerol): Remove variable.
12261         (minus_zerol): New variable.
12262         (test_function): Use minus_zerol instead of -zerol.
12263         * modules/vasprintf-posix-tests (Depends-on): Add float.
12264
12265 2008-10-07  Simon Josefsson  <simon@josefsson.org>
12266
12267         * MODULES.html.sh (Support for building documentation): Mention
12268         pmccabe2html.  Sort entries.
12269
12270         Add pmccabe2html module, from gnupdf.
12271         * build-aux/pmccabe.css: New file.
12272         * build-aux/pmccabe2html: New file.
12273         * m4/pmccabe2html.m4: New file.
12274         * modules/pmccabe2html: New file.
12275
12276 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
12277
12278         flock: new module
12279         * MODULES.html.sh: Add to list of modules.
12280         * lib/flock.c: flock implementation for Windows and Unix systems
12281         which have fcntl.
12282         * doc/glibc-functions/flock.texi: Update documentation.
12283         * lib/sys_file.in.h: <sys/file.h> header file.
12284         * m4/flock.m4: M4 macros.
12285         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
12286         * modules/flock: flock module.
12287         * modules/flock-tests: flock tests module.
12288         * modules/sys_file: sys/file.h module.
12289         * tests/test-flock.c: test suite for flock.
12290
12291 2008-10-06  Jim Meyering  <meyering@redhat.com>
12292
12293         bootstrap: check for LT_INIT more portably still ;-)
12294         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
12295         Spotted by Bruno Haible.
12296
12297 2008-10-06  Eric Blake  <ebb9@byu.net>
12298
12299         test-signbit: avoid tripping Irix cc bug on -0.0L
12300         * tests/test-signbit.c (minus_zerol): Delete, and replace with
12301         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
12302         entire testsuite consistent and avoids an Irix 6.2 bug.
12303
12304 2008-10-05  Bruno Haible  <bruno@clisp.org>
12305             Jim Meyering  <jim@meyering.net>
12306
12307         Add an option for ignoring EPIPE during close_stdout.
12308         * lib/closeout.h: Include <stdbool.h>.
12309         (close_stdout_set_ignore_EPIPE): New declaration.
12310         * lib/closeout.c: Include <stdbool.h>.
12311         (ignore_EPIPE): New variable.
12312         (close_stdout_set_ignore_EPIPE): New function.
12313         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
12314         * lib/close-stream.c (close_stream): Mention the possible EPIPE
12315         failure.
12316         * modules/closeout (Depends-on): Add stdbool.
12317
12318 2008-10-05  Bruno Haible  <bruno@clisp.org>
12319
12320         * modules/accept: New file.
12321         * modules/bind: New file.
12322         * modules/connect: New file.
12323         * modules/getpeername: New file.
12324         * modules/getsockname: New file.
12325         * modules/getsockopt: New file.
12326         * modules/listen: New file.
12327         * modules/recv: New file.
12328         * modules/recvfrom: New file.
12329         * modules/send: New file.
12330         * modules/sendto: New file.
12331         * modules/setsockopt: New file.
12332         * modules/socket: New file.
12333         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
12334         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12335         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
12336         the particular module is requested. Add a link warning when the
12337         particular module is not requested.
12338         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
12339         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
12340         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
12341         the particular module is requested.
12342         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
12343         gl_SYS_SOCKET_H_DEFAULTS): New macros.
12344         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
12345         * modules/sys_socket (Depends-on): Add link-warning.
12346         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
12347         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
12348         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
12349         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
12350         GL_LINK_WARNING.
12351         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
12352         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
12353         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
12354         * doc/posix-functions/getpeername.texi: Mention the new module
12355         'getpeername'.
12356         * doc/posix-functions/getsockname.texi: Mention the new module
12357         'getsockname'.
12358         * doc/posix-functions/getsockopt.texi: Mention the new module
12359         'getsockopt'.
12360         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
12361         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
12362         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
12363         * doc/posix-functions/send.texi: Mention the new module 'send'.
12364         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
12365         * doc/posix-functions/setsockopt.texi: Mention the new module
12366         'setsockopt'.
12367         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
12368         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
12369         listen, connect, accept.
12370         * modules/select-tests (Depends-on): Likewise.
12371
12372 2008-10-05  Bruno Haible  <bruno@clisp.org>
12373
12374         * lib/winsock.c (strerror): Remove unused #undef.
12375         (rpl_close): Remove unused local variable.
12376
12377         * modules/sys_socket (Depends-on); Add errno.
12378
12379 2008-10-05  Bruno Haible  <bruno@clisp.org>
12380
12381         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
12382         (select): Add a link warning when the 'select' module is not used.
12383         * modules/sys_select (Depends-on): Add link-warning.
12384         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
12385         Suggested by Paolo Bonzini.
12386
12387 2008-10-05  Jim Meyering  <meyering@redhat.com>
12388
12389         bootstrap: check for LT_INIT more portably
12390         * build-aux/bootstrap: Avoid using grep -E, since it's not
12391         portable enough.  Suggestion from Bruno Haible.
12392
12393 2008-10-05  Bruno Haible  <bruno@clisp.org>
12394
12395         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
12396         as being fixed by gnulib.
12397
12398 2008-10-05  Bruno Haible  <bruno@clisp.org>
12399
12400         * modules/select-tests: New file, mostly copied from
12401         modules/sys_select-tests.
12402         * tests/test-select.c: New file, mostly copied from
12403         tests/test-sys_select.c.
12404         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
12405         * modules/sys_select-tests (Depends-on): Remove all dependencies.
12406         (Makefile.am): Remove test_sys_select_LDADD.
12407
12408         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
12409         to an undefined symbol, for an error message.
12410         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
12411         (gl_SYS_SELECT_H_DEFAULTS): New macro.
12412         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
12413         winsock-select.c here.
12414         * modules/sys_select (Files): Remove lib/winsock-select.c.
12415         (Depends-on): Remove alloca.
12416         (Makefile.am): Substitute GNULIB_SELECT.
12417         * modules/select: New file.
12418         * doc/posix-functions/select.texi: Update.
12419
12420 2008-10-05  Bruno Haible  <bruno@clisp.org>
12421
12422         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
12423         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
12424         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
12425         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
12426         getdtablesize.
12427         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12428         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12429
12430 2008-10-05  Bruno Haible  <bruno@clisp.org>
12431
12432         * modules/getdtablesize-tests: New file.
12433         * tests/test-getdtablesize.c: New file.
12434
12435         New module 'getdtablesize'.
12436         * lib/unistd.in.h (getdtablesize): New declaration.
12437         * lib/getdtablesize.c: New file.
12438         * m4/getdtablesize.m4: New file.
12439         * modules/getdtablesize: New file.
12440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12441         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
12442         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
12443         HAVE_GETDTABLESIZE.
12444         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
12445
12446 2008-10-05  Bruno Haible  <bruno@clisp.org>
12447
12448         * modules/sched (Makefile.am): Fix typo.
12449         Reported by Simon Josefsson.
12450
12451 2008-10-05  Jim Meyering  <meyering@redhat.com>
12452
12453         bootstrap: check for LT_INIT, too
12454         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
12455         are deprecated.  Suggestion from Ralf Wildenhues.
12456
12457 2008-10-05  Bruno Haible  <bruno@clisp.org>
12458
12459         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
12460         overriding them by ours.
12461         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
12462
12463 2008-10-05  Jim Meyering  <meyering@redhat.com>
12464
12465         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
12466         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
12467         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
12468
12469 2008-10-04  Bruno Haible  <bruno@clisp.org>
12470
12471         * modules/dup2 (License): Change to LGPLv2+.
12472         * modules/sleep (License): Likewise.
12473         * modules/perror (License): Likewise.
12474         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
12475         Blake.
12476         * modules/signal (License): Likewise.
12477         * modules/sigprocmask (License): Likewise.
12478         * modules/raise (License): Change to LGPLv2+, with approval by Jim
12479         Meyering.
12480
12481 2008-10-04  Bruno Haible  <bruno@clisp.org>
12482
12483         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
12484         Reported by Rainer Tammer <tammer@tammer.net>.
12485
12486 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
12487             Bruno Haible  <bruno@clisp.org>
12488
12489         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
12490         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
12491         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
12492
12493 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
12494
12495         filevercmp: new module
12496         * lib/filevercmp.h: New function filevercmp comparing version strings.
12497         * lib/filevercmp.c: Implementation of filevercmp function.
12498         * modules/filevercmp: Module metadata.
12499         * tests/test-filevercmp.c: Unit test for new module.
12500         * modules/filevercmp-tests: Unit test metadata.
12501         * MODULES.html.sh: Add filevercmp module.
12502
12503 2008-10-03  Bruno Haible  <bruno@clisp.org>
12504
12505         * lib/c-ctype.h: Add comment.
12506         Reported by Jim Meyering.
12507
12508 2008-10-02  Bruno Haible  <bruno@clisp.org>
12509
12510         * modules/posix_spawn-internal (Depends-on): Add 'open'.
12511
12512 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12513
12514         * build-aux/bootstrap: Allow renaming bootstrap, and change the
12515         name of bootstrap.conf accordingly.
12516
12517 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12518
12519         * build-aux/bootstrap: Install git-merge-changelog configuration
12520         items into .gitconfig if needed.
12521
12522 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12523
12524         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
12525         git repository, and initialize/update it accordingly.
12526
12527 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
12528
12529         * modules/fsync-tests: New file.
12530         * tests/test-fsync.c: New file.
12531
12532         New module 'fsync'.
12533         * lib/fsync.c: New file.
12534         * m4/fsync.m4: New file.
12535         * modules/fsync: New file.
12536         * lib/unistd.in.h (fsync): New declaration.
12537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
12538         GNULIB_FSYNC and HAVE_FSYNC.
12539         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
12540         * MODULES.html.sh (posix_functions): Add fsync.
12541         * doc/posix-functions/fsync.texi: Mention the new module.
12542
12543 2008-10-02  Jim Meyering  <meyering@redhat.com>
12544
12545         fts.c: sync with similar code from coreutils' remove.c
12546         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
12547         Guard also with "#if defined __linux__", since for now at least,
12548         this code is Linux-kernel-specific.
12549
12550 2008-10-02  Jim Meyering  <meyering@redhat.com>
12551
12552         fts: bug fixes
12553         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
12554         Include <sys/vfs.h>, not <sys/statfs.h>.
12555
12556         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
12557         Include <sys/vfs.h>, not <sys/statfs.h>.
12558
12559 2008-10-01  Bruno Haible  <bruno@clisp.org>
12560
12561         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
12562         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
12563         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
12564         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
12565         * doc/posix-functions/posix_spawnp.texi: Likewise.
12566         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
12567         whether posix_spawn actually works.
12568         * m4/pipe.m4 (gl_PIPE): Likewise.
12569         * modules/execute (Files): Add m4/posix_spawn.m4.
12570         * modules/pipe (Files): Add m4/posix_spawn.m4.
12571         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
12572
12573 2008-10-01  Jim Meyering  <meyering@redhat.com>
12574
12575         remove trailing spaces
12576         * NEWS: Likewise.
12577         * lib/poll.c (poll): Likewise.
12578         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
12579         * lib/winsock.c (rpl_close): Likewise.
12580         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
12581         * modules/yield: Likewise.
12582         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
12583         * tests/test-sys_select.c (connect_to_socket): Likewise.
12584
12585         fts.c: adjust a new interface to be more generally useful
12586         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
12587         (fts_build): Adjust caller.
12588
12589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12590
12591         * modules/cond-tests: New file.
12592         * tests/test-cond.c: New file.
12593
12594 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12595             Bruno Haible  <bruno@clisp.org>
12596
12597         * modules/cond (Dependencies): Add errno, time.
12598         * lib/glthread/cond.h: Include <time.h>.
12599         (gl_cond_define, gl_cond_define_initialized): Use the same definition
12600         across platforms.
12601
12602 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12603             Bruno Haible  <bruno@clisp.org>
12604
12605         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
12606
12607 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12608             Bruno Haible  <bruno@clisp.org>
12609
12610         * modules/tls-tests (Depends-on): Add thread, yield.
12611         (configure.ac): Remove all checks.
12612         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
12613         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12614         gl_thread_self): Remove definitions. Include glthread/thread.h and
12615         glthread/yield.h instead.
12616         (test_tls): Pass an additional NULL argument to gl_thread_join.
12617
12618 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12619             Bruno Haible  <bruno@clisp.org>
12620
12621         * modules/lock-tests (Depends-on): Add thread, yield.
12622         (configure.ac): Remove all checks.
12623         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
12624         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12625         gl_thread_self): Remove definitions. Include glthread/thread.h and
12626         glthread/yield.h instead.
12627         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
12628         additional NULL argument to gl_thread_join.
12629
12630 2008-09-30  Bruno Haible  <bruno@clisp.org>
12631
12632         Fix the Win32 implementation of the 'thread' module.
12633         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
12634         pointer type.
12635         (gl_thread_self): Invoke gl_thread_self_func.
12636         (gl_thread_self_func): New declaration.
12637         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
12638         (do_init_self_key, init_self_key): New functions.
12639         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
12640         Remove some fields.
12641         (running_threads, running_lock): Remove variables.
12642         (get_current_thread_handle): New function.
12643         (gl_thread_self_func, wrapper_func, glthread_create_func,
12644         glthread_join_func, gl_thread_exit_func): Largely rewritten and
12645         simplified.
12646
12647 2008-09-30  Bruno Haible  <bruno@clisp.org>
12648
12649         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
12650         files.
12651
12652 2008-09-30  Jim Meyering  <meyering@redhat.com>
12653
12654         fts.m4: correct the test for statfs.f_type
12655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
12656         when checking for statfs.f_type.
12657
12658 2008-09-15  Simon Josefsson  <simon@josefsson.org>
12659
12660         tests: avoid some compiler warnings
12661         * tests/test-memchr.c (main): Pass NULL indirectly.
12662         * tests/test-getdate.c (main): Remove unused variable 'ret'.
12663
12664 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
12665
12666         getdate.y: disallow countable dayshifts like "4 yesterday ago"
12667         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
12668         exactly specified dayshifts.
12669         (dayshift): New rule.
12670         (rel): Add dayshift.
12671         (relative_time_table) [tomorrow, yesterday, today, now]:
12672         Use tDAY_SHIFT in place of tDAY_UNIT.
12673         * tests/test-getdate.c: Add tests for now-disallowed countable
12674         dayshifts, e.g., "4 yesterday ago".
12675
12676 2008-09-29  Bruno Haible  <bruno@clisp.org>
12677
12678         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
12679         * tests/test-posix_spawn1.in.sh: Renamed from
12680         tests/test-posix_spawn.in.sh.
12681         * tests/test-posix_spawn2.c: New file.
12682         * tests/test-posix_spawn2.in.sh: New file.
12683         * modules/posix_spawnp-tests (Files): Update.
12684         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
12685
12686 2008-09-29  Bruno Haible  <bruno@clisp.org>
12687
12688         Propagate effects of putenv/setenv/unsetenv to child processes.
12689         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
12690         * lib/pipe.c (create_pipe): Likewise.
12691
12692 2008-09-29  Bruno Haible  <bruno@clisp.org>
12693
12694         Enable use of shell scripts as executables in mingw.
12695         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
12696         run the program as a shell script.
12697         * lib/pipe.c (create_pipe): Likewise.
12698         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
12699         resulting array.
12700
12701 2008-09-29  Eric Blake  <ebb9@byu.net>
12702
12703         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
12704
12705 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
12706
12707         * doc/posix-functions/accept.texi: Update mingw problems.
12708         * doc/posix-functions/bind.texi: Update mingw problems.
12709         * doc/posix-functions/close.texi: Update mingw problems.
12710         * doc/posix-functions/connect.texi: Update mingw problems.
12711         * doc/posix-functions/getpeername.texi: Update mingw problems.
12712         * doc/posix-functions/getsockname.texi: Update mingw problems.
12713         * doc/posix-functions/getsockopt.texi: Update mingw problems.
12714         * doc/posix-functions/ioctl.texi: Update mingw problems.
12715         * doc/posix-functions/listen.texi: Update mingw problems.
12716         * doc/posix-functions/recv.texi: Update mingw problems.
12717         * doc/posix-functions/recvfrom.texi: Update mingw problems.
12718         * doc/posix-functions/select.texi: Update mingw problems.
12719         * doc/posix-functions/send.texi: Update mingw problems.
12720         * doc/posix-functions/sendto.texi: Update mingw problems.
12721         * doc/posix-functions/setsockopt.texi: Update mingw problems.
12722         * doc/posix-functions/socket.texi: Update mingw problems.
12723
12724 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
12725             Bruno Haible  <bruno@clisp.org>
12726
12727         * lib/sys_select.in.h: Include sys/time.h.
12728         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
12729         * modules/sys_select: Depend on sys_time.
12730         * tests/test-sys_select.c: Test that sys/select.h defines struct
12731         timeval fully.
12732
12733 2008-09-29  Bruno Haible  <bruno@clisp.org>
12734
12735         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
12736         * lib/sys_select.in.h: Likewise.
12737
12738 2008-09-29  Bruno Haible  <bruno@clisp.org>
12739
12740         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
12741
12742 2008-09-29  Bruno Haible  <bruno@clisp.org>
12743
12744         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
12745         Set LIBSOCKET instead of augmenting LIBS.
12746         * modules/sockets (Link): New section.
12747         * modules/sockets-tests (test_sockets_LDADD): New variable.
12748         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
12749         * modules/poll-tests (test_poll_LDADD): New variable.
12750         * NEWS: Document the change.
12751
12752 2008-09-29  Bruno Haible  <bruno@clisp.org>
12753
12754         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
12755         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
12756         ARPA_INET_H directly.
12757         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12758
12759 2008-09-28  Bruno Haible  <bruno@clisp.org>
12760
12761         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
12762         from gl_HEADER_SYS_SOCKET.
12763         (gl_HEADER_SYS_SOCKET): Invoke it.
12764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12765
12766 2008-09-28  Bruno Haible  <bruno@clisp.org>
12767
12768         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
12769         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
12770         Needed on OSF/1 4.0.
12771
12772 2008-09-28  Bruno Haible  <bruno@clisp.org>
12773
12774         Override open more carefully.
12775         * lib/open.c (orig_open): New function.
12776         (rpl_open): Use orig_open instead of open.
12777         * lib/fcntl.in.h: Add special invocation convention.
12778         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
12779         (gl_FUNC_OPEN): Invoke it.
12780
12781         Override freopen more carefully.
12782         * lib/freopen.c (orig_freopen): New function.
12783         (rpl_freopen): Use orig_freopen instead of freopen.
12784         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
12785         (gl_FUNC_FREOPEN): Invoke it.
12786
12787         Override fopen more carefully.
12788         * lib/fopen.c (orig_fopen): New function.
12789         (rpl_fopen): Use orig_fopen instead of fopen.
12790         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
12791         (gl_FUNC_FOPEN): Invoke it.
12792         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
12793
12794 2008-09-28  Bruno Haible  <bruno@clisp.org>
12795
12796         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
12797         SIGPIPE.
12798
12799 2008-09-28  Bruno Haible  <bruno@clisp.org>
12800
12801         * tests/test-sigaction.c (handler, main): Disable the check whether
12802         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
12803         glibc systems with LinuxThreads.
12804
12805 2008-09-28  Bruno Haible  <bruno@clisp.org>
12806
12807         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
12808
12809         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
12810         with AIX xlc.
12811         * lib/fcntl.in.h (open): Likewise.
12812         Reported by Rainer Tammer <tammer@tammer.net>.
12813
12814 2008-09-28  Bruno Haible  <bruno@clisp.org>
12815
12816         * modules/posix_spawnp-tests: New file.
12817         * tests/test-posix_spawn.c: New file.
12818         * tests/test-posix_spawn.in.sh: New file.
12819
12820         New module 'posix_spawnp'.
12821         * modules/posix_spawnp: New file.
12822         * lib/spawnp.c: New file, from GNU libc with modifications.
12823         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
12824
12825         New module 'posix_spawn'.
12826         * modules/posix_spawn: New file.
12827         * lib/spawn.c: New file, from GNU libc with modifications.
12828         * doc/posix-functions/posix_spawn.texi: Mention the new module.
12829
12830         New module 'posix_spawnattr_destroy'.
12831         * modules/posix_spawnattr_destroy: New file.
12832         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
12833         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
12834         module.
12835
12836         New module 'posix_spawnattr_setsigmask'.
12837         * modules/posix_spawnattr_setsigmask: New file.
12838         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
12839         modifications.
12840         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
12841         new module.
12842
12843         New module 'posix_spawnattr_getsigmask'.
12844         * modules/posix_spawnattr_getsigmask: New file.
12845         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
12846         modifications.
12847         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
12848         new module.
12849
12850         New module 'posix_spawnattr_setsigdefault'.
12851         * modules/posix_spawnattr_setsigdefault: New file.
12852         * lib/spawnattr_setdefault.c: New file, from GNU libc with
12853         modifications.
12854         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
12855         new module.
12856
12857         New module 'posix_spawnattr_getsigdefault'.
12858         * modules/posix_spawnattr_getsigdefault: New file.
12859         * lib/spawnattr_getdefault.c: New file, from GNU libc with
12860         modifications.
12861         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
12862         new module.
12863
12864         New module 'posix_spawnattr_setschedpolicy'.
12865         * modules/posix_spawnattr_setschedpolicy: New file.
12866         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
12867         modifications.
12868         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
12869         new module.
12870
12871         New module 'posix_spawnattr_getschedpolicy'.
12872         * modules/posix_spawnattr_getschedpolicy: New file.
12873         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
12874         modifications.
12875         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
12876         new module.
12877
12878         New module 'posix_spawnattr_setschedparam'.
12879         * modules/posix_spawnattr_setschedparam: New file.
12880         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
12881         modifications.
12882         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
12883         new module.
12884
12885         New module 'posix_spawnattr_getschedparam'.
12886         * modules/posix_spawnattr_getschedparam: New file.
12887         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
12888         modifications.
12889         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
12890         new module.
12891
12892         New module 'posix_spawnattr_setpgroup'.
12893         * modules/posix_spawnattr_setpgroup: New file.
12894         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
12895         modifications.
12896         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
12897         module.
12898
12899         New module 'posix_spawnattr_getpgroup'.
12900         * modules/posix_spawnattr_getpgroup: New file.
12901         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
12902         modifications.
12903         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
12904         module.
12905
12906         New module 'posix_spawnattr_setflags'.
12907         * modules/posix_spawnattr_setflags: New file.
12908         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
12909         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
12910         module.
12911
12912         New module 'posix_spawnattr_getflags'.
12913         * modules/posix_spawnattr_getflags: New file.
12914         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
12915         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
12916         module.
12917
12918         New module 'posix_spawnattr_init'.
12919         * modules/posix_spawnattr_init: New file.
12920         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
12921         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
12922         module.
12923
12924         New module 'posix_spawn_file_actions_destroy'.
12925         * modules/posix_spawn_file_actions_destroy: New file.
12926         * lib/spawn_faction_destroy.c: New file, from GNU libc with
12927         modifications.
12928         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
12929         the new module.
12930
12931         New module 'posix_spawn_file_actions_addopen'.
12932         * modules/posix_spawn_file_actions_addopen: New file.
12933         * lib/spawn_faction_addopen.c: New file, from GNU libc with
12934         modifications.
12935         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
12936         the new module.
12937
12938         New module 'posix_spawn_file_actions_adddup2'.
12939         * modules/posix_spawn_file_actions_adddup2: New file.
12940         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
12941         modifications.
12942         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
12943         the new module.
12944
12945         New module 'posix_spawn_file_actions_addclose'.
12946         * modules/posix_spawn_file_actions_addclose: New file.
12947         * lib/spawn_faction_addclose.c: New file, from GNU libc with
12948         modifications.
12949         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
12950         the new module.
12951
12952         New module 'posix_spawn_file_actions_init'.
12953         * modules/posix_spawn_file_actions_init: New file.
12954         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
12955         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
12956         new module.
12957
12958         New module 'posix_spawn-internal'.
12959         * modules/posix_spawn-internal: New file.
12960         * lib/spawn_int.h: New file, from GNU libc with modifications.
12961         * lib/spawni.c: New file, from GNU libc with modifications.
12962         * m4/posix_spawn.m4: New file.
12963
12964         New module 'spawn'.
12965         * modules/spawn: New file.
12966         * lib/spawn.in.h: New file, from GNU libc with modifications.
12967         * m4/spawn_h.m4: New file.
12968         * doc/posix-headers/spawn.texi: Mention the new module.
12969
12970 2008-09-28  Bruno Haible  <bruno@clisp.org>
12971
12972         * modules/sched-tests: New file.
12973         * tests/test-sched.c: New file.
12974
12975         New module 'sched'.
12976         * modules/sched: New file.
12977         * lib/sched.in.h: New file.
12978         * m4/sched_h.m4: New file.
12979         * doc/posix-headers/sched.texi: Mention the new module.
12980
12981 2008-09-27  Eric Blake  <ebb9@byu.net>
12982
12983         Fix previous patch, and tweak references to $0.
12984         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
12985         (func_version, func_gnulib_dir): Don't call this program
12986         gnulib-tool.
12987         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
12988         with using $0 in function.
12989         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
12990         (func_fatal_error): Reuse the name the user invoked us with.
12991
12992 2008-09-27  Bruno Haible  <bruno@clisp.org>
12993
12994         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
12995         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
12996         (gl_ICONV_H): Not here.
12997         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12998         instead of assigning ICONV_H directly.
12999
13000         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
13001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
13002         WCHAR_H directly.
13003
13004 2008-09-27  Bruno Haible  <bruno@clisp.org>
13005
13006         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
13007         * modules/arpa_inet (Depends-on): Add link-warning.
13008         (Makefile.am): Insert the definition of GL_LINK-WARNING.
13009         * modules/unistd (Makefile.am): Likewise.
13010
13011 2008-09-26  Bruno Haible  <bruno@clisp.org>
13012
13013         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
13014         variables.
13015         (func_version): Essentially copied from gnulib-tool.
13016         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
13017         func_readlink): Copied from gnulib-tool.
13018
13019 2008-09-26  Bruno Haible  <bruno@clisp.org>
13020
13021         * gnulib-tool (func_version): Change directory to $gnulib_dir before
13022         invoking git-version-gen.
13023
13024 2008-09-26  Bruno Haible  <bruno@clisp.org>
13025
13026         * posix-modules: Update to directory names changed on 2008-01-19.
13027         Remove commas in output before splitting into words. No more need to
13028         avoid 'ftruncate' since 2007-02-19.
13029
13030 2008-09-26  Bruno Haible  <bruno@clisp.org>
13031
13032         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
13033
13034 2008-09-26  Bruno Haible  <bruno@clisp.org>
13035
13036         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
13037         * modules/fwriteerror (Depends-on): Add errno.
13038
13039 2008-09-26  Bruno Haible  <bruno@clisp.org>
13040
13041         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
13042         * tests/test-vc-list-files-cvs.sh: Likewise.
13043
13044 2008-09-26  Bruno Haible  <bruno@clisp.org>
13045
13046         * doc/posix-headers/sys_resource.texi: Reorder items.
13047
13048 2008-09-26  Jim Meyering  <meyering@redhat.com>
13049
13050         fts: tweak inode comparison function
13051         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
13052         inode numbers, as documented.
13053
13054         fts: sort dirent entries on inode number before traversing
13055         This avoids a quadratic, seek-related performance penalty when
13056         operating on a directory containing many entries (measurable at 10k;
13057         3.5 hours at 2 million entries with a cold cache) on certain types
13058         of file systems, including ext3 and ext4, but not tmpfs.
13059         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
13060         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
13061         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
13062         (fs_handles_readdir_ordered_dirents_efficiently): New function.
13063         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
13064         (fts_build): Set the stat.st_ino member from D_INO.
13065         If it is likely to be useful, sort dirent entries on inode number.
13066
13067         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
13068         and the struct statfs.f_type member.
13069         * modules/fts (Depends-on): Add d-ino.
13070
13071 2008-09-26  Bruno Haible  <bruno@clisp.org>
13072
13073         * modules/sigpipe-die (Depends-on): Add sigpipe.
13074
13075         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
13076         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
13077         and GNULIB_STDIO_H_SIGPIPE are set.
13078         * lib/stdio-write.c: New file.
13079         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
13080         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
13081         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
13082         REPLACE_STDIO_WRITE_FUNCS.
13083         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
13084         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
13085         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
13086         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
13087         * modules/stdio (Files): Add lib/stdio-write.c.
13088         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
13089         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
13090         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
13091         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
13092         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
13093         REPLACE_FPRINTF_POSIX.
13094         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
13095         REPLACE_PRINTF_POSIX.
13096         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
13097         REPLACE_VFPRINTF_POSIX.
13098         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
13099         REPLACE_VPRINTF_POSIX.
13100         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
13101         SIGPIPE issue.
13102         * doc/posix-functions/fputc.texi: Likewise.
13103         * doc/posix-functions/fputs.texi: Likewise.
13104         * doc/posix-functions/fwrite.texi: Likewise.
13105         * doc/posix-functions/printf.texi: Likewise.
13106         * doc/posix-functions/putc.texi: Likewise.
13107         * doc/posix-functions/putchar.texi: Likewise.
13108         * doc/posix-functions/puts.texi: Likewise.
13109         * doc/posix-functions/vfprintf.texi: Likewise.
13110         * doc/posix-functions/vprintf.texi: Likewise.
13111
13112         * modules/safe-write (Depends-on): Add write.
13113
13114         * modules/sigpipe-tests: New file.
13115         * tests/test-sigpipe.c: New file.
13116         * tests/test-sigpipe.sh: New file.
13117
13118         * modules/write: New file.
13119         * lib/unistd.in.h: Include <sys/types.h>.
13120         (write): New declaration.
13121         * lib/write.c: New file.
13122         * m4/write.m4: New file.
13123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13124         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
13125         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
13126         GNULIB_WRITE, REPLACE_WRITE.
13127         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
13128         and the SIGPIPE issue.
13129
13130         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
13131         (raise): New declaration.
13132         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
13133         (ext_signal): New function.
13134         (rpl_raise): New function.
13135         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13136         GNULIB_SIGNAL_H_SIGPIPE.
13137         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
13138         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
13139
13140         * modules/sigpipe: New file.
13141         * m4/sigpipe.m4: New file.
13142
13143 2008-09-25  Derek Price  <derek@ximbiot.com>
13144             Bruno Haible  <bruno@clisp.org>
13145
13146         * gnulib-tool (func_import): Report all license incompatibilities, not
13147         just the first one.
13148
13149 2008-09-25  Bruno Haible  <bruno@clisp.org>
13150
13151         * gnulib-tool (func_import): When computing the edits, consider not
13152         only the Makefile.ams that exist but also those that will be generated.
13153
13154 2008-09-25  Simon Josefsson  <simon@josefsson.org>
13155
13156         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
13157         fixes gnulib-tool --test warning about duplicate dependency.
13158
13159 2008-09-25  Bruno Haible  <bruno@clisp.org>
13160
13161         * gnulib-tool: Don't ask the user to perform edits in the generated
13162         Makefile.ams.
13163         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
13164         apply to the Makefile.am being generated.
13165         (func_emit_tests_Makefile_am): Execute edits that apply to the
13166         Makefile.am being generated.
13167         (func_import): Setup list of Makefile.am edits before emitting the
13168         Makefile.ams, not at the end.
13169         (func_create_testdir): Update.
13170         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13171
13172 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13173
13174         * gnulib-tool (func_import): Store the --tests-base option in the
13175         comment in gnulib-cache.m4.
13176
13177 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
13178
13179         * NEWS: Document increased portability that sys_select now provides.
13180
13181         * lib/sys_select.in.h: Install select wrapper.
13182         * lib/sys_socket.in.h: Use more descriptive name when there is no
13183         select wrapper.
13184         * lib/winsock-select.c: New.
13185         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
13186         Require gl_HEADER_SYS_SOCKET.
13187         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
13188         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
13189         * tests/test-sys_select.c: Add functional tests.
13190
13191 2008-09-24  Eric Blake  <ebb9@byu.net>
13192
13193         open, fopen: close fd leak in last patch
13194         * lib/open.c (rpl_open): Close fd before returning error.
13195         * lib/fopen.c (rpl_fopen): Close fd before returning error.
13196         * doc/posix-functions/open.texi (open): Document that Irix also
13197         has the bug.
13198         * doc/posix-functions/fopen.texi (fopen): Likewise.
13199         Reported by Paolo Bonzini.
13200
13201 2008-09-24  Bruno Haible  <bruno@clisp.org>
13202
13203         Ensure that a filename ending in a slash cannot be used to access a
13204         non-directory.
13205         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
13206         to check whether it's really a directory.
13207         * lib/fopen.c: Include fcntl.h, unistd.h.
13208         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
13209         and fdopen().
13210         * modules/fopen (Depends-on): Add unistd.
13211         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
13212         * tests/test-fopen.c (main): Likewise.
13213         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
13214         * doc/posix-functions/fopen.texi: Likewise.
13215         Reported by Eric Blake.
13216
13217 2008-09-23  Eric Blake  <ebb9@byu.net>
13218
13219         c-stack: avoid compiler optimizations when provoking overflow
13220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
13221         recursion harder to optimize, to ensure a stack overflow occurs.
13222         * tests/test-c-stack.c (recurse): Likewise.
13223         Borrowed from libsigsegv.
13224
13225         c-stack: work around Irix sigaltstack bug
13226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
13227         whether sigaltstack uses wrong end of stack_t (copied in part from
13228         libsigsegv).
13229         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
13230         Irix bug, without requiring an over-allocation.
13231         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
13232         bug.
13233
13234         fopen: document mingw bug on directories
13235         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
13236         not allowing a stream visiting a directory, even though reading
13237         from such a stream is not portable.
13238
13239 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
13240
13241         * lib/poll.c: Rewrite.
13242         * modules/poll: Depend on alloca.
13243
13244 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
13245
13246         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
13247         instead define prototypes for a full set of wrappers.  Ensure
13248         that Cygwin does not use the compatibility code, which is only
13249         for MinGW.
13250         * lib/winsock.c: New.
13251         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
13252         * modules/sys_socket: Add lib/winsock.c.
13253
13254         * modules/poll-tests: Add errno and perror.
13255         * tests/test-poll.c: Use ioctl, not ioctlsocket.
13256
13257 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
13258
13259         * tests/test-poll.c: Downgrade minimum needed Winsock version.
13260
13261 2008-09-23  Bruno Haible  <bruno@clisp.org>
13262
13263         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
13264         * doc/glibc-functions/*: Likewise.
13265
13266 2008-09-23  Simon Josefsson  <simon@josefsson.org>
13267
13268         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
13269         success.
13270
13271 2008-09-22  Eric Blake  <ebb9@byu.net>
13272             Bruno Haible  <bruno@clisp.org>
13273
13274         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
13275         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
13276         supply %A but mishandle pseudo-NaN.
13277         Reported by Simon Josefsson.
13278
13279 2008-09-21  Bruno Haible  <bruno@clisp.org>
13280
13281         * tests/test-lock.c (main): Tweak skip message.
13282         * tests/test-tls.c (main): Likewise.
13283
13284 2008-09-21  Bruno Haible  <bruno@clisp.org>
13285
13286         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
13287         whether 'struct sigaction' has sa_sigaction here...
13288         (gl_PREREQ_SIG_HANDLER_H): ... not here.
13289         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
13290
13291 2008-09-21  Bruno Haible  <bruno@clisp.org>
13292
13293         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
13294         section.
13295         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
13296         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
13297         the new section.
13298         (Support for obsolete systems lacking POSIX:2001): New section.
13299         (String handling <string.h>): Move strdup to the new section.
13300         Suggested by Simon Josefsson and Paolo Bonzini.
13301
13302 2008-09-21  Bruno Haible  <bruno@clisp.org>
13303
13304         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
13305         exponents in %e and %g results on 'long double'. Needed for mingw's
13306         improved *printf functions.
13307         * tests/test-vasprintf-posix.c (test_function): Likewise.
13308         * tests/test-snprintf-posix.h (test_function): Likewise.
13309         * tests/test-sprintf-posix.h (test_function): Likewise.
13310         Reported by Eric Blake.
13311
13312 2008-09-21  Bruno Haible  <bruno@clisp.org>
13313
13314         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
13315         * tests/test-sprintf-posix.h (test_function): Likewise.
13316
13317 2008-09-21  Bruno Haible  <bruno@clisp.org>
13318
13319         * modules/getpass (Depends-on): Add strdup-posix.
13320
13321         New module 'strdup-posix'.
13322         * modules/strdup-posix: New file.
13323         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
13324         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
13325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13326         REPLACE_STRDUP.
13327         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
13328         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
13329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13330         strdup-posix.
13331
13332         * modules/strdup (Depends-on): Remove malloc-posix.
13333
13334 2008-09-20  Bruno Haible  <bruno@clisp.org>
13335
13336         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
13337         Wildenhues.
13338
13339 2008-09-20  Bruno Haible  <bruno@clisp.org>
13340
13341         Ensure that wint_t gets defined on IRIX 5.3.
13342         * lib/wchar.in.h (wint_t): Define if not defined by the system.
13343         * lib/wctype.in.h (wint_t): Likewise.
13344         (__wctype_wint_t): Remove type.
13345         (isw*): Use wint_t instead of __wctype_wint_t.
13346         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
13347         * modules/wchar (Files): Add m4/wint_t.m4.
13348         (Makefile.am): Substitute HAVE_WINT_T.
13349         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
13350         * tests/test-wctype.c: Check that wint_t is defined.
13351         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
13352         * doc/posix-headers/wctype.texi: Likewise.
13353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13354
13355 2008-09-18  Bruno Haible  <bruno@clisp.org>
13356
13357         * gnulib-tool (func_exit): Update comment.
13358
13359 2008-09-18  Simon Josefsson  <simon@josefsson.org>
13360
13361         * modules/getaddrinfo (Depends-on): Remove strdup, this module
13362         assumes strdup exists and does not depend on strdup to return
13363         ENOMEM on out of memory conditions.
13364
13365 2008-09-18  Bruno Haible  <bruno@clisp.org>
13366
13367         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
13368         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
13369         digits for the exponent.
13370
13371 2008-09-18  Jim Meyering  <meyering@redhat.com>
13372             Bruno Haible  <bruno@clisp.org>
13373
13374         * lib/vasnprintf.c (decimal_point_char): Define also if
13375         NEED_PRINTF_INFINITE_LONG_DOUBLE.
13376
13377 2008-09-16  Bruno Haible  <bruno@clisp.org>
13378         and Eric Blake  <ebb9@byu.net>
13379
13380         vasnprintf: support Irix 5.3
13381         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
13382         that mishandle long double infinity.
13383         Reported by Tom G. Christensen.
13384
13385 2008-09-16  Bruno Haible  <bruno@clisp.org>
13386
13387         * doc/glibc-functions/scandir.texi: Mention the function is missing on
13388         Solaris 9.
13389         * doc/glibc-functions/alphasort.texi: Likewise.
13390         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
13391
13392 2008-09-16  Jim Meyering  <meyering@redhat.com>
13393
13394         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
13395         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
13396         a umask modification leak out of a subshell.  Otherwise, the
13397         opensolaris /bin/sh would be accepted and thus cause unwarranted
13398         failures in the coreutils test suite.
13399
13400 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
13401
13402         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
13403         to succeed.
13404
13405 2008-09-16  Jim Meyering  <meyering@redhat.com>
13406
13407         avoid spurious test failure when library is built without ACL support
13408         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
13409         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
13410         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
13411         * tests/test-copy-acl.sh: Likewise.
13412
13413 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13414
13415         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
13416         based on character occurrence counts.
13417
13418 2008-09-15  Eric Blake  <ebb9@byu.net>
13419
13420         tests: avoid some compiler warnings
13421         * tests/test-memchr.c (main): Pass NULL indirectly.
13422         * tests/test-closein.c (main): Avoid unused variable.
13423
13424 2008-09-15  Bruno Haible  <bruno@clisp.org>
13425
13426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
13427         are missing on OpenBSD 4.0 individually.
13428         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13429
13430 2008-09-15  Bruno Haible  <bruno@clisp.org>
13431
13432         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
13433         * doc/posix-functions/strerror.texi: Mention also Cygwin.
13434         * doc/posix-functions/perror.texi: Likewise.
13435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
13436         is missing.
13437         Reported by Eric Blake.
13438
13439         * lib/errno.in.h: Use replacement values >= 2000.
13440         Reported by Eric Blake.
13441
13442 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13443
13444         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
13445         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
13446         limit.
13447         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
13448         compareseq was aborted.
13449
13450 2008-09-14  Bruno Haible  <bruno@clisp.org>
13451
13452         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
13453         yvec_edit_count.
13454         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
13455         (fstrcmp_bounded): Simplify result computation accordingly.
13456
13457 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13458
13459         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
13460         (fstrcmp): Define in terms of fstrcmp_bounded.
13461         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
13462         lower_bound argument.
13463         Return quickly if the result is certainly < lower_bound.
13464         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
13465
13466 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13467
13468         * lib/diffseq.h (EARLY_ABORT): New macro.
13469         (compareseq): Change return type to bool. Return true when EARLY_ABORT
13470         evaluates to true.
13471
13472 2008-09-14  Bruno Haible  <bruno@clisp.org>
13473
13474         * modules/perror-tests: New file.
13475         * tests/test-perror.sh: New file.
13476         * tests/test-perror.c: New file.
13477
13478         New module 'perror'.
13479         * lib/stdio.in.h (perror): New declaration.
13480         * lib/perror.c: New file.
13481         * m4/perror.m4: New file.
13482         * modules/perror: New file.
13483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
13484         * doc/posix-functions/perror.texi: Mention the perror module.
13485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
13486         REPLACE_PERROR.
13487         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
13488         REPLACE_PERROR.
13489
13490 2008-09-14  Bruno Haible  <bruno@clisp.org>
13491
13492         * modules/stdio (Makefile.am): Reorder to match the order in
13493         lib/stdio.in.h.
13494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13495
13496 2008-09-13  Bruno Haible  <bruno@clisp.org>
13497
13498         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
13499
13500 2008-09-13  Bruno Haible  <bruno@clisp.org>
13501
13502         Extend strerror to cover the added errno values.
13503         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
13504         (rpl_strerror): Provide error messages for the added errno values and
13505         for the WSA* values.
13506         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
13507         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
13508         strerror.
13509         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
13510         * modules/strerror (Depends-on): Add errno.
13511         * doc/posix-functions/strerror.texi: Document the change.
13512         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
13513         and EOVERFLOW.
13514
13515 2008-09-13  Bruno Haible  <bruno@clisp.org>
13516
13517         * modules/EOVERFLOW: Remove file.
13518         * m4/eoverflow.m4: Remove file.
13519         * modules/EOVERFLOW-tests: Remove file.
13520         * tests/test-EOVERFLOW.c: Remove file.
13521         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
13522         * modules/ftell (Depends-on): Likewise.
13523         * modules/getdelim (Depends-on): Likewise.
13524         * modules/getugroups (Depends-on): Likewise.
13525         * modules/poll (Depends-on): Likewise.
13526         * modules/snprintf (Depends-on): Likewise.
13527         * modules/sprintf-posix (Depends-on): Likewise.
13528         * modules/vasnprintf (Depends-on): Likewise.
13529         * modules/vasprintf (Depends-on): Likewise.
13530         * modules/vfprintf-posix (Depends-on): Likewise.
13531         * modules/vsnprintf (Depends-on): Likewise.
13532         * modules/vsprintf-posix (Depends-on): Likewise.
13533         * modules/xvasprintf (Depends-on): Likewise.
13534         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13535         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
13536         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
13537         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
13538         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13539         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
13540         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
13541         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
13542         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13543         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
13544         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
13545         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
13546         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13547         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
13548         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
13549         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
13550         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13551         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
13552         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
13553         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
13554         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13555         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
13556         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
13557         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
13558         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
13559         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13560         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
13561         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
13562         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
13563         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
13564         * MODULES.html.sh: Remove EOVERFLOW.
13565         * NEWS: Mention the change.
13566
13567 2008-09-13  Bruno Haible  <bruno@clisp.org>
13568
13569         * modules/errno-tests: New file.
13570         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
13571
13572         * lib/errno.in.h: New file.
13573         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
13574         * modules/errno: New file.
13575         * doc/posix-headers/errno.texi: Update documentation.
13576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
13577
13578 2008-09-13  Bruno Haible  <bruno@clisp.org>
13579
13580         * tests/test-poll.c: Use #if for native Windows, rather than testing
13581         __MSVCRT__.
13582
13583 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13584             Bruno Haible  <bruno@clisp.org>
13585
13586         * lib/glob.c: Don't include <pwd.h> on native Windows.
13587         (WINDOWS32): New macro.
13588         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
13589
13590 2008-09-13  Bruno Haible  <bruno@clisp.org>
13591
13592         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
13593         (ETIMEDOUT): Remove macro.
13594         (glthread_cond_timedwait_multithreaded): New declaration.
13595         (glthread_cond_timedwait): Use it.
13596         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
13597         (glthread_cond_timedwait_multithreaded): New function.
13598
13599 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13600
13601         * modules/poll-tests: Do not check for io.h.
13602         * tests/test-poll.c: Check for __MSVCRT__ instead.
13603
13604 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13605
13606         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
13607         * modules/poll-tests: Add inet_pton, stdbool, sockets.
13608         * tests/test-poll.c: Use them.  Use _pipe on Windows.
13609
13610 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13611
13612         * modules/poll-tests: New.
13613         * tests/test-poll.c: New.
13614
13615 2008-09-12  Eric Blake  <ebb9@byu.net>
13616
13617         frexp: test for NetBSD failure on -0.0
13618         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
13619         not all, bugs from NetBSD 3.0 have been fixed.
13620         * doc/posix-functions/frexp.texi (frexp): Document bug.
13621         Reported by Thomas Klausner.
13622
13623         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
13624         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
13625         literal -0.0.
13626         Reported by Jonathan C. Patschke <jp@centtech.com>.
13627
13628 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13629
13630         * lib/glthread/cond.h: Use dummy implementation also if
13631         USE_WIN32_THREADS.
13632
13633 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13634
13635         * modules/fnmatch-posix (License): Change to LGPLv2+.
13636         * modules/fnmatch-gnu (License): Likewise.
13637
13638 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13639
13640         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
13641
13642 2008-09-11  Jim Meyering  <meyering@redhat.com>
13643
13644         * users.txt: Add gtk-vnc.
13645
13646 2008-09-08  Simon Josefsson  <simon@josefsson.org>
13647
13648         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
13649         rotate amounts.
13650
13651         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
13652         required for 16-bit and 8-bit rotates.
13653         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
13654         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
13655         UINT8_MAX instead of hard-coded constants.
13656         Suggested by Paul Eggert.
13657
13658 2008-09-07  Bruno Haible  <bruno@clisp.org>
13659
13660         * tests/test-striconveh.c (main): Check behaviour when converting from
13661         UTF-7.
13662
13663         Make striconveh work better with stateful encodings.
13664         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
13665         that iconv does not increment the inptr when returning -1/EINVAL.
13666
13667 2008-09-07  Bruno Haible  <bruno@clisp.org>
13668
13669         * build-aux/config.rpath: Update according to libtool-2.2.6.
13670         * build-aux/config.libpath: Likewise.
13671
13672 2008-09-06  Bruno Haible  <bruno@clisp.org>
13673
13674         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
13675         * lib/freadptr.c (freadptr): Likewise.
13676         * lib/freadseek.c (freadptrinc): Likewise.
13677         Reported by Simon Josefsson.
13678
13679 2008-09-06  Bruno Haible  <bruno@clisp.org>
13680
13681         * modules/freadptr (License): Change to LGPLv2+.
13682         * modules/freadseek (License): Likewise.
13683         Suggested by Eric Blake.
13684
13685         * modules/memchr2 (License): Change to LGPLv2+.
13686         Approved by Eric Blake.
13687
13688 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13689             Bruno Haible  <bruno@clisp.org>
13690
13691         Make gnulib-tool work with native 'sed' on AIX.
13692         * gnulib-tool (sed_noop): New variable.
13693         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
13694         func_add_or_update, func_create_testdir): Use it to initialize sed
13695         script variables.
13696         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13697
13698 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
13699             Bruno Haible  <bruno@clisp.org>
13700
13701         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
13702         also works after #include directives.
13703
13704 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
13705
13706         getdate.y: reject an out-of-range timezone value
13707         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
13708         the range [-24...+24].  When specified with only one or two digits,
13709         * tests/test-getdate.c: Tests for the fix.
13710         * doc/getdate.texi: Document this change.
13711
13712 2008-09-03  Bruno Haible  <bruno@clisp.org>
13713
13714         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
13715
13716 2008-09-02  Simon Josefsson  <simon@josefsson.org>
13717
13718         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
13719         <bruce.korb@gmail.com> with ideas from Ben Pfaff
13720         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
13721         Blake <ebb9@byu.net>.
13722
13723         * tests/test-bitrotate.c: Add more test vectors.
13724
13725 2008-09-02  Eric Blake  <ebb9@byu.net>
13726
13727         vasnprintf-posix: handle large precision via %.*d
13728         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
13729         when handling it ourselves.
13730         * tests/test-vasnprintf-posix.c (test_function): Add test.
13731         * tests/test-snprintf-posix.h (test_function): Likewise.
13732         * tests/test-sprintf-posix.h (test_function): Likewise.
13733         * tests/test-vasprintf-posix.c (test_function): Likewise.
13734         Reported by Alain Guibert.
13735
13736 2008-09-01  Eric Blake  <ebb9@byu.net>
13737
13738         c-stack: make configure-time check more robust
13739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
13740         successful sigaction call.
13741         Reported by Tom G. Christensen.
13742
13743 2008-09-01  Bruno Haible  <bruno@clisp.org>
13744
13745         New module 'findprog-lgpl'.
13746         * modules/findprog-lgpl: New file.
13747         * lib/findprog-lgpl.c: New file.
13748         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
13749         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
13750         to decide whether to use strdup or xstrdup, concatenated_filename or
13751         xconcatenated_filename.
13752
13753 2008-09-01  Bruno Haible  <bruno@clisp.org>
13754
13755         Split module 'concat-filename' into 'concat-filename' (LGPL) and
13756         'xconcat-filename' (GPL).
13757         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
13758         (License): Change to LGPLv2+.
13759         * modules/xconcat-filename: New file.
13760         * lib/concat-filename.h (concatenated_filename): Change specification.
13761         (xconcatenated_filename): New declaration.
13762         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
13763         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
13764         memory situations.
13765         * lib/xconcat-filename.c: New file.
13766         * NEWS: Mention the change.
13767         * lib/findprog.c: Include concat-filename.h, not filename.h.
13768         (find_in_path): Use xconcatenated_filename instead of
13769         concatenated_filename.
13770         * lib/javacomp.c: Include concat-filename.h, not filename.h.
13771         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13772         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13773         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13774         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
13775         instead of concatenated_filename.
13776         * lib/javaexec.c: Include concat-filename.h, not filename.h.
13777         (execute_java_class): Use xconcatenated_filename instead of
13778         concatenated_filename.
13779         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
13780         * modules/javacomp (Depends-on): Likewise.
13781         * modules/javaexec (Depends-on): Likewise.
13782
13783 2008-09-01  Bruno Haible  <bruno@clisp.org>
13784
13785         Split module 'filename' into 'filename' and 'concat-filename'.
13786         * modules/filename: Keep only lib/filename.h.
13787         (License): Change to LGPLv2+.
13788         * modules/concat-filename: New file, extracted from modules/filename.
13789         * lib/filename.h (concatenated_filename): Remove declaration.
13790         * lib/concat-filename.h: New file, extracted from lib/filename.h.
13791         * lib/concat-filename.c: Include concat-filename.h.
13792         * NEWS: Mention the change.
13793
13794 2008-09-01  Simon Josefsson  <simon@josefsson.org>
13795
13796         * lib/bitrotate.h (rotl8, rotr8): Add.
13797
13798         * modules/bitrotate (configure.ac): Need
13799         AC_REQUIRE([AC_C_INLINE]).
13800         (Description): Mention stdint.h.  Reported by Bruno Haible
13801         <bruno@clisp.org>.
13802
13803         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
13804         Paolo Bonzini <bonzini@gnu.org>.
13805
13806 2008-08-31  Bruno Haible  <bruno@clisp.org>
13807
13808         Assume Solaris specific bi-arch conventions on Solaris systems.
13809         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
13810         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
13811         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
13812         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
13813         like acl_libdirstem.
13814         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
13815         acl_libdirstem.
13816         * NEWS: Mention the change.
13817         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
13818
13819 2008-08-31  Jim Meyering  <meyering@redhat.com>
13820
13821         * lib/strftime.h: Add comments describing the two added arguments.
13822
13823         remove duplicate #include directives
13824         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
13825         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
13826
13827 2008-08-31  Bruno Haible  <bruno@clisp.org>
13828
13829         New module 'sigpipe-die'.
13830         * modules/sigpipe-die: New file.
13831         * lib/sigpipe-die.h: New file.
13832         * lib/sigpipe-die.c: New file.
13833         * MODULES.html.sh (Signal handling): Add sigpipe-die.
13834
13835 2008-08-31  Bruno Haible  <bruno@clisp.org>
13836
13837         Don't override previously installed signal handlers.
13838         * lib/fatal-signal.c (saved_sigactions): New variable.
13839         (uninstall_handlers): Reset the signal to the saved handler, not
13840         to SIG_DFL (except when ignored).
13841         (install_handlers): Save the previous handlers.
13842
13843 2008-08-30  Bruno Haible  <bruno@clisp.org>
13844
13845         * gnulib-tool (func_reset_sigpipe): New function.
13846         (func_get_automake_snippet, func_modules_transitive_closure,
13847         func_import): Invoke it before a join command that reads from stdin,
13848         to avoid "echo: write error: Broken pipe" error messages on stderr.
13849         Reported by Sam Steingold <sds@gnu.org>.
13850
13851 2008-08-30  Bruno Haible  <bruno@clisp.org>
13852
13853         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
13854         Code copied from m4/open.m4.
13855         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
13856         access and the filename ends in a slash. Code copied from lib/open.c.
13857         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
13858         * tests/test-fopen.c (main): Check against bug with trailing slash.
13859
13860 2008-08-29  Bruno Haible  <bruno@clisp.org>
13861
13862         Avoid some "gcc -pedantic" warnings.
13863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
13864         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
13865         * lib/dirent.in.h: Likewise.
13866         * lib/fcntl.in.h: Likewise.
13867         * lib/float.in.h: Likewise.
13868         * lib/iconv.in.h: Likewise.
13869         * lib/inttypes.in.h: Likewise.
13870         * lib/locale.in.h: Likewise.
13871         * lib/math.in.h: Likewise.
13872         * lib/netinet_in.in.h: Likewise.
13873         * lib/search.in.h: Likewise.
13874         * lib/signal.in.h: Likewise.
13875         * lib/stdarg.in.h: Likewise.
13876         * lib/stdint.in.h: Likewise.
13877         * lib/stdio.in.h: Likewise.
13878         * lib/stdlib.in.h: Likewise.
13879         * lib/string.in.h: Likewise.
13880         * lib/strings.in.h: Likewise.
13881         * lib/sys_select.in.h: Likewise.
13882         * lib/sys_socket.in.h: Likewise.
13883         * lib/sys_stat.in.h: Likewise.
13884         * lib/sys_time.in.h: Likewise.
13885         * lib/sysexits.in.h: Likewise.
13886         * lib/time.in.h: Likewise.
13887         * lib/unistd.in.h: Likewise.
13888         * lib/wchar.in.h: Likewise.
13889         * lib/wctype.in.h: Likewise.
13890         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
13891         * modules/fchdir (Makefile.am): Likewise.
13892         * modules/fcntl (Makefile.am): Likewise.
13893         * modules/float (Makefile.am): Likewise.
13894         * modules/iconv_open (Makefile.am): Likewise.
13895         * modules/inttypes (Makefile.am): Likewise.
13896         * modules/locale (Makefile.am): Likewise.
13897         * modules/math (Makefile.am): Likewise.
13898         * modules/netinet_in (Makefile.am): Likewise.
13899         * modules/search (Makefile.am): Likewise.
13900         * modules/signal (Makefile.am): Likewise.
13901         * modules/stdarg (Makefile.am): Likewise.
13902         * modules/stdint (Makefile.am): Likewise.
13903         * modules/stdio (Makefile.am): Likewise.
13904         * modules/stdlib (Makefile.am): Likewise.
13905         * modules/string (Makefile.am): Likewise.
13906         * modules/strings (Makefile.am): Likewise.
13907         * modules/sys_select (Makefile.am): Likewise.
13908         * modules/sys_socket (Makefile.am): Likewise.
13909         * modules/sys_stat (Makefile.am): Likewise.
13910         * modules/sys_time (Makefile.am): Likewise.
13911         * modules/sysexits (Makefile.am): Likewise.
13912         * modules/time (Makefile.am): Likewise.
13913         * modules/unistd (Makefile.am): Likewise.
13914         * modules/wchar (Makefile.am): Likewise.
13915         * modules/wctype (Makefile.am): Likewise.
13916         Reported by Reuben Thomas <rrt@sc3d.org>.
13917
13918 2008-08-29  Bruno Haible  <bruno@clisp.org>
13919
13920         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
13921         any more.
13922
13923 2008-08-29  Simon Josefsson  <simon@josefsson.org>
13924
13925         * MODULES.html.sh (Misc): Add bitrotate.
13926
13927         * modules/bitrotate: New file.
13928
13929         * lib/bitrotate.h: New file.
13930
13931         * modules/bitrotate-tests: New file.
13932
13933         * tests/test-bitrotate.c: New file.
13934
13935         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
13936         on the bitrotate module.
13937
13938         * lib/arctwo.c: Use new bitrotate module.
13939
13940 2008-08-29  Jim Meyering  <meyering@redhat.com>
13941
13942         bootstrap: merge changes from coreutils
13943         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
13944         of copied files.  Remove a kludge, now that this is fixed.
13945         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
13946         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
13947         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
13948
13949 2008-08-29  Bruno Haible  <bruno@clisp.org>
13950
13951         * MODULES.html.sh: Remove --cvs-urls option.
13952
13953 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
13954
13955         maint.mk: adjust to file name change
13956         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
13957
13958 2008-08-28  Jim Meyering  <meyering@redhat.com>
13959
13960         * modules/getndelim2 (License): Relicense to LGPLv2+.
13961         Approved by Richard Stallman for the version of 1995, and by
13962         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
13963
13964 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
13965
13966         * lib/getdelim.c (flockfile, funlockfile): Make all of them
13967         dummy if one is not available.  Do not touch them if
13968         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
13969         (getc_maybe_unlocked): New.
13970         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
13971
13972 2008-08-26  Eric Blake  <ebb9@byu.net>
13973
13974         doc/INSTALL: resync from autoconf
13975         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
13976         (INSTALL_PRELUDE): Delete; this is done more efficiently by
13977         moving...
13978         * install.texi [!autoconf]: ...here.  Resync from autoconf.
13979         * INSTALL: Regenerate.
13980         * INSTALL.ISO: New file.
13981         * INSTALL.UTF-8: Likewise.
13982
13983 2008-08-26  Jim Meyering  <meyering@redhat.com>
13984
13985         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
13986         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
13987         these definitions conditional, so that they may be overridden, too.
13988
13989 2008-08-26  Bruno Haible  <bruno@clisp.org>
13990
13991         Generate INSTALL file variants with prettier quotes.
13992         * doc/Makefile (INSTALL_PRELUDE): New macro.
13993         (INSTALL): Use it.
13994         (INSTALL.ISO, INSTALL.UTF-8): New rules.
13995
13996 2008-08-26  Bruno Haible  <bruno@clisp.org>
13997
13998         Run makeinfo in an English locale.
13999         * doc/Makefile (MAKEINFO): New variable.
14000
14001 2008-08-26  Bruno Haible  <bruno@clisp.org>
14002
14003         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
14004         Suggested by Eric Blake.
14005
14006 2008-08-25  Bruno Haible  <bruno@clisp.org>
14007
14008         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
14009
14010 2008-08-25  Eric Blake  <ebb9@byu.net>
14011
14012         c-stack: test that stack overflow can be caught
14013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
14014         that platform allows handling stack overflow; at least OS/2 EMX
14015         has sigaltstack, but crashes before transferring control to
14016         handler on stack overflow.
14017         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
14018         check for HAVE_STACK_OVERFLOW_HANDLING.
14019         Reported by Elbert Pol.
14020
14021 2008-08-25  Bruno Haible  <bruno@clisp.org>
14022
14023         * doc/posix-functions/strftime.texi: Fix description of strftime
14024         module.
14025
14026 2008-08-24  Bruno Haible  <bruno@clisp.org>
14027
14028         * tests/uniwidth/test-uc_width2.c: New file.
14029         * tests/uniwidth/test-uc_width2.sh: New file.
14030         * modules/uniwidth/width-tests (Files): Add the new files.
14031         (TESTS): Add uniwidth/test-uc_width2.sh.
14032         (TESTS_ENVIRONMENT): New variable.
14033         (check_PROGRAMS): Add test-uc_width2.
14034         (test_uc_width2_SOURCES): New variable.
14035
14036         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
14037         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
14038         not 0x00AB.
14039         Reported by Alexander V. Lukyanov <lav@netis.ru>.
14040
14041 2008-08-22  Eric Blake  <ebb9@byu.net>
14042
14043         test-lock, test-tls: mention why a test is skipped
14044         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
14045         skipped.
14046         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
14047
14048         count-one-bits: relax license
14049         * modules/count-one-bits (License): Relicense to LGPLv2+.
14050         Suggested by Ludovic Courtès, approved by Ben Pfaff.
14051
14052 2008-08-22  Andreas Schwab  <schwab@suse.de>
14053
14054         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14055         Remove spurious space in assignment.
14056
14057 2008-08-21  Simon Josefsson  <simon@josefsson.org>
14058
14059         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
14060         Paul Eggert <eggert@CS.UCLA.EDU>.
14061
14062 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
14063
14064         * modules/gettext: Add m4/threadlib.m4.
14065
14066 2008-08-19  Eric Blake  <ebb9@byu.net>
14067
14068         test-c-stack: fix compilation failure on FreeBSD 5.0
14069         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
14070         headers before <sys/resource.h>.
14071         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
14072         the bug.
14073         Reported by Nelson H. F. Beebe.
14074
14075         strverscmp: migrate from "strverscmp.h" to <string.h>
14076         * modules/string (Makefile.am): Add new hooks.
14077         * modules/strverscmp (Files): Remove strverscmp.h.
14078         (Depends-on): Add string.
14079         (configure.ac): Add indicator.
14080         (Include): Mention new header.
14081         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
14082         defaults.
14083         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
14084         results.
14085         * lib/strverscmp.h: Delete.
14086         * lib/string.in.h (strverscmp): Provide declaration, when needed.
14087         * tests/test-strverscmp.c (includes): Adjust client.
14088         * lib/check-version.c (includes): Likewise.
14089         * NEWS: Document the change.
14090
14091         strverscmp: add unit test
14092         * modules/strverscmp-tests: New file.
14093         * tests/test-strverscmp.c: Likewise.
14094
14095 2008-08-19  Simon Josefsson  <simon@josefsson.org>
14096
14097         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
14098         regarding Windows crypto stuff, from Mono.
14099
14100 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
14101
14102         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
14103         if present, for intel RND.  Return error on failures.
14104
14105 2008-08-18  Ben Pfaff  <blp@gnu.org>
14106
14107         gitlog-to-changelog: give better diagnostic for failed pipe-open
14108         * build-aux/gitlog-to-changelog: Improve error message: suggest
14109         that the version of Git may be too old.
14110
14111 2008-08-18  Simon Josefsson  <simon@josefsson.org>
14112
14113         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
14114         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
14115
14116 2008-08-18  Bruno Haible  <bruno@clisp.org>
14117
14118         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
14119         pthread_in_use().
14120
14121 2008-08-18  Bruno Haible  <bruno@clisp.org>
14122
14123         * lib/glthread/threadlib.c: Include <pthread.h>.
14124
14125 2008-08-18  Bruno Haible  <bruno@clisp.org>
14126
14127         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
14128         glthread_recursive_lock_* macros.
14129         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
14130         Fix syntax error.
14131
14132 2008-08-18  Bruno Haible  <bruno@clisp.org>
14133
14134         * lib/glthread/thread.c: Avoid forcing a context switch right after
14135         thread creation.
14136
14137 2008-08-17  Bruno Haible  <bruno@clisp.org>
14138
14139         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
14140         * lib/glthread/thread.h: Provide Win32 specific implementation.
14141         * modules/thread (Files): Add lib/glthread/thread.c.
14142         (Depends-on): Add lock.
14143         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
14144
14145 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14146
14147         New module 'yield'.
14148         * modules/yield: New file.
14149         * lib/glthread/yield.h: New file.
14150         * m4/yield.m4: New file.
14151         * MODULES.html.sh (Multithreading): Add yield.
14152
14153 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14154
14155         New module 'thread'.
14156         * modules/thread: New file.
14157         * lib/glthread/thread.h: New file.
14158         * m4/thread.m4: New file.
14159         * MODULES.html.sh (Multithreading): Add thread.
14160
14161 2008-08-17  Bruno Haible  <bruno@clisp.org>
14162
14163         * lib/glthread/lock.h: Include <stdlib.h> always.
14164         * lib/glthread/tls.h: Likewise.
14165         * lib/glthread/cond.h: Likewise.
14166
14167 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14168
14169         New module 'cond'.
14170         * modules/cond: New file.
14171         * lib/glthread/cond.h: New file.
14172         * lib/glthread/cond.c: New file.
14173         * m4/cond.m4: New file.
14174         * MODULES.html.sh (Multithreading): Add cond.
14175
14176 2008-08-16  Eric Blake  <ebb9@byu.net>
14177
14178         c-stack: fix regression on Irix 5.3 from 2008-06-21
14179         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
14180         sa_sigaction...
14181         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
14182         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
14183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
14184         * modules/signal (Makefile.am): Use the value.
14185         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
14186         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
14187         * doc/posix-headers/signal.texi (signal.h): Document this
14188         portability issue.
14189         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
14190         Reported by Tom G. Christensen.
14191
14192 2008-08-17  Bruno Haible  <bruno@clisp.org>
14193
14194         New module 'threadlib'.
14195         * modules/threadlib: New file.
14196         * lib/glthread/threadlib.c: New file, extracted from
14197         lib/glthread/lock.c.
14198         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
14199         functions.
14200         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
14201         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
14202         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
14203         macros.
14204         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
14205         (gl_DISABLE_THREADS): Remove macro.
14206         * modules/lock (Files): Remove build-aux/config.rpath.
14207         (Depends-on): Remove havelib. Add threadlib.
14208         (configure.ac-early): Remove section.
14209         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
14210         * modules/tls (Depends-on): Remove lock. Add threadlib.
14211         (Link): New section, copied from threadlib.
14212         * MODULES.html.sh (Multithreading): Add threadlib.
14213
14214 2008-08-14  Bruno Haible  <bruno@clisp.org>
14215
14216         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
14217         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
14218         glthread_rwlock_unlock, glthread_rwlock_destroy,
14219         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
14220         glthread_recursive_lock_destroy): Define as macros always.
14221         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
14222         glthread_lock_lock.
14223         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
14224         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
14225         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
14226         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
14227         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
14228         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
14229         (glthread_recursive_lock_lock_func): Renamed from
14230         glthread_recursive_lock_lock.
14231         (glthread_recursive_lock_unlock_func): Renamed from
14232         glthread_recursive_lock_unlock.
14233         (glthread_recursive_lock_destroy_func): Renamed from
14234         glthread_recursive_lock_destroy.
14235
14236 2008-08-14  Bruno Haible  <bruno@clisp.org>
14237
14238         * lib/glthread/lock.h: Renamed from lib/lock.h.
14239         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
14240         * lib/glthread/tls.h: Renamed from lib/tls.h.
14241         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
14242         * lib/fstrcmp.c: Update includes.
14243         * lib/strsignal.c: Update includes.
14244         * modules/lock (Files, Makefile.am): Update.
14245         (Include): Change to "glthread/lock.h".
14246         * modules/tls (Files, Makefile.am): Update.
14247         (Include): Change to "glthread/tls.h".
14248         * tests/test-lock.c: Update includes.
14249         * tests/test-tls.c: Update includes.
14250         * NEWS: Mention the renamed header files.
14251
14252 2008-08-11  Jim Meyering  <meyering@redhat.com>
14253
14254         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
14255
14256 2008-08-11  Eric Blake  <ebb9@byu.net>
14257
14258         test-c-stack: avoid C99-ism
14259         * tests/test-c-stack.c (main): Fix whitespace, move declaration
14260         before statement.
14261         Reported by Alain Guibert.
14262
14263 2008-08-10  Jim Meyering  <meyering@redhat.com>
14264
14265         ensure that return value of uinttostr et al are not ignored
14266         * lib/inttostr.h (__GNUC_PREREQ): Define.
14267         (__attribute_warn_unused_result__): Define.
14268         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
14269
14270 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
14271
14272         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
14273         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
14274
14275 2008-08-07  Jim Meyering  <meyering@redhat.com>
14276
14277         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
14278
14279         * modules/mkstemp (License): Relicense under LGPLv2+.
14280         * modules/tempname (License): Likewise.
14281
14282 2008-08-06  Bruno Haible  <bruno@clisp.org>
14283
14284         * lib/poll.c (poll): Further micro-optimization.
14285
14286 2008-08-06  Jim Meyering  <meyering@redhat.com>
14287
14288         inet_pton.c: use locale-independent tolower
14289         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
14290         (inet_pton6): Use c_tolower rather than tolower.
14291         * modules/inet_pton (Depends-on): Add c-ctype.
14292
14293 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
14294
14295         * lib/poll.c (poll): Avoid division when timeout is 0, cache
14296         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
14297
14298 2008-08-06  Jim Meyering  <meyering@redhat.com>
14299
14300         * modules/inet_pton (License): Relicense under LGPLv2+.
14301
14302 2008-08-03  Bruno Haible  <bruno@clisp.org>
14303
14304         Additional non-aborting API for lock and tls.
14305         * lib/lock.h: Include <errno.h>.
14306         (glthread_lock_init): New macro/function.
14307         (gl_lock_init): Define as wrapper around glthread_lock_init.
14308         (glthread_lock_lock): New macro/function.
14309         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
14310         (glthread_lock_unlock): New macro/function.
14311         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
14312         (glthread_lock_destroy): New macro/function.
14313         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
14314         (glthread_rwlock_init): New macro/function.
14315         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
14316         (glthread_rwlock_rdlock): New macro/function.
14317         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
14318         (glthread_rwlock_wrlock): New macro/function.
14319         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
14320         (glthread_rwlock_unlock): New macro/function.
14321         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
14322         (glthread_rwlock_destroy): New macro/function.
14323         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
14324         (glthread_recursive_lock_init): New macro/function.
14325         (gl_recursive_lock_init): Define as wrapper around
14326         glthread_recursive_lock_init.
14327         (glthread_recursive_lock_lock): New macro/function.
14328         (gl_recursive_lock_lock): Define as wrapper around
14329         glthread_recursive_lock_lock.
14330         (glthread_recursive_lock_unlock): New macro/function.
14331         (gl_recursive_lock_unlock): Define as wrapper around
14332         glthread_recursive_lock_unlock.
14333         (glthread_recursive_lock_destroy): New macro/function.
14334         (gl_recursive_lock_destroy): Define as wrapper around
14335         glthread_recursive_lock_destroy.
14336         (glthread_once): New macro/function.
14337         (gl_once): Define as wrapper around glthread_once.
14338         Update function declarations.
14339         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
14340         glthread_rwlock_init. Return error code.
14341         (glthread_rwlock_rdlock_multithreaded): Renamed from
14342         glthread_rwlock_rdlock. Return error code.
14343         (glthread_rwlock_wrlock_multithreaded): Renamed from
14344         glthread_rwlock_wrlock. Return error code.
14345         (glthread_rwlock_unlock_multithreaded): Renamed from
14346         glthread_rwlock_unlock. Return error code.
14347         (glthread_rwlock_destroy_multithreaded): Renamed from
14348         glthread_rwlock_destroy. Return error code.
14349         (glthread_recursive_lock_init_multithreaded): Renamed from
14350         glthread_recursive_lock_init. Return error code.
14351         (glthread_recursive_lock_lock_multithreaded): Renamed from
14352         glthread_recursive_lock_lock. Return error code.
14353         (glthread_recursive_lock_unlock_multithreaded): Renamed from
14354         glthread_recursive_lock_unlock. Return error code.
14355         (glthread_recursive_lock_destroy_multithreaded): Renamed from
14356         glthread_recursive_lock_destroy. Return error code.
14357         (glthread_once_call): Make static.
14358         (glthread_once_multithreaded): Renamed from glthread_once.
14359         * lib/tls.h: Include <errno.h>.
14360         (glthread_tls_key_init): New macro/function.
14361         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
14362         (glthread_tls_set): New macro/function.
14363         (gl_tls_set): Define as wrapper around glthread_tls_set.
14364         (glthread_tls_key_destroy): New macro/function.
14365         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
14366         Update function declarations.
14367         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
14368         glthread_tls_get.
14369         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14370
14371 2008-08-04  Eric Blake  <ebb9@byu.net>
14372
14373         gnumakefile: use space, not TAB, outside of targets
14374         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
14375
14376 2008-08-02  Jim Meyering  <meyering@redhat.com>
14377
14378         getdate.y: avoid locale-dependent date parsing failure
14379         In Turkish locales, getdate would fail to recognize keywords
14380         containing a lowercase "i".  The solution is not to rely on
14381         locale-sensitive case-conversion.
14382         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
14383         (lookup_word): Use c_toupper in place of toupper.
14384         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
14385         Reported by Vefa Bicakci <bicave@superonline.com> in
14386         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
14387         * modules/getdate (Depends-on): Add c-ctype.
14388
14389 2008-08-02  Bruno Haible  <bruno@clisp.org>
14390
14391         * gnulib-tool (func_import): When updating or creating a .gitignore
14392         file, prepend each added line with a slash, and ignore leading slashes
14393         from the existing lines.
14394         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14395
14396 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14397
14398         Portability fix for GNU make 3.79.1.
14399         * top/GNUmakefile: Avoid 'else COND', which older GNU make
14400         versions do not understand.
14401
14402 2008-08-01  Bruno Haible  <bruno@clisp.org>
14403
14404         Work around bug of HP-UX 10.20 cc with -0.0 literal.
14405         * tests/test-isnanf.h (zero): New variable.
14406         (main): Avoid literal -0.0f.
14407         * tests/test-isnand.h (zero): New variable.
14408         (main): Avoid literal -0.0.
14409         * tests/test-isnanl.h (zero): New variable.
14410         (main): Avoid literal -0.0L.
14411         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
14412         (test_float, test_double, test_long_double): Avoid literals -0.0f,
14413         -0.0, -0.0L.
14414         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
14415         (test_signbitd): Avoid literal -0.0.
14416         (test_signbitl): Avoid literal -0.0L.
14417         * tests/test-ceilf1.c (zero): New variable.
14418         (main): Avoid literal -0.0f.
14419         * tests/test-ceill.c (zero): New variable.
14420         (main): Avoid literal -0.0L.
14421         * tests/test-floorf1.c (zero): New variable.
14422         (main): Avoid literal -0.0f.
14423         * tests/test-floorl.c (zero): New variable.
14424         (main): Avoid literal -0.0L.
14425         * tests/test-roundf1.c (zero): New variable.
14426         (main): Avoid literal -0.0f.
14427         * tests/test-round1.c (zero): New variable.
14428         (main): Avoid literal -0.0.
14429         * tests/test-roundl.c (zero): New variable.
14430         (main): Avoid literal -0.0L.
14431         * tests/test-truncf1.c (zero): New variable.
14432         (main): Avoid literal -0.0f.
14433         * tests/test-trunc1.c (zero): New variable.
14434         (main): Avoid literal -0.0.
14435         * tests/test-truncl.c (zero): New variable.
14436         (main): Avoid literal -0.0L.
14437         * tests/test-frexp.c (zero): New variable.
14438         (main): Avoid literal -0.0.
14439         * tests/test-frexpl.c (zero): New variable.
14440         (main): Avoid literal -0.0L.
14441         * tests/test-ldexpl.c (zero): New variable.
14442         (main): Avoid literal -0.0L.
14443         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
14444         (zerod, zerol): New variables.
14445         (test_function): Avoid literals -0.0, -0.0L.
14446         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
14447         (zerod, zerol): New variables.
14448         (test_function): Avoid literals -0.0, -0.0L.
14449         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
14450         (zerod, zerol): New variables.
14451         (test_function): Avoid literals -0.0, -0.0L.
14452         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
14453         (zerod, zerol): New variables.
14454         (test_function): Avoid literals -0.0, -0.0L.
14455         * tests/test-strtod.c (zero): New variable.
14456         (main): Avoid literal -0.0.
14457         Reported by Jonathan C. Patschke <jp@centtech.com>.
14458
14459 2008-07-31  Jim Meyering  <meyering@redhat.com>
14460
14461         sha256.h: correct definition of SHA224_DIGEST_SIZE
14462         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
14463         Reported by Paulie Pena IV <paulie4@gmail.com>.
14464         Define as 224 / 8, rather than as a literal.
14465         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
14466         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
14467         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
14468
14469 2008-07-31  Bruno Haible  <bruno@clisp.org>
14470
14471         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
14472         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
14473         Reported by Jonathan Patschke <jp@centtech.com>.
14474
14475 2008-07-31  Bruno Haible  <bruno@clisp.org>
14476
14477         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
14478         Reported by Paolo Bonzini <bonzini@gnu.org>.
14479
14480 2008-07-30  Eric Blake  <ebb9@byu.net>
14481
14482         test-strtod: allow compilation without -lm
14483         * tests/test-strtod.c (main): Avoid link dependence on fabs.
14484         Reported by Dennis Clarke <blastwave@gmail.com>.
14485
14486 2008-07-28  Jim Meyering  <meyering@redhat.com>
14487
14488         bootstrap: work also when there are no .po files in po/
14489         * build-aux/bootstrap (update_po_files): Complete the change
14490         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
14491
14492 2008-07-27  Jim Meyering  <meyering@redhat.com>
14493
14494         * users.txt: Add zile.
14495
14496 2008-07-26  Ben Pfaff  <blp@gnu.org>
14497
14498         Add missing dependencies on new m4/exponent[fdl].m4 files.
14499         * modules/isnanf-nolibm: Add m4/exponentf.m4.
14500         * modules/isnand-nolibm: Add m4/exponentd.m4.
14501         * modules/isnanl-nolibm: Add m4/exponentl.m4.
14502         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
14503         m4/isnan[fdl].m4, because the macros actually used moved.
14504         Reported by Jim Meyering.
14505
14506 2008-07-14  Ben Pfaff  <blp@gnu.org>
14507
14508         Add isinf module.
14509         * lib/isinf.c: New file.
14510         * lib/math.in.h: Define isinf macro if we have decided to replace
14511         it.
14512         * m4/isinf.m4: New file.
14513         * m4/math_h.m4: Initialize and substitute variables for isinf
14514         module.
14515         * modules/isinf: New file.
14516         * modules/isinf-tests: New file.
14517         * modules/math: Add substitutions for new module.
14518         * tests/test-isinf.c: New file.
14519         * doc/posix-functions/isinf.texi: Mention new module.
14520         * MODULES.html.sh: Mention new module.
14521
14522 2008-07-14  Ben Pfaff  <blp@gnu.org>
14523
14524         Factor out some macros for use by additional modules.
14525         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
14526         exponentf.m4.
14527         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
14528         exponentd.m4.
14529         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
14530         file exponentl.m4.
14531         * m4/exponentf.m4: New file.
14532         * m4/exponentd.m4: New file.
14533         * m4/exponentl.m4: New file.
14534         * modules/isnanf: Use new file m4/exponentf.m4.
14535         * modules/isnand: Use new file m4/exponentd.m4.
14536         * modules/isnanl: Use new file m4/exponentl.m4.
14537
14538 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
14539
14540         mktime.c: normalize tp->tm_isdst value to -1/0/1.
14541         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
14542         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
14543         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
14544
14545         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
14546         readlink on platforms without PATH_MAX.
14547
14548 2008-07-21  Eric Blake  <ebb9@byu.net>
14549
14550         Warn, not fail, on stale version.
14551         * top/GNUmakefile (_curr-ver): Tone down previous patch.
14552
14553         Don't allow installation with stale devel version number.
14554         * top/GNUmakefile (_is-install-target): New macro.
14555         (_curr-ver): Forbid installation with stale version number.
14556
14557 2008-07-20  Bruno Haible  <bruno@clisp.org>
14558
14559         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
14560         TESTS_ENVIRONMENT.
14561         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
14562
14563 2008-07-20  Bruno Haible  <bruno@clisp.org>
14564
14565         * lib/c-stack.h (c_stack_action): Add documentation.
14566         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
14567
14568 2008-07-20  Bruno Haible  <bruno@clisp.org>
14569
14570         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
14571         * modules/readlink (License): Likewise.
14572
14573 2008-07-17  Eric Blake  <ebb9@byu.net>
14574
14575         * modules/c-stack (Link): Fix typo.
14576
14577         Make c-stack use libsigsegv, when available.
14578         * modules/c-stack (Depends-on): Add libsigsegv.
14579         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
14580         needed.
14581         * lib/c-stack.c (SIGSTKSZ): Define fallback.
14582         (segv_handler, overflow_handler, c_stack_action)
14583         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
14584         implementation when libsigsegv is available, but only when using
14585         the library is necessary.
14586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
14587         comment, explaining why XSI check fails on Linux.
14588         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
14589         * tests/test-c-stack2.sh: Tweak skip message.
14590         * NEWS: Document new link-time requirements.
14591
14592 2008-07-16  Eric Blake  <ebb9@byu.net>
14593
14594         c-stack: Expose false positives when not using libsigsegv.
14595         * modules/c-stack-tests (Files): Expand test.
14596         * tests/test-c-stack.c (main): Add means to conditionally trigger
14597         non-overflow SIGSEGV.
14598         * tests/test-c-stack2.sh: New file.
14599
14600 2008-07-14  Bruno Haible  <bruno@clisp.org>
14601
14602         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
14603         Reported by Eric Blake.
14604
14605 2008-07-14  Sam Steingold  <sds@gnu.org>
14606             Bruno Haible  <bruno@clisp.org>
14607
14608         New module libsigsegv.
14609         * modules/libsigsegv: New file.
14610         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
14611         modifications.
14612         * MODULES.html.sh (Signal handling): New section.
14613
14614 2008-07-14  Bruno Haible  <bruno@clisp.org>
14615
14616         * modules/unictype/ctype-* (Description): Add the word "function".
14617         Improves the resulting doc in MODULES.html.
14618
14619 2008-07-12  Ben Pfaff  <blp@gnu.org>
14620
14621         Add longlong module.
14622         * modules/longlong: New file.
14623
14624 2008-07-12  Bruno Haible  <bruno@clisp.org>
14625
14626         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
14627         to empty.
14628
14629 2008-07-10  Ben Pfaff  <blp@gnu.org>
14630
14631         Add isnan module.
14632         * doc/posix-functions/isnan.texi: Mention new module.
14633         * lib/math.in.h: Define isnan macro if we have decided to replace
14634         it.
14635         * m4/isnan.m4: New file.
14636         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
14637         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
14638         also.
14639         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
14640         redundancy.
14641         * m4/math_h.m4: Initialize and substitute variables for isnan
14642         module.
14643         * modules/isnan: New file.
14644         * modules/isnan-tests: New file.
14645         * modules/math: Add substitutions for new module.
14646         * tests/test-isnan.c: New file.
14647         * MODULES.html.sh: Mention new module.
14648
14649 2008-07-10  Ben Pfaff  <blp@gnu.org>
14650
14651         Add isnanf module.
14652         * lib/isnanf.m4: New file.
14653         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
14654         (gl_HAVE_ISNANF_IN_LIBM): New macro.
14655         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
14656         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
14657         * modules/isnanf: New file.
14658         * modules/isnanf-tests: New file.
14659         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
14660         files.
14661         * tests/test-isnanf-nolibm.c: factored most of its contents into
14662         new file tests/test-isnanf.h.
14663         * tests/test-isnanf.h: New file.
14664         * tests/test-isnanf.c: New file.
14665         * MODULES.html.sh: Mention new module.
14666         * doc/glibc-functions/isnanf.texi: Mention new module.
14667
14668 2008-07-10  Ben Pfaff  <blp@gnu.org>
14669
14670         Add isnand module.
14671         * lib/isnand.h: New file.
14672         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
14673         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
14674         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
14675         functionality also.
14676         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
14677         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
14678         (gl_HAVE_ISNAND_IN_LIBM): New macro.
14679         * modules/isnand: New file.
14680         * modules/isnand-tests: New file.
14681         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
14682         files.
14683         * tests/test-isnand-nolibm.c: factored most of its contents into
14684         new file tests/test-isnand.h.
14685         * tests/test-isnand.h: New file.
14686         * tests/test-isnand.c: New file.
14687         * MODULES.html.sh: Mention new module.
14688
14689 2008-07-10  Ben Pfaff  <blp@gnu.org>
14690
14691         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
14692         * lib/isnand.h: Rename lib/isnand-nolibm.h.
14693         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
14694         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
14695         * modules/isnanf-nolibm: Update references to renamed files.
14696         * modules/isnand-nolibm: Likewise.
14697         * modules/isnanf-nolibm-tests: Likewise.
14698         * modules/isnand-nolibm-tests: Likewise.
14699         * lib/frexp.c: Likewise.
14700         * lib/isfinite.c: Likewise.
14701         * lib/signbitd.c: Likewise.
14702         * lib/signbitf.c: Likewise.
14703         * lib/vasnprintf.c: Likewise.
14704         * tests/test-ceilf1.c: Likewise.
14705         * tests/test-ceilf2.c: Likewise.
14706         * tests/test-floorf1.c: Likewise.
14707         * tests/test-floorf2.c: Likewise.
14708         * tests/test-frexp.c: Likewise.
14709         * tests/test-round1.c: Likewise.
14710         * tests/test-round2.c: Likewise.
14711         * tests/test-roundf1.c: Likewise.
14712         * tests/test-strtod.c: Likewise.
14713         * tests/test-trunc1.c: Likewise.
14714         * tests/test-trunc2.c: Likewise.
14715         * tests/test-truncf1.c: Likewise.
14716         * tests/test-truncf2.c: Likewise.
14717         * NEWS: Mention the renamed header files.
14718
14719 2008-07-11  Jim Meyering  <meyering@redhat.com>
14720
14721         vc-list-files: make the last-resort awk code more portable
14722         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
14723         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
14724         does not support it.
14725
14726 2008-07-10  Eric Blake  <ebb9@byu.net>
14727
14728         Work with tar's bootstrap.
14729         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
14730         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
14731         an m4 comment.
14732
14733 2008-07-09  Jim Meyering  <meyering@redhat.com>
14734
14735         posix-shell.m4: fix typo that made this test malfunction
14736         * m4/posix-shell.m4: Remove capitalization in variable name.
14737
14738 2008-07-08  Bruno Haible  <bruno@clisp.org>
14739
14740         * m4/onceonly.m4: Update comments.
14741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14742
14743 2008-07-04  Jim Meyering  <meyering@redhat.com>
14744
14745         * users.txt: Add vc-dwim.
14746         (bison, coreutils): Use the gitweb URL.
14747
14748 2008-07-03  Jim Meyering  <meyering@redhat.com>
14749
14750         * users.txt: Add libffcall.  From Sam Steingold.
14751
14752 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
14753
14754         getdate.y: do not ignore TZ with relative day, month or year offset
14755         * lib/getdate.y (get_date): Move the tz-handling block to follow the
14756         relative-date-handling, since otherwise, the latter would clobber the
14757         sole output (an updated Start value) of the tz-handling block.
14758         * tests/test-getdate.c: Tests for the fix
14759
14760 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14761
14762         Recognize 'foo_LIBRARIES += libgnu.a'.
14763         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
14764         makefile snippet has already specified an installation location,
14765         also using '+='.
14766
14767 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
14768
14769         getdate.y: factor out common actions
14770         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
14771         Use them in place of open-coded actions.
14772
14773 2008-07-01  Simon Josefsson  <simon@josefsson.org>
14774
14775         Add self-test for getdate module.
14776         * modules/getdate-tests: New file.
14777         * tests/test-getdate.c: New file.
14778
14779 2008-06-29  Bruno Haible  <bruno@clisp.org>
14780
14781         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
14782         .gitignore.
14783         Reported by Sylvain Beucler <beuc@beuc.net>.
14784
14785 2008-06-29  Bruno Haible  <bruno@clisp.org>
14786
14787         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
14788         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
14789
14790 2008-06-29  Bruno Haible  <bruno@clisp.org>
14791
14792         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
14793         EXTRA_DIST.
14794         Reported by Sylvain Beucler <beuc@beuc.net>.
14795
14796 2008-06-26  Jim Meyering  <meyering@redhat.com>
14797
14798         make several modules depend on the "open" module
14799         This provides slightly increased consistency when opening-for-write
14800         the name of a non-directory spelled with a trailing slash.
14801         * modules/chdir-safer: Likewise.
14802         * modules/chown: Likewise.
14803         * modules/clean-temp: Likewise.
14804         * modules/copy-file: Likewise.
14805         * modules/fchdir: Likewise.
14806         * modules/fcntl-safer: Likewise.
14807         * modules/pipe: Likewise.
14808         * modules/utime: Likewise.
14809         Prompted by Eric Blake and Bruno Haible.
14810
14811 2008-06-24  Andreas Schwab  <schwab@suse.de>
14812
14813         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
14814         literals can be used as initializers for global variables.
14815
14816 2008-06-23  Eric Blake  <ebb9@byu.net>
14817
14818         Make gnulib-cache.m4 easier to diff.
14819         * gnulib-tool (func_import): Allow newlines when reading cached
14820         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
14821
14822 2008-06-23  Bruno Haible  <bruno@clisp.org>
14823
14824         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
14825         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
14826         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
14827         m4/signalblocking.m4.
14828         (gl_PREREQ_SIGACTION): Don't invoke it.
14829         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
14830         gl_PREREQ_SIG_HANDLER_H.
14831         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14832         Don't check for sigaction here.
14833
14834 2008-06-23  Bruno Haible  <bruno@clisp.org>
14835
14836         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
14837         (install_handlers): Don't set the SA_RESETHAND flag.
14838
14839 2008-06-23  Bruno Haible  <bruno@clisp.org>
14840
14841         * m4/sigaction.m4: Comment fixes.
14842         * lib/signal.in.h: Likewise.
14843
14844 2008-06-23  Eric Blake  <ebb9@byu.net>
14845
14846         Fix typo.
14847         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
14848
14849         Avoid SA_ namespace.
14850         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
14851         Reported by Ralf Wildenhues.
14852
14853         Avoid test failure due to SA_RESTORER.
14854         * tests/test-sigaction.c (SA_MASK): New macro.
14855         (main): Avoid failing due to extension flags being set.
14856         Reported by Jim Meyering.
14857
14858         Revert use of sig-handler.h in sigprocmask.c.
14859         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
14860         it requires the existence of struct sigaction.
14861         * lib/sigprocmask.c (handler_t): Restore typedef.
14862         (rpl_signal, old_handlers): Use local type.
14863
14864 2008-06-22  Bruno Haible  <bruno@clisp.org>
14865
14866         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
14867         conditionally.
14868         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14869
14870 2008-06-22  Bruno Haible  <bruno@clisp.org>
14871
14872         * doc/posix-functions/siginterrupt.texi: Move note.
14873
14874         * lib/signal.in.h (SA_RESTART): New macro.
14875         * lib/sigaction.c: Update comment.
14876
14877         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
14878
14879         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
14880         (gl_PREREQ_SIGPROCMASK): Invoke it.
14881         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
14882
14883         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
14884
14885         * lib/sigprocmask.c: Update a comment.
14886
14887 2008-06-21  Eric Blake  <ebb9@byu.net>
14888
14889         Use sigaction module rather than signal().
14890         * modules/c-stack (Depends-on): Add sigaction.
14891         * modules/fatal-signal (Depends-on): Likewise.
14892         * modules/nanosleep (Depends-on): Likewise.
14893         * modules/sigprocmask (Files): Add sig-handler.h.
14894         * modules/sigaction (Files): Likewise.
14895         * lib/sig-handler.h (get_handler): New file, suggested by Paul
14896         Eggert.
14897         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
14898         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
14899         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
14900         (init_fatal_signals): Likewise.
14901         * lib/nanosleep.c (rpl_nanosleep): Likewise.
14902         (siginterrupt): Delete fallback.
14903         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
14904         instead.
14905         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
14906         siginterrupt.
14907
14908         New module sigaction, for mingw.
14909         * modules/sigaction: New module...
14910         * modules/sigaction-tests: ...and its test.
14911         * m4/sigaction.m4: New file.
14912         * lib/sigaction.c: Likewise.
14913         * tests/test-sigaction.c: Likewise.
14914         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
14915         * modules/signal (Makefile.am): Likewise.
14916         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
14917         needed.
14918         * doc/posix-headers/signal.texi (signal.h): Mention provided
14919         types.
14920         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
14921         that sigaction is preferable.
14922         * doc/posix-functions/sigaction.texi (sigaction): Mention new
14923         module.
14924         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14925         sigaction.
14926
14927         Improve robustness of sigprocmask by overriding signal.
14928         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
14929         is in use.
14930         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
14931         (SIGKILL, SIGSTOP): Provide fallbacks.
14932         (rpl_signal): Implement.
14933         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
14934         signal can be called inside handlers.
14935
14936         Fix nanosleep module on mingw.
14937         * modules/nanosleep (Depends-on): Add sys_select.
14938         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
14939
14940         Fix licensing of sigprocmask.
14941         * modules/raise (License): Relicense as LGPL.
14942
14943 2008-06-21  Bruno Haible  <bruno@clisp.org>
14944
14945         * lib/propername.c (proper_name_utf8): Don't use the transliterated
14946         result if it contains question marks.
14947         Reported by Michael Geng <linux@michaelgeng.de>.
14948
14949 2008-06-19  Bruno Haible  <bruno@clisp.org>
14950
14951         Fix CVS-ism.
14952         * doc/gnulib.texi: Include updated-stamp.texi.
14953         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
14954         (updated-stamp.texi): New rule.
14955         (gnulib.info): Depend on it.
14956         * doc/.gitignore: Add updated-stamp.texi.
14957         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
14958
14959 2008-06-19  Bruno Haible  <bruno@clisp.org>
14960
14961         * doc/Makefile (gnulib.info): Update and simplify dependencies.
14962         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14963
14964 2008-06-19  Eric Blake  <ebb9@byu.net>
14965
14966         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
14967         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
14968         Reported by Stepan Kasal.
14969
14970 2008-06-18  Bruno Haible  <bruno@clisp.org>
14971
14972         * lib/fatal-signal.c (init_fatal_signals): Add comment.
14973         Reported by Eric Blake.
14974
14975 2008-06-18  Eric Blake  <ebb9@byu.net>
14976
14977         Work around cygwin 1.5.25 strsignal bug.
14978         * tests/test-strsignal.c: Allow for const char *.
14979         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
14980
14981 2008-06-18  Simon Josefsson  <simon@josefsson.org>
14982
14983         * users.txt: Update URL to article and add author/date
14984         information.
14985
14986 2008-06-17  Bruno Haible  <bruno@clisp.org>
14987
14988         New macro gl_DISABLE_THREADS.
14989         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
14990         if the user did not pass --enable-threads or --disable-threads option.
14991         (gl_DISABLE_THREADS): New macro.
14992         Reported by Eric Blake <ebb9@byu.net>.
14993
14994 2008-06-17  Bruno Haible  <bruno@clisp.org>
14995
14996         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
14997         when the macro ignores it.
14998         Based on a patch by Eric Blake <ebb9@byu.net>.
14999
15000 2008-06-17  Bruno Haible  <bruno@clisp.org>
15001
15002         * modules/tls (License): Change to LGPLv2+.
15003         Reported by Eric Blake.
15004
15005 2008-06-17  Eric Blake  <ebb9@byu.net>
15006
15007         Simplify c-stack prerequisites.
15008         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
15009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
15010         no longer requires <ucontext.h> to exist.  Optimize setrlimit
15011         check.
15012         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
15013         <sys/resource.h>.
15014
15015         Move c-stack test into testsuite.
15016         * modules/c-stack-tests: New file.
15017         * lib/c-stack.c [DEBUG]: Move test program...
15018         * tests/test-c-stack.c: ...into this new file.  Skip rather than
15019         fail test if sigaltstack is lacking.
15020         * tests/test-c-stack.sh: New driver file.
15021
15022 2008-06-16  Eric Blake  <ebb9@byu.net>
15023
15024         Use raise module consistently.
15025         * modules/fatal-signal (Depends-on): Add raise.
15026         * modules/sigprocmask (Depends-on): Likewise.
15027         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
15028         * lib/sigprocmask.c (sigprocmask): Likewise.
15029         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
15030         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
15031
15032         Fix compliance bug in sigpending.
15033         * lib/sigprocmask.c (sigpending): Return pending array via
15034         parameter, not return value.
15035
15036 2008-06-14  Eric Blake  <ebb9@byu.net>
15037
15038         Improve obstack-printf test code.
15039         * tests/test-obstack-printf.c (test_function): Fix comment, and
15040         simplify usage of obstack_* in macros.  Add a test for coverage.
15041         Reported by Bruno Haible.
15042
15043 2008-06-14  Bruno Haible  <bruno@clisp.org>
15044
15045         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
15046         array size as a constant, not as a const variable.
15047         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
15048         AC_USE_SYSTEM_EXTENSIONS.
15049         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15050         Test whether the obstack_printf function actually exists.
15051         * modules/obstack-printf (Depends-on): Add extensions.
15052         (Include): Remove obstack.h.
15053         * modules/obstack-printf-posix (Depends-on): Add extensions.
15054         (Include): Remove obstack.h.
15055
15056 2008-06-13  Eric Blake  <ebb9@byu.net>
15057
15058         Add obstack-printf and obstack-printf-posix modules.
15059         * modules/obstack-printf: New file.
15060         * modules/obstack-printf-posix: Likewise.
15061         * MODULES.html.sh (Misc): Mention them.
15062         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15063         Likewise.
15064         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15065         Likewise.
15066         * modules/stdio (Makefile.am): Accomodate new modules.
15067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15068         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
15069         Declare.
15070         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
15071         functions.
15072         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
15073         (gl_REPLACE_OBSTACK_PRINTF): New macros
15074         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
15075         * tests/test-obstack-printf.c: New file.
15076         * modules/obstack-printf-tests: Likewise.
15077         * modules/obstack-printf-posix-tests: Likewise.
15078
15079 2008-06-11  Bruno Haible  <bruno@clisp.org>
15080
15081         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
15082         * lib/open.c: Include errno.h.
15083         (open): Fail when attempting to write to a file that has a trailing
15084         slash.
15085         * tests/test-open.c (main): Test against trailing slash bug.
15086         * doc/posix-functions/open.texi: Mention the trailing slash bug.
15087
15088 2008-06-10  Bruno Haible  <bruno@clisp.org>
15089
15090         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
15091         for $? to work inside the trap command, with various /bin/sh-s.
15092         * tests/test-vc-list-files-cvs.sh: Likewise.
15093
15094 2008-06-10  Bruno Haible  <bruno@clisp.org>
15095
15096         * lib/acl-internal.h: Don't include gettext.h here.
15097         * lib/set-mode-acl.c: Include gettext.h here.
15098         * lib/copy-acl.c: Likewise.
15099
15100 2008-06-10  Bruno Haible  <bruno@clisp.org>
15101
15102         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
15103         * lib/wait-process.c (wait_subprocess): Likewise.
15104         * lib/execute.h (execute): Add termsigp argument.
15105         * lib/execute.c (execute): Likewise.
15106         * lib/csharpcomp.c (compile_csharp_using_pnet,
15107         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
15108         * lib/csharpexec.c (execute_csharp_using_pnet,
15109         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
15110         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
15111         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
15112         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
15113         is_jikes_present): Update.
15114         * lib/javaexec.c (execute_java_class): Update.
15115         * lib/javaversion.c (execute_and_read_line): Update.
15116         * NEWS: Document the changes.
15117         Reported by Eric Blake.
15118
15119 2008-06-10  Eric Blake  <ebb9@byu.net>
15120
15121         Add missing include.
15122         * tests/test-strstr.c (includes): Add <signal.h>.
15123         * tests/test-strcasestr.c (includes): Likewise.
15124         * tests/test-memmem.c (includes): Likewise.
15125
15126 2008-06-10  Bruno Haible  <bruno@clisp.org>
15127
15128         * lib/wait-process.c (wait_subprocess): Add an assertion.
15129
15130 2008-06-10  Bruno Haible  <bruno@clisp.org>
15131
15132         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
15133
15134 2008-06-10  Bruno Haible  <bruno@clisp.org>
15135
15136         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
15137         using alarm().
15138         * tests/test-strcasestr.c (main): Likewise.
15139         * tests/test-strstr.c (main): Likewise.
15140
15141 2008-06-09  Bruno Haible  <bruno@clisp.org>
15142
15143         Work around the Solaris 10 ACE ACLs ABI change.
15144         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
15145         declare if ACL_NO_TRIVIAL is present.
15146         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
15147         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
15148         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
15149         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
15150         define if ACL_NO_TRIVIAL is present.
15151         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
15152         and use the current ABI.
15153         (file_has_acl): Use same #if condition as elsewhere.
15154         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
15155         in use, and use the current ABI.
15156         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
15157         Reported by Jim Meyering.
15158
15159 2008-06-09  Eric Blake  <ebb9@byu.net>
15160
15161         Work around environments that (stupidly) ignore SIGALRM.
15162         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
15163         before using alarm().
15164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15165         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15166         Reported by Ian Beckwith <ianb@erislabs.net>.
15167
15168         Produce autobuild blurb earlier in log.
15169         * modules/autobuild (configure.ac-early): Move AB_INIT here.
15170
15171 2008-06-09  Jim Meyering  <meyering@redhat.com>
15172         and Ondřej Vašík  <ovasik@redhat.com>
15173
15174         utimens.c: correct kernel bug work-around
15175         Ondřej Vašík found that the invalid return value of 280 indicates
15176         failure, not success, and the kernel bug we're trying to work
15177         around affects not just the utimensat call, but also the fallback
15178         futimens call.
15179         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
15180         not success.
15181         [HAVE_FUTIMENS]: Use the same work-around, here.
15182
15183 2008-06-09  Jim Meyering  <meyering@redhat.com>
15184
15185         add more guards around definition of ACE_-related code
15186         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
15187         ALLOW and ACE_OWNER are also defined.
15188
15189 2008-06-08  Bruno Haible  <bruno@clisp.org>
15190
15191         * lib/acl-internal.h: Add me as co-author.
15192         * lib/file-has-acl.c: Likewise.
15193         * lib/set-mode-acl.c: Likewise.
15194         * lib/copy-acl.c: Likewise.
15195
15196 2008-06-08  Bruno Haible  <bruno@clisp.org>
15197
15198         Add support for AIX ACLs.
15199         * lib/acl-internal.h (acl_nontrivial): New declaration.
15200         * lib/file-has-acl.c (acl_nontrivial): New function.
15201         (file_has_acl): Add implementation using AIX 4 ACL API.
15202         * lib/set-mode-acl.c (qset_acl): Likewise.
15203         * lib/copy-acl.c (qcopy_acl): Likewise.
15204
15205 2008-06-08  Bruno Haible  <bruno@clisp.org>
15206
15207         Add support for HP-UX ACLs.
15208         * lib/acl-internal.h (acl_nontrivial): New declaration.
15209         * lib/file-has-acl.c (acl_nontrivial): New function.
15210         (file_has_acl): Add implementation using HP-UX 11 ACL API.
15211         * lib/set-mode-acl.c (qset_acl): Likewise.
15212         * lib/copy-acl.c (qcopy_acl): Likewise.
15213
15214 2008-06-08  Bruno Haible  <bruno@clisp.org>
15215
15216         Add support for Cygwin ACLs.
15217         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
15218         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
15219         the chmod_or_fchmod call.
15220         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
15221
15222 2008-06-08  Bruno Haible  <bruno@clisp.org>
15223
15224         Fix bug with setuid modes in Solaris 10+ code.
15225         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
15226         succeeded, when the mode contains some special bits.
15227
15228 2008-06-08  Bruno Haible  <bruno@clisp.org>
15229
15230         Add support for Solaris 7..10 ACLs.
15231         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
15232         declarations.
15233         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
15234         functions.
15235         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
15236         * lib/set-mode-acl.c (qset_acl): Likewise.
15237         * lib/copy-acl.c (qcopy_acl): Likewise.
15238
15239 2008-06-08  Bruno Haible  <bruno@clisp.org>
15240
15241         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
15242         declaration.
15243         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
15244         (acl_access_nontrivial): Remove MacOS X case.
15245         (file_has_acl): Use acl_extended_nontrivial.
15246         * lib/copy-acl.c (qcopy_acl): Likewise.
15247
15248 2008-06-08  Bruno Haible  <bruno@clisp.org>
15249
15250         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
15251
15252 2008-06-08  Jim Meyering  <meyering@redhat.com>
15253
15254         * modules/acl (Maintainer): Add Bruno Haible.
15255
15256 2008-06-07  Bruno Haible  <bruno@clisp.org>
15257
15258         Improve support for Tru64 ACLs.
15259         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
15260         ACL on OSF/1.
15261
15262 2008-06-07  Bruno Haible  <bruno@clisp.org>
15263
15264         Add support for MacOS X ACLs.
15265         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
15266         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
15267         * lib/set-mode-acl.c (qset_acl): Likewise.
15268         * lib/copy-acl.c (qcopy_acl): Likewise.
15269
15270 2008-06-07  Bruno Haible  <bruno@clisp.org>
15271
15272         Fix memory leak introduced on 2008-05-22.
15273         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
15274         use.
15275
15276 2008-06-07  Bruno Haible  <bruno@clisp.org>
15277
15278         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
15279         to construct an empty ACL.
15280
15281 2008-06-07  Bruno Haible  <bruno@clisp.org>
15282
15283         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
15284         precisely.
15285         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
15286
15287 2008-06-07  Bruno Haible  <bruno@clisp.org>
15288
15289         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
15290         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
15291
15292 2008-06-07  Bruno Haible  <bruno@clisp.org>
15293
15294         * doc/posix-functions/_setjmp.texi: Explain the use of this function
15295         regardless of POSIX.
15296         * doc/posix-functions/_longjmp.texi: Likewise.
15297         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
15298         SystemV platform in this case.
15299
15300 2008-06-06  Eric Blake  <ebb9@byu.net>
15301
15302         Document abort() bugs.
15303         * doc/posix-functions/abort.texi (abort): Mention anomalies.
15304
15305         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
15306         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
15307         sigsetjmp.
15308         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
15309         siglongjmp, but only as a macro.
15310         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
15311         is obsolete.
15312         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
15313
15314         Tweak documentation to cover cygwin argz bugs.
15315         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
15316         argz bug fix; no code change needed since no cygwin releases
15317         occurred between the last fix and the bug being tested.
15318         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
15319         module and recently fixed cygwin bugs.
15320         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
15321         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
15322         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
15323         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
15324         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
15325         Likewise.
15326         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
15327         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
15328         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
15329         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
15330         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
15331         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
15332         Likewise.
15333
15334         Avoid gcc warning on cygwin.
15335         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
15336         !ACL_NO_TRIVIAL]: Avoid unused variable.
15337
15338 2008-06-05  Eric Blake  <ebb9@byu.net>
15339
15340         Be tolerant of UNKNOWN version in gnulib-tool test dir.
15341         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
15342         git-version-gen fails to come up with a version.
15343         Reported by Simon Josefsson.
15344
15345 2008-06-05  Jim Meyering  <meyering@redhat.com>
15346             Paul Eggert  <eggert@cs.ucla.edu>
15347
15348         utimens.c: work around a probable Linux kernel bug
15349         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
15350         appears to be a kernel bug that causes utimensat to return 280
15351         instead of 0, indicating success.
15352
15353 2008-06-04  Bruno Haible  <bruno@clisp.org>
15354
15355         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
15356         2008-06-01 commit.
15357
15358 2008-06-04  Bruno Haible  <bruno@clisp.org>
15359
15360         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
15361         * lib/file-has-acl.c (acl_access_nontrivial): New function.
15362         (file_has_acl): Use it. Save errno afterwards.
15363         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
15364
15365 2008-06-03  Bruno Haible  <bruno@clisp.org>
15366
15367         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
15368         draft code. Simplify #ifs.
15369         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
15370         Put Solaris code after POSIX-draft code. Fix comments regarding
15371         Solaris 10, HP-UX. Mention Cygwin.
15372         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
15373
15374 2008-06-03  Eric Blake  <ebb9@byu.net>
15375
15376         Provide fallback for older kernels.
15377         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
15378         Provide runtime fallback if kernel lacks support.
15379         Reported by Mike Frysinger.
15380
15381 2008-06-02  Bruno Haible  <bruno@clisp.org>
15382
15383         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
15384         it exists.
15385
15386 2008-06-02  Bruno Haible  <bruno@clisp.org>
15387
15388         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
15389         * lib/copy-acl.c (qcopy_acl): Update comment.
15390
15391 2008-06-02  Bruno Haible  <bruno@clisp.org>
15392
15393         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
15394         like ACL APIs.
15395
15396 2008-06-02  Bruno Haible  <bruno@clisp.org>
15397
15398         * tests/test-file-has-acl.sh: Use different code for Cygwin.
15399         * tests/test-set-mode-acl.sh: Likewise.
15400         * tests/test-copy-acl.sh: Likewise.
15401         * tests/test-copy-file.sh: Likewise.
15402
15403 2008-06-02  Bruno Haible  <bruno@clisp.org>
15404
15405         * tests/test-file-has-acl.sh: Remove unused code.
15406
15407 2008-06-01  Bruno Haible  <bruno@clisp.org>
15408
15409         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
15410         (copy_acl): Just a wrapper around qcopy_acl that emits the error
15411         messages.
15412         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
15413
15414 2008-06-01  Bruno Haible  <bruno@clisp.org>
15415
15416         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
15417         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
15418         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
15419         APIs.
15420         * modules/acl-tests (configure.ac): Remove tests now contained in
15421         m4/acl.m4.
15422
15423 2008-06-02  Jim Meyering  <meyering@redhat.com>
15424
15425         announce-gen: use a better key-server host name
15426         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
15427         it may be more consistently reliable.  Suggested by Werner Koch
15428         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
15429
15430 2008-06-01  Bruno Haible  <bruno@clisp.org>
15431
15432         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
15433         Reported by Voroskoi Andras <voroskoi@gmail.com>.
15434
15435 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
15436
15437         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
15438
15439 2008-06-01  Bruno Haible  <bruno@clisp.org>
15440
15441         New ACL tests.
15442         * tests/test-file-has-acl.sh: New file.
15443         * tests/test-file-has-acl.c: New file.
15444         * tests/test-set-mode-acl.sh: New file.
15445         * tests/test-set-mode-acl.c: New file.
15446         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
15447         * tests/test-copy-acl.c: New file.
15448         * modules/acl-tests: New file, based on modules/copy-file-tests.
15449         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
15450         (Depends-on): Add acl-tests.
15451         (configure.ac): Remove checks.
15452         (Makefile.am): Don't create test-sameacls program here any more.
15453
15454 2008-06-01  Bruno Haible  <bruno@clisp.org>
15455
15456         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
15457         * tests/test-sameacls.c: Include progname.h.
15458         (main): Invoke set_program_name. Portability fixes for MacOS X,
15459         Solaris, HP-UX.
15460
15461 2008-06-01  Bruno Haible  <bruno@clisp.org>
15462
15463         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
15464         function.
15465         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
15466
15467 2008-06-01  Bruno Haible  <bruno@clisp.org>
15468
15469         * modules/rpmatch (Depends-on): Add strdup.
15470
15471 2008-06-01  Bruno Haible  <bruno@clisp.org>
15472
15473         * lib/pipe.c: Include unistd-safer.h.
15474         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
15475         * modules/pipe (Depends-on): Add unistd-safer.
15476
15477 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15478
15479         * modules/autobuild (configure.ac): Call AB_INIT.
15480
15481 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15482
15483         * tests/test-getaddrinfo.c: Don't print debug messages by default.
15484         Suggested by Bruno Haible <bruno@clisp.org>.
15485
15486 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15487
15488         * tests/test-base64.c: Cast size_t to unsigned long when invoking
15489         printf.  Use %lu instead of %d.  Reported by Bruno Haible
15490         <bruno@clisp.org>.
15491
15492 2008-05-29  Eric Blake  <ebb9@byu.net>
15493
15494         Prefer new POSIX 200x interfaces over futimesat.
15495         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
15496         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
15497         when available.
15498         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
15499
15500 2008-05-28  Bruno Haible  <bruno@clisp.org>
15501
15502         * modules/stpcpy (License): Change to LGPLv2+.
15503         Requested by David Lutterkort <dlutter@redhat.com>.
15504
15505 2008-05-27  Bruno Haible  <bruno@clisp.org>
15506
15507         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
15508         current mingw.
15509         Reported by Jose E. Marchesi <jemarch@gnu.org>.
15510
15511 2008-05-27  Bruno Haible  <bruno@clisp.org>
15512
15513         * modules/iconv_open (Link): New section, from module 'iconv'.
15514         * modules/striconv (Link): Likewise.
15515         * modules/striconveh (Link): Likewise.
15516         * modules/xstriconv (Link): Likewise.
15517         * modules/unicodeio (Link): Likewise.
15518         * modules/propername (Link): Likewise.
15519         Reported by Jim Meyering.
15520
15521 2008-05-26  Jim Meyering  <meyering@redhat.com>
15522
15523         sha256: do not artificially restrict buffer length to be < 2^32
15524         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
15525         uint32_t to size_t.
15526         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
15527         to match.
15528
15529         avoid unaligned access errors, e.g., on sparc
15530         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
15531         direct access through a possibly-unaligned uint64* pointer.
15532         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
15533         direct access through a possibly-unaligned uint32* pointer.
15534         Prompted by this patch from Tom "spot" Callaway:
15535         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
15536
15537         sha512.c: fix typo in comment
15538         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
15539
15540 2008-05-25  Bruno Haible  <bruno@clisp.org>
15541
15542         * lib/set-mode-acl.c: Renamed from lib/acl.c.
15543         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
15544         (Makefile.am): Update lib_SOURCES.
15545
15546 2008-05-25  Bruno Haible  <bruno@clisp.org>
15547
15548         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
15549
15550 2008-05-25  Jim Meyering  <meyering@redhat.com>
15551
15552         useless-if-before-free: freed expr may have white-space differences
15553         * build-aux/useless-if-before-free: Recognize cases in which the
15554         freed expression differs from the tested one in embedded white
15555         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
15556         $1 was used, so we can't make any regexp shy.  Improved tests now
15557         detect this.
15558
15559         useless-if-before-free: accept white space in the expression.
15560         * build-aux/useless-if-before-free: For now, any white space
15561         in the expression must be identical in the free argument.
15562
15563         useless-if-before-free: efficiency tweak
15564         * build-aux/useless-if-before-free: Make the expression-matching
15565         regexp "shy".
15566         Make the *outer* regexp shy, not the expr-matching one.
15567
15568         update code-in-comment to accept cast of free arg
15569         * build-aux/useless-if-before-free: Update regexp.
15570
15571 2008-05-25  Bruno Haible  <bruno@clisp.org>
15572
15573         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
15574         * modules/copy-file-tests (Files, Makefile.am): Update.
15575         * tests/test-copy-file.c (func_test_copy): Update.
15576
15577 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
15578
15579         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
15580
15581 2008-05-23  Bruno Haible  <bruno@clisp.org>
15582
15583         Improve support for ACLs on OSF/1.
15584         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
15585         Remove fallback for unknown flavors of ACLs.
15586
15587 2008-05-22  Bruno Haible  <bruno@clisp.org>
15588
15589         Add support for ACLs on OSF/1.
15590         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
15591         replacements.
15592         (acl_free_text): New macro fallback.
15593         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
15594         acl_free.
15595         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
15596         acl_free_text function. Require AC_C_INLINE.
15597
15598 2008-05-22  Bruno Haible  <bruno@clisp.org>
15599
15600         Make copy_acl work on MacOS X 10.5.
15601         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
15602         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
15603         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
15604         If MODE_INSIDE_ACL, don't assume that every system has the same text
15605         representation for ACLs as FreeBSD.
15606         * lib/copy-acl.c (copy_acl): Add support for platforms with
15607         !MODE_INSIDE_ACL.
15608         * lib/file-has-acl.c (file_has_acl): Likewise.
15609         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
15610         FreeBSD, MacOS X, or IRIX, respectively.
15611
15612 2008-05-22  Bruno Haible  <bruno@clisp.org>
15613
15614         * lib/acl.h: Don't include <sys/acl.h>.
15615         (GETACLCNT): Move fallback to lib/acl-internal.h.
15616         * lib/acl-internal.h: Include <sys/acl.h> here.
15617         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
15618
15619 2008-05-22  Bruno Haible  <bruno@clisp.org>
15620
15621         Split off copy_acl function to separate file.
15622         * lib/copy-acl.c: New file, extracted from lib/acl.c.
15623         * lib/acl.c (copy_acl): Moved function to separate file.
15624         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
15625         * modules/acl (Files): Add lib/copy-acl.c.
15626         (Makefiles.am): Augment lib_SOURCES.
15627
15628 2008-05-22  Bruno Haible  <bruno@clisp.org>
15629
15630         * modules/copy-file-tests: New file.
15631         * tests/test-copy-file.sh: New file.
15632         * tests/test-copy-file.c: New file.
15633         * tests/test-copy-file-sameacls.c: New file.
15634
15635 2008-05-22  Eric Blake  <ebb9@byu.net>
15636
15637         Avoid gcc warning.
15638         * tests/test-memcmp.c (main): Pass NULL indirectly.
15639
15640 2008-05-21  Bruno Haible  <bruno@clisp.org>
15641
15642         Add reference doc about ACLs.
15643         * doc/acl-resources.txt: New file.
15644         * doc/acl-cygwin.txt: New file.
15645
15646 2008-05-21  Bruno Haible  <bruno@clisp.org>
15647
15648         Avoid one more warning from gcc.
15649         * lib/vasnprintf.c (IF_LINT): Update comments.
15650         (VASNPRINTF): Use it also for the 'prefix' array initializer.
15651
15652 2008-05-21  Jim Meyering  <meyering@redhat.com>
15653
15654         avoid a warning from gcc
15655         * lib/vasnprintf.c (IF_LINT): Define.
15656         (scale10_round_decimal_long_double):
15657         Use it to avoid a "may be used uninitialized" warning.
15658         (scale10_round_decimal_double): Likewise.
15659
15660 2008-05-21  Simon Josefsson  <simon@josefsson.org>
15661
15662         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
15663         declared.
15664
15665 2008-05-20  Bruno Haible  <bruno@clisp.org>
15666
15667         * tests/test-memcmp.c (main): Test also the sign of the result. Test
15668         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
15669
15670 2008-05-20  Simon Josefsson  <simon@josefsson.org>
15671
15672         * modules/memcmp-tests: New file.
15673         * tests/test-memcmp.c: New file.
15674
15675 2008-05-19  Bruno Haible  <bruno@clisp.org>
15676
15677         * modules/propername (Notice, configure.ac): Put quoted "..." into
15678         --keyword option.
15679         * lib/propername.h: Update comments accordingly.
15680         Reported by Eric Blake.
15681
15682 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
15683
15684         * modules/getpass-gnu (Depends-on): Add fseeko.
15685
15686 2008-05-19  Simon Josefsson  <simon@josefsson.org>
15687
15688         * modules/base64-tests: New file.
15689
15690 2008-05-19  Bo Borgerson <gigabo@gmail.com>
15691
15692         * lib/base64.c (base64_decode_ctx): If a decode context structure
15693         was passed in use it to ignore newlines.  If a context structure
15694         was _not_ passed in, continue to treat newlines as garbage (this
15695         is the historical behavior).  Formerly base64_decode.
15696         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
15697         takes a decode context structure.
15698         * lib/base64.h (base64_decode): Macro for four-argument calls.
15699         (base64_decode_alloc): Likewise.
15700         * lib/base64.c (base64_decode_ctx): If a decode context structure
15701         was passed in use it to ignore newlines.  If a context structure
15702         was _not_ passed in, continue to treat newlines as garbage (this
15703         is the historical behavior).  Formerly base64_decode.
15704         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
15705         takes a decode context structure.
15706         * lib/base64.h (base64_decode): Macro for four-argument calls.
15707         (base64_decode_alloc): Likewise.
15708
15709 2008-05-19  Jim Meyering  <meyering@redhat.com>
15710
15711         avoid a warning from gcc
15712         * lib/trim.c (IF_LINT): Define.
15713         (trim2): Use it to avoid a "may be used uninitialized" warning.
15714
15715         Fix doc typo.
15716         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
15717
15718 2008-05-19  Bruno Haible  <bruno@clisp.org>
15719
15720         * doc/glibc-functions/getpass.texi: Document limits of other
15721         implementations.
15722
15723 2008-05-19  Simon Josefsson  <simon@josefsson.org>
15724             Bruno Haible <bruno@clisp.org>
15725
15726         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
15727
15728 2008-05-18  Bruno Haible  <bruno@clisp.org>
15729
15730         * modules/propername: New file, from GNU gettext.
15731         * lib/propername.h: New file, from GNU gettext.
15732         * lib/propername.c: New file, from GNU gettext.
15733         * MODULES.html.sh (Internationalization functions): Add propername.
15734
15735 2008-05-16  Jim Meyering  <meyering@redhat.com>
15736             Bruno Haible  <bruno@clisp.org>
15737
15738         Avoid some warnings from "gcc -Wshadow".
15739         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
15740
15741 2008-05-15  Eric Blake  <ebb9@byu.net>
15742
15743         Extend previous patch to cygwin 1.7.0.
15744         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
15745         fast implementation in cygwin >= 1.7.0.
15746         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15748
15749 2008-05-15  Bruno Haible  <bruno@clisp.org>
15750
15751         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
15752         implementation in glibc >= 2.9.
15753         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15755
15756 2008-05-15  Bruno Haible  <bruno@clisp.org>
15757
15758         * MODULES.html.sh (Internationalization functions): Remove linebreak.
15759         (Unicode string functions): Add unilbrk/*.
15760         Reported by Karl Berry.
15761
15762 2008-05-15  Eric Blake  <ebb9@byu.net>
15763
15764         Fix violation of <stdbool.h> replacement in regex.
15765         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
15766         * lib/regexec.c (re_search_internal): Likewise.
15767         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
15768
15769 2008-05-15  Jim Meyering  <meyering@redhat.com>
15770
15771         avoid distracting test output when git or cvs is not found
15772         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
15773         * tests/test-vc-list-files-git.sh: Likewise.
15774
15775 2008-05-15  Eric Blake  <ebb9@byu.net>
15776
15777         Glibc finally accepted the memmem speedup code, bugzilla #5514.
15778         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
15779         glibc version.
15780         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15781         * doc/posix-functions/strstr.texi (strstr): Likewise.
15782         * lib/str-two-way.h (MAX): Sychronize with glibc.
15783
15784 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
15785
15786         * lib/regcomp.c (optimize_utf8): Add a note on why we test
15787         opr.ctx_type.
15788         (calc_first): Initialize constraint field.
15789         (duplicate_node_closure): Use it instead of special casing ANCHORS.
15790         Fix grammar.
15791         (duplicate_node): Merge constraint field for all node types.
15792         (calc_eclosure_iter): Look at constraint field for all node types.
15793         * lib/regex_internal.c (create_cd_newstate): Don't look at
15794         opr.ctx_type.
15795
15796 2008-05-14  Bruno Haible  <bruno@clisp.org>
15797
15798         Help GCC to do better code generation.
15799         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
15800         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15801         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
15802         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
15803         Declare with attribute 'malloc' if supported.
15804
15805 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
15806
15807         use "echo STR|wc -c" rather than unportable "expr length STR"
15808         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
15809         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
15810
15811 2008-05-14  Jim Meyering  <meyering@redhat.com>
15812
15813         use dd ibs=$n count=1 ... rather than less-portable head -c$n
15814         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
15815         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
15816         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
15817         via Collin Lasse.
15818
15819 2008-05-14  Eric Blake  <ebb9@byu.net>
15820
15821         Avoid quadratic growth in gl_LIBSOURCES.
15822         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
15823         Suggested by Bruno Haible.
15824
15825         Test xmemdup0.
15826         * modules/xmemdup0-tests: New file.
15827         * tests/test-xmemdup0.c: Likewise.
15828
15829 2008-05-13  Eric Blake  <ebb9@byu.net>
15830
15831         Split xmemdup0 into its own module.
15832         * modules/xmemdup0: New file.
15833         * lib/xmemdup0.h: Likewise.
15834         * lib/xmemdup0.c: Likewise.
15835         * MODULES.html.sh (Memory management functions): Add xmemdup0.
15836         * lib/xalloc.h (xmemdup0): Remove.
15837         * lib/xmalloc.c (xmemdup0): Likewise.
15838
15839 2008-05-13  Eric Blake  <ebb9@byu.net>
15840             Bruno Haible  <bruno@clisp.org>
15841
15842         Reduce number of forks required during autoconf.
15843         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
15844         and gl_LIBSOURCES_DIR.
15845         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
15846         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
15847         m4_syscmd per file.
15848         <m4_foreach_w>: Move...
15849         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
15850
15851 2008-05-13  Eric Blake  <ebb9@byu.net>
15852
15853         * gnulib-tool: Fix various comment typos.
15854
15855 2008-05-12  Bruno Haible  <bruno@clisp.org>
15856
15857         Tailor the linebreaking algorithm.
15858         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
15859
15860 2008-05-12  Bruno Haible  <bruno@clisp.org>
15861
15862         Update to Unicode 5.0.0.
15863         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15864         LBP_JV, LBP_JT. Redistribute values.
15865         (unilbrk_table): Change size.
15866         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
15867         Unicode TR#14 rev. 22.
15868         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15869         LBP_JV, LBP_JT. Redistribute values.
15870         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
15871         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
15872         Update.
15873         * lib/unilbrk/lbrkprop1.h: Regenerated.
15874         * lib/unilbrk/lbrkprop2.h: Regenerated.
15875         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
15876         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
15877         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15878         Likewise.
15879         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15880         Likewise.
15881         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
15882         result.
15883         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15884         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15885         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15886         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
15887         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
15888         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
15889
15890 2008-05-11  Bruno Haible  <bruno@clisp.org>
15891
15892         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
15893
15894 2008-05-11  Bruno Haible  <bruno@clisp.org>
15895
15896         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
15897         * modules/unilbrk/gen-lbrk: New file.
15898
15899 2008-05-11  Bruno Haible  <bruno@clisp.org>
15900
15901         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
15902         * m4/sha512.m4 (gl_SHA512): Likewise.
15903
15904 2008-05-11  Jim Meyering  <meyering@redhat.com>
15905
15906         New modules: crypto/sha256, crypto/sha512 (from coreutils)
15907         * modules/crypto/sha256: New file.
15908         * modules/crypto/sha512: Likewise.
15909         * lib/sha256.c: Likewise.
15910         * lib/sha256.h: Likewise.
15911         * lib/sha512.c: Likewise.
15912         * lib/sha512.h: Likewise.
15913         * lib/u64.h: Likewise.
15914         * m4/sha256.m4: Likewise.
15915         * m4/sha512.m4: Likewise.
15916         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
15917
15918 2008-05-10  Bruno Haible  <bruno@clisp.org>
15919
15920         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
15921         (Input/Output <stdio.h>): Add xprintf.
15922         (Signal handling <signal.h>): Add strsignal.
15923         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
15924         (Core language properties): Add func.
15925         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
15926         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
15927         strings.
15928         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
15929         (Input/output): New section.
15930         (File system functions): Add openat-die, stat-macros.
15931         (Networking functions): Add sockets.
15932         (Unicode string functions): Add unictype/*.
15933         (Support for building libraries and executables): Add gperf.
15934         (Support for building documentation): Add agpl-3.0.
15935         (Misc): Add nocrash.
15936
15937 2008-05-10  Bruno Haible  <bruno@clisp.org>
15938
15939         * modules/unictype/gen-ctype: New file.
15940
15941 2008-05-10  Jim Meyering  <meyering@redhat.com>
15942
15943         Make chdir-safer.c more efficient on a system with no symlinks.
15944         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
15945         also if ELOOP is zero.  Suggested by Bruno Haible.
15946
15947         Make chdir-safer.c slightly safer.
15948         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
15949         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
15950
15951         Avoid compile failure on systems without ELOOP (like mingw).
15952         * lib/chdir-safer.c (ELOOP): Define if not already defined.
15953         Reported by Bruno Haible.
15954
15955 2008-05-10  Bruno Haible  <bruno@clisp.org>
15956
15957         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
15958         (is_utf8_encoding): Use a case-insensitive comparison.
15959         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
15960         streq.
15961
15962 2008-05-10  Bruno Haible  <bruno@clisp.org>
15963
15964         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
15965         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
15966         * lib/unilbrk/ulc-common.h (iconv_string_length,
15967         iconv_string_keeping_offsets): Remove declarations.
15968         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
15969         Don't include <iconv.h>, streq.h, xsize.h.
15970         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
15971         conversion.
15972         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
15973         <iconv.h>, streq.h, xsize.h.
15974         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
15975         conversion.
15976         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
15977         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
15978         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
15979         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
15980
15981 2008-05-10  Bruno Haible  <bruno@clisp.org>
15982
15983         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
15984         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
15985
15986         * modules/unilbrk/u32-width-linebreaks-tests: New file.
15987         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
15988
15989         * modules/unilbrk/u16-width-linebreaks-tests: New file.
15990         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
15991
15992         * modules/unilbrk/u8-width-linebreaks-tests: New file.
15993         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
15994
15995         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
15996         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
15997
15998         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
15999         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
16000
16001         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
16002         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
16003
16004         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
16005         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
16006
16007 2008-05-10  Bruno Haible  <bruno@clisp.org>
16008
16009         Split up 'linebreak' module.
16010         * lib/unilbrk.h: New file, based on lib/linebreak.h.
16011         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
16012         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
16013         modifications.
16014         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
16015         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
16016         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
16017         lib/linebreak.c.
16018         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
16019         lib/linebreak.c.
16020         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
16021         lib/linebreak.c.
16022         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
16023         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
16024         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
16025         lib/linebreak.c.
16026         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
16027         lib/linebreak.c.
16028         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
16029         lib/linebreak.c.
16030         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
16031         lib/linebreak.c.
16032         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
16033         lib/linebreak.c.
16034         * modules/unilbrk/base: New file.
16035         * modules/unilbrk/tables: New file.
16036         * modules/unilbrk/u8-possible-linebreaks: New file.
16037         * modules/unilbrk/u16-possible-linebreaks: New file.
16038         * modules/unilbrk/u32-possible-linebreaks: New file.
16039         * modules/unilbrk/ulc-common: New file.
16040         * modules/unilbrk/ulc-possible-linebreaks: New file.
16041         * modules/unilbrk/u8-width-linebreaks: New file.
16042         * modules/unilbrk/u16-width-linebreaks: New file.
16043         * modules/unilbrk/u32-width-linebreaks: New file.
16044         * modules/unilbrk/ulc-width-linebreaks: New file.
16045         * lib/linebreak.h: Remove file.
16046         * lib/linebreak.c: Remove file.
16047         * m4/linebreak.m4: Remove file.
16048         * modules/linebreak: Remove file.
16049         * NEWS: Mention the changes.
16050
16051 2008-05-09  Eric Blake  <ebb9@byu.net>
16052
16053         Add xmemdup0.
16054         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
16055         implementation.
16056         * lib/xmalloc.c (xmemdup0): New C implementation.
16057
16058 2008-05-08  Bruno Haible  <bruno@clisp.org>
16059
16060         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
16061
16062 2008-05-07  Eric Blake  <ebb9@byu.net>
16063
16064         Support cross-compilation of <wctype.h>.
16065         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
16066         AC_CACHE_CHECK.
16067
16068 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
16069
16070         * build-aux/vc-list-files: Add support for bzr.
16071
16072 2008-05-03  Jim Meyering  <meyering@redhat.com>
16073
16074         avoid failed assertion with tight malloc
16075         * tests/test-getndelim2.c: Correct an off-by-one assertion.
16076
16077 2008-05-03  Simon Josefsson  <simon@josefsson.org>
16078
16079         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
16080         are needed from arpa/inet.h.
16081         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
16082         Reported by Bruno Haible.
16083
16084 2008-05-02  Jim Meyering  <meyering@redhat.com>
16085
16086         avoid compilation error on FreeBSD 6
16087         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
16088
16089 2008-05-01  Jim Meyering  <meyering@redhat.com>
16090
16091         useless-if-before-free: correct --help's exit status description
16092         * build-aux/useless-if-before-free (usage): Like grep, exit 0
16093         for one or more matches, etc.  Reported by Bruno Haible.
16094
16095         vc-list-files: make the stand-alone gnulib test work
16096         * modules/vc-list-files-tests (configure.ac):
16097         Define and AC_SUBST abs_aux_dir.
16098         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
16099         $(abs_top_srcdir) to each script and having each of them
16100         duplicate the work of setting PATH, set PATH here, using
16101         the new variable, abs_aux_dir instead.
16102         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
16103         * tests/test-vc-list-files-git.sh: Likewise.
16104         Reported by Bruno Haible.
16105
16106 2008-05-01  Bruno Haible  <bruno@clisp.org>
16107
16108         * lib/getndelim2.c (getndelim2): Fix newsize computation during
16109         reallocation. Rename 'done' to 'found_delimiter'.
16110
16111 2008-05-01  Jim Meyering  <meyering@redhat.com>
16112
16113         vc-list-files: accommodate /bin/sh like the one from Solaris 10
16114         * build-aux/vc-list-files: Use `...`, not $(...).
16115
16116 2008-04-30  Jim Meyering  <meyering@redhat.com>
16117
16118         add tests for vc-list-files
16119         * modules/vc-list-files-tests: New module.
16120         * tests/test-vc-list-files-cvs.sh: New file.
16121         * tests/test-vc-list-files-git.sh: New file.
16122
16123         avoid a warning from gcc
16124         * lib/getndelim2.c (IF_LINT): Define.
16125         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
16126
16127         vc-list-files: work properly with build-aux/cvsu, too
16128         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
16129         to all cvs-based clauses.
16130
16131         vc-list-files: work properly in the CVS+awk case, too
16132         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
16133
16134         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
16135         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
16136         take more than one file argument, so .  Add quotes, just in case $dir
16137         ever contains a shell meta-character.  Prompted by Soren Hansen in
16138         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
16139
16140 2008-04-29  Eric Blake  <ebb9@byu.net>
16141
16142         Optimize getndelim2 to use block operations when possible.
16143         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
16144         freadseek, and memchr2.
16145         * lib/getndelim2.c (getndelim2): Use them for block reads.
16146
16147 2008-04-29  Bruno Haible  <bruno@clisp.org>
16148
16149         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
16150         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16151         * modules/inet_ntop (Depends-on): Add extensions.
16152         * modules/inet_pton (Depends-on): Likewise.
16153         Reported by Simon Josefsson.
16154
16155 2008-04-29  Jim Meyering  <meyering@redhat.com>
16156
16157         When the is more than one match in a block, match all of them.
16158         * build-aux/useless-if-before-free: Iterate through each block
16159         until there are no more matches.
16160
16161         Fix broken useless-if-before-free script.
16162         * build-aux/useless-if-before-free: Fix typo: missing "?" after
16163         the expression to match cast of argument to free-like function.
16164
16165 2008-04-29  Eric Blake  <ebb9@byu.net>
16166
16167         Use new header.
16168         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
16169
16170 2008-04-29  Jim Meyering  <meyering@redhat.com>
16171
16172         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
16173         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
16174         by gnulib to exist and to declare e.g., inet_ntop.
16175         Don't include "inet_ntop.h", now removed.
16176
16177         * m4/arpa_inet_h.m4: Remove trailing blanks.
16178
16179 2008-04-29  Eric Blake  <ebb9@byu.net>
16180
16181         Silence valgrind on safe reads beyond potential array bounds.
16182         * lib/rawmemchr.valgrind: New file.
16183         * lib/strchrnul.valgrind: Likewise.
16184         * modules/rawmemchr (Files): Distribute new file.
16185         * modules/strchrnul (Files): Likewise.
16186         Suggested by Bruno Haible.
16187
16188 2008-04-29  Bruno Haible  <bruno@clisp.org>
16189
16190         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
16191         (inet_ntop, inet_pton): Change portability warning's wording.
16192         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
16193         Invoke gl_CHECK_NEXT_HEADERS.
16194         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
16195         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
16196         set ARPA_INET_H.
16197         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16198         * modules/arpa_inet (Description): No longer only for systems that
16199         lack it.
16200         (Depends-on): Add include_next.
16201         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
16202         HAVE_ARPA_INET_H.
16203
16204 2008-04-29  Jim Meyering  <meyering@redhat.com>
16205
16206         * modules/mkdir (License): Re-license as LGPLv2+.
16207
16208 2008-04-29  Bruno Haible  <bruno@clisp.org>
16209
16210         * modules/rawmemchr (Maintainer): Set to Eric.
16211         * modules/strchrnul (Maintainer): Likewise.
16212
16213 2008-04-29  Simon Josefsson  <simon@josefsson.org>
16214
16215         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
16216         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
16217
16218         * modules/arpa_inet (arpa/inet.h): Use them.
16219
16220 2008-04-28  Eric Blake  <ebb9@byu.net>
16221
16222         Test getndelim2.
16223         * modules/getndelim2-tests: New file.
16224         * tests/test-getndelim2.c: Likewise.
16225         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
16226         stream.
16227         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
16228
16229         * MODULES.html.sh: Document new module.
16230
16231 2008-04-20  Bruno Haible  <bruno@clisp.org>
16232
16233         * lib/c-stack.c (die): Use raise.
16234         * modules/c-stack (Depends-on): Add raise.
16235
16236 2008-04-28  Bruno Haible  <bruno@clisp.org>
16237
16238         Expect rpmatch to be declared.
16239         * lib/yesno.c (rpmatch): Remove declaration.
16240
16241         Declare rpmatch.
16242         * lib/stdlib.in.h (rpmatch): New declaration.
16243         * lib/rpmatch.c: Include <stdlib.h> first.
16244         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
16245         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
16246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
16247         HAVE_RPMATCH.
16248         * modules/rpmatch (Depends-on): Add stdlib, extensions.
16249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16250         (Include): Set to <stdlib.h>.
16251         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
16252         HAVE_RPMATCH.
16253         * NEWS: Document the change.
16254
16255 2008-04-28  Bruno Haible  <bruno@clisp.org>
16256
16257         Change rpmatch to use nl_langinfo when appropriate.
16258         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
16259         (N_): New macro.
16260         (localized_pattern): New function/macro.
16261         (try): Remove match, nomatch arguments. Copy the pattern into safe
16262         memory before caching it.
16263         (rpmatch): Use localized_pattern. Add translator comments.
16264         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
16265         Suggested by Eric Blake.
16266         * modules/rpmatch (Depends-on): Add stdbool.
16267
16268 2008-04-28  Eric Blake  <ebb9@byu.net>
16269
16270         Add rawmemchr module, matching glibc.
16271         * modules/string (Makefile.am): New indicator.
16272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
16273         * lib/string.in.h (rawmemchr): Declare when appropriate.
16274         * modules/rawmemchr: New file.
16275         * m4/rawmemchr.m4: Likewise.
16276         * lib/rawmemchr.c: Likewise.
16277         * modules/rawmemchr-tests: Likewise.
16278         * tests/test-rawmemchr.c: Likewise.
16279         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
16280         module.
16281         * modules/strchrnul (Depends-on): Add rawmemchr.
16282         * lib/strchrnul.c (strchrnul): Optimize a corner case.
16283
16284         Whitespace cleanup.
16285         * tests/test-strchrnul.c: Reindent.
16286         * lib/strchrnul.c: Likewise.
16287
16288         Optimize and test strchrnul.
16289         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
16290         * modules/strchrnul-tests: New file.
16291         * tests/test-strchrnul.c: Likewise.
16292
16293         Remove intprops dependency.
16294         * modules/memchr (Depends-on): Remove intprops.
16295         * modules/memrchr (Depends-on): Likewise.
16296         * modules/memchr2 (Depends-on): Likewise.
16297         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
16298         * lib/memrchr.c (__memrchr): Likewise.
16299         * lib/memrchr2.c (memchr2): Likewise.
16300         Reported by Simon Josefsson.
16301
16302 2008-04-28  Simon Josefsson  <simon@josefsson.org>
16303
16304         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
16305         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16306
16307 2008-04-28  Simon Josefsson  <simon@josefsson.org>
16308
16309         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
16310
16311         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
16312
16313         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
16314
16315         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
16316         declarations.
16317         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
16318
16319         * m4/inet_pton.m4: Don't check for header files.
16320
16321         * m4/inet_ntop.m4: Don't check for header files.
16322
16323 2008-04-28  Simon Josefsson  <simon@josefsson.org>
16324
16325         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
16326         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
16327         trigger for cygwin).
16328         Reported by Bruno Haible  <bruno@clisp.org>.
16329
16330 2008-04-28  Bruno Haible  <bruno@clisp.org>
16331
16332         * doc/posix-functions/strdup.texi: Mention mingw problem.
16333
16334 2008-04-27  Bruno Haible  <bruno@clisp.org>
16335
16336         * modules/stat-time-tests (Depends-on): Add sleep.
16337         * tests/test-stat-time.c (force_unlink): New function.
16338         (cleanup): Use it.
16339         (test_mtime): Remove the ctime related tests.
16340         (test_ctime): New function, containing the ctime related tests.
16341         (main): Call test_ctime, except on native Windows platforms.
16342
16343 2008-04-27  Bruno Haible  <bruno@clisp.org>
16344
16345         * lib/rpmatch.c (rpmatch): Add some comments.
16346         Reported by James Youngman <jay@gnu.org>.
16347
16348 2008-04-27  Bruno Haible  <bruno@clisp.org>
16349
16350         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
16351         quiet NaNs.
16352
16353 2008-04-27  Bruno Haible  <bruno@clisp.org>
16354
16355         Make test-yesno.sh work on mingw.
16356         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
16357         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
16358         (main): Set stdin to binary mode.
16359         * modules/yesno-tests (Depends-on): Add binary-io.
16360
16361 2008-04-27  Bruno Haible  <bruno@clisp.org>
16362
16363         Fix 'isfinite' on x86, x86_64, ia64 platforms.
16364         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
16365         argument that lie outside the IEEE 854 domain.
16366         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
16367         (gl_ISFINITE): Use it.
16368         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
16369
16370 2008-04-27  Bruno Haible  <bruno@clisp.org>
16371
16372         Allow local renaming in config.h.
16373         * lib/memrchr.c (memrchr): Don't undefine outside libc.
16374
16375 2008-04-27  Bruno Haible  <bruno@clisp.org>
16376
16377         * lib/memchr.c (__memchr): Change type of 'i'.
16378         * lib/memchr2.c (memchr2): Likewise.
16379
16380 2008-04-26  Eric Blake  <ebb9@byu.net>
16381         and Bruno Haible  <bruno@clisp.org>
16382
16383         Optimize and test memrchr.
16384         * modules/memrchr (Depends-on): Add intprops.
16385         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
16386         * modules/memrchr-tests: New file.
16387         * tests/test-memrchr.c: New file.
16388
16389 2008-04-26  Bruno Haible  <bruno@clisp.org>
16390
16391         Add tentative support for DragonFly BSD.
16392         * lib/stdio-impl.h: Add macros for DragonFly BSD.
16393         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
16394         fp.
16395         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
16396         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
16397         * lib/fpurge.c (fpurge): Likewise.
16398         * lib/freadable.c (freaadable): Likewise.
16399         * lib/freadahead.c (freadahead): Likewise.
16400         * lib/freading.c (freading): Likewise.
16401         * lib/freadptr.c (freadptr): Likewise.
16402         * lib/freadseek.c (freadptrinc): Likewise.
16403         * lib/fseeko.c (fseeko): Likewise.
16404         * lib/fseterr.c (fseterr): Likewise.
16405         * lib/fwritable.c (fwritable): Likewise.
16406         * lib/fwriting.c (fwriting): Likewise.
16407
16408 2008-04-26  Bruno Haible  <bruno@clisp.org>
16409
16410         * lib/stdio-impl.h: New file.
16411         * lib/fbufmode.c: Include stdio-impl.h.
16412         (fbufmode): Use fp_, remove redundant #defines.
16413         * lib/fflush.c: Include stdio-impl.h.
16414         (clear_ungetc_buffer): Remove redundant #defines.
16415         * lib/fpurge.c: Include stdio-impl.h.
16416         (fpurge): Remove redundant #defines.
16417         * lib/freadable.c: Include stdio-impl.h.
16418         (freadable): Remove redundant #defines.
16419         * lib/freadahead.c: Include stdio-impl.h.
16420         (freadahead): Remove redundant #defines.
16421         * lib/freading.c: Include stdio-impl.h.
16422         (freading): Remove redundant #defines.
16423         * lib/freadptr.c: Include stdio-impl.h.
16424         (freadptr): Remove redundant #defines.
16425         * lib/freadseek.c: Include stdio-impl.h.
16426         (freadptrinc): Remove redundant #defines.
16427         * lib/fseeko.c: Include stdio-impl.h.
16428         (rpl_fseeko): Remove redundant #defines.
16429         * lib/fseterr.c: Include stdio-impl.h.
16430         (fseterr): Remove redundant #defines.
16431         * lib/fwritable.c: Include stdio-impl.h.
16432         (fwritable: Remove redundant #defines.
16433         * lib/fwriting.c: Include stdio-impl.h.
16434         (fwriting): Remove redundant #defines.
16435         * modules/fbufmode (Files): Add lib/stdio-impl.h.
16436         * modules/fflush (Files): Likewise.
16437         * modules/fpurge (Files): Likewise.
16438         * modules/freadable (Files): Likewise.
16439         * modules/freadahead (Files): Likewise.
16440         * modules/freading (Files): Likewise.
16441         * modules/freadptr (Files): Likewise.
16442         * modules/freadseek (Files): Likewise.
16443         * modules/fseeko (Files): Likewise.
16444         * modules/fseterr (Files): Likewise.
16445         * modules/fwritable (Files): Likewise.
16446         * modules/fwriting (Files): Likewise.
16447
16448 2008-04-26  Bruno Haible  <bruno@clisp.org>
16449
16450         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
16451         restore_seek_optimization, update_fpos_cache): New functions, extracted
16452         from rpl_fflush.
16453         (rpl_fflush): Use them.
16454         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
16455         (gl_REPLACE_FFLUSH): Use it.
16456
16457 2008-04-26  Bruno Haible  <bruno@clisp.org>
16458
16459         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
16460         on Solaris.
16461         * tests/test-xstrtoimax.sh: Likewise.
16462         * tests/test-xstrtoumax.sh: Likewise.
16463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16464
16465 2008-04-26  Bruno Haible  <bruno@clisp.org>
16466
16467         * modules/memchr-tests: New file.
16468         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
16469
16470 2008-04-26  Eric Blake  <ebb9@byu.net>
16471             Bruno Haible  <bruno@clisp.org>
16472
16473         * lib/memchr.c: Include intprops.h.
16474         (__memchr): Optimize parallel detection of matching bytes. Rename local
16475         variables. Add explanatory comments.
16476
16477 2008-04-26  Bruno Haible  <bruno@clisp.org>
16478
16479         Fix module 'memchr', broken since 2000-10-28.
16480         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
16481
16482 2008-04-26  Bruno Haible  <bruno@clisp.org>
16483
16484         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
16485         comments.
16486
16487 2008-04-25  Eric Blake  <ebb9@byu.net>
16488
16489         Use native fstatat on cygwin 1.7.0.
16490         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
16491         first.
16492
16493 2008-04-23  Eric Blake  <ebb9@byu.net>
16494
16495         Improve memchr2 performance.
16496         * lib/memchr2.c (memchr2): Further optimize parallel detection of
16497         NUL bytes.
16498         * modules/memchr2 (Depends-on): Use intprops.h.
16499
16500 2008-04-23  Simon Josefsson  <simon@josefsson.org>
16501
16502         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
16503         an inline function instead of a CPP macro.  Patch by Ben Pfaff
16504         <blp@cs.stanford.edu>.
16505
16506 2008-04-23  Simon Josefsson  <simon@josefsson.org>
16507
16508         * lib/arpa_inet.in.h: New file.
16509
16510         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
16511         (Makefile.am): Sed in substitute header file.
16512
16513         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
16514         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
16515
16516         * modules/inet_ntop (configure.ac): Use
16517         gl_ARPA_INET_MODULE_INDICATOR.
16518
16519         * modules/inet_pton (configure.ac): Use
16520         gl_ARPA_INET_MODULE_INDICATOR.
16521
16522 2008-04-22  Jim Meyering  <meyering@redhat.com>
16523
16524         * modules/verify (License): Re-license as LGPLv2+.
16525
16526 2008-04-22  Simon Josefsson  <simon@josefsson.org>
16527
16528         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
16529         parameter to void* as per POSIX standard (MinGW uses char*).
16530
16531 2008-04-21  Bruno Haible  <bruno@clisp.org>
16532
16533         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16534         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
16535         Define to replacements if REPLACE_ISWCNTRL is 1.
16536         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
16537         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
16538         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
16539         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
16540         what it fixes.
16541         * doc/posix-functions/iswalpha.texi: Likewise.
16542         * doc/posix-functions/iswblank.texi: Likewise.
16543         * doc/posix-functions/iswcntrl.texi: Likewise.
16544         * doc/posix-functions/iswdigit.texi: Likewise.
16545         * doc/posix-functions/iswgraph.texi: Likewise.
16546         * doc/posix-functions/iswlower.texi: Likewise.
16547         * doc/posix-functions/iswprint.texi: Likewise.
16548         * doc/posix-functions/iswpunct.texi: Likewise.
16549         * doc/posix-functions/iswspace.texi: Likewise.
16550         * doc/posix-functions/iswupper.texi: Likewise.
16551         * doc/posix-functions/iswxdigit.texi: Likewise.
16552         Reported by Alain Guibert.
16553
16554 2008-04-21  Bruno Haible  <bruno@clisp.org>
16555
16556         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
16557         Patch by Alain Guibert.
16558
16559 2008-04-21  Bruno Haible  <bruno@clisp.org>
16560
16561         Fix test failures on mingw.
16562         * tests/test-xstrtol.c (print_no_progname): New function.
16563         (main): Install it in error_print_progname hook.
16564         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
16565         * tests/test-xstrtoimax.sh: Likewise.
16566         * tests/test-xstrtoumax.sh: Likewise.
16567
16568 2008-04-21  Bruno Haible  <bruno@clisp.org>
16569
16570         Fix test failure on mingw.
16571         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
16572
16573 2008-04-21  Bruno Haible  <bruno@clisp.org>
16574
16575         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
16576         Actually assign a value.
16577
16578 2008-04-20  Bruno Haible  <bruno@clisp.org>
16579
16580         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
16581         take 2.
16582         * lib/canonicalize.c (canonicalize_file_name): Elide if the
16583         'canonicalize-lgpl' module is also used.
16584         * lib/canonicalize-lgpl.c: Undo last change.
16585         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
16586
16587 2008-04-20  Bruno Haible  <bruno@clisp.org>
16588
16589         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
16590         config.h. Provide _mkdir based fallback for mingw.
16591         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
16592         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
16593         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
16594         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
16595         rather than defining mkdir in config.h.
16596         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
16597         (gl_SYS_STAT_H_DEFAULTS): New macro.
16598         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
16599         HAVE_IO_H any more.
16600         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
16601         HAVE_DECL_MKDIR and HAVE_IO_H.
16602
16603 2008-04-20  Bruno Haible  <bruno@clisp.org>
16604
16605         * lib/isapipe.c: Port to native Windows platforms.
16606
16607 2008-04-20  Bruno Haible  <bruno@clisp.org>
16608
16609         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
16610
16611 2008-04-21  Eric Blake  <ebb9@byu.net>
16612
16613         Work around preprocessors that don't handle UINTMAX_MAX.
16614         * lib/memchr2.c (memchr2): Avoid embedded #if.
16615         Reported by Alain Guibert, fix suggested by Bruno Haible.
16616
16617 2008-04-21  Simon Josefsson  <simon@josefsson.org>
16618
16619         * doc/posix-functions/strftime.texi (strftime): Explain better
16620         Windows incompatibility.  Suggested by Micah Cowan
16621         <micah@cowan.name>.
16622
16623 2008-04-20  Bruno Haible  <bruno@clisp.org>
16624
16625         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
16626         unistr/u8-mblen.
16627
16628 2008-04-20  Bruno Haible  <bruno@clisp.org>
16629
16630         Fix test failure on platforms with non-GNU iconv.
16631         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
16632         (U_TO_U8): Use it, rather than u16_to_u8.
16633         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
16634         units at the end of the input string.
16635         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
16636
16637 2008-04-20  Bruno Haible  <bruno@clisp.org>
16638
16639         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
16640         when the resulting length is 0.
16641         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16642
16643 2008-04-20  Bruno Haible  <bruno@clisp.org>
16644
16645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
16646         works.
16647         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
16648
16649 2008-04-20  Bruno Haible  <bruno@clisp.org>
16650
16651         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
16652         * modules/tsearch-tests (configure.ac): Test for initstate function.
16653
16654 2008-04-20  Bruno Haible  <bruno@clisp.org>
16655
16656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
16657         for nlink_t if missing.
16658         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
16659
16660 2008-04-19  Bruno Haible  <bruno@clisp.org>
16661
16662         Work around snprintf bug on Linux libc5.
16663         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
16664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16665         gl_SNPRINTF_SIZE1.
16666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16667         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
16668         that test failed.
16669         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16670         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
16671         * modules/snprintf (Files): Add m4/printf.m4.
16672         * modules/vsnprintf (Files): Likewise.
16673         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
16674         * doc/posix-functions/vsnprintf.texi: Likewise.
16675
16676 2008-04-19  Bruno Haible  <bruno@clisp.org>
16677
16678         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
16679         from 0.0058 to less than 10^-7.
16680
16681 2008-04-19  Bruno Haible  <bruno@clisp.org>
16682
16683         Fix rounding when a precision is given.
16684         * lib/vasnprintf.c (is_borderline): New function.
16685         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
16686         9...9x.
16687         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
16688         %e, %g.
16689         * tests/test-vasprintf-posix.c (test_function): Likewise.
16690         * tests/test-snprintf-posix.h (test_function): Likewise.
16691         * tests/test-sprintf-posix.h (test_function): Likewise.
16692         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
16693         * tests/test-printf-posix.h (test_function): Likewise.
16694         * tests/test-printf-posix.output: Update.
16695         Reported by John Darrington <john@darrington.wattle.id.au> via
16696         Ben Pfaff <blp@cs.stanford.edu>.
16697
16698 2008-04-18  Simon Josefsson  <simon@josefsson.org>
16699
16700         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
16701         Suggested by Bruno Haible <bruno@clisp.org>.
16702
16703 2008-04-17  Bruno Haible  <bruno@clisp.org>
16704
16705         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
16706         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
16707         implementation.
16708         Patch by Bruce Merry <bmerry@gmail.com>.
16709
16710 2008-04-17  Simon Josefsson  <simon@josefsson.org>
16711
16712         * doc/posix-functions/strftime.texi (strftime): Mention that %e
16713         doesn't work under Windows.
16714
16715 2008-04-16  Bruno Haible  <bruno@clisp.org>
16716
16717         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
16718         New macros.
16719         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
16720         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
16721         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
16722         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
16723         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
16724         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
16725         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
16726         macros.
16727         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
16728         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
16729         Northern Sotho, Uighur.
16730
16731 2008-04-16  Bruno Haible  <bruno@clisp.org>
16732
16733         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
16734         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
16735         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
16736         Reported by Daniel Bergström <daniel@octocode.com>.
16737
16738 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
16739             Bruno Haible  <bruno@clisp.org>
16740
16741         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
16742         function.
16743         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
16744         New functions, mostly extracted from gl_locale_name_default.
16745         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
16746
16747 2008-04-16  Eric Blake  <ebb9@byu.net>
16748
16749         Adjust strtod detection to catch glibc 2.7 bug.
16750         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
16751         Reported by John Gatewood Ham.
16752
16753 2008-04-16  Bruno Haible  <bruno@clisp.org>
16754
16755         Add tentative support for Linux libc5.
16756         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
16757         * lib/fpurge.c (fpurge): Likewise.
16758         * lib/freadable.c (freadable): Likewise.
16759         * lib/freadahead.c (freadahead): Likewise.
16760         * lib/freading.c (freading): Likewise.
16761         * lib/freadptr.c (freadptr): Likewise.
16762         * lib/freadseek.c (freadptrinc): Likewise.
16763         * lib/fseeko.c (rpl_fseeko): Likewise.
16764         * lib/fseterr.c (fseterr): Likewise.
16765         * lib/fwritable.c (fwritable): Likewise.
16766         * lib/fwriting.c (fwriting): Likewise.
16767         Reported by Alain Guibert <alguibert+bts@free.fr>.
16768
16769 2008-04-15  Bruno Haible  <bruno@clisp.org>
16770
16771         * modules/mathl (configure.ac): Define module indicator.
16772
16773 2008-04-15  Bruno Haible  <bruno@clisp.org>
16774
16775         * lib/logl.c (logl): Remove unused variables.
16776
16777 2008-04-15  Bruno Haible  <bruno@clisp.org>
16778
16779         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
16780         fails.
16781
16782 2008-04-15  Bruno Haible  <bruno@clisp.org>
16783
16784         * lib/trim.c (trim2): Fix argument of isspace() macro.
16785
16786 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
16787
16788         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
16789         to 0.
16790         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
16791
16792 2008-04-14  Bruno Haible  <bruno@clisp.org>
16793
16794         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
16795         AC_LANG_PROGRAM argument.
16796         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
16797         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
16798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16799         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16800         * m4/math_h.m4 (gl_MATH_H): Likewise.
16801         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16802         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16803         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
16804         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
16805         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16806         * m4/regex.m4 (gl_REGEX): Likewise.
16807         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
16808         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
16809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16810         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
16811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16812         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16815
16816 2008-04-14  Jim Meyering  <meyering@redhat.com>
16817
16818         test-strtod: fix typos: s/abs/fabs/
16819         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
16820
16821 2008-04-13  Bruno Haible  <bruno@clisp.org>
16822
16823         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
16824         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
16825         module is also used and while not building the reloc-wrapper.
16826
16827 2008-04-13  Bruno Haible  <bruno@clisp.org>
16828
16829         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
16830
16831 2008-04-13  Bruno Haible  <bruno@clisp.org>
16832
16833         Fix AIX compilation failure introduced on 2008-04-02.
16834         * tests/test-frexp.c (exp): Undefine before redefining.
16835         * tests/test-frexpl.c (exp): Likewise.
16836
16837 2008-04-13  Bruno Haible  <bruno@clisp.org>
16838
16839         Work around a HP-UX stdio bug.
16840         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
16841         * tests/test-ftello.c (main): Likewise.
16842         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
16843         * doc/posix-functions/ftello.texi: Likewise.
16844
16845 2008-04-13  Bruno Haible  <bruno@clisp.org>
16846
16847         Make test-signbit pass on HP-UX/hppa.
16848         * tests/test-signbit.c (minus_zerol): New variable.
16849         (test_signbitl): Use it.
16850
16851 2008-04-13  Bruno Haible  <bruno@clisp.org>
16852
16853         Make truncl work on OSF/1 4.0.
16854         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
16855         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16856         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
16858         HAVE_DECL_TRUNCL.
16859         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
16860         HAVE_DECL_TRUNCL.
16861         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
16862
16863 2008-04-13  Bruno Haible  <bruno@clisp.org>
16864
16865         * lib/unictype.h: Remove trailing comma from enumeration definitions.
16866
16867 2008-04-13  Bruno Haible  <bruno@clisp.org>
16868
16869         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
16870         expression, so as to avoid HP-UX 11 cc compiler bug.
16871
16872 2008-04-13  Bruno Haible  <bruno@clisp.org>
16873
16874         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
16875
16876 2008-04-13  Bruno Haible  <bruno@clisp.org>
16877
16878         * lib/git-merge-changelog.c: Remove empty declaration outside of
16879         functions.
16880
16881 2008-04-13  Bruno Haible  <bruno@clisp.org>
16882
16883         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
16884
16885 2008-04-13  Bruno Haible  <bruno@clisp.org>
16886
16887         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
16888         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
16889         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
16890         also if it exists but lacks definitions of the SHUT_* macros.
16891         * modules/sys_socket (Description): Update.
16892         Reported by Elbert Pol <e.pol@chello.nl>.
16893
16894 2008-04-13  Bruno Haible  <bruno@clisp.org>
16895
16896         * lib/localcharset.c (OS2): Don't redefine if already defined.
16897         Reported by Elbert Pol <e.pol@chello.nl>.
16898
16899 2008-04-13  Bruno Haible  <bruno@clisp.org>
16900
16901         * lib/binary-io.h [__EMX__]: Include <io.h>.
16902         Reported by Elbert Pol <e.pol@chello.nl>.
16903
16904 2008-04-12  Bruno Haible  <bruno@clisp.org>
16905
16906         * lib/fpucw.h: Enable the definitions also for x86_64.
16907         Needed for NetBSD/x86_64.
16908         Reported by Thomas Klausner <tk@giga.or.at>.
16909
16910 2008-04-12  Bruno Haible  <bruno@clisp.org>
16911
16912         * tests/test-strtod.c: Include isnand.h.
16913         (main): Use isnand instead of isnan.
16914         Reported by Jim Meyering.
16915
16916 2008-04-12  Bruno Haible  <bruno@clisp.org>
16917
16918         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
16919         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16920
16921 2008-04-12  Jim Meyering  <meyering@redhat.com>
16922
16923         * m4/math_h.m4 (gl_MATH_H): Fix typos.
16924
16925 2008-04-12  Bruno Haible  <bruno@clisp.org>
16926
16927         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
16928         Reported by Elbert Pol <e.pol@chello.nl>.
16929
16930 2008-04-12  Eric Blake  <ebb9@byu.net>
16931
16932         Work around Solaris 10 math.h bug.
16933         * m4/math_h.m4 (gl_MATH_H): Check for bug.
16934         (gl_MATH_H_DEFAULTS): Set up default.
16935         * modules/math (Makefile.am): Replace new indicators.
16936         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
16937         * tests/test-math.c (main): Test this.
16938         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
16939         * doc/posix-headers/math.texi (math.h): Mention bug.
16940         Reported by Nelson H. F. Beebe and Jim Meyering.
16941
16942 2008-04-11  Bruno Haible  <bruno@clisp.org>
16943
16944         Adapt to future versions of Apple GCC.
16945         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
16946         Reported by Peter O'Gorman <peter@pogma.com>.
16947
16948 2008-04-11  Bruno Haible  <bruno@clisp.org>
16949
16950         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
16951
16952 2008-04-11  Bruno Haible  <bruno@clisp.org>
16953
16954         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
16955
16956         * modules/getaddrinfo-tests (Makefile.am): Define
16957         test_getaddrinfo_LDADD.
16958
16959 2008-04-11  Bruno Haible  <bruno@clisp.org>
16960
16961         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
16962         (init): Fix syntax error.
16963         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
16964         is declared.
16965
16966 2008-04-11  Bruno Haible  <bruno@clisp.org>
16967
16968         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
16969         * modules/glob (Depends-on): Add stdbool.
16970
16971 2008-04-11  Bruno Haible  <bruno@clisp.org>
16972
16973         * lib/trim.c: Include <string.h>.
16974
16975 2008-04-11  Eric Blake  <ebb9@byu.net>
16976
16977         Avoid compile failure on OS/2.
16978         * lib/regex_internal.h (internal_function): Disable optimization
16979         on OS/2 (__EMX__), where it caused compiler error.
16980         Reported by Elbert Pol.
16981
16982 2008-04-11  Bruno Haible  <bruno@clisp.org>
16983
16984         Flush the standard error stream before aborting. Needed on mingw.
16985         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
16986         * tests/test-array_list.c (ASSERT): Likewise.
16987         * tests/test-array_oset.c (ASSERT): Likewise.
16988         * tests/test-avltree_list.c (ASSERT): Likewise.
16989         * tests/test-avltree_oset.c (ASSERT): Likewise.
16990         * tests/test-avltreehash_list.c (ASSERT): Likewise.
16991         * tests/test-binary-io.c (ASSERT): Likewise.
16992         * tests/test-byteswap.c (ASSERT): Likewise.
16993         * tests/test-c-ctype.c (ASSERT): Likewise.
16994         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
16995         * tests/test-c-strcasestr.c (ASSERT): Likewise.
16996         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
16997         * tests/test-c-strstr.c (ASSERT): Likewise.
16998         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
16999         * tests/test-canonicalize.c (ASSERT): Likewise.
17000         * tests/test-carray_list.c (ASSERT): Likewise.
17001         * tests/test-ceilf1.c (ASSERT): Likewise.
17002         * tests/test-ceilf2.c (ASSERT): Likewise.
17003         * tests/test-ceill.c (ASSERT): Likewise.
17004         * tests/test-count-one-bits.c (ASSERT): Likewise.
17005         * tests/test-fbufmode.c (ASSERT): Likewise.
17006         * tests/test-fflush2.c (ASSERT): Likewise.
17007         * tests/test-floorf1.c (ASSERT): Likewise.
17008         * tests/test-floorf2.c (ASSERT): Likewise.
17009         * tests/test-floorl.c (ASSERT): Likewise.
17010         * tests/test-fopen.c (ASSERT): Likewise.
17011         * tests/test-fpending.c (ASSERT): Likewise.
17012         * tests/test-fprintf-posix.c (ASSERT): Likewise.
17013         * tests/test-fpurge.c (ASSERT): Likewise.
17014         * tests/test-freadable.c (ASSERT): Likewise.
17015         * tests/test-freadahead.c (ASSERT): Likewise.
17016         * tests/test-freading.c (ASSERT): Likewise.
17017         * tests/test-freadptr.c (ASSERT): Likewise.
17018         * tests/test-freadptr2.c (ASSERT): Likewise.
17019         * tests/test-freadseek.c (ASSERT): Likewise.
17020         * tests/test-freopen.c (ASSERT): Likewise.
17021         * tests/test-frexp.c (ASSERT): Likewise.
17022         * tests/test-frexpl.c (ASSERT): Likewise.
17023         * tests/test-fseek.c (ASSERT): Likewise.
17024         * tests/test-fseeko.c (ASSERT): Likewise.
17025         * tests/test-fstrcmp.c (ASSERT): Likewise.
17026         * tests/test-ftell.c (ASSERT): Likewise.
17027         * tests/test-ftello.c (ASSERT): Likewise.
17028         * tests/test-func.c (ASSERT): Likewise.
17029         * tests/test-fwritable.c (ASSERT): Likewise.
17030         * tests/test-fwriting.c (ASSERT): Likewise.
17031         * tests/test-getdelim.c (ASSERT): Likewise.
17032         * tests/test-getline.c (ASSERT): Likewise.
17033         * tests/test-i-ring.c (ASSERT): Likewise.
17034         * tests/test-iconv-utf.c (ASSERT): Likewise.
17035         * tests/test-iconv.c (ASSERT): Likewise.
17036         * tests/test-isfinite.c (ASSERT): Likewise.
17037         * tests/test-isnand.c (ASSERT): Likewise.
17038         * tests/test-isnanf.c (ASSERT): Likewise.
17039         * tests/test-isnanl.h (ASSERT): Likewise.
17040         * tests/test-ldexpl.c (ASSERT): Likewise.
17041         * tests/test-linked_list.c (ASSERT): Likewise.
17042         * tests/test-linkedhash_list.c (ASSERT): Likewise.
17043         * tests/test-localename.c (ASSERT): Likewise.
17044         * tests/test-lseek.c (ASSERT): Likewise.
17045         * tests/test-mbscasecmp.c (ASSERT): Likewise.
17046         * tests/test-mbscasestr1.c (ASSERT): Likewise.
17047         * tests/test-mbscasestr2.c (ASSERT): Likewise.
17048         * tests/test-mbscasestr3.c (ASSERT): Likewise.
17049         * tests/test-mbscasestr4.c (ASSERT): Likewise.
17050         * tests/test-mbschr.c (ASSERT): Likewise.
17051         * tests/test-mbscspn.c (ASSERT): Likewise.
17052         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
17053         * tests/test-mbspbrk.c (ASSERT): Likewise.
17054         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
17055         * tests/test-mbsrchr.c (ASSERT): Likewise.
17056         * tests/test-mbsspn.c (ASSERT): Likewise.
17057         * tests/test-mbsstr1.c (ASSERT): Likewise.
17058         * tests/test-mbsstr2.c (ASSERT): Likewise.
17059         * tests/test-mbsstr3.c (ASSERT): Likewise.
17060         * tests/test-memchr2.c (ASSERT): Likewise.
17061         * tests/test-memmem.c (ASSERT): Likewise.
17062         * tests/test-open.c (ASSERT): Likewise.
17063         * tests/test-printf-frexp.c (ASSERT): Likewise.
17064         * tests/test-printf-frexpl.c (ASSERT): Likewise.
17065         * tests/test-printf-posix.c (ASSERT): Likewise.
17066         * tests/test-quotearg.c (ASSERT): Likewise.
17067         * tests/test-rbtree_list.c (ASSERT): Likewise.
17068         * tests/test-rbtree_oset.c (ASSERT): Likewise.
17069         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
17070         * tests/test-round1.c (ASSERT): Likewise.
17071         * tests/test-roundf1.c (ASSERT): Likewise.
17072         * tests/test-roundl.c (ASSERT): Likewise.
17073         * tests/test-signbit.c (ASSERT): Likewise.
17074         * tests/test-sleep.c (ASSERT): Likewise.
17075         * tests/test-snprintf-posix.c (ASSERT): Likewise.
17076         * tests/test-snprintf.c (ASSERT): Likewise.
17077         * tests/test-sprintf-posix.c (ASSERT): Likewise.
17078         * tests/test-stat-time.c (ASSERT): Likewise.
17079         * tests/test-strcasestr.c (ASSERT): Likewise.
17080         * tests/test-strerror.c (ASSERT): Likewise.
17081         * tests/test-striconv.c (ASSERT): Likewise.
17082         * tests/test-striconveh.c (ASSERT): Likewise.
17083         * tests/test-striconveha.c (ASSERT): Likewise.
17084         * tests/test-strsignal.c (ASSERT): Likewise.
17085         * tests/test-strstr.c (ASSERT): Likewise.
17086         * tests/test-strtod.c (ASSERT): Likewise.
17087         * tests/test-trunc1.c (ASSERT): Likewise.
17088         * tests/test-trunc2.c (ASSERT): Likewise.
17089         * tests/test-truncf1.c (ASSERT): Likewise.
17090         * tests/test-truncf2.c (ASSERT): Likewise.
17091         * tests/test-truncl.c (ASSERT): Likewise.
17092         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
17093         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
17094         * tests/test-vasnprintf.c (ASSERT): Likewise.
17095         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
17096         * tests/test-vasprintf.c (ASSERT): Likewise.
17097         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
17098         * tests/test-vprintf-posix.c (ASSERT): Likewise.
17099         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
17100         * tests/test-vsnprintf.c (ASSERT): Likewise.
17101         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
17102         * tests/test-wcwidth.c (ASSERT): Likewise.
17103         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
17104         * tests/test-xprintf-posix.c (ASSERT): Likewise.
17105         * tests/test-xvasprintf.c (ASSERT): Likewise.
17106         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
17107         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
17108         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
17109         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
17110         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
17111         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
17112         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
17113         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
17114         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
17115         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
17116         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
17117         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
17118         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
17119         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
17120         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
17121         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
17122         * tests/unictype/test-block_list.c (ASSERT): Likewise.
17123         * tests/unictype/test-block_of.c (ASSERT): Likewise.
17124         * tests/unictype/test-block_test.c (ASSERT): Likewise.
17125         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
17126         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
17127         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
17128         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
17129         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
17130         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
17131         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
17132         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
17133         * tests/unictype/test-combining.c (ASSERT): Likewise.
17134         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
17135         * tests/unictype/test-digit.c (ASSERT): Likewise.
17136         * tests/unictype/test-mirror.c (ASSERT): Likewise.
17137         * tests/unictype/test-numeric.c (ASSERT): Likewise.
17138         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
17139         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
17140         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
17141         * tests/unictype/test-scripts.c (ASSERT): Likewise.
17142         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
17143         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
17144         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
17145         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
17146         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
17147         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
17148         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
17149         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
17150         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
17151         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
17152         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
17153         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
17154         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
17155         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
17156         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
17157         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
17158         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
17159         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
17160         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
17161         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
17162         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
17163         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
17164         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
17165         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
17166         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
17167         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
17168         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
17169         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
17170         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
17171         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
17172         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
17173         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
17174         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
17175         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
17176         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
17177         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
17178         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
17179         Reported by Eric Blake.
17180
17181 2008-04-11  Bruno Haible  <bruno@clisp.org>
17182
17183         * lib/wchar.in.h: Tweak comment.
17184
17185 2008-04-11  Bruno Haible  <bruno@clisp.org>
17186
17187         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
17188         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
17189         gl_COMMON.
17190         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
17191
17192 2008-04-11  Bruno Haible  <bruno@clisp.org>
17193
17194         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
17195
17196 2008-04-11  Simon Josefsson  <simon@josefsson.org>
17197
17198         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
17199         of attempting to use non-existing /dev/*random.  Based on patch
17200         from Adam Strzelecki <ono@java.pl> in
17201         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
17202
17203 2008-04-08  Bruno Haible  <bruno@clisp.org>
17204
17205         Add tentative support for emx+gcc.
17206         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
17207         * lib/fpurge.c (fpurge): Likewise.
17208         * lib/freadable.c (freadable): Likewise.
17209         * lib/freadahead.c (freadahead): Likewise.
17210         * lib/freading.c (freading): Likewise.
17211         * lib/freadptr.c (freadptr): Likewise.
17212         * lib/freadseek.c (freadptrinc): Likewise.
17213         * lib/fseeko.c (rpl_fseeko): Likewise.
17214         * lib/fseterr.c (fseterr): Likewise.
17215         * lib/fwritable.c (fwritable): Likewise.
17216         * lib/fwriting.c (fwriting): Likewise.
17217         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
17218
17219 2008-04-09  Eric Blake  <ebb9@byu.net>
17220
17221         Avoid some autoconf warnings.
17222         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
17223         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
17224         * m4/afs.m4 (gl_AFS): Likewise.
17225         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
17226         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
17227         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17228         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
17229         (gl_INTEGER_TYPE_SUFFIX): Likewise.
17230         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
17231         (AC_CHECK_DECLS_ONCE): Likewise.
17232         Rename file...
17233         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
17234         gnulib-tool requires autoconf 2.59 or better.
17235         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
17236
17237 2008-04-08  Eric Blake  <ebb9@byu.net>
17238
17239         Use 'git describe --match' if present (added in git 1.5.5).
17240         * build-aux/git-version-gen: Limit result to tags that match 'v*'
17241         if possible.
17242
17243 2008-04-08  Bruno Haible  <bruno@clisp.org>
17244
17245         Add tentative support for OpenServer.
17246         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
17247         _ptr, _cnt.
17248         * lib/fpurge.c (fpurge): Likewise.
17249         * lib/freadable.c (freadable): Likewise.
17250         * lib/freadahead.c (freadahead): Likewise.
17251         * lib/freading.c (freading): Likewise.
17252         * lib/freadptr.c (freadptr): Likewise.
17253         * lib/freadseek.c (freadptrinc): Likewise.
17254         * lib/fseeko.c (rpl_fseeko): Likewise.
17255         * lib/fseterr.c (fseterr): Likewise.
17256         * lib/fwritable.c (fwritable): Likewise.
17257         * lib/fwriting.c (fwriting): Likewise.
17258         Reported by Roger Cornelius <rac@tenzing.org> and
17259         Brian K. White <brian@aljex.com>.
17260
17261 2008-04-06  Jim Meyering  <meyering@redhat.com>
17262
17263         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
17264
17265 2008-04-06  Bruno Haible  <bruno@clisp.org>
17266
17267         Avoid possible error with non-ASCII bytes in UTF-8 locales.
17268         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
17269         * tests/test-printf-posix.sh: Likewise.
17270         * tests/test-vfprintf-posix.sh: Likewise.
17271         * tests/test-vprintf-posix.sh: Likewise.
17272         * tests/test-xprintf-posix.sh: Likewise.
17273
17274 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17275
17276         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
17277         hide error from 'ls', needed on OS/2.
17278         Report by Elbert Pol <elbert.pol@gmail.com>.
17279
17280 2008-04-04  Eric Blake  <ebb9@byu.net>
17281
17282         Make test-fseeko.c failures meaningful.
17283         * tests/test-fseeko.c: Print line number on failure.
17284         * tests/test-fseek.c: Likewise.
17285         Reported by Nelson H. F. Beebe.
17286
17287         Improve strtod bug detection check.
17288         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
17289         required for Solaris 10.
17290         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
17291
17292 2008-04-04  Bruno Haible  <bruno@clisp.org>
17293
17294         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
17295         by m4/setenv.m4.
17296
17297 2008-04-03  Eric Blake  <ebb9@byu.net>
17298
17299         Ensure sane .version contents.
17300         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
17301         version string.
17302         * build-aux/git-version-gen: Improve documentation.
17303
17304         Make GNU make output nicer.
17305         * top/GNUmakefile [!_have-Makefile]: Add dependency on
17306         MAKECMDGOALS to enforce message for all command line targets.  Set
17307         srcdir for use in maint.mk.
17308
17309         Another maintainer tweak.
17310         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
17311         a target that regenerates version.
17312
17313 2008-04-03  Jim Meyering  <meyering@redhat.com>
17314
17315         vc-list-files: don't cause coreutils "make po-check" failure
17316         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
17317
17318 2008-04-03  Eric Blake  <ebb9@byu.net>
17319
17320         Allow VPATH usage of vc-list-files.
17321         * build-aux/vc-list-files (scriptversion): Add timestamp.
17322         (options): Add --help, --version, -C.
17323         (CVS): Support installed cvsu.
17324
17325 2008-04-02  Bruno Haible  <bruno@clisp.org>
17326
17327         Avoid some "statement with no effect" warnings from gcc.
17328         * tests/test-wctype.c (main): Explicitly ignore unused values.
17329         Reported by Jim Meyering.
17330
17331 2008-04-02  Jim Meyering  <meyering@redhat.com>
17332
17333         Avoid some warnings from "gcc -Wshadow".
17334         * tests/test-frexp.c (exp): Define to a different identifier.
17335         * tests/test-frexpl.c (exp): Likewise.
17336
17337 2008-04-03  Jim Meyering  <meyering@redhat.com>
17338
17339         bootstrap: remove dangling *.[ch] symlinks from lib
17340         * build-aux/bootstrap [dangling symlink removal]: Move find's
17341         -depth option to precede all others, to avoid a warning.
17342         Remove *.[ch] files too, and from "$source_base" (usually lib/).
17343
17344 2008-04-02  Bruno Haible  <bruno@clisp.org>
17345
17346         Avoid some warnings from "gcc -Wshadow".
17347         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
17348         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
17349         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
17350         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
17351         Reported by Jim Meyering.
17352
17353 2008-04-01  Bruno Haible  <bruno@clisp.org>
17354
17355         Fix test to work on IRIX 6.5 with cc.
17356         * tests/test-math.c (numeric_equal): New function.
17357         (main): Use it.
17358
17359 2008-04-01  Bruno Haible  <bruno@clisp.org>
17360
17361         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
17362
17363 2008-04-01  Bruno Haible  <bruno@clisp.org>
17364
17365         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
17366         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17367         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
17368         (Depends-on): Remove math.
17369
17370         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
17371         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17372         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
17373         (Depends-on): Remove math.
17374
17375         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
17376         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17377         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
17378         (Depends-on): Remove math.
17379         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
17380         (Depends-on): Remove math.
17381
17382         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
17383         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17384         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
17385         (Depends-on): Remove math.
17386         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
17387         (Depends-on): Remove math.
17388
17389         * tests/test-round1.c: Include nan.h.
17390         (main): Use NaNd instead of NAN.
17391         * modules/round-tests (Files): Add tests/nan.h.
17392
17393         * tests/test-trunc1.c: Include nan.h.
17394         (main): Use NaNd instead of NAN.
17395         * modules/trunc-tests (Files): Add tests/nan.h.
17396
17397         * tests/test-roundf1.c: Include nan.h.
17398         (main): Use NaNf instead of NAN.
17399         * modules/roundf-tests (Files): Add tests/nan.h.
17400
17401         * tests/test-truncf1.c: Include nan.h.
17402         (main): Use NaNf instead of NAN.
17403         * modules/truncf-tests (Files): Add tests/nan.h.
17404
17405         * tests/test-ceilf1.c: Include nan.h.
17406         (main): Use NaNf instead of NAN.
17407         * modules/ceilf-tests (Files): Add tests/nan.h.
17408
17409         * tests/test-floorf1.c: Include nan.h.
17410         (main): Use NaNf instead of NAN.
17411         * modules/floorf-tests (Files): Add tests/nan.h.
17412
17413         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
17414         (main): Use NaNf instead of NAN.
17415         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
17416
17417         * tests/test-isnand.c: Include nan.h instead of <math.h>.
17418         (main): Use NaNd instead of NAN.
17419         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
17420
17421         * tests/test-frexp.c: Include nan.h.
17422         (main): Use NaNd instead of NAN.
17423         * modules/frexp-tests (Files): Add tests/nan.h.
17424
17425         * lib/isnan.c: Don't include <math.h>.
17426         (FUNC): Don't use NAN macro.
17427         * modules/isnand-nolibm (Depends-on): Remove math.
17428         * modules/isnanf-nolibm (Depends-on): Remove math.
17429         * modules/isnanl (Depends-on): Remove math.
17430         * modules/isnanl-nolibm (Depends-on): Remove math.
17431
17432         * tests/nan.h: New file.
17433
17434 2008-04-01  Eric Blake  <ebb9@byu.net>
17435
17436         Fix typos.
17437         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
17438         values to be the right type.
17439
17440         For now, cater to gnulib strtod inaccuracies.
17441         * tests/test-strtod.c (main): Allow 1-ulp error on expected
17442         fractional results.  While not as nice from a QoI perspective, it
17443         is a quicker patch than correctly implementing decimal to binary
17444         rounding.
17445
17446 2008-03-31  Eric Blake  <ebb9@byu.net>
17447
17448         Guarantee a definition of NAN.
17449         * lib/math.in.h (NAN): Define if missing.
17450         * tests/test-math.c (main): Test it.
17451         * doc/posix-headers/math.texi (math.h): Document this.
17452         * lib/isnan.c (rpl_isnand): Use it.
17453         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
17454         * tests/test-floorf1.c (NaN): Likewise.
17455         * tests/test-frexp.c (NaN): Likewise.
17456         * tests/test-isnand.c (NaN): Likewise.
17457         * tests/test-isnanf.c (NaN): Likewise.
17458         * tests/test-round1.c (NaN): Likewise.
17459         * tests/test-roundf1.c (NaN): Likewise.
17460         * tests/test-snprintf-posix.h (NaN): Likewise.
17461         * tests/test-sprintf-posix.h (NaN): Likewise.
17462         * tests/test-trunc1.c (NaN): Likewise.
17463         * tests/test-truncf1.c (NaN): Likewise.
17464         * tests/test-vasnprintf-posix.c (NaN): Likewise.
17465         * tests/test-vasprintf-posix.c (NaN): Likewise.
17466         * modules/isnand-nolibm (Depends-on): Add math.
17467         * modules/isnanf-nolibm (Depends-on): Likewise.
17468         * modules/isnanl (Depends-on): Likewise.
17469         * modules/isnanl-nolibm (Depends-on): Likewise.
17470         * modules/snprintf-posix-tests (Depends-on): Likewise.
17471         * modules/sprintf-posix-tests (Depends-on): Likewise.
17472         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
17473         * modules/vsprintf-posix-tests (Depends-on): Likewise.
17474         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
17475         * modules/vasprintf-posix-tests (Depends-on): Likewise.
17476
17477 2008-03-31  Bruno Haible  <bruno@clisp.org>
17478
17479         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
17480         * doc/posix-functions/strtod.texi: Likewise.
17481
17482 2008-03-31  Bruno Haible  <bruno@clisp.org>
17483
17484         * tests/test-strtod.c (main): Don't use C99 syntax.
17485
17486 2008-03-31  Bruno Haible  <bruno@clisp.org>
17487
17488         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
17489         Reported by Eric Blake.
17490
17491 2008-03-31  Jim Meyering  <meyering@redhat.com>
17492
17493         Don't compare actual signbit return values.
17494         * tests/test-strtod.c (main): Rather, compare only their
17495         zero/non-zero nature.
17496
17497 2008-03-31  Eric Blake  <ebb9@byu.net>
17498
17499         More strtod documentation.
17500         * doc/posix-functions/strtod.texi (strtod): Interpret more test
17501         failures as distinct bugs.
17502
17503 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17504
17505         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
17506         Problem reported by Erik Benada in
17507         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
17508
17509 2008-03-30  Bruno Haible  <bruno@clisp.org>
17510
17511         * tests/test-strtod.c: Add comments about which assertion fails on which
17512         platform.
17513         * doc/posix-functions/strtod.texi: Add info about many more platforms.
17514
17515 2008-03-30  Eric Blake  <ebb9@byu.net>
17516
17517         Test signbit behavior on zeros.
17518         * tests/test-signbit.c (test_signbitf): Add tests for zero.
17519         (test_signbitd, test_signbitl): Likewise.
17520
17521         More strtod touchups.
17522         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
17523         sign of negative underflow, for now.  Use .5, not .1.
17524         * doc/posix-functions/strtod.texi (strtod): Mention these
17525         limitations.
17526         Reported by Jim Meyering.
17527
17528 2008-03-30  Bruno Haible  <bruno@clisp.org>
17529
17530         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
17531         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
17532
17533 2008-03-30  Bruno Haible  <bruno@clisp.org>
17534
17535         Avoid failure when attempting to return empty iconv results on some
17536         platforms.
17537         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
17538         allocation, don't report ENOMEM when the resulting string is empty.
17539
17540 2008-03-30  Bruno Haible  <bruno@clisp.org>
17541
17542         Fix buffer overrun.
17543         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
17544         Don't consider the width for tmp_length. Check count against tmp_length
17545         before doing the padding. Ensure enough allocation during padding.
17546
17547 2008-03-30  Eric Blake  <ebb9@byu.net>
17548
17549         strtod touchups.
17550         * lib/strtod.c (strtod): Avoid compiler warnings.
17551         Reported by Jim Meyering.
17552
17553 2008-03-30  Bruno Haible  <bruno@clisp.org>
17554
17555         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
17556         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
17557         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
17558         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
17559         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
17560         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
17561         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
17562         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
17563
17564         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
17565         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
17566         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
17567         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
17568         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
17569         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
17570         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
17571         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
17572
17573         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
17574         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
17575         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
17576         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
17577         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
17578         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
17579         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
17580         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
17581
17582         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
17583         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
17584
17585         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
17586         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
17587
17588         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
17589         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
17590
17591         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
17592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
17593         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
17594
17595         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
17596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
17597         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
17598
17599         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
17600         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
17601         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
17602
17603         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
17604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
17605         * modules/vasprintf (Depends-on): Add EOVERFLOW.
17606
17607         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
17608         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
17609         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
17610         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
17611         (Depends-on): Add EOVERFLOW.
17612         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
17613         (Depends-on): Add EOVERFLOW.
17614         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17615         (Depends-on): Add EOVERFLOW.
17616         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17617         (Depends-on): Add EOVERFLOW.
17618         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17619         (Depends-on): Add EOVERFLOW.
17620         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17621         (Depends-on): Add EOVERFLOW.
17622         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17623         (Depends-on): Add EOVERFLOW.
17624         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17625         (Depends-on): Add EOVERFLOW.
17626
17627         * lib/sprintf.c (EOVERFLOW): Remove fallback.
17628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
17629         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
17630
17631         * lib/snprintf.c (EOVERFLOW): Remove fallback.
17632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
17633         * modules/snprintf (Depends-on): Add EOVERFLOW.
17634
17635         * lib/poll.c (EOVERFLOW): Remove fallback.
17636         * modules/poll (Depends-on): Add EOVERFLOW.
17637
17638         * lib/getugroups.c (EOVERFLOW): Remove fallback.
17639         * modules/getugroups (Depends-on): Add EOVERFLOW.
17640
17641         * lib/getdelim.c (EOVERFLOW): Remove fallback.
17642         * modules/getdelim (Depends-on): Add EOVERFLOW.
17643
17644         * lib/ftell.c (EOVERFLOW): Remove fallback.
17645         * modules/ftell (Depends-on): Add EOVERFLOW.
17646
17647         * lib/fprintf.c (EOVERFLOW): Remove fallback.
17648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
17649         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
17650
17651         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
17652
17653         * modules/EOVERFLOW-tests: New file.
17654         * tests/test-EOVERFLOW.c: New file.
17655
17656         * modules/EOVERFLOW: New file.
17657         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
17658
17659 2008-03-30  Bruno Haible  <bruno@clisp.org>
17660
17661         Fix bug introduced on 2007-06-10.
17662         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
17663         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
17664
17665 2008-03-30  Bruno Haible  <bruno@clisp.org>
17666
17667         Improve freadseek's efficiency after ungetc.
17668         * lib/freadseek.c: Include freadahead.h.
17669         (freadptrinc): New function, extracted from freadseek.
17670         (freadseek): Use it in a loop. Use freadahead to determine the number
17671         of loop iterations.
17672         * modules/freadseek (Depends-on): Add freadahead.
17673         (configure.ac): Require AC_C_INLINE.
17674
17675 2008-03-30  Bruno Haible  <bruno@clisp.org>
17676
17677         * lib/freadseek.c (freadseek): Don't ignore the return value of
17678         freadptr.
17679
17680 2008-03-29  Eric Blake  <ebb9@byu.net>
17681
17682         Add hex float support.
17683         * modules/strtod (Depends-on): Add c-ctype.
17684         (Link): Mention POW_LIB.
17685         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
17686         whitespace between 'e' and exponent.
17687         * tests/test-strtod.c (main): Enable hex float tests.
17688         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
17689         now provides.
17690
17691         Document various strtod bugs, with some fixes.
17692         * doc/posix-functions/strtod.texi (strtod): Document bugs with
17693         "-0x", "inf", "nan", and hex constants.
17694         * doc/posix-functions/atof.texi (atof): Likewise.
17695         * modules/stdlib (Makefile.am): Support strtod.
17696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17697         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
17698         detect additional strtod bugs.
17699         * lib/stdlib.in.h (rpl_strtod): Add declarations.
17700         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
17701         bool where appropriate.  Parse 'inf' and 'nan'.
17702         * tests/test-strtod.c: New file.
17703         * modules/strtod (Depends-on): Add stdbool, stdlib.
17704         (configure.ac): Turn on module indicator.
17705         * modules/strtod-tests: New module.
17706
17707 2008-03-29  Eric Blake  <ebb9@byu.net>
17708
17709         Fix ftell on mingw.
17710         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
17711         * modules/ftell-tests (Depends-on): Add binary-io.
17712         * modules/ftello-tests (Depends-on): Likewise.
17713         * tests/test-ftell.c (main): Enhance test to cover behavior after
17714         ungetc.  Enforce binary mode.
17715         * tests/test-ftello.c (main): Likewise.
17716
17717         Pass test-freadseek on cygwin.
17718         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
17719         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
17720         ungetc buffer.
17721
17722         * tests/test-fflush2.c (main): Fix typo.
17723
17724 2008-03-29  Bruno Haible  <bruno@clisp.org>
17725
17726         * tests/test-fflush2.c (main): Temporarily disable the contents of
17727         this test.
17728         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
17729         Reported by Eric Blake.
17730
17731 2008-03-28  Simon Josefsson  <simon@josefsson.org>
17732
17733         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
17734         (GC_SHA224_DIGEST_SIZE): Add.
17735
17736         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
17737         (gc_hash_digest_length): Likewise.
17738         (gc_hash_buffer): Likewise.
17739
17740 2008-03-25  Bruno Haible  <bruno@clisp.org>
17741
17742         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
17743         detail which gettext release to use.
17744         Reported by Simon Josefsson.
17745
17746 2008-03-26  Jim Meyering  <meyering@redhat.com>
17747
17748         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
17749         * modules/gnumakefile (clean-GNUmakefile): Also, use
17750         test ... && ... || : syntax rather than if-then ... fi.
17751
17752         gnumakefile: Don't double-quote-expand $(VPATH) value.
17753         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
17754
17755 2008-03-24  Eric Blake  <ebb9@byu.net>
17756
17757         Alter GNUmakefile to install into top directory.
17758         * modules/maintainer-makefile: Split, and add dependency...
17759         * modules/gnumakefile: to this new module.
17760         * build-aux/GNUmakefile: Move...
17761         * top/GNUmakefile: ...here.
17762         * build-aux/maint.mk: Move...
17763         * top/maint.mk: ...here.
17764         * MODULES.html.sh (Support for maintaining...): Document new
17765         module.
17766
17767 2008-03-23  Bruno Haible  <bruno@clisp.org>
17768
17769         * gnulib-tool: New options --vc-files, --no-vc-files.
17770         (func_usage): Document them.
17771         (vc_files): New variable.
17772         (func_import): Consider vc_files.
17773         (func_create_testdir): Set vc_files to empty.
17774         Suggested by Jim Meyering and Karl Berry.
17775
17776 2008-03-23  Bruno Haible  <bruno@clisp.org>
17777
17778         Fix regex compilation error on HP-UX 11.
17779         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
17780         * modules/regex (Files): Add m4/mbstate_t.m4.
17781         Reported by Ton Voon <ton.voon@altinity.com>.
17782
17783 2008-03-23  Bruno Haible  <bruno@clisp.org>
17784
17785         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
17786
17787 2008-03-23  Eric Blake  <ebb9@byu.net>
17788             Bruno Haible  <bruno@clisp.org>
17789
17790         Install files from top/ in the destination directory.
17791         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17792         augmentation also for the files from top/.
17793         (func_import, func_create_testdir): Rewrite file names:
17794         top/filename -> filename.
17795
17796 2008-03-23  Bruno Haible  <bruno@clisp.org>
17797
17798         Tweak "gnulib --version" output.
17799         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
17800
17801 2008-03-23  Bruno Haible  <bruno@clisp.org>
17802
17803         Tweak "gnulib --version" output.
17804         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
17805         rather than contents of ChangeLog, when possible.
17806
17807 2008-03-21  Eric Blake  <ebb9@byu.net>
17808
17809         More --version tweaks.
17810         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
17811         date of last ChangeLog entry.
17812
17813 2008-03-21  Jim Meyering  <meyering@redhat.com>
17814
17815         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
17816
17817 2008-03-20  Eric Blake  <ebb9@byu.net>
17818
17819         VPATH fix.
17820         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
17821
17822 2008-03-20  Simon Josefsson  <simon@josefsson.org>
17823
17824         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
17825         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
17826
17827 2008-03-20  Eric Blake  <ebb9@byu.net>
17828
17829         Sync GNUmakefile with coreutils.
17830         * build-aux/GNUmakefile (have-Makefile): Rename...
17831         (_have-Makefile): ...to this, for namespace consideration.
17832         (GNUmakefile.cfg): Include, if present.
17833         (_autoreconf): Define a default.
17834         (_is-dist-target): New rule for rebuilds to pick up intra-release
17835         version.
17836         (maint-cfg.mk): Rename...
17837         (cfg.mk): ...to this.
17838
17839 2008-03-18  Jim Meyering  <meyering@redhat.com>
17840
17841         New script and module: mktempd
17842         * MODULES.html.sh (maint+release support): Add mktempd.
17843         * build-aux/mktempd: New file.
17844         * modules/mktempd: New file.
17845
17846 2008-03-15  Jim Meyering  <meyering@redhat.com>
17847
17848         Undo last change.
17849         * lib/sha1.c, lib/md5.c: 63 != ~63.
17850         Reported by Andreas Schwab.
17851
17852         sha1.c, md5.c: Hoist a redundant expression.
17853         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
17854         "ctx->buflen" only once, before calling *_process_block.
17855         * lib/md5.c (md5_process_bytes): Likewise.
17856
17857 2008-03-14  Eric Blake  <ebb9@byu.net>
17858
17859         Bump copyright year in files generated by gnulib-tool.
17860         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
17861         gnulib-tool, rather than hard-coding it.
17862
17863         Fix 'gnulib-tool --version' output to work with git.
17864         * gnulib-tool (func_gnulib_dir): New function, extracted from...
17865         (startup): ...here.
17866         (func_version): Use it to invoke git-version-gen, rather than
17867         relying on CVS keyword expansion.  Modernize wording.
17868         (cvsdatestamp, last_checkin_date, version): Kill unused
17869         variables.
17870
17871 2008-03-12  Jim Meyering  <meyering@redhat.com>
17872
17873         Recognize optional cast of the argument to free.
17874         * build-aux/useless-if-before-free: Update regexps.
17875
17876         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
17877
17878 2008-03-11  Bruno Haible  <bruno@clisp.org>
17879
17880         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
17881         by a single package.
17882         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
17883         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
17884         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
17885         Reported by Sam Steingold <sds@gnu.org>.
17886
17887 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17888
17889         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
17890         repositories.
17891
17892 2008-03-11  Bruno Haible  <bruno@clisp.org>
17893
17894         Avoid conflicts between local macro definitions.
17895         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17896         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
17897
17898 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
17899             Bruno Haible  <bruno@clisp.org>
17900
17901         Make va_copy work with some version of xlc on AIX 5.1.
17902         * lib/stdarg.in.h: New file.
17903         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
17904         On AIX, use a <stdarg.h> file substitute.
17905         * modules/stdarg (Files): Add lib/stdarg.in.h.
17906         (Depends-on): Add include_next.
17907         (Makefile.am): Build a stdarg.h substitute if requested.
17908         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
17909
17910 2008-03-10  Bruno Haible  <bruno@clisp.org>
17911
17912         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
17913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17914         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17915
17916 2008-03-10  Bruno Haible  <bruno@clisp.org>
17917
17918         * modules/stdlib (Depends-on): Add include_next, remove
17919         absolute-header.
17920
17921 2008-03-09  Bruno Haible  <bruno@clisp.org>
17922
17923         * lib/freadahead.h (freadahead): Document more precisely.
17924         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
17925         the sum of both buffer sizes.
17926         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
17927         * NEWS: Document the change.
17928
17929 2008-03-09  Bruno Haible  <bruno@clisp.org>
17930
17931         Extend freadptr to return also the buffer size.
17932         * lib/freadptr.h (freadptr): Add sizep argument.
17933         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
17934         (freadptr): Add sizep argument. Determine buffer size like freadahead
17935         does.
17936         * tests/test-freadptr.c: Don't include freadahead.h.
17937         (main): Adapt for new calling convention of freadptr.
17938         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
17939         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
17940         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
17941         tests/test-freadptr2.sh.
17942         (Depends): Remove freadahead.
17943         (TESTS): Add test-freadptr2.sh.
17944         (check_PROGRAMS): Add test-freadptr2.
17945
17946 2008-03-09  Bruno Haible  <bruno@clisp.org>
17947
17948         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
17949         Report and solution by Simon Josefsson.
17950
17951 2008-03-06  Bruno Haible  <bruno@clisp.org>
17952
17953         Make fflush after ungetc work on BSD platforms.
17954         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
17955         * tests/test-fflush2.c: New file.
17956         * tests/test-fflush2.sh: New file.
17957         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
17958         tests/test-fflush2.c.
17959         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
17960         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
17961
17962 2008-03-06  Eric Blake  <ebb9@byu.net>
17963
17964         Likewise for ftello.
17965         * modules/ftello (Dependencies): Add extensions.
17966         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
17967
17968 2008-03-06  Bruno Haible  <bruno@clisp.org>
17969
17970         * modules/fseeko (Dependencies): Add extensions.
17971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
17972         Needed on glibc systems.
17973
17974 2008-03-06  Bruno Haible  <bruno@clisp.org>
17975
17976         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
17977         email address.
17978         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17979
17980 2008-03-06  Bruno Haible  <bruno@clisp.org>
17981
17982         * users.txt: Add libgnupdf.
17983
17984 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17985
17986         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
17987         (Header File Substitutes, Function Substitutes,
17988         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
17989         (Build robot for gnulib): Fix typo.
17990
17991 2008-03-06  Bruno Haible  <bruno@clisp.org>
17992
17993         * doc/gnulib-tool.texi (VCS Issues): Small updates.
17994         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17995
17996 2008-03-06  Bruno Haible  <bruno@clisp.org>
17997
17998         * doc/func.texi: New file, extracted from doc/gnulib.texi.
17999         * doc/gnulib.texi: Include it.
18000
18001 2008-03-06  Simon Josefsson  <simon@josefsson.org>
18002
18003         * modules/func (License): Change license to unlimited; there was
18004         no LGPL parts in the module anyway.
18005
18006 2008-03-06  Simon Josefsson  <simon@josefsson.org>
18007
18008         * modules/__func__: Renamed to modules/func.
18009         * modules/__func__-tests: Renamed to modules/func-tests.
18010         * tests/test-__func__.c: Renamed to tests/test-func.c.
18011         * m4/__func__.m4: Renamed to m4/func.m4.
18012         * doc/gnulib.texi (__func__): Section renamed to func.
18013         Suggested by Eric Blake <ebb9@byu.net>.
18014
18015 2008-03-06  Simon Josefsson  <simon@josefsson.org>
18016
18017         * doc/gnulib.texi (__func__): Use C99 terminology when talking
18018         about __func__.  Make example self-contained.  Suggested by Eric
18019         Blake <ebb9@byu.net>.
18020
18021         * tests/test-__func__.c (main): Avoid extraneous () around __func.
18022         Suggested by Eric Blake <ebb9@byu.net>.
18023
18024 2008-03-06  Simon Josefsson  <simon@josefsson.org>
18025
18026         * modules/__func__: New file.
18027         * modules/__func__-tests: New file.
18028         * tests/test-__func__.c: New file.
18029         * m4/__func__.m4: New file.
18030         * doc/gnulib.texi (__func__): Document __func__ module.
18031
18032 2008-03-05  Simon Josefsson  <simon@josefsson.org>
18033
18034         * modules/byteswap (License): Re-license as LGPLv2+.
18035
18036 2008-03-05  Simon Josefsson  <simon@josefsson.org>
18037
18038         * doc/Makefile: Add pdf target.
18039
18040 2008-03-05  Simon Josefsson  <simon@josefsson.org>
18041
18042         * modules/inline (License): Use 'unlimited', since there are only
18043         *.m4 files in this module.
18044
18045 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
18046             Bruno Haible  <bruno@clisp.org>
18047
18048         Add support for HP C 7.1 on OpenVMS 8.3.
18049         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
18050
18051 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
18052
18053         Update VMS specifics.
18054         * lib/getopt.c [VMS]: Remove include of unixlib.h.
18055
18056 2008-03-02  Jim Meyering  <meyering@redhat.com>
18057
18058         Remove the last dependency on the "free" module.
18059         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
18060         Reported by Bob Proulx.
18061
18062         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
18063
18064         Remove useless "if" tests before free.  Deprecate "free" module.
18065         * doc/posix-functions/free.texi: Mention that this
18066         module is no longer useful.
18067         * modules/free (Notice): Say this module is obsolete.
18068         * modules/readutmp (Depends-on): Remove free.
18069         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
18070         * lib/putenv.c (putenv): Likewise.
18071         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
18072         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
18073         * tests/test-c-strcasestr.c (main): Likewise.
18074         * tests/test-c-strstr.c (main): Likewise.
18075         * tests/test-mbscasestr1.c (main): Likewise.
18076         * tests/test-mbscasestr2.c (main): Likewise.
18077         * tests/test-mbsstr1.c (main): Likewise.
18078         * tests/test-mbsstr2.c (main): Likewise.
18079         * tests/test-memmem.c (main): Likewise.
18080         * tests/test-strcasestr.c (main): Likewise.
18081         * tests/test-striconv.c (main): Likewise.
18082         * tests/test-striconveh.c (main): Likewise.
18083         * tests/test-striconveha.c (main): Likewise.
18084         * tests/test-strstr.c (main): Likewise.
18085
18086         * build-aux/git-version-gen: Adjust a comment and the Usage string.
18087
18088         bootstrap: sync from coreutils again
18089         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
18090
18091 2008-03-01  Jim Meyering  <meyering@redhat.com>
18092
18093         bootstrap: sync from coreutils
18094         * build-aux/bootstrap (update_po_files): Copy a .po file into place
18095         also when the target doesn't exist.
18096
18097 2008-03-01  Eric Blake  <ebb9@byu.net>
18098
18099         Fix bugs in last patch.
18100         * lib/memchr2.c (memchr2): Fix typo.
18101         * tests/test-memchr2.c: Test previous bug, and don't use GNU
18102         extension.
18103         Reported by Bruce Korb.
18104
18105         New module 'memchr2'.
18106         * modules/memchr2: New file.
18107         * modules/memchr2-tests: Likewise.
18108         * lib/memchr2.h: Likewise.
18109         * lib/memchr2.c: Likewise, based on memchr.c.
18110         * tests/test-memchr2.c: New test.
18111         * MODULES.html.sh (String handling): Add memchr2.
18112
18113 2008-02-29  Bruno Haible  <bruno@clisp.org>
18114
18115         * modules/freadseek-tests: New file.
18116         * tests/test-freadseek.sh: New file.
18117         * tests/test-freadseek.c: New file.
18118
18119         New module 'freadseek'.
18120         * modules/freadseek: New file.
18121         * lib/freadseek.h: New file.
18122         * lib/freadseek.c: New file.
18123         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
18124
18125 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
18126
18127         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
18128         wydawca.
18129
18130         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
18131         program_invocation_name and program_invocation_short_name are
18132         present.
18133
18134 2008-02-28  Bruno Haible  <bruno@clisp.org>
18135
18136         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
18137         * tests/test-freadptr.sh: Also test non-seekable stdin.
18138
18139 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
18140
18141         * build-aux/bootstrap (source_base, m4_base)
18142         (doc_base, tests_base): New variables.
18143         (gnulib_tool_options): Do not hardcode base directories, use
18144         the above variables instead.
18145
18146 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
18147
18148         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
18149
18150 2008-02-28  Bruno Haible  <bruno@clisp.org>
18151
18152         * modules/freadptr-tests: New file.
18153         * tests/test-freadptr.sh: New file.
18154         * tests/test-freadptr.c: New file.
18155
18156         New module 'freadptr'.
18157         * modules/freadptr: New file.
18158         * lib/freadptr.h: New file.
18159         * lib/freadptr.c: New file.
18160         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
18161
18162 2008-02-26  Karl Berry  <karl@freefriends.org>
18163
18164         Sync from Libtool:
18165         * libltdl/argz.c (argz_add, argz_count): New functions.
18166         * libltdl/argz.in.h: Declare them.
18167         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
18168
18169 2008-02-22  Bruno Haible  <bruno@clisp.org>
18170
18171         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
18172         is a pointer type.  Needed for HP-UX 10.
18173         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
18174         * doc/posix-functions/gmtime_r.texi: Likewise.
18175         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
18176
18177 2008-02-24  Bruno Haible  <bruno@clisp.org>
18178
18179         * modules/environ-tests: New file.
18180         * tests/test-environ.c: New file.
18181
18182         New module 'environ'.
18183         * modules/environ: New file.
18184         * lib/unistd.in.h (environ): New declaration.
18185         * m4/environ.m4: New file.
18186         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
18187         after use.
18188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
18189         HAVE_DECL_ENVIRON.
18190         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
18191         HAVE_DECL_ENVIRON.
18192         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
18193         wrong claim that 'environ' is missing on some systems.
18194         * modules/execute (Depends-on): Add environ.
18195         * lib/execute.c (environ): Remove fallback declaration.
18196         * modules/pipe (Depends-on): Add environ.
18197         * lib/pipe.c (environ): Remove fallback declaration.
18198         * modules/setenv (Depends-on): Add environ.
18199         * lib/setenv.c (environ): Remove fallback declaration.
18200         * modules/unsetenv (Depends-on): Add environ.
18201         * lib/unsetenv.c (environ): Remove fallback declaration.
18202         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
18203         m4/environ.m4.
18204         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
18205         (gl_PREREQ_UNSETENV): Likewise.
18206
18207 2008-02-24  Bruno Haible  <bruno@clisp.org>
18208
18209         * doc/posix-functions/environ.texi: Document the MacOS X problem.
18210
18211 2008-02-20  Bob Proulx  <bob@proulx.com>
18212
18213         Enable use of older two part flavor 'git describe'.
18214         * build-aux/git-version-gen: If using the older two part flavor of
18215         git version then recreate the third part now present in the
18216         newer three part flavor of git describe.
18217
18218 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
18219
18220         * lib/fts.c (fts_build): Typo correction to comment.
18221
18222 2008-02-17  Bruno Haible  <bruno@clisp.org>
18223
18224         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
18225         generating no-op conflicts.
18226
18227 2008-02-17  Bruno Haible  <bruno@clisp.org>
18228
18229         Speed up by 10%.
18230         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
18231         result_entries, rather than an index-based loop.
18232
18233 2008-02-17  Bruno Haible  <bruno@clisp.org>
18234
18235         Speed up by 25%.
18236         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
18237         'hashcode_cached'.
18238         (entry_create): New function.
18239         (entry_hashcode): Use the cached hashcode if possible.
18240         (read_changelog_file, try_split_merged_entry): Use entry_create.
18241
18242 2008-02-17  Bruno Haible  <bruno@clisp.org>
18243
18244         Speed up from O(n^2) to O(n) for long ChangeLog files.
18245         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
18246         (read_changelog_file): Change implementation of entries_reversed list
18247         to rbtreehash.
18248         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
18249
18250 2008-02-17  Bruno Haible  <bruno@clisp.org>
18251
18252         New option --split-merged-entry.
18253         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
18254         (find_paragraph_end, try_split_merged_entry): New functions.
18255         (long_options): Add option --split-merged-entry.
18256         (usage): Document option --split-merged-entry.
18257         (main): Implement option --split-merged-entry.
18258         Reported by Eric Blake.
18259
18260 2008-02-17  Bruno Haible  <bruno@clisp.org>
18261
18262         * lib/git-merge-changelog.c: Include c-strstr.h.
18263         (main): Support the "git pull --rebase" situation.
18264         * modules/git-merge-changelog (Depends-on): Add c-strstr.
18265         Reported by Eric Blake.
18266
18267 2008-02-16  Eric Blake  <ebb9@byu.net>
18268
18269         Avoid doubling \ in common case of "c-maybe" quoting style.
18270         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
18271         eliding outer quotes.
18272         * lib/quotearg.h: Document this.
18273         * tests/test-quotearg.c (result_strings, inputs, results_g)
18274         (flag_results, locale_results): Test it by adding a new string to
18275         each test group.
18276         (compare_strings): Test new string.
18277
18278 2008-02-13  Eric Blake  <ebb9@byu.net>
18279
18280         Avoid trigraph quoting in default output.
18281         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
18282         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
18283         unless explicitly requested.
18284         * tests/test-quotearg.c (flag_results, main): Add additional tests.
18285
18286 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
18287
18288         Don't rely on signed integer overflowing to negative value.
18289         * lib/getugroups.c (getugroups): Include <limits.h>.
18290         Instead, compare against INT_MAX, and increment only if the test passes.
18291
18292 2008-02-13  Jim Meyering  <meyering@redhat.com>
18293         and Eric Blake  <ebb9@byu.net>
18294
18295         Avoid shadowing warning and compile errors on Linux.
18296         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
18297         forwarding macros on Linux.
18298         (dcgettext): Define a stub, for Linux.
18299         (results_g, main): Avoid warnings.
18300
18301 2008-02-12  Eric Blake  <ebb9@byu.net>
18302
18303         Silence warning in last patch.
18304         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
18305
18306         Quotearg part 4: add tests, fix c-maybe colon quoting.
18307         * lib/quotearg.h: Improve documentation.
18308         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
18309         escapes when adding outer quotes.  When quoting trigraphs, use
18310         valid C notation.  When quoting NUL, omit extra characters if next
18311         character is not digit.  Alter prototype.
18312         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
18313         callers.
18314         * modules/quotearg-tests: New module.
18315         * tests/test-quotearg.c: New test.
18316
18317 2008-02-07  Eric Blake  <ebb9@byu.net>
18318
18319         Quotearg part 3: add flag to control outer quote elision.
18320         * lib/quotearg.h (c_maybe_quoting_style): New style.
18321         (enum quoting_flags): Better documentation of flags.
18322         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
18323         c-maybe style.
18324         (quotearg_buffer_restyled): Handle new flag to elide outer
18325         quotes.
18326
18327         Quotearg part 2: add flag that can control NUL elision.
18328         * lib/quotearg.h (set_quoting_flags): New prototype.
18329         * lib/quotearg.c (struct quoting_options): Add flag field.
18330         (set_quoting_flags): New function.
18331         (quotearg_buffer_restyled): Add flags parameter.
18332         (quotearg_alloc_mem): Set the flag if length cannot be returned.
18333         (quotearg_n_options): Set the flag, since length cannot be
18334         returned.
18335         (quoting_options_from_style): Default flags correctly.
18336
18337         Quotearg part 1: more wrappers, restore quotearg_char state.
18338         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
18339         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
18340         (quotearg_colon_mem): New wrappers.
18341         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
18342         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
18343         functions.
18344         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
18345         (quotearg_colon_mem): New functions.
18346
18347 2008-02-11  Bruno Haible  <bruno@clisp.org>
18348
18349         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
18350         library in the current directory: it does not work with parallel make.
18351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18352
18353 2008-02-11  Bruno Haible  <bruno@clisp.org>
18354
18355         * .gitattributes: New file.
18356
18357 2008-02-11  Jim Meyering  <meyering@redhat.com>
18358
18359         useless-if-before-free: Fix reversed exit values.
18360         * build-aux/useless-if-before-free: Use correct values
18361         for EXIT_MATCH and EXIT_NO_MATCH.
18362
18363         * build-aux/useless-if-before-free: Close stdout carefully.
18364
18365 2008-02-10  Bruno Haible  <bruno@clisp.org>
18366
18367         New module 'git-merge-changelog'.
18368         * modules/git-merge-changelog: New file.
18369         * lib/git-merge-changelog.c: New file.
18370
18371 2008-02-10  Jim Meyering  <meyering@redhat.com>
18372
18373         useless-if-before-free: New option: --list (-l).
18374
18375         useless-if-before-free: Don't exit immediately upon open failure.
18376         * build-aux/useless-if-before-free: Exit 2 for errors.
18377         Upon failure to open a file, don't exit immediately.
18378         Rather, just warn and continue with any remaining files.
18379
18380 2008-02-10  Bruno Haible  <bruno@clisp.org>
18381
18382         New abstract list operation 'node_set_value'.
18383         * lib/gl_list.h (gl_list_node_set_value): New function.
18384         (struct gl_list_implementation): New field node_set_value.
18385         * lib/gl_list.c (gl_list_node_set_value): New function.
18386         * lib/gl_array_list.c (gl_array_node_set_value): New function.
18387         (gl_array_list_implementation): Update.
18388         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
18389         (gl_carray_list_implementation): Update.
18390         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
18391         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18392         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18393         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
18394         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18395         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18396         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18397         Update.
18398         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18399         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
18400         (gl_sublist_list_implementation): Update.
18401
18402 2008-02-10  Bruno Haible  <bruno@clisp.org>
18403
18404         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
18405         Needed when ELEMENT is #defined to 'some_type *'.
18406
18407 2008-02-10  Jim Meyering  <meyering@redhat.com>
18408
18409         New script and module: useless-if-before-free
18410         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
18411         * build-aux/useless-if-before-free: New file.
18412         * modules/useless-if-before-free: New file.
18413
18414         * build-aux/gitlog-to-changelog: Use committer date, not author date.
18415
18416         xstrtol_error: Fix typo.
18417         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
18418         s/exit_failure/exit_status/.
18419
18420 2008-02-09  Jim Meyering  <meyering@redhat.com>
18421
18422         New script and module: gitlog-to-changelog
18423         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
18424         * modules/gitlog-to-changelog: New file.
18425         * build-aux/gitlog-to-changelog: New file.
18426
18427 2008-02-08  Jim Meyering  <meyering@redhat.com>
18428
18429         Avoid two "parameter unused" warnings.
18430         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
18431         Mark "st" as used.
18432
18433         Use "git COMMAND", not "git-COMMAND".
18434         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
18435         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
18436         * build-aux/git-version-gen: Use "git status", not "git-status".
18437
18438 2008-02-07  Bruno Haible  <bruno@clisp.org>
18439
18440         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
18441         Avoids a crash on Windows Vista.
18442         Reported by Adam Strzelecki <ono@java.pl> via
18443         Simon Josefsson <simon@josefsson.org>.
18444
18445 2008-02-06  Bruno Haible  <bruno@clisp.org>
18446
18447         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
18448         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
18449         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
18450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
18451         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18453         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
18454         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
18455         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18462         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
18463         left-adjust flag.
18464         * tests/test-snprintf-posix.h (test_function): Likewise.
18465         * tests/test-sprintf-posix.h (test_function): Likewise.
18466         * tests/test-vasprintf-posix.c (test_function): Likewise.
18467         * doc/posix-functions/fprintf.texi: Update.
18468         * doc/posix-functions/printf.texi: Update.
18469         * doc/posix-functions/snprintf.texi: Update.
18470         * doc/posix-functions/sprintf.texi: Update.
18471         * doc/posix-functions/vfprintf.texi: Update.
18472         * doc/posix-functions/vprintf.texi: Update.
18473         * doc/posix-functions/vsnprintf.texi: Update.
18474         * doc/posix-functions/vsprintf.texi: Update.
18475         Reported by Peter Fales <psfales@alcatel-lucent.com>.
18476
18477 2008-02-06  Bruno Haible  <bruno@clisp.org>
18478
18479         Fix bug introduced on 2008-01-26.
18480         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
18481
18482 2008-02-06  Bruno Haible  <bruno@clisp.org>
18483
18484         Fix bug introduced on 2007-06-10.
18485         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
18486         !NEED_PRINTF_FLAG_ZERO.
18487
18488 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
18489
18490         getloadavg: use libperfstat on AIX5
18491         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
18492
18493 2008-02-03  Bruno Haible  <bruno@clisp.org>
18494
18495         * lib/diffseq.h: Add comments about required #includes.
18496         Reported by Michael Biggs <gnulib@doubleplum.net>.
18497
18498 2008-02-01  Bruno Haible  <bruno@clisp.org>
18499
18500         * users.txt: Add gnuit.
18501
18502 2008-01-31  Bruno Haible  <bruno@clisp.org>
18503
18504         * lib/md4.c (set_uint32): Mark as inline.
18505         * lib/md5.c (set_uint32): Likewise.
18506         * lib/sha1.c (set_uint32): Likewise.
18507         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
18508         * m4/md5.m4 (gl_MD5): Likewise.
18509         * m4/sha1.m4 (gl_SHA1): Likewise.
18510
18511 2008-01-31  Jim Meyering  <meyering@redhat.com>
18512
18513         Use "sizeof VAR", rather than a literal "4".
18514         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
18515         * lib/md4.c (md4_read_ctx): Likewise.
18516         * lib/sha1.c (sha1_read_ctx): Likewise.
18517
18518 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18519
18520         * tests/test-sha1.c: New file, based on test-md5.c.
18521
18522         * modules/crypto/sha1-tests: New file.
18523
18524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18525
18526         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
18527
18528 2008-01-31  Jim Meyering  <meyering@redhat.com>
18529
18530         Prefer "sizeof v" over the equivalent "4".
18531         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
18532         * lib/md5.c (set_uint32): Likewise.
18533         * lib/sha1.c (set_uint32): Likewise.
18534
18535 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18536
18537         * lib/sha1.c (set_uint32): Mark function as static.
18538
18539 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18540
18541         md2: clarify comments to say that alignment is not required.
18542         * lib/md2.h: Remove warning about alignment in comment.
18543         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
18544         never been required.
18545
18546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18547
18548         md4: adapt alignment constraint fix from sha1.
18549         * lib/md4.c (set_uint32): New function, from sha1.c
18550         (md4_read_ctx): Use it.
18551         (md4_finish_ctx): Doc fix.
18552         * lib/md4.h: Doc fix.
18553
18554 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18555
18556         md5: adapt alignment constraint fix from sha1.
18557         * lib/md5.c (set_uint32): New function, from sha1.c
18558         (md5_read_ctx): Use it.
18559         (md5_finish_ctx): Doc fix.
18560         * lib/md5.h: Doc fix.
18561
18562 2008-01-30  Peter Palfrader  <weasel@debian.org>
18563
18564         sha1: remove the result buffer alignment constraint
18565         * lib/sha1.c (set_uint32): New function.
18566         (sha1_read_ctx): Rewrite to remove the result buffer alignment
18567         constraint.
18568         (sha1_finish_ctx): Remove comment warning about alignment constraint.
18569         * lib/sha1.h: Likewise.
18570
18571 2008-01-30  Andreas Schwab  <schwab@suse.de>
18572             Bruno Haible  <bruno@clisp.org>
18573
18574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
18575         correct definition of LDBL_MIN_EXP.
18576
18577 2008-01-30  Karl Berry  <karl@gnu.org>
18578
18579         * config/srclist-update: try to preserve x bit on updates.
18580         * config/srclistvars.sh: update for karl.
18581
18582 2008-01-29  Jim Meyering  <meyering@redhat.com>
18583
18584         vasnprintf.c: Avoid warning about unused label
18585         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
18586         "overflow" label definition and associated code with the
18587         same cpp condition that guards the sole use of that label.
18588
18589 2008-01-26  Bruno Haible  <bruno@clisp.org>
18590
18591         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
18592         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
18593         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
18594         * lib/isnanl-nolibm.h (isnanl): Likewise.
18595         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18596
18597 2008-01-26  Bruno Haible  <bruno@clisp.org>
18598
18599         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
18600         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
18601
18602 2008-01-26  Bruno Haible  <bruno@clisp.org>
18603
18604         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
18605         GCC >= 4.0 built-in.
18606         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
18607
18608 2008-01-26  Bruno Haible  <bruno@clisp.org>
18609
18610         Rename isnan, applicable to 'double' only, to isnand.
18611         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
18612         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
18613         (configure.ac): Update.
18614         (Include): Replace "isnan.h" with "isnand.h".
18615         * m4/isnand.m4: Renamed from m4/isnan.m4.
18616         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
18617         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
18618         instead of isnan.c.
18619         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
18620         instead of HAVE_ISNAN_IN_LIBC.
18621         (isnand): Renamed from isnan.
18622         * lib/isnand.c: New file.
18623         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
18624         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
18625         (Makefile.am): Update.
18626         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
18627         Include isnand.h instead of isnan.h.
18628         (main): Test isnand instead of isnan.
18629         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
18630         isnan-nolibm.
18631         * modules/frexp (Depends-on): Likewise.
18632         * modules/frexp-tests (Depends-on): Likewise.
18633         * modules/frexp-nolibm (Depends-on): Likewise.
18634         * modules/frexp-nolibm-tests (Depends-on): Likewise.
18635         * modules/isfinite (Depends-on): Likewise.
18636         * modules/round-tests (Depends-on): Likewise.
18637         * modules/signbit (Depends-on): Likewise.
18638         * modules/signbit-tests (Depends-on): Likewise.
18639         * modules/snprintf-posix (Depends-on): Likewise.
18640         * modules/sprintf-posix (Depends-on): Likewise.
18641         * modules/trunc-tests (Depends-on): Likewise.
18642         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18643         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18644         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18645         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18646         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18647         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18648         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18649         * modules/vasnprintf-posix (Depends-on): Likewise.
18650         * modules/vasprintf-posix (Depends-on): Likewise.
18651         * modules/vfprintf-posix (Depends-on): Likewise.
18652         * modules/vsnprintf-posix (Depends-on): Likewise.
18653         * modules/vsprintf-posix (Depends-on): Likewise.
18654         * lib/frexp.c: Include isnand.h instead of isnan.h.
18655         (ISNAN): Set to isnand instead of isnan.
18656         * lib/isfinite.c: Include isnand.h instead of isnan.h.
18657         (gl_isfinited): Use isnand instead of isnan.
18658         * lib/signbitd.c: Include isnand.h instead of isnan.h.
18659         (gl_signbitd): Use isnand instead of isnan.
18660         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
18661         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
18662         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
18663         (main): Use isnand instead of isnan.
18664         * tests/test-round1.c: Include isnand.h.
18665         (main): Use isnand instead of isnan.
18666         * tests/test-round2.c: Include isnand.h instead of isnan.h.
18667         (ISNAN): Set to isnand instead of isnan.
18668         * tests/test-trunc1.c: Include isnand.h.
18669         (main): Use isnand instead of isnan.
18670         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
18671         (equal): Use isnand instead of isnan.
18672         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
18673         isnand-nolibm.
18674         * NEWS: Mention the change.
18675
18676 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18677             Bruno Haible  <bruno@clisp.org>
18678
18679         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
18680         the GCC builtins for signbits are present and set
18681         REPLACE_SIGNBIT_USING_GCC if so.
18682         * lib/math.in.h (signbit): Define using GCC builtins if
18683         REPLACE_SIGNBIT_USING_GCC is set.
18684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
18685         REPLACE_SIGNBIT_USING_GCC.
18686         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
18687
18688 2008-01-25  Jim Meyering  <meyering@redhat.com>
18689
18690         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
18691         * lib/poll.c: Include <config.h>, not "config.h".
18692         * tests/test-getaddrinfo.c: Likewise.
18693
18694 2008-01-25  Simon Josefsson  <simon@josefsson.org>
18695
18696         * modules/sockets-tests: New file.
18697
18698 2008-01-24  Simon Josefsson  <simon@josefsson.org>
18699
18700         * modules/sockets: New module, can be used to call WSA_Startup and
18701         WSA_Cleanup when needed.
18702
18703         * lib/sockets.h, lib/sockets.c: New files.
18704
18705         * m4/sockets.m4: New file.
18706
18707         * tests/test-sockets.c: New file.
18708
18709 2008-01-19  Bruno Haible  <bruno@clisp.org>
18710
18711         * doc/posix-headers: Renamed from doc/headers.
18712         * doc/posix-functions: Renamed from doc/functions.
18713         * doc/gnulib.texi: Update.
18714
18715 2008-01-19  Bruno Haible  <bruno@clisp.org>
18716
18717         * doc/glibc-functions/strcasestr.texi: Include contents of
18718         doc/functions/strcasestr.texi, fixing the list of platforms.
18719         * doc/functions/strcasestr.texi: Remove file.
18720
18721 2008-01-19  Bruno Haible  <bruno@clisp.org>
18722
18723         * doc/glibc-functions/memmem.texi: Include contents of
18724         doc/functions/memmem.texi.
18725         * doc/functions/memmem.texi: Remove file.
18726
18727 2008-01-18  Bruno Haible  <bruno@clisp.org>
18728
18729         * doc/glibc-functions/*.texi: New files.
18730         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
18731         to use the new files.
18732
18733 2008-01-17  Bruno Haible  <bruno@clisp.org>
18734
18735         * tests/test-gethostname.c (main): Fix printf statement.
18736
18737 2008-01-17  Simon Josefsson  <simon@josefsson.org>
18738
18739         * modules/gethostname-tests: New file.
18740
18741         * tests/test-gethostname.c: New file.
18742
18743 2008-01-17  Simon Josefsson  <simon@josefsson.org>
18744
18745         * lib/gethostname.c: Include string.h unconditionally, strncpy is
18746         used by the UNAME case.  Reported by Bruno Haible
18747         <bruno@clisp.org>.
18748
18749 2008-01-17  Eric Blake  <ebb9@byu.net>
18750
18751         Convert c-strcasestr to be more efficient.
18752         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
18753         (Depends-on): Add c-strcase, remove malloca, strnlen.
18754         * tests/test-c-strcasestr.c (main): Enhance test.
18755         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
18756
18757 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18758
18759         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
18760         Use it in creating po/Makevars.
18761
18762 2008-01-15  Simon Josefsson  <simon@josefsson.org>
18763
18764         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
18765         Applications that requires it should initialize libgcrypt
18766         manually.
18767
18768 2008-01-16  Simon Josefsson  <simon@josefsson.org>
18769
18770         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
18771
18772 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18773
18774         Fix problem with getdate on mingw32 reported by Simon Josefsson
18775         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
18776         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
18777         tzname", when deciding whether to declare tzname.
18778         * lib/strftime.c (tzname): Likewise.
18779
18780 2008-01-15  Bruno Haible  <bruno@clisp.org>
18781
18782         Work around a MacOS X 10.5 bug in frexpl().
18783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
18784         * doc/functions/frexpl.texi: Document the bug.
18785         Reported by Elias Pipping <pipping@gentoo.org>.
18786
18787 2008-01-14  Eric Blake  <ebb9@byu.net>
18788
18789         Touch up previous patch.
18790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
18791         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
18792
18793         Convert strcasestr module to use Two-Way algorithm.
18794         * modules/strcasestr-simple: New module, based on the old
18795         strcasestr, but with Two-Way rather than KMP.
18796         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
18797         * lib/string.in.h (rpl_strcasestr): Declare.
18798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
18799         performance.
18800         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
18801         * modules/string (Makefile.am): Support strcasestr.
18802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18803         * modules/strcasestr-tests (Depends-on): Check for alarm.
18804         * tests/test-strcasestr.c: Augment test.
18805         * lib/str-two-way.h: Clean up stray macro.
18806         * NEWS: Document new module.
18807         * MODULES.html.sh (string handling): Likewise.
18808         * doc/functions/strcasestr.texi: New file.
18809         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
18810         here, since it is not a POSIX function.
18811
18812 2008-01-14  Colin Watson  <cjwatson@debian.org>
18813             Bruno Haible  <bruno@clisp.org>
18814
18815         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
18816         works fine; if not, set REPLACE_STRSIGNAL.
18817         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
18818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18819         REPLACE_STRSIGNAL.
18820         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
18821         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
18822         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
18823
18824 2008-01-14  Bruno Haible  <bruno@clisp.org>
18825
18826         * modules/strsignal (Include): Change to <string.h>.
18827
18828 2008-01-14  Colin Watson  <cjwatson@debian.org>
18829
18830         * modules/argp (Notice): Add a notice recommending to change
18831         XGETTEXT_OPTIONS.
18832         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
18833
18834 2008-01-13  Colin Watson  <cjwatson@debian.org>
18835
18836         * modules/strsignal-tests: New file.
18837         * tests/test-strsignal.c: New file.
18838
18839         * lib/strsignal.c: New file, from glibc with modifications.
18840         * lib/siglist.h: New file, from glibc with modifications.
18841         * lib/string.in.h (strsignal): New declaration.
18842         * m4/strsignal.m4: New file.
18843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18844         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
18845         * modules/strsignal: New file.
18846         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
18847         HAVE_DECL_STRSIGNAL.
18848
18849 2008-01-13  Bruno Haible  <bruno@clisp.org>
18850
18851         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
18852         locale encoding is not ASCII. Needed for OpenBSD 4.0.
18853         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18854         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18855
18856 2008-01-13  Bruno Haible  <bruno@clisp.org>
18857
18858         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
18859         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
18860         * lib/argp.h (__attribute__): Likewise.
18861         * lib/c-stack.c (__attribute__): Likewise.
18862         * lib/error.h (__attribute__): Likewise.
18863         * lib/fts.c (__attribute__): Likewise.
18864         * lib/openat.h (__attribute__): Likewise.
18865         * lib/stdio.in.h (__attribute__): Likewise.
18866         * lib/string.in.h (__attribute__): Likewise.
18867         * lib/utimens.c (__attribute__): Likewise.
18868         * lib/vasnprintf.h (__attribute__): Likewise.
18869         * lib/xalloc.h (__attribute__): Likewise.
18870         * lib/xprintf.h (__attribute__): Likewise.
18871         * lib/xstrtol.h (__attribute__): Likewise.
18872         * lib/xvasprintf.h (__attribute__): Likewise.
18873
18874 2008-01-12  Bruno Haible  <bruno@clisp.org>
18875
18876         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
18877         * doc/glibc-headers/a.out.texi: New file.
18878         * doc/glibc-headers/aliases.texi: New file.
18879         * doc/glibc-headers/alloca.texi: New file.
18880         * doc/glibc-headers/ar.texi: New file.
18881         * doc/glibc-headers/argp.texi: New file.
18882         * doc/glibc-headers/argz.texi: New file.
18883         * doc/glibc-headers/byteswap.texi: New file.
18884         * doc/glibc-headers/crypt.texi: New file.
18885         * doc/glibc-headers/endian.texi: New file.
18886         * doc/glibc-headers/envz.texi: New file.
18887         * doc/glibc-headers/err.texi: New file.
18888         * doc/glibc-headers/error.texi: New file.
18889         * doc/glibc-headers/execinfo.texi: New file.
18890         * doc/glibc-headers/fpu_control.texi: New file.
18891         * doc/glibc-headers/fstab.texi: New file.
18892         * doc/glibc-headers/fts.texi: New file.
18893         * doc/glibc-headers/getopt.texi: New file.
18894         * doc/glibc-headers/ieee754.texi: New file.
18895         * doc/glibc-headers/ifaddrs.texi: New file.
18896         * doc/glibc-headers/libintl.texi: New file.
18897         * doc/glibc-headers/mcheck.texi: New file.
18898         * doc/glibc-headers/mntent.texi: New file.
18899         * doc/glibc-headers/obstack.texi: New file.
18900         * doc/glibc-headers/paths.texi: New file.
18901         * doc/glibc-headers/printf.texi: New file.
18902         * doc/glibc-headers/pty.texi: New file.
18903         * doc/glibc-headers/resolv.texi: New file.
18904         * doc/glibc-headers/shadow.texi: New file.
18905         * doc/glibc-headers/sysexits.texi: New file.
18906         * doc/glibc-headers/ttyent.texi: New file.
18907
18908 2008-01-12  Jim Meyering  <meyering@redhat.com>
18909
18910         announce-gen: emit Gnulib's git-based version string.
18911         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
18912         New option --gnulib-version=V, where V is expected to be
18913         the output of running git describe in the gnulib directory.
18914         (get_tool_versions): Request feedback on xdelta.  I suspect it's
18915         not useful, and plan to stop publishing an xdelta file with each
18916         coreutils release.
18917
18918         * build-aux/announce-gen: Also check for lzma-compressed files.
18919
18920 2008-01-11  Bruno Haible  <bruno@clisp.org>
18921
18922         * tests/test-memmem.c (main): Increase maximum allowed time.
18923         * tests/test-strstr.c (main): Likewise.
18924
18925 2008-01-11  Bruno Haible  <bruno@clisp.org>
18926
18927         * doc/functions/memmem.texi: Add more precisions about platforms.
18928         * doc/functions/strstr.texi: Likewise.
18929
18930 2008-01-10  Eric Blake  <ebb9@byu.net>
18931
18932         * m4/strstr.m4: Delete cruft from copy-n-paste.
18933         Reported by Bruno Haible.
18934
18935 2008-01-10  Bruno Haible  <bruno@clisp.org>
18936
18937         Make c-strstr rely on strstr.
18938         * lib/c-strstr.c: Don't include str-kmp.h.
18939         (c_strstr): Define in terms of strstr.
18940         * modules/c-strstr (Files): Remove lib/str-kmp.h.
18941         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
18942
18943 2008-01-10  Bruno Haible  <bruno@clisp.org>
18944
18945         * doc/gnulib.texi (String Functions in C Locale): New section.
18946         * doc/c-ctype.texi: New file.
18947         * doc/c-strcase.texi: New file.
18948         * doc/c-strcaseeq.texi: New file.
18949         * doc/c-strcasestr.texi: New file.
18950         * doc/c-strstr.texi: New file.
18951         * doc/c-strtod.texi: New file.
18952         * doc/c-strtold.texi: New file.
18953
18954 2008-01-10  Eric Blake  <ebb9@byu.net>
18955
18956         * lib/relocatable.h: Fix a comment.
18957
18958 2008-01-10  Eric Blake  <ebb9@byu.net>
18959
18960         Share two-way algorithm.
18961         * lib/str-two-way.h: New file, merged from...
18962         * lib/memmem.c: ...here...
18963         * lib/strstr.c: ...and here.
18964         * modules/memmem (Files): Use it.
18965         * modules/strstr (Files): Likewise.
18966
18967         Avoid quadratic strstr implementations.
18968         * lib/strstr.c: New file.
18969         * m4/strstr.m4: Likewise.
18970         * modules/strstr: Likewise.
18971         * modules/strstr-tests: Likewise.
18972         * tests/test-strstr.c: Likewise.
18973         * lib/string.in.h (rpl_strstr): Declare.
18974         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
18975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
18976         * modules/string (Makefile.am): Likewise.
18977         * MODULES.html.sh (string handling): Mention new module.
18978         * doc/functions/strstr.texi (strstr): Document the bug.
18979
18980 2008-01-10  Bruno Haible  <bruno@clisp.org>
18981
18982         * lib/relocatable.h (relocate): State whether result is freshly
18983         allocated or not.
18984         * lib/relocatable.c (relocate): Return a freshly allocated string
18985         instead of a pointer to a privately held string.
18986         Reported by Sylvain Beucler <beuc@gnu.org>.
18987
18988 2008-01-10  Colin Watson  <cjwatson@debian.org>
18989
18990         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
18991         s/S_ISNLK/S_ISLNK/.
18992
18993 2008-01-09  Bruno Haible  <bruno@clisp.org>
18994
18995         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
18996         and other files.
18997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
18998         if it's only a guess.
18999         * modules/memmem: Simplify by depending on memmem-simple.
19000
19001 2008-01-09  Bruno Haible  <bruno@clisp.org>
19002
19003         Work around OpenBSD 4.0 tdelete() bug.
19004         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
19005         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
19006         macros and don't redefine the enum values.
19007         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
19008         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
19009         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
19010
19011 2008-01-09  Bruno Haible  <bruno@clisp.org>
19012
19013         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
19014         (main): Don't perform the tests if setlocale did not install a UTF-8
19015         locale. Needed on OpenBSD 4.0.
19016         * modules/wcwidth-tests (Depends-on): Add localcharset.
19017
19018 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19019
19020         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
19021         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
19022         * NEWS: announce this.
19023         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
19024
19025 2008-01-09  Simon Josefsson  <simon@josefsson.org>
19026         and Eric Blake  <ebb9@byu.net>
19027
19028         Add memmem-simple module.
19029         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
19030         (gl_FUNC_MEMMEM): Separate performance from presence checks.
19031         * modules/memmem-simple: New file.
19032         * modules/memmem (Description): Tweak.
19033         * MODULES.html.sh (string handling): Mention new module.
19034         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
19035         addressed by memmem-simple.
19036         * NEWS: Document the difference.
19037
19038 2008-01-09  Eric Blake  <ebb9@byu.net>
19039
19040         Give gcc some memmem optimization hints.
19041         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
19042         (strcasestr): Declare as pure.
19043         * modules/memmem (Maintainer): Claim my implementation.
19044
19045 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19046
19047         Support AIX 6.1 and higher.
19048         * build-aux/config.libpath: Likewise.
19049         * build-aux/config.rpath: Likewise.
19050
19051 2008-01-08  Jim Meyering  <meyering@redhat.com>
19052             Bruno Haible  <bruno@clisp.org>
19053
19054         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
19055         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
19056         Reported by Peter Fales in
19057         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
19058
19059 2008-01-08  Bruno Haible  <bruno@clisp.org>
19060
19061         * modules/unictype/category-of (Depends-on): Add
19062         unictype/category-none.
19063         * modules/unictype/category-and-tests (Depends-on): Add
19064         unictype/category-{L,N,Lu,Nd}.
19065         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
19066         * modules/unictype/category-or-tests (Depends-on): Add
19067         unictype/category-{L,N}.
19068         * modules/unictype/category-name-tests (Depends-on): Add
19069         unictype/category-{Z,Nl}.
19070         Reported by Simon Josefsson.
19071
19072 2008-01-08  Bruno Haible  <bruno@clisp.org>
19073
19074         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
19075         convention better.
19076         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
19077         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
19078         Reported by Peter Miller <millerp@canb.auug.org.au>.
19079
19080 2008-01-08  Eric Blake  <ebb9@byu.net>
19081
19082         Rewrite memmem to guarantee linear complexity without malloc.
19083         * lib/memmem.c (memmem): Use Two-Way rather than
19084         Knuth-Morris-Pratt, to allow O(1) space usage.
19085         (critical_factorization, two_way_short_needle)
19086         (two_way_long_needle): New functions.
19087         (knuth_morris_pratt): Delete.
19088         * modules/memmem (Depends-on): No longer need malloca or stdbool.
19089         Add stdint.
19090         * tests/test-memmem.c (main): Add tests for periodic needle and
19091         sublinear performance.
19092         * doc/functions/memmem.texi (memmem): Document other deficiencies
19093         in cygwin and older glibc.
19094
19095 2008-01-08  Bruno Haible  <bruno@clisp.org>
19096
19097         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
19098         augmentation.
19099
19100 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
19101
19102         Add a configure time option: --disable-acl.
19103         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
19104         AC_ARG_ENABLE(acl).
19105
19106 2008-01-06  Simon Josefsson  <simon@josefsson.org>
19107
19108         * tests/test-localename.c: Don't include obsolete "setenv.h".
19109
19110         * modules/localename-tests (Depends-on): Need unsetenv.
19111
19112 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19113
19114         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
19115
19116 2008-01-06  Colin Watson  <cjwatson@debian.org>
19117
19118         * users.txt: Add man-db.
19119
19120 2008-01-07  Bruno Haible  <bruno@clisp.org>
19121
19122         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
19123         previous section name.
19124
19125 2008-01-07  Bruno Haible  <bruno@clisp.org>
19126
19127         * lib/progname.c (set_program_name): Don't strip off a leading
19128         "lt-" prefix outside a .libs directory.
19129         Suggested by Paul Eggert.
19130
19131 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
19132             Bruno Haible  <bruno@clisp.org>
19133
19134         Improve memory cleanup in 'relocatable' module.
19135         * lib/relocatable.h (compute_curr_prefix): Change return type to
19136         'char *'.
19137         * lib/relocatable.c (compute_curr_prefix): Change return type to
19138         'char *'. Free curr_installdir after use.
19139         (relocate): Free curr_prefix_better after use.
19140         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
19141
19142 2008-01-01  Bruno Haible  <bruno@clisp.org>
19143
19144         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
19145         failure on older glibc systems.
19146         Reported by Peter Fales <psfales@alcatel-lucent.com>.
19147
19148 2008-01-05  Eric Blake  <ebb9@byu.net>
19149
19150         Avoid quadratic system memmem.
19151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
19152         Reported by Ralf Wildenhues.
19153
19154         Fix memmem test for mingw.
19155         * modules/memmem-tests (configure.ac): Check for alarm.
19156         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
19157         it.
19158         * doc/functions/memmem.texi: New file.
19159         * doc/gnulib.texi (Function Substitutes): Add memmem.
19160         Reported by Bruno Haible.
19161
19162 2008-01-04  Bruno Haible  <bruno@clisp.org>
19163
19164         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
19165         Require gl_HEADER_STRINGS_H_DEFAULTS, not
19166         gl_HEADER_STRING_H_DEFAULTS.
19167
19168 2008-01-04  Eric Blake  <ebb9@byu.net>
19169
19170         Shorten duration of memmem test.
19171         * tests/test-memmem.c (main): Use alarm to declare failure if test
19172         is taking too long.
19173         Reported by Ralf Wildenhues.
19174
19175 2007-12-21  Simon Josefsson  <simon@josefsson.org>
19176
19177         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
19178         string, needed by strerror.
19179
19180 2008-01-03  Colin Watson  <cjwatson@debian.org>
19181             Bruno Haible  <bruno@clisp.org>
19182
19183         * doc/gnulib-tool.texi (Localization): New section.
19184
19185 2008-01-02  Bruno Haible  <bruno@clisp.org>
19186
19187         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
19188         variables to 'unsigned char *' type.
19189         Reported by Paul Eggert.
19190
19191 2008-01-02  Jim Meyering  <jim@meyering.net>
19192
19193         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
19194
19195 2007-12-31  Jim Meyering  <jim@meyering.net>
19196
19197         Avoid use of private FTS type name.
19198         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
19199
19200 2007-12-30  Karl Berry  <karl@gnu.org>
19201
19202         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
19203         work around defect in Texinfo and/or the standalone Info browser.
19204
19205 2007-12-30  Bruno Haible  <bruno@clisp.org>
19206
19207         Unify 5 copies of the KMP code.
19208         * lib/str-kmp.h: New file.
19209         * lib/c-strcasestr.c: Include str-kmp.h.
19210         (knuth_morris_pratt): Remove function.
19211         (c_strcasestr): Update.
19212         * lib/c-strstr.c: Include str-kmp.h.
19213         (knuth_morris_pratt): Remove function.
19214         (c_strcasestr): Update.
19215         * lib/mbscasestr.c: Include str-kmp.h.
19216         (knuth_morris_pratt_unibyte): Remove function.
19217         * lib/mbsstr.c: Include str-kmp.h.
19218         (knuth_morris_pratt_unibyte): Remove function.
19219         * lib/strcasestr.c: Include str-kmp.h.
19220         (knuth_morris_pratt): Remove function.
19221         (strcasestr): Update.
19222         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
19223         * modules/c-strstr (Files): Likewise.
19224         * modules/mbscasestr (Files): Likewise.
19225         * modules/mbsstr (Files): Likewise.
19226         * modules/strcasestr (Files): Likewise.
19227         Suggested by Paul Eggert.
19228
19229 2007-12-30  Bruno Haible  <bruno@clisp.org>
19230
19231         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
19232         defined.
19233
19234 2007-12-30  Bruno Haible  <bruno@clisp.org>
19235
19236         * lib/xmalloca.h: Include xalloc.h.
19237         (xnmalloca): New macro.
19238
19239 2007-12-30  Bruno Haible  <bruno@clisp.org>
19240
19241         * lib/malloca.h (nmalloca): New macro.
19242         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
19243         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
19244         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
19245         knuth_morris_pratt_multibyte): Likewise.
19246         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
19247         knuth_morris_pratt_multibyte): Likewise.
19248         * lib/memmem.c (knuth_morris_pratt): Likewise.
19249         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
19250
19251 2007-12-25  Bruno Haible  <bruno@clisp.org>
19252
19253         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
19254         * lib/glob.c: Don't include openat.h.
19255         (link_exists2_p): Add back the code that deals with the
19256         !GLOB_ALTDIRFUNC case.
19257         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
19258         let it do the filename concatenation.
19259         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
19260         * modules/glob (Depends-on): Remove openat.
19261
19262 2007-12-31  Bruno Haible  <bruno@clisp.org>
19263
19264         * modules/dirfd (License): Change to LGPLv2+.
19265         Approved by Jim Meyering.
19266
19267 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19268
19269         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
19270         when multiplying M by sizeof (size_t).
19271
19272 2007-12-10  Martin Lambers  <marlam@marlam.de>
19273
19274         Override getpagesize on mingw.
19275         * lib/getpagesize.c: New file.
19276         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
19277         * modules/getpagesize (Files): Add lib/getpagesize.c.
19278         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
19279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19280         REPLACE_GETPAGESIZE.
19281         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
19282
19283 2007-12-25  Bruno Haible  <bruno@clisp.org>
19284
19285         * modules/localcharset (Notice): New field.
19286         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
19287         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19288
19289 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19290             Bruno Haible  <bruno@clisp.org>
19291
19292         Avoid using the syntax symbol() in formatted documentation.
19293         * MODULES.html.sh (func_module): When replacing symbol() with a
19294         hyperlink, remove the parentheses. Show an error if some remain.
19295         Recognize and render the '...' syntax.
19296         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
19297         Rework. Add paragraph about GCC's inlining.
19298         * doc/alloca.texi: Likewise.
19299         * doc/error.texi: Remove parentheses from symbol reference.
19300         * doc/gnulib-intro.texi: Likewise.
19301         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
19302         * modules/fnmatch (Description): Reword to say "the ... function".
19303         * modules/full-read (Description): Likewise.
19304         * modules/full-write (Description): Likewise.
19305         * modules/safe-read (Description): Likewise.
19306         * modules/safe-write (Description): Likewise.
19307         * modules/strchrnul (Description): Likewise.
19308         * modules/trim (Description): Likewise.
19309         * modules/error (Description): Remove parentheses from symbol
19310         references.
19311         * modules/verror (Description): Likewise.
19312         Reported by Karl Berry.
19313
19314 2007-12-25  Bruno Haible  <bruno@clisp.org>
19315
19316         Fixup after 2007-10-16 commit.
19317         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
19318
19319 2007-12-24  Bruno Haible  <bruno@clisp.org>
19320
19321         Make --enable-relocatable work with DESTDIR.
19322         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
19323         to compute installdir from destprog.
19324         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
19325         also set the RELOC_DESTDIR variable.
19326         Reported by Левашев Иван <octagram@bluebottle.com>.
19327
19328 2007-12-24  Bruno Haible  <bruno@clisp.org>
19329
19330         Fix link error due to xalloc_die().
19331         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
19332         of xreadlink.
19333         * lib/relocwrapper.c: Update comments.
19334         * build-aux/install-reloc: Remove xreadlink.c from file list.
19335         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
19336         xreadlink.c.
19337         Reported by Левашев Иван <octagram@bluebottle.com>.
19338
19339 2007-12-24  Bruno Haible  <bruno@clisp.org>
19340
19341         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
19342         * lib/setenv.h: Remove file.
19343         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
19344         lib/setenv.h.
19345         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
19346         (Depends-on): Add stdlib.
19347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
19348         gl_FUNC_UNSETENV.
19349         (Include): Replace setenv.h with <stdlib.h>.
19350         * modules/unsetenv: New file.
19351         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
19352         * lib/unsetenv.c: Include <stdlib.h> first.
19353         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
19354         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
19355         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
19356         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
19357         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
19358         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
19359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
19360         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
19361         * doc/functions/unsetenv.texi: Update.
19362         * modules/xsetenv (Depends-on): Add unsetenv.
19363         * modules/getdate (Depends-on): Likewise.
19364         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
19365         * lib/xsetenv.c: Don't include setenv.h.
19366         * lib/getdate.y: Likewise.
19367         * lib/relocwrapper.c: Likewise.
19368         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
19369         (Depends-on): Add stdlib.
19370         * NEWS: Mention the changes.
19371         Reported by Левашев Иван <octagram@bluebottle.com>.
19372
19373 2007-12-23  Bruno Haible  <bruno@clisp.org>
19374
19375         * lib/memmem.c (memmem): Use lowercase variable names. Tab
19376         indentation.
19377
19378 2007-12-23  Bruno Haible  <bruno@clisp.org>
19379
19380         * lib/c-strcasestr.c: Add more comments.
19381         * lib/c-strstr.c: Likewise.
19382         * lib/mbscasestr.c: Likewise.
19383         * lib/mbsstr.c: Likewise.
19384         * lib/strcasestr.c: Likewise.
19385         * lib/memmem.c: Likewise.
19386
19387 2007-12-23  Bruno Haible  <bruno@clisp.org>
19388
19389         * tests/test-memmem.c: Include <string.h> first.
19390
19391 2007-12-22  Bruno Haible  <bruno@clisp.org>
19392
19393         * gnulib-tool (func_create_testdir): Change $auxdir while generating
19394         the contents of $testsbase.
19395         Reported by Ralf Wildenhues.
19396
19397 2007-12-22  Bruno Haible  <bruno@clisp.org>
19398
19399         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
19400         two variables local_ldadd_before, local_ldadd_last.
19401
19402 2007-12-20  Eric Blake  <ebb9@byu.net>
19403
19404         Work around circular library issue when cross-compiling.
19405         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
19406         that progname.o does not need to pull in rpl_memcmp.
19407
19408 2007-12-19  Eric Blake  <ebb9@byu.net>
19409
19410         Fix memmem to avoid O(n^2) worst-case complexity.
19411         * lib/memmem.c (knuth_morris_pratt): New function.
19412         (memmem): Use it if first few naive iterations fail.
19413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
19414         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
19415         * modules/memchr (License): Likewise.
19416         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
19417         malloca.
19418         * tests/test-memmem.c: Rewrite, borrowing ideas from
19419         test-mbsstr1.c; the old version wouldn't even compile!
19420         * modules/memmem-tests: New file.
19421         * lib/string.in.h (rpl_memmem): Add declaration.
19422         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
19423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
19424         REPLACE_MEMMEM.
19425
19426 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19427
19428         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
19429         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
19430         before any system include files, and undef after them all.  This
19431         should fix a problem on VMS reported by John E. Malmberg in
19432         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
19433
19434 2007-12-17  Eric Blake  <ebb9@byu.net>
19435
19436         Revert addition of verify, for BSD/OS.
19437         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
19438         can't handle large files, for the sake of obsolete platforms.
19439         * modules/fseeko (Depends-on): Remove verify.
19440         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
19441         * doc/functions/ftello.texi (ftello): Likewise.
19442         * doc/functions/fgetpos.texi (fgetpos): Likewise.
19443         Reported by Larry Jones.
19444
19445 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
19446
19447         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
19448         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
19449
19450 2007-12-17  Jim Meyering  <meyering@redhat.com>
19451
19452         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
19453         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
19454         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
19455         * modules/getcwd (Depends-on): Add openat.
19456         Reported by Petr Salinger.
19457
19458 2007-12-17  Bruno Haible  <bruno@clisp.org>
19459
19460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
19461         avoid a segmentation fault of the configure test on x86_64 systems.
19462
19463 2007-12-15  Jim Meyering  <meyering@redhat.com>
19464
19465         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
19466
19467 2007-12-13  Eric Blake  <ebb9@byu.net>
19468
19469         Another fseek test.
19470         * tests/test-fseek.c (main): Also test ungetc handling.
19471         * tests/test-fseeko.c (main): Likewise.
19472         * modules/fseeko (Depends-on): Add verify.
19473         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
19474         large.
19475         Reported by Larry Jones.
19476
19477         Fix fseeko on mingw.
19478         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
19479         seek.
19480
19481         Beef up fseek tests.
19482         * tests/test-fseek.c (main): Also test eof handling.
19483         * tests/test-fseeko.c (main): Likewise.
19484         Reported by Larry Jones.
19485
19486 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
19487
19488         Fix fseeko on BSD-based platforms.
19489         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
19490         successful seek.
19491
19492 2007-12-12  Eric Blake  <ebb9@byu.net>
19493
19494         Allow circular dependency of separate libtests.a
19495         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
19496         when use_libtests.
19497
19498 2007-12-11  Eric Blake  <ebb9@byu.net>
19499
19500         Fix bug with -0.0L in previous patch.
19501         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
19502         * tests/test-isnan.c (main): Also test on zeroes.
19503         * tests/test-isnanf.c (main): Likewise.
19504         * tests/test-isnanl.h (main): Likewise.
19505
19506         Detect pseudo-denormals on x86 even when cross-compiling.
19507         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
19508         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
19509         invalid bit patterns that happen to satisfy ==.
19510
19511         Avoid link failures with separate libtests.a.
19512         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
19513         last, to satisfy circular dependencies.
19514
19515 2007-12-11  Eric Blake  <ebb9@byu.net>
19516         and Bruno Haible  <bruno@clisp.org>
19517
19518         Fix OpenBSD 4.0 <float.h> handling of long double.
19519         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
19520         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
19521         * doc/headers/float.texi (float.h): Document OpenBSD bug.
19522
19523 2007-12-11  Jim Meyering  <meyering@redhat.com>
19524
19525         * users.txt: Add libvirt.
19526
19527         Support versions of autoconf prior to 2.59c.
19528         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
19529         if it is not already defined.
19530
19531 2007-12-09  Bruno Haible  <bruno@clisp.org>
19532
19533         Let 'gnulib-tool --import' collect sources needed for the tests in
19534         tests/ rather than in lib/.
19535         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
19536         argument. If true, add rules to generate libtests.a, and put libtests.a
19537         into $(LDADD). Consider source files in subdirectories and set
19538         uses_subdirs.
19539         (func_emit_initmacro_start, func_emit_initmacro_end,
19540         func_emit_initmacro_done): Pass all arguments explicitly.
19541         (func_import): Determine two module lists main_modules,
19542         testsrelated_modules. Determine use_libtests. Determine two variables
19543         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
19544         instead of just sed_transform_lib_file. Determine two variables
19545         main_files and testsrelated_files. Compute 'files' as the union of
19546         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
19547         func_add_or_update. In the generated gnulib-comp.m4, collect the
19548         object files for tests/ in different variables than those for lib/.
19549         Substitute LIBTESTS_LIBDEPS.
19550         (func_create_testdir): Combine the uses_subdirs results from
19551         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
19552
19553 2007-12-09  Bruno Haible  <bruno@clisp.org>
19554
19555         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
19556         the build-aux directory.
19557
19558 2007-12-09  Bruno Haible  <bruno@clisp.org>
19559
19560         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
19561         introduced on 2006-09-09.
19562
19563 2007-12-07  Jim Meyering  <meyering@redhat.com>
19564
19565         Let these macros work also with autoconf-2.59.
19566         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
19567         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
19568         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19569
19570 2007-12-06  Jim Meyering  <meyering@redhat.com>
19571
19572         Avoid a configure-time syntax error in gl_FUNC_ACL.
19573         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
19574         function in each branch, before testing the cache variable.
19575
19576 2007-12-04  Eric Blake  <ebb9@byu.net>
19577
19578         Make scripts executable.
19579         * build-aux/config.guess: Add execute permissions.
19580         * build-aux/config.sub: Likewise.
19581         * build-aux/gendocs.sh: Likewise.
19582
19583         Fix frexp on mingw.
19584         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
19585         cross-compiling.
19586         * doc/functions/frexp.texi (frexp): Document the bug.
19587
19588         Make cygwin fseeko check more reliable.
19589         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
19590         version numbers, rather than unrelated feature check.
19591         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
19592         * doc/functions/ftello.texi (ftello): Likewise.
19593         Reported by Bruno Haible.
19594
19595         * m4/strerror.m4: Bump version number.
19596
19597 2007-12-03  Bruno Haible  <bruno@clisp.org>
19598
19599         * doc/functions/mprotect.texi: Mention the mingw problem.
19600
19601 2007-12-03  Eric Blake  <ebb9@byu.net>
19602
19603         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
19604         REPLACE_STRERROR is initialized before this macro.
19605
19606 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19607
19608         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
19609         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
19610         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
19611         put -lsec in even for programs other than 'ls'.  This fixes a problem
19612         for gettext reported by Bruno Haible in
19613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
19614         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
19615         Add support for Solaris 10.  This isn't efficient, but should get the
19616         job done for now.
19617
19618 2007-12-03  James Youngman  <jay@gnu.org>
19619
19620         * doc/regexprops-generic.texi: change "an close-group" to "a
19621         close-group" and "illegal" to "not allowed".
19622
19623 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19624
19625         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
19626         pr_byname.h. Needed for the rare case when the maintainer has done
19627         "make maintainer-clean" in the source directory and then attempts a
19628         build outside the source directory.
19629         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
19630         scripts_byname.h.
19631
19632 2007-12-02  Martin Lambers <marlam@marlam.de>
19633             Bruno Haible  <bruno@clisp.org>
19634
19635         * lib/getpagesize.h: Remove file.
19636         * lib/unistd.in.h: Include declaration of getpagesize here.
19637         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
19638         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
19639         HAVE_SYS_PARAM_H.
19640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
19641         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19642         * modules/getpagesize (Files): Remove lib/getpagesize.h.
19643         (Depends-on): Add unistd.
19644         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19645         (Include): Use <unistd.h> instead of getpagesize.h.
19646         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
19647         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19648         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
19649         gl_GETPAGESIZE invocation, already handled by module dependency.
19650         * lib/pagealign_alloc.c: Don't include getpagesize.h.
19651
19652 2007-12-02  Bruno Haible  <bruno@clisp.org>
19653
19654         * modules/strings-tests: New file.
19655         * tests/test-strings.c: New file.
19656
19657         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
19658         * lib/strings.in.h: New file.
19659         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
19660         * m4/strings_h.m4: New file.
19661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
19662         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
19663         * modules/strings: New file.
19664         * modules/string (Makefile.am): Update.
19665         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
19666         Reported by Karl Berry.
19667
19668 2007-12-01  Eric Blake  <ebb9@byu.net>
19669
19670         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
19671         accomodate fix in cygwin 1.5.25.
19672
19673 2007-12-01  Jim Meyering  <meyering@redhat.com>
19674
19675         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
19676         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
19677         that would inhibit utf8-optimization of a regexp containing line-
19678         or buffer-anchors, e.g., `^', `$'.
19679
19680 2007-11-30  Bruno Haible  <bruno@clisp.org>
19681
19682         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
19683         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
19684         glthread_recursive_lock_init.
19685         * lib/lock.c (glthread_recursive_lock_init)
19686         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
19687         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19688
19689 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19690
19691         New function qset_acl, like set_acl but with syscall semantics.
19692         * lib/acl.h (qset_acl): New decl.
19693         * lib/acl.c (qset_acl): New function.
19694         (set_acl): Use new function.  Use more-consistent diagnostics.
19695
19696 2007-11-28  Jim Meyering  <meyering@redhat.com>
19697
19698         * modules/physmem (License): Change from GPL to LGPLv2+.
19699
19700 2007-11-26  Bruno Haible  <bruno@clisp.org>
19701
19702         * lib/vasnprintf.c (decode_long_double): Don't abort if the
19703         'long double' type has excess precision.
19704         Reported by Jim Meyering in
19705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
19706
19707 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19708
19709         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
19710         Sync from <http://gnu.org/licenses>.
19711         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
19712         with license text from same location.
19713         * doc/maintain.texi, doc/standards.texi:  Sync from
19714         <http://savannah.gnu.org/projects/gnustandards>.
19715
19716 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
19717         and Jim Meyering  <meyering@redhat.com>
19718
19719         Adjust getdate' grammar to accept a slightly more regular language.
19720         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
19721         Before, the former was rejected.
19722         * lib/getdate.y (digits_to_date_time): New function, factored
19723         out of ...
19724         (number): ...here.  Just call digits_to_date_time.
19725         (hybrid): New non-terminal to handle an <unsigned number,
19726         signed relative offset> sequence consistently.
19727
19728 2007-11-18  Jim Meyering  <meyering@redhat.com>
19729
19730         Pull my changes from coreutils:
19731         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
19732         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
19733         use of $gnulib_tool_option_extras, so that it's separated from the
19734         preceding argument.
19735
19736         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
19737         * build-aux/bootstrap (cp_mark_as_generated): Create any required
19738         parent destination directories before copying a file into place.
19739
19740 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19741
19742         bootstrap: work also with 4-argument variant of AC_INIT
19743         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
19744
19745 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19746
19747         Port test-getaddrinfo to Solaris.
19748         Problem reported by Bruno Haible in
19749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
19750         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
19751         explanation of setting 'hints'.
19752         Don't reject an implementation merely because it returns EAI_SERVICE.
19753         (EAI_SERVICE): Define to 0 if not defined.
19754
19755 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19756
19757         The license of gnu-make and posix-shell is now "GPLed build tool".
19758         * modules/gnu-make (License): Likewise.
19759         * modules/posix-shell (License): Likewise.
19760
19761         New module posix-shell, for determining a POSIX shell
19762         or perhaps something that is close enough to a POSIX shell.
19763         * m4/posix-shell.m4: New file.
19764         * modules/posix-shell: New file.
19765
19766         * MODULES.html.sh: Mention new module.
19767
19768         New module gnu-make, for determining whether we're using GNU Make.
19769         * m4/gnu-make.m4: New file.
19770         * modules/gnu-make: New file.
19771         * MODULES.html.sh: Mention new module.
19772
19773 2007-11-14  Jim Meyering  <meyering@redhat.com>
19774
19775         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
19776         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
19777         use this macro to create a function _definition_.
19778         Remove useless "#undef ARGMATCH_DIE".
19779
19780 2007-11-14  Bruno Haible  <bruno@clisp.org>
19781
19782         * lib/config.charset: Update for OpenBSD 4.1.
19783         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
19784
19785 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         Document 64-bit #if problems in stdint.texi.
19788         * doc/headers/stdint.texi (stdint.h): Mention problems with
19789         64-bit-#if, and how to work around them.
19790
19791         Don't insist on 'long long int' support in the preprocessor.  It
19792         breaks too many things.  For example, PRIdMAX still uses a 'long
19793         long int' format with the latest Sun compiler, even though
19794         HAVE_LONG_LONG_INT isn't defined due to that compiler's
19795         preprocessor problem.  This causes the latest coreutils to dump
19796         core on Solaris 10 sparc with the Sun C compiler.
19797         Instead, fix the 2007-10-16 problem in a different way, by evaluating
19798         the troublesome expressions at configure-time, not at #if-time.
19799         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
19800         preprocessor.
19801         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
19802         compile-time C checks, done at 'configure'-time.
19803         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
19804         * modules/inttypes (Makefile): Substitute the new symbols that
19805         gl_INTTYPES_H now generates.
19806         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
19807
19808 2007-11-12  Bruno Haible  <bruno@clisp.org>
19809
19810         Tests for Unicode character classification functions.
19811
19812         * modules/unictype/bidicategory-byname-tests: New file.
19813         * modules/unictype/bidicategory-name-tests: New file.
19814         * modules/unictype/bidicategory-of-tests: New file.
19815         * modules/unictype/bidicategory-test-tests: New file.
19816         * modules/unictype/block-list-tests: New file.
19817         * modules/unictype/block-of-tests: New file.
19818         * modules/unictype/block-test-tests: New file.
19819         * modules/unictype/category-C-tests: New file.
19820         * modules/unictype/category-Cc-tests: New file.
19821         * modules/unictype/category-Cf-tests: New file.
19822         * modules/unictype/category-Cn-tests: New file.
19823         * modules/unictype/category-Co-tests: New file.
19824         * modules/unictype/category-Cs-tests: New file.
19825         * modules/unictype/category-L-tests: New file.
19826         * modules/unictype/category-Ll-tests: New file.
19827         * modules/unictype/category-Lm-tests: New file.
19828         * modules/unictype/category-Lo-tests: New file.
19829         * modules/unictype/category-Lt-tests: New file.
19830         * modules/unictype/category-Lu-tests: New file.
19831         * modules/unictype/category-M-tests: New file.
19832         * modules/unictype/category-Mc-tests: New file.
19833         * modules/unictype/category-Me-tests: New file.
19834         * modules/unictype/category-Mn-tests: New file.
19835         * modules/unictype/category-N-tests: New file.
19836         * modules/unictype/category-Nd-tests: New file.
19837         * modules/unictype/category-Nl-tests: New file.
19838         * modules/unictype/category-No-tests: New file.
19839         * modules/unictype/category-P-tests: New file.
19840         * modules/unictype/category-Pc-tests: New file.
19841         * modules/unictype/category-Pd-tests: New file.
19842         * modules/unictype/category-Pe-tests: New file.
19843         * modules/unictype/category-Pf-tests: New file.
19844         * modules/unictype/category-Pi-tests: New file.
19845         * modules/unictype/category-Po-tests: New file.
19846         * modules/unictype/category-Ps-tests: New file.
19847         * modules/unictype/category-S-tests: New file.
19848         * modules/unictype/category-Sc-tests: New file.
19849         * modules/unictype/category-Sk-tests: New file.
19850         * modules/unictype/category-Sm-tests: New file.
19851         * modules/unictype/category-So-tests: New file.
19852         * modules/unictype/category-Z-tests: New file.
19853         * modules/unictype/category-Zl-tests: New file.
19854         * modules/unictype/category-Zp-tests: New file.
19855         * modules/unictype/category-Zs-tests: New file.
19856         * modules/unictype/category-and-not-tests: New file.
19857         * modules/unictype/category-and-tests: New file.
19858         * modules/unictype/category-byname-tests: New file.
19859         * modules/unictype/category-name-tests: New file.
19860         * modules/unictype/category-none-tests: New file.
19861         * modules/unictype/category-of-tests: New file.
19862         * modules/unictype/category-or-tests: New file.
19863         * modules/unictype/category-test-withtable-tests: New file.
19864         * modules/unictype/combining-class-tests: New file.
19865         * modules/unictype/ctype-alnum-tests: New file.
19866         * modules/unictype/ctype-alpha-tests: New file.
19867         * modules/unictype/ctype-blank-tests: New file.
19868         * modules/unictype/ctype-cntrl-tests: New file.
19869         * modules/unictype/ctype-digit-tests: New file.
19870         * modules/unictype/ctype-graph-tests: New file.
19871         * modules/unictype/ctype-lower-tests: New file.
19872         * modules/unictype/ctype-print-tests: New file.
19873         * modules/unictype/ctype-punct-tests: New file.
19874         * modules/unictype/ctype-space-tests: New file.
19875         * modules/unictype/ctype-upper-tests: New file.
19876         * modules/unictype/ctype-xdigit-tests: New file.
19877         * modules/unictype/decimal-digit-tests: New file.
19878         * modules/unictype/digit-tests: New file.
19879         * modules/unictype/mirror-tests: New file.
19880         * modules/unictype/numeric-tests: New file.
19881         * modules/unictype/property-alphabetic-tests: New file.
19882         * modules/unictype/property-ascii-hex-digit-tests: New file.
19883         * modules/unictype/property-bidi-arabic-digit-tests: New file.
19884         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
19885         * modules/unictype/property-bidi-block-separator-tests: New file.
19886         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
19887         * modules/unictype/property-bidi-common-separator-tests: New file.
19888         * modules/unictype/property-bidi-control-tests: New file.
19889         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
19890         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
19891         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
19892         * modules/unictype/property-bidi-european-digit-tests: New file.
19893         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
19894         * modules/unictype/property-bidi-left-to-right-tests: New file.
19895         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
19896         * modules/unictype/property-bidi-other-neutral-tests: New file.
19897         * modules/unictype/property-bidi-pdf-tests: New file.
19898         * modules/unictype/property-bidi-segment-separator-tests: New file.
19899         * modules/unictype/property-bidi-whitespace-tests: New file.
19900         * modules/unictype/property-byname-tests: New file.
19901         * modules/unictype/property-combining-tests: New file.
19902         * modules/unictype/property-composite-tests: New file.
19903         * modules/unictype/property-currency-symbol-tests: New file.
19904         * modules/unictype/property-dash-tests: New file.
19905         * modules/unictype/property-decimal-digit-tests: New file.
19906         * modules/unictype/property-default-ignorable-code-point-tests: New file.
19907         * modules/unictype/property-deprecated-tests: New file.
19908         * modules/unictype/property-diacritic-tests: New file.
19909         * modules/unictype/property-extender-tests: New file.
19910         * modules/unictype/property-format-control-tests: New file.
19911         * modules/unictype/property-grapheme-base-tests: New file.
19912         * modules/unictype/property-grapheme-extend-tests: New file.
19913         * modules/unictype/property-grapheme-link-tests: New file.
19914         * modules/unictype/property-hex-digit-tests: New file.
19915         * modules/unictype/property-hyphen-tests: New file.
19916         * modules/unictype/property-id-continue-tests: New file.
19917         * modules/unictype/property-id-start-tests: New file.
19918         * modules/unictype/property-ideographic-tests: New file.
19919         * modules/unictype/property-ids-binary-operator-tests: New file.
19920         * modules/unictype/property-ids-trinary-operator-tests: New file.
19921         * modules/unictype/property-ignorable-control-tests: New file.
19922         * modules/unictype/property-iso-control-tests: New file.
19923         * modules/unictype/property-join-control-tests: New file.
19924         * modules/unictype/property-left-of-pair-tests: New file.
19925         * modules/unictype/property-line-separator-tests: New file.
19926         * modules/unictype/property-logical-order-exception-tests: New file.
19927         * modules/unictype/property-lowercase-tests: New file.
19928         * modules/unictype/property-math-tests: New file.
19929         * modules/unictype/property-non-break-tests: New file.
19930         * modules/unictype/property-not-a-character-tests: New file.
19931         * modules/unictype/property-numeric-tests: New file.
19932         * modules/unictype/property-other-alphabetic-tests: New file.
19933         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
19934         * modules/unictype/property-other-grapheme-extend-tests: New file.
19935         * modules/unictype/property-other-id-continue-tests: New file.
19936         * modules/unictype/property-other-id-start-tests: New file.
19937         * modules/unictype/property-other-lowercase-tests: New file.
19938         * modules/unictype/property-other-math-tests: New file.
19939         * modules/unictype/property-other-uppercase-tests: New file.
19940         * modules/unictype/property-paired-punctuation-tests: New file.
19941         * modules/unictype/property-paragraph-separator-tests: New file.
19942         * modules/unictype/property-pattern-syntax-tests: New file.
19943         * modules/unictype/property-pattern-white-space-tests: New file.
19944         * modules/unictype/property-private-use-tests: New file.
19945         * modules/unictype/property-punctuation-tests: New file.
19946         * modules/unictype/property-quotation-mark-tests: New file.
19947         * modules/unictype/property-radical-tests: New file.
19948         * modules/unictype/property-sentence-terminal-tests: New file.
19949         * modules/unictype/property-soft-dotted-tests: New file.
19950         * modules/unictype/property-space-tests: New file.
19951         * modules/unictype/property-terminal-punctuation-tests: New file.
19952         * modules/unictype/property-test-tests: New file.
19953         * modules/unictype/property-titlecase-tests: New file.
19954         * modules/unictype/property-unassigned-code-value-tests: New file.
19955         * modules/unictype/property-unified-ideograph-tests: New file.
19956         * modules/unictype/property-uppercase-tests: New file.
19957         * modules/unictype/property-variation-selector-tests: New file.
19958         * modules/unictype/property-white-space-tests: New file.
19959         * modules/unictype/property-xid-continue-tests: New file.
19960         * modules/unictype/property-xid-start-tests: New file.
19961         * modules/unictype/property-zero-width-tests: New file.
19962         * modules/unictype/scripts-tests: New file.
19963         * modules/unictype/syntax-c-ident-tests: New file.
19964         * modules/unictype/syntax-c-whitespace-tests: New file.
19965         * modules/unictype/syntax-java-ident-tests: New file.
19966         * modules/unictype/syntax-java-whitespace-tests: New file.
19967         * tests/unictype/test-bidi_byname.c: New file.
19968         * tests/unictype/test-bidi_name.c: New file.
19969         * tests/unictype/test-bidi_of.c: New file.
19970         * tests/unictype/test-bidi_test.c: New file.
19971         * tests/unictype/test-block_list.c: New file.
19972         * tests/unictype/test-block_of.c: New file.
19973         * tests/unictype/test-block_test.c: New file.
19974         * tests/unictype/test-categ_and.c: New file.
19975         * tests/unictype/test-categ_and_not.c: New file.
19976         * tests/unictype/test-categ_byname.c: New file.
19977         * tests/unictype/test-categ_name.c: New file.
19978         * tests/unictype/test-categ_none.c: New file.
19979         * tests/unictype/test-categ_of.c: New file.
19980         * tests/unictype/test-categ_or.c: New file.
19981         * tests/unictype/test-categ_test_withtable.c: New file.
19982         * tests/unictype/test-combining.c: New file.
19983         * tests/unictype/test-decdigit.c: New file.
19984         * tests/unictype/test-digit.c: New file.
19985         * tests/unictype/test-mirror.c: New file.
19986         * tests/unictype/test-numeric.c: New file.
19987         * tests/unictype/test-pr_byname.c: New file.
19988         * tests/unictype/test-pr_test.c: New file.
19989         * tests/unictype/test-predicate-part1.h: New file.
19990         * tests/unictype/test-predicate-part2.h: New file.
19991         * tests/unictype/test-scripts.c: New file.
19992         * tests/unictype/test-sy_c_ident.c: New file.
19993         * tests/unictype/test-sy_java_ident.c: New file.
19994
19995         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
19996         for Unicode 5.0.0.
19997         * tests/unictype/test-categ_Cc.c: Likewise.
19998         * tests/unictype/test-categ_Cf.c: Likewise.
19999         * tests/unictype/test-categ_Cn.c: Likewise.
20000         * tests/unictype/test-categ_Co.c: Likewise.
20001         * tests/unictype/test-categ_Cs.c: Likewise.
20002         * tests/unictype/test-categ_L.c: Likewise.
20003         * tests/unictype/test-categ_Ll.c: Likewise.
20004         * tests/unictype/test-categ_Lm.c: Likewise.
20005         * tests/unictype/test-categ_Lo.c: Likewise.
20006         * tests/unictype/test-categ_Lt.c: Likewise.
20007         * tests/unictype/test-categ_Lu.c: Likewise.
20008         * tests/unictype/test-categ_M.c: Likewise.
20009         * tests/unictype/test-categ_Mc.c: Likewise.
20010         * tests/unictype/test-categ_Me.c: Likewise.
20011         * tests/unictype/test-categ_Mn.c: Likewise.
20012         * tests/unictype/test-categ_N.c: Likewise.
20013         * tests/unictype/test-categ_Nd.c: Likewise.
20014         * tests/unictype/test-categ_Nl.c: Likewise.
20015         * tests/unictype/test-categ_No.c: Likewise.
20016         * tests/unictype/test-categ_P.c: Likewise.
20017         * tests/unictype/test-categ_Pc.c: Likewise.
20018         * tests/unictype/test-categ_Pd.c: Likewise.
20019         * tests/unictype/test-categ_Pe.c: Likewise.
20020         * tests/unictype/test-categ_Pf.c: Likewise.
20021         * tests/unictype/test-categ_Pi.c: Likewise.
20022         * tests/unictype/test-categ_Po.c: Likewise.
20023         * tests/unictype/test-categ_Ps.c: Likewise.
20024         * tests/unictype/test-categ_S.c: Likewise.
20025         * tests/unictype/test-categ_Sc.c: Likewise.
20026         * tests/unictype/test-categ_Sk.c: Likewise.
20027         * tests/unictype/test-categ_Sm.c: Likewise.
20028         * tests/unictype/test-categ_So.c: Likewise.
20029         * tests/unictype/test-categ_Z.c: Likewise.
20030         * tests/unictype/test-categ_Zl.c: Likewise.
20031         * tests/unictype/test-categ_Zp.c: Likewise.
20032         * tests/unictype/test-categ_Zs.c: Likewise.
20033         * tests/unictype/test-ctype_alnum.c: Likewise.
20034         * tests/unictype/test-ctype_alpha.c: Likewise.
20035         * tests/unictype/test-ctype_blank.c: Likewise.
20036         * tests/unictype/test-ctype_cntrl.c: Likewise.
20037         * tests/unictype/test-ctype_digit.c: Likewise.
20038         * tests/unictype/test-ctype_graph.c: Likewise.
20039         * tests/unictype/test-ctype_lower.c: Likewise.
20040         * tests/unictype/test-ctype_print.c: Likewise.
20041         * tests/unictype/test-ctype_punct.c: Likewise.
20042         * tests/unictype/test-ctype_space.c: Likewise.
20043         * tests/unictype/test-ctype_upper.c: Likewise.
20044         * tests/unictype/test-ctype_xdigit.c: Likewise.
20045         * tests/unictype/test-decdigit.h: Likewise.
20046         * tests/unictype/test-digit.h: Likewise.
20047         * tests/unictype/test-numeric.h: Likewise.
20048         * tests/unictype/test-pr_alphabetic.c: Likewise.
20049         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
20050         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20051         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20052         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
20053         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20054         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
20055         * tests/unictype/test-pr_bidi_control.c: Likewise.
20056         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
20057         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
20058         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20059         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20060         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20061         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20062         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20063         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20064         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
20065         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
20066         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
20067         * tests/unictype/test-pr_combining.c: Likewise.
20068         * tests/unictype/test-pr_composite.c: Likewise.
20069         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20070         * tests/unictype/test-pr_dash.c: Likewise.
20071         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20072         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
20073         * tests/unictype/test-pr_deprecated.c: Likewise.
20074         * tests/unictype/test-pr_diacritic.c: Likewise.
20075         * tests/unictype/test-pr_extender.c: Likewise.
20076         * tests/unictype/test-pr_format_control.c: Likewise.
20077         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20078         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20079         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20080         * tests/unictype/test-pr_hex_digit.c: Likewise.
20081         * tests/unictype/test-pr_hyphen.c: Likewise.
20082         * tests/unictype/test-pr_id_continue.c: Likewise.
20083         * tests/unictype/test-pr_id_start.c: Likewise.
20084         * tests/unictype/test-pr_ideographic.c: Likewise.
20085         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
20086         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
20087         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20088         * tests/unictype/test-pr_iso_control.c: Likewise.
20089         * tests/unictype/test-pr_join_control.c: Likewise.
20090         * tests/unictype/test-pr_left_of_pair.c: Likewise.
20091         * tests/unictype/test-pr_line_separator.c: Likewise.
20092         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20093         * tests/unictype/test-pr_lowercase.c: Likewise.
20094         * tests/unictype/test-pr_math.c: Likewise.
20095         * tests/unictype/test-pr_non_break.c: Likewise.
20096         * tests/unictype/test-pr_not_a_character.c: Likewise.
20097         * tests/unictype/test-pr_numeric.c: Likewise.
20098         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20099         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
20100         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
20101         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20102         * tests/unictype/test-pr_other_id_start.c: Likewise.
20103         * tests/unictype/test-pr_other_lowercase.c: Likewise.
20104         * tests/unictype/test-pr_other_math.c: Likewise.
20105         * tests/unictype/test-pr_other_uppercase.c: Likewise.
20106         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
20107         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
20108         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
20109         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
20110         * tests/unictype/test-pr_private_use.c: Likewise.
20111         * tests/unictype/test-pr_punctuation.c: Likewise.
20112         * tests/unictype/test-pr_quotation_mark.c: Likewise.
20113         * tests/unictype/test-pr_radical.c: Likewise.
20114         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20115         * tests/unictype/test-pr_soft_dotted.c: Likewise.
20116         * tests/unictype/test-pr_space.c: Likewise.
20117         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20118         * tests/unictype/test-pr_titlecase.c: Likewise.
20119         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20120         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20121         * tests/unictype/test-pr_uppercase.c: Likewise.
20122         * tests/unictype/test-pr_variation_selector.c: Likewise.
20123         * tests/unictype/test-pr_white_space.c: Likewise.
20124         * tests/unictype/test-pr_xid_continue.c: Likewise.
20125         * tests/unictype/test-pr_xid_start.c: Likewise.
20126         * tests/unictype/test-pr_zero_width.c: Likewise.
20127         * tests/unictype/test-sy_c_whitespace.c: Likewise.
20128         * tests/unictype/test-sy_java_whitespace.c: Likewise.
20129
20130 2007-11-12  Bruno Haible  <bruno@clisp.org>
20131
20132         Unicode character classification functions.
20133         * lib/unictype.h: New file.
20134         * modules/unictype/base: New file.
20135         * modules/unictype/category-L: New file.
20136         * modules/unictype/category-Lu: New file.
20137         * modules/unictype/category-Ll: New file.
20138         * modules/unictype/category-Lt: New file.
20139         * modules/unictype/category-Lm: New file.
20140         * modules/unictype/category-Lo: New file.
20141         * modules/unictype/category-M: New file.
20142         * modules/unictype/category-Mn: New file.
20143         * modules/unictype/category-Mc: New file.
20144         * modules/unictype/category-Me: New file.
20145         * modules/unictype/category-N: New file.
20146         * modules/unictype/category-Nd: New file.
20147         * modules/unictype/category-Nl: New file.
20148         * modules/unictype/category-No: New file.
20149         * modules/unictype/category-P: New file.
20150         * modules/unictype/category-Pc: New file.
20151         * modules/unictype/category-Pd: New file.
20152         * modules/unictype/category-Ps: New file.
20153         * modules/unictype/category-Pe: New file.
20154         * modules/unictype/category-Pi: New file.
20155         * modules/unictype/category-Pf: New file.
20156         * modules/unictype/category-Po: New file.
20157         * modules/unictype/category-S: New file.
20158         * modules/unictype/category-Sm: New file.
20159         * modules/unictype/category-Sc: New file.
20160         * modules/unictype/category-Sk: New file.
20161         * modules/unictype/category-So: New file.
20162         * modules/unictype/category-Z: New file.
20163         * modules/unictype/category-Zs: New file.
20164         * modules/unictype/category-Zl: New file.
20165         * modules/unictype/category-Zp: New file.
20166         * modules/unictype/category-C: New file.
20167         * modules/unictype/category-Cc: New file.
20168         * modules/unictype/category-Cf: New file.
20169         * modules/unictype/category-Cs: New file.
20170         * modules/unictype/category-Co: New file.
20171         * modules/unictype/category-Cn: New file.
20172         * modules/unictype/category-or: New file.
20173         * modules/unictype/category-of: New file.
20174         * modules/unictype/category-test: New file.
20175         * modules/unictype/category-test-withtable: New file.
20176         * modules/unictype/category-byname: New file.
20177         * modules/unictype/category-none: New file.
20178         * modules/unictype/category-and: New file.
20179         * modules/unictype/category-and-not: New file.
20180         * modules/unictype/category-name: New file.
20181         * modules/unictype/combining-class: New file.
20182         * modules/unictype/category-all: New file.
20183         * modules/unictype/bidicategory-all: New file.
20184         * modules/unictype/bidicategory-byname: New file.
20185         * modules/unictype/bidicategory-name: New file.
20186         * modules/unictype/bidicategory-of: New file.
20187         * modules/unictype/bidicategory-test: New file.
20188         * modules/unictype/decimal-digit: New file.
20189         * modules/unictype/digit: New file.
20190         * modules/unictype/numeric: New file.
20191         * modules/unictype/mirror: New file.
20192         * modules/unictype/property-white-space: New file.
20193         * modules/unictype/property-alphabetic: New file.
20194         * modules/unictype/property-other-alphabetic: New file.
20195         * modules/unictype/property-not-a-character: New file.
20196         * modules/unictype/property-default-ignorable-code-point: New file.
20197         * modules/unictype/property-other-default-ignorable-code-point: New
20198         file.
20199         * modules/unictype/property-deprecated: New file.
20200         * modules/unictype/property-logical-order-exception: New file.
20201         * modules/unictype/property-variation-selector: New file.
20202         * modules/unictype/property-private-use: New file.
20203         * modules/unictype/property-unassigned-code-value: New file.
20204         * modules/unictype/property-uppercase: New file.
20205         * modules/unictype/property-other-uppercase: New file.
20206         * modules/unictype/property-lowercase: New file.
20207         * modules/unictype/property-other-lowercase: New file.
20208         * modules/unictype/property-titlecase: New file.
20209         * modules/unictype/property-soft-dotted: New file.
20210         * modules/unictype/property-id-start: New file.
20211         * modules/unictype/property-other-id-start: New file.
20212         * modules/unictype/property-id-continue: New file.
20213         * modules/unictype/property-other-id-continue: New file.
20214         * modules/unictype/property-xid-start: New file.
20215         * modules/unictype/property-xid-continue: New file.
20216         * modules/unictype/property-pattern-white-space: New file.
20217         * modules/unictype/property-pattern-syntax: New file.
20218         * modules/unictype/property-join-control: New file.
20219         * modules/unictype/property-grapheme-base: New file.
20220         * modules/unictype/property-grapheme-extend: New file.
20221         * modules/unictype/property-other-grapheme-extend: New file.
20222         * modules/unictype/property-grapheme-link: New file.
20223         * modules/unictype/property-bidi-control: New file.
20224         * modules/unictype/property-bidi-left-to-right: New file.
20225         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
20226         * modules/unictype/property-bidi-arabic-right-to-left: New file.
20227         * modules/unictype/property-bidi-european-digit: New file.
20228         * modules/unictype/property-bidi-eur-num-separator: New file.
20229         * modules/unictype/property-bidi-eur-num-terminator: New file.
20230         * modules/unictype/property-bidi-arabic-digit: New file.
20231         * modules/unictype/property-bidi-common-separator: New file.
20232         * modules/unictype/property-bidi-block-separator: New file.
20233         * modules/unictype/property-bidi-segment-separator: New file.
20234         * modules/unictype/property-bidi-whitespace: New file.
20235         * modules/unictype/property-bidi-non-spacing-mark: New file.
20236         * modules/unictype/property-bidi-boundary-neutral: New file.
20237         * modules/unictype/property-bidi-pdf: New file.
20238         * modules/unictype/property-bidi-embedding-or-override: New file.
20239         * modules/unictype/property-bidi-other-neutral: New file.
20240         * modules/unictype/property-hex-digit: New file.
20241         * modules/unictype/property-ascii-hex-digit: New file.
20242         * modules/unictype/property-ideographic: New file.
20243         * modules/unictype/property-unified-ideograph: New file.
20244         * modules/unictype/property-radical: New file.
20245         * modules/unictype/property-ids-binary-operator: New file.
20246         * modules/unictype/property-ids-trinary-operator: New file.
20247         * modules/unictype/property-zero-width: New file.
20248         * modules/unictype/property-space: New file.
20249         * modules/unictype/property-non-break: New file.
20250         * modules/unictype/property-iso-control: New file.
20251         * modules/unictype/property-format-control: New file.
20252         * modules/unictype/property-dash: New file.
20253         * modules/unictype/property-hyphen: New file.
20254         * modules/unictype/property-punctuation: New file.
20255         * modules/unictype/property-line-separator: New file.
20256         * modules/unictype/property-paragraph-separator: New file.
20257         * modules/unictype/property-quotation-mark: New file.
20258         * modules/unictype/property-sentence-terminal: New file.
20259         * modules/unictype/property-terminal-punctuation: New file.
20260         * modules/unictype/property-currency-symbol: New file.
20261         * modules/unictype/property-math: New file.
20262         * modules/unictype/property-other-math: New file.
20263         * modules/unictype/property-paired-punctuation: New file.
20264         * modules/unictype/property-left-of-pair: New file.
20265         * modules/unictype/property-combining: New file.
20266         * modules/unictype/property-composite: New file.
20267         * modules/unictype/property-decimal-digit: New file.
20268         * modules/unictype/property-numeric: New file.
20269         * modules/unictype/property-diacritic: New file.
20270         * modules/unictype/property-extender: New file.
20271         * modules/unictype/property-ignorable-control: New file.
20272         * modules/unictype/property-test: New file.
20273         * modules/unictype/property-byname: New file.
20274         * modules/unictype/property-all: New file.
20275         * modules/unictype/scripts: New file.
20276         * modules/unictype/scripts-all: New file.
20277         * modules/unictype/block-of: New file.
20278         * modules/unictype/block-test: New file.
20279         * modules/unictype/block-list: New file.
20280         * modules/unictype/block-all: New file.
20281         * modules/unictype/syntax-c-whitespace: New file.
20282         * modules/unictype/syntax-java-whitespace: New file.
20283         * modules/unictype/syntax-c-ident: New file.
20284         * modules/unictype/syntax-java-ident: New file.
20285         * modules/unictype/ctype-alnum: New file.
20286         * modules/unictype/ctype-alpha: New file.
20287         * modules/unictype/ctype-cntrl: New file.
20288         * modules/unictype/ctype-digit: New file.
20289         * modules/unictype/ctype-graph: New file.
20290         * modules/unictype/ctype-lower: New file.
20291         * modules/unictype/ctype-print: New file.
20292         * modules/unictype/ctype-punct: New file.
20293         * modules/unictype/ctype-space: New file.
20294         * modules/unictype/ctype-upper: New file.
20295         * modules/unictype/ctype-xdigit: New file.
20296         * modules/unictype/ctype-blank: New file.
20297         * lib/unictype/bidi_byname.c: New file.
20298         * lib/unictype/bidi_name.c: New file.
20299         * lib/unictype/bidi_of.c: New file.
20300         * lib/unictype/bidi_test.c: New file.
20301         * lib/unictype/bitmap.h: New file.
20302         * lib/unictype/block_test.c: New file.
20303         * lib/unictype/blocks.c: New file.
20304         * lib/unictype/categ_C.c: New file.
20305         * lib/unictype/categ_Cc.c: New file.
20306         * lib/unictype/categ_Cf.c: New file.
20307         * lib/unictype/categ_Cn.c: New file.
20308         * lib/unictype/categ_Co.c: New file.
20309         * lib/unictype/categ_Cs.c: New file.
20310         * lib/unictype/categ_L.c: New file.
20311         * lib/unictype/categ_Ll.c: New file.
20312         * lib/unictype/categ_Lm.c: New file.
20313         * lib/unictype/categ_Lo.c: New file.
20314         * lib/unictype/categ_Lt.c: New file.
20315         * lib/unictype/categ_Lu.c: New file.
20316         * lib/unictype/categ_M.c: New file.
20317         * lib/unictype/categ_Mc.c: New file.
20318         * lib/unictype/categ_Me.c: New file.
20319         * lib/unictype/categ_Mn.c: New file.
20320         * lib/unictype/categ_N.c: New file.
20321         * lib/unictype/categ_Nd.c: New file.
20322         * lib/unictype/categ_Nl.c: New file.
20323         * lib/unictype/categ_No.c: New file.
20324         * lib/unictype/categ_P.c: New file.
20325         * lib/unictype/categ_Pc.c: New file.
20326         * lib/unictype/categ_Pd.c: New file.
20327         * lib/unictype/categ_Pe.c: New file.
20328         * lib/unictype/categ_Pf.c: New file.
20329         * lib/unictype/categ_Pi.c: New file.
20330         * lib/unictype/categ_Po.c: New file.
20331         * lib/unictype/categ_Ps.c: New file.
20332         * lib/unictype/categ_S.c: New file.
20333         * lib/unictype/categ_Sc.c: New file.
20334         * lib/unictype/categ_Sk.c: New file.
20335         * lib/unictype/categ_Sm.c: New file.
20336         * lib/unictype/categ_So.c: New file.
20337         * lib/unictype/categ_Z.c: New file.
20338         * lib/unictype/categ_Zl.c: New file.
20339         * lib/unictype/categ_Zp.c: New file.
20340         * lib/unictype/categ_Zs.c: New file.
20341         * lib/unictype/categ_and.c: New file.
20342         * lib/unictype/categ_and_not.c: New file.
20343         * lib/unictype/categ_byname.c: New file.
20344         * lib/unictype/categ_name.c: New file.
20345         * lib/unictype/categ_none.c: New file.
20346         * lib/unictype/categ_of.c: New file.
20347         * lib/unictype/categ_or.c: New file.
20348         * lib/unictype/categ_test.c: New file.
20349         * lib/unictype/combining.c: New file.
20350         * lib/unictype/ctype_alnum.c: New file.
20351         * lib/unictype/ctype_alpha.c: New file.
20352         * lib/unictype/ctype_blank.c: New file.
20353         * lib/unictype/ctype_cntrl.c: New file.
20354         * lib/unictype/ctype_digit.c: New file.
20355         * lib/unictype/ctype_graph.c: New file.
20356         * lib/unictype/ctype_lower.c: New file.
20357         * lib/unictype/ctype_print.c: New file.
20358         * lib/unictype/ctype_punct.c: New file.
20359         * lib/unictype/ctype_space.c: New file.
20360         * lib/unictype/ctype_upper.c: New file.
20361         * lib/unictype/ctype_xdigit.c: New file.
20362         * lib/unictype/decdigit.c: New file.
20363         * lib/unictype/digit.c: New file.
20364         * lib/unictype/identsyntaxmap.h: New file.
20365         * lib/unictype/mirror.c: New file.
20366         * lib/unictype/numeric.c: New file.
20367         * lib/unictype/pr_alphabetic.c: New file.
20368         * lib/unictype/pr_ascii_hex_digit.c: New file.
20369         * lib/unictype/pr_bidi_arabic_digit.c: New file.
20370         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
20371         * lib/unictype/pr_bidi_block_separator.c: New file.
20372         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
20373         * lib/unictype/pr_bidi_common_separator.c: New file.
20374         * lib/unictype/pr_bidi_control.c: New file.
20375         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
20376         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
20377         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
20378         * lib/unictype/pr_bidi_european_digit.c: New file.
20379         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
20380         * lib/unictype/pr_bidi_left_to_right.c: New file.
20381         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
20382         * lib/unictype/pr_bidi_other_neutral.c: New file.
20383         * lib/unictype/pr_bidi_pdf.c: New file.
20384         * lib/unictype/pr_bidi_segment_separator.c: New file.
20385         * lib/unictype/pr_bidi_whitespace.c: New file.
20386         * lib/unictype/pr_byname.c: New file.
20387         * lib/unictype/pr_byname.gperf: New file.
20388         * lib/unictype/pr_combining.c: New file.
20389         * lib/unictype/pr_composite.c: New file.
20390         * lib/unictype/pr_currency_symbol.c: New file.
20391         * lib/unictype/pr_dash.c: New file.
20392         * lib/unictype/pr_decimal_digit.c: New file.
20393         * lib/unictype/pr_default_ignorable_code_point.c: New file.
20394         * lib/unictype/pr_deprecated.c: New file.
20395         * lib/unictype/pr_diacritic.c: New file.
20396         * lib/unictype/pr_extender.c: New file.
20397         * lib/unictype/pr_format_control.c: New file.
20398         * lib/unictype/pr_grapheme_base.c: New file.
20399         * lib/unictype/pr_grapheme_extend.c: New file.
20400         * lib/unictype/pr_grapheme_link.c: New file.
20401         * lib/unictype/pr_hex_digit.c: New file.
20402         * lib/unictype/pr_hyphen.c: New file.
20403         * lib/unictype/pr_id_continue.c: New file.
20404         * lib/unictype/pr_id_start.c: New file.
20405         * lib/unictype/pr_ideographic.c: New file.
20406         * lib/unictype/pr_ids_binary_operator.c: New file.
20407         * lib/unictype/pr_ids_trinary_operator.c: New file.
20408         * lib/unictype/pr_ignorable_control.c: New file.
20409         * lib/unictype/pr_iso_control.c: New file.
20410         * lib/unictype/pr_join_control.c: New file.
20411         * lib/unictype/pr_left_of_pair.c: New file.
20412         * lib/unictype/pr_line_separator.c: New file.
20413         * lib/unictype/pr_logical_order_exception.c: New file.
20414         * lib/unictype/pr_lowercase.c: New file.
20415         * lib/unictype/pr_math.c: New file.
20416         * lib/unictype/pr_non_break.c: New file.
20417         * lib/unictype/pr_not_a_character.c: New file.
20418         * lib/unictype/pr_numeric.c: New file.
20419         * lib/unictype/pr_other_alphabetic.c: New file.
20420         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
20421         * lib/unictype/pr_other_grapheme_extend.c: New file.
20422         * lib/unictype/pr_other_id_continue.c: New file.
20423         * lib/unictype/pr_other_id_start.c: New file.
20424         * lib/unictype/pr_other_lowercase.c: New file.
20425         * lib/unictype/pr_other_math.c: New file.
20426         * lib/unictype/pr_other_uppercase.c: New file.
20427         * lib/unictype/pr_paired_punctuation.c: New file.
20428         * lib/unictype/pr_paragraph_separator.c: New file.
20429         * lib/unictype/pr_pattern_syntax.c: New file.
20430         * lib/unictype/pr_pattern_white_space.c: New file.
20431         * lib/unictype/pr_private_use.c: New file.
20432         * lib/unictype/pr_punctuation.c: New file.
20433         * lib/unictype/pr_quotation_mark.c: New file.
20434         * lib/unictype/pr_radical.c: New file.
20435         * lib/unictype/pr_sentence_terminal.c: New file.
20436         * lib/unictype/pr_soft_dotted.c: New file.
20437         * lib/unictype/pr_space.c: New file.
20438         * lib/unictype/pr_terminal_punctuation.c: New file.
20439         * lib/unictype/pr_test.c: New file.
20440         * lib/unictype/pr_titlecase.c: New file.
20441         * lib/unictype/pr_unassigned_code_value.c: New file.
20442         * lib/unictype/pr_unified_ideograph.c: New file.
20443         * lib/unictype/pr_uppercase.c: New file.
20444         * lib/unictype/pr_variation_selector.c: New file.
20445         * lib/unictype/pr_white_space.c: New file.
20446         * lib/unictype/pr_xid_continue.c: New file.
20447         * lib/unictype/pr_xid_start.c: New file.
20448         * lib/unictype/pr_zero_width.c: New file.
20449         * lib/unictype/scripts.c: New file.
20450         * lib/unictype/sy_c_ident.c: New file.
20451         * lib/unictype/sy_c_whitespace.c: New file.
20452         * lib/unictype/sy_java_ident.c: New file.
20453         * lib/unictype/sy_java_whitespace.c: New file.
20454
20455         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
20456         Unicode 5.0.0.
20457         * lib/unictype/blocks.h: Likewise.
20458         * lib/unictype/categ_C.h: Likewise.
20459         * lib/unictype/categ_Cc.h: Likewise.
20460         * lib/unictype/categ_Cf.h: Likewise.
20461         * lib/unictype/categ_Cn.h: Likewise.
20462         * lib/unictype/categ_Co.h: Likewise.
20463         * lib/unictype/categ_Cs.h: Likewise.
20464         * lib/unictype/categ_L.h: Likewise.
20465         * lib/unictype/categ_Ll.h: Likewise.
20466         * lib/unictype/categ_Lm.h: Likewise.
20467         * lib/unictype/categ_Lo.h: Likewise.
20468         * lib/unictype/categ_Lt.h: Likewise.
20469         * lib/unictype/categ_Lu.h: Likewise.
20470         * lib/unictype/categ_M.h: Likewise.
20471         * lib/unictype/categ_Mc.h: Likewise.
20472         * lib/unictype/categ_Me.h: Likewise.
20473         * lib/unictype/categ_Mn.h: Likewise.
20474         * lib/unictype/categ_N.h: Likewise.
20475         * lib/unictype/categ_Nd.h: Likewise.
20476         * lib/unictype/categ_Nl.h: Likewise.
20477         * lib/unictype/categ_No.h: Likewise.
20478         * lib/unictype/categ_P.h: Likewise.
20479         * lib/unictype/categ_Pc.h: Likewise.
20480         * lib/unictype/categ_Pd.h: Likewise.
20481         * lib/unictype/categ_Pe.h: Likewise.
20482         * lib/unictype/categ_Pf.h: Likewise.
20483         * lib/unictype/categ_Pi.h: Likewise.
20484         * lib/unictype/categ_Po.h: Likewise.
20485         * lib/unictype/categ_Ps.h: Likewise.
20486         * lib/unictype/categ_S.h: Likewise.
20487         * lib/unictype/categ_Sc.h: Likewise.
20488         * lib/unictype/categ_Sk.h: Likewise.
20489         * lib/unictype/categ_Sm.h: Likewise.
20490         * lib/unictype/categ_So.h: Likewise.
20491         * lib/unictype/categ_Z.h: Likewise.
20492         * lib/unictype/categ_Zl.h: Likewise.
20493         * lib/unictype/categ_Zp.h: Likewise.
20494         * lib/unictype/categ_Zs.h: Likewise.
20495         * lib/unictype/categ_of.h: Likewise.
20496         * lib/unictype/combining.h: Likewise.
20497         * lib/unictype/ctype_alnum.h: Likewise.
20498         * lib/unictype/ctype_alpha.h: Likewise.
20499         * lib/unictype/ctype_blank.h: Likewise.
20500         * lib/unictype/ctype_cntrl.h: Likewise.
20501         * lib/unictype/ctype_digit.h: Likewise.
20502         * lib/unictype/ctype_graph.h: Likewise.
20503         * lib/unictype/ctype_lower.h: Likewise.
20504         * lib/unictype/ctype_print.h: Likewise.
20505         * lib/unictype/ctype_punct.h: Likewise.
20506         * lib/unictype/ctype_space.h: Likewise.
20507         * lib/unictype/ctype_upper.h: Likewise.
20508         * lib/unictype/ctype_xdigit.h: Likewise.
20509         * lib/unictype/decdigit.h: Likewise.
20510         * lib/unictype/digit.h: Likewise.
20511         * lib/unictype/mirror.h: Likewise.
20512         * lib/unictype/numeric.h: Likewise.
20513         * lib/unictype/pr_alphabetic.h: Likewise.
20514         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20515         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20516         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20517         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20518         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20519         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20520         * lib/unictype/pr_bidi_control.h: Likewise.
20521         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20522         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20523         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20524         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20525         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20526         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20527         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20528         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20529         * lib/unictype/pr_bidi_pdf.h: Likewise.
20530         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20531         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20532         * lib/unictype/pr_combining.h: Likewise.
20533         * lib/unictype/pr_composite.h: Likewise.
20534         * lib/unictype/pr_currency_symbol.h: Likewise.
20535         * lib/unictype/pr_dash.h: Likewise.
20536         * lib/unictype/pr_decimal_digit.h: Likewise.
20537         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20538         * lib/unictype/pr_deprecated.h: Likewise.
20539         * lib/unictype/pr_diacritic.h: Likewise.
20540         * lib/unictype/pr_extender.h: Likewise.
20541         * lib/unictype/pr_format_control.h: Likewise.
20542         * lib/unictype/pr_grapheme_base.h: Likewise.
20543         * lib/unictype/pr_grapheme_extend.h: Likewise.
20544         * lib/unictype/pr_grapheme_link.h: Likewise.
20545         * lib/unictype/pr_hex_digit.h: Likewise.
20546         * lib/unictype/pr_hyphen.h: Likewise.
20547         * lib/unictype/pr_id_continue.h: Likewise.
20548         * lib/unictype/pr_id_start.h: Likewise.
20549         * lib/unictype/pr_ideographic.h: Likewise.
20550         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20551         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20552         * lib/unictype/pr_ignorable_control.h: Likewise.
20553         * lib/unictype/pr_iso_control.h: Likewise.
20554         * lib/unictype/pr_join_control.h: Likewise.
20555         * lib/unictype/pr_left_of_pair.h: Likewise.
20556         * lib/unictype/pr_line_separator.h: Likewise.
20557         * lib/unictype/pr_logical_order_exception.h: Likewise.
20558         * lib/unictype/pr_lowercase.h: Likewise.
20559         * lib/unictype/pr_math.h: Likewise.
20560         * lib/unictype/pr_non_break.h: Likewise.
20561         * lib/unictype/pr_not_a_character.h: Likewise.
20562         * lib/unictype/pr_numeric.h: Likewise.
20563         * lib/unictype/pr_other_alphabetic.h: Likewise.
20564         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20565         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20566         * lib/unictype/pr_other_id_continue.h: Likewise.
20567         * lib/unictype/pr_other_id_start.h: Likewise.
20568         * lib/unictype/pr_other_lowercase.h: Likewise.
20569         * lib/unictype/pr_other_math.h: Likewise.
20570         * lib/unictype/pr_other_uppercase.h: Likewise.
20571         * lib/unictype/pr_paired_punctuation.h: Likewise.
20572         * lib/unictype/pr_paragraph_separator.h: Likewise.
20573         * lib/unictype/pr_pattern_syntax.h: Likewise.
20574         * lib/unictype/pr_pattern_white_space.h: Likewise.
20575         * lib/unictype/pr_private_use.h: Likewise.
20576         * lib/unictype/pr_punctuation.h: Likewise.
20577         * lib/unictype/pr_quotation_mark.h: Likewise.
20578         * lib/unictype/pr_radical.h: Likewise.
20579         * lib/unictype/pr_sentence_terminal.h: Likewise.
20580         * lib/unictype/pr_soft_dotted.h: Likewise.
20581         * lib/unictype/pr_space.h: Likewise.
20582         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20583         * lib/unictype/pr_titlecase.h: Likewise.
20584         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20585         * lib/unictype/pr_unified_ideograph.h: Likewise.
20586         * lib/unictype/pr_uppercase.h: Likewise.
20587         * lib/unictype/pr_variation_selector.h: Likewise.
20588         * lib/unictype/pr_white_space.h: Likewise.
20589         * lib/unictype/pr_xid_continue.h: Likewise.
20590         * lib/unictype/pr_xid_start.h: Likewise.
20591         * lib/unictype/pr_zero_width.h: Likewise.
20592         * lib/unictype/scripts.h: Likewise.
20593         * lib/unictype/scripts_byname.gperf: Likewise.
20594         * lib/unictype/sy_c_ident.h: Likewise.
20595         * lib/unictype/sy_c_whitespace.h: Likewise.
20596         * lib/unictype/sy_java_ident.h: Likewise.
20597         * lib/unictype/sy_java_whitespace.h: Likewise.
20598
20599         * lib/unictype/Makefile: New file.
20600         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
20601         glibc.
20602         * lib/unictype/3level.h: New file, copied from glibc.
20603         * lib/unictype/3levelbit.h: New file.
20604
20605 2007-11-11  Bruno Haible  <bruno@clisp.org>
20606
20607         * modules/gperf: New file.
20608         * modules/iconv_open (Depends-on): Add it.
20609         (Makefile.am): Remove the GPERF definition.
20610
20611 2007-11-11  Bruno Haible  <bruno@clisp.org>
20612
20613         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
20614         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
20615
20616 2007-11-11  Bruno Haible  <bruno@clisp.org>
20617
20618         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
20619         (usage): Remove function.
20620
20621 2007-11-11  Bruno Haible  <bruno@clisp.org>
20622
20623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
20624         gl_FUNC_CEILF_LIBS.
20625         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
20626         gl_FUNC_CEIL_LIBS.
20627         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
20628         gl_FUNC_CEILL_LIBS.
20629         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
20630         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
20631         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
20632
20633 2007-11-11  Bruno Haible  <bruno@clisp.org>
20634
20635         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
20636         roundf were declared but do not exist on functions.
20637         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
20638         roundl were declared but do not exist on functions.
20639         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
20640         HAVE_FLOORL_AND_CEILL, respectively.
20641         Needed for Sun C on Solaris 10.
20642
20643 2007-11-11  Bruno Haible  <bruno@clisp.org>
20644
20645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
20646         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
20647         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
20648         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
20649         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
20650         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
20651         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
20652         HAVE_DECL_ROUNDF.
20653         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
20654         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
20655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
20656         of HAVE_DECL_ROUND*.
20657         * modules/math (Makefile.am): Update.
20658
20659 2007-11-10  Bruno Haible  <bruno@clisp.org>
20660
20661         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
20662         ptrdiff_t as m4/intl.m4.
20663
20664 2007-11-10  Jim Meyering  <meyering@redhat.com>
20665
20666         Avoid link failure for the argmatch test.
20667         * tests/test-argmatch.c (usage): Define function to avoid a link
20668         failure: argmatch_die requires a usage function.
20669
20670 2007-11-09  Bruno Haible  <bruno@clisp.org>
20671
20672         * doc/functions/snprintf.texi: Mention BeOS deficiency.
20673         * doc/functions/vsnprintf.texi: Likewise.
20674         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
20675         with a size argument < 2.
20676
20677 2007-11-09  Bruno Haible  <bruno@clisp.org>
20678
20679         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
20680         buffer. Fixes an inefficiency introduced on 2007-11-03.
20681
20682 2007-11-09  Bruno Haible  <bruno@clisp.org>
20683
20684         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
20685         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
20686
20687 2007-11-08  Jim Meyering  <meyering@redhat.com>
20688
20689         Change cache variable name prefix "jm_" to "gl_" everywhere.
20690         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
20691         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
20692         * m4/uptime.m4: s/gl_/jm_/
20693
20694 2007-11-07  Bruno Haible  <bruno@clisp.org>
20695
20696         Update to GNU gettext 0.17.
20697         * m4/intl.m4: Update to GNU gettext 0.17.
20698         * m4/po.m4: Likewise.
20699         * modules/gettext (Files): Remove m4/ulonglong.m4.
20700         (configure.ac): Require gettext infrastructure from version 0.17.
20701
20702 2007-11-06  Bruno Haible  <bruno@clisp.org>
20703
20704         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
20705         symbolic values are not defined in a public header.
20706         * lib/freadable.c (freadable) [QNX]: Likewise.
20707         * lib/freadahead.c (freadahead) [QNX]: Likewise.
20708         * lib/freading.c (freading) [QNX]: Likewise.
20709         * lib/fseterr.c (fseterr) [QNX]: Likewise.
20710         * lib/fwritable.c (fwritable) [QNX]: Likewise.
20711         * lib/fwriting.c (fwriting) [QNX]: Likewise.
20712         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
20713         Reported by Alain Magloire.
20714
20715         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
20716
20717 2007-11-05  Bruno Haible  <bruno@clisp.org>
20718
20719         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
20720         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
20721         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
20722         Reported by Eric Blake.
20723
20724 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20725             Bruno Haible  <bruno@clisp.org>
20726
20727         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
20728         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
20729         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
20730         (malloc): Undefine also before including <stdlib.h>.
20731         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
20732         Needed on OSF/1 4.0.
20733
20734 2007-11-05  Jim Meyering  <meyering@redhat.com>
20735
20736         git-version-gen: sync from coreutils.
20737         * build-aux/git-version-gen: Add comments.
20738         Change the first '-' to '.' in the snapshot version string,
20739         e.g., 6.9-377-08144 -> 6.9.377-08144
20740         Remove first parameter.
20741         Don't declare a version "-dirty" merely because a time
20742         stamp has changed.
20743
20744 2007-11-04  Bruno Haible  <bruno@clisp.org>
20745
20746         * lib/lock.h: Protect all macro definitions containing an 'if'
20747         statement through a "do { ... } while (0)".
20748         * lib/tls.h: Likewise.
20749
20750 2007-11-04  Bruno Haible  <bruno@clisp.org>
20751
20752         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
20753
20754 2007-11-04  Bruno Haible  <bruno@clisp.org>
20755
20756         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
20757         * modules/fprintf-posix (Depends-on): Add nocrash.
20758         * modules/snprintf-posix (Depends-on): Likewise.
20759         * modules/sprintf-posix (Depends-on): Likewise.
20760         * modules/vasnprintf-posix (Depends-on): Likewise.
20761         * modules/vasprintf-posix (Depends-on): Likewise.
20762         * modules/vfprintf-posix (Depends-on): Likewise.
20763         * modules/vsnprintf-posix (Depends-on): Likewise.
20764         * modules/vsprintf-posix (Depends-on): Likewise.
20765         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20766         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20767         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20768         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20769         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20770         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20771         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20772
20773 2007-11-04  Bruno Haible  <bruno@clisp.org>
20774
20775         * modules/nocrash: New file.
20776         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
20777         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
20778
20779 2007-11-04  Bruno Haible  <bruno@clisp.org>
20780
20781         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
20782         precision handling.
20783         * tests/test-vasprintf-posix.c (test_function): Likewise.
20784         * tests/test-snprintf-posix.h (test_function): Likewise.
20785         * tests/test-sprintf-posix.h (test_function): Likewise.
20786
20787         Fix *printf behaviour for large precisions on mingw and BeOS.
20788         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
20789         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
20790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
20791         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20793         gl_PRINTF_PRECISION and test its result. Invoke
20794         gl_PREREQ_VASNPRINTF_PRECISION.
20795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20799         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20801         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20802         * doc/functions/fprintf.texi: Update.
20803         * doc/functions/printf.texi: Update.
20804         * doc/functions/snprintf.texi: Update.
20805         * doc/functions/sprintf.texi: Update.
20806         * doc/functions/vfprintf.texi: Update.
20807         * doc/functions/vprintf.texi: Update.
20808         * doc/functions/vsnprintf.texi: Update.
20809         * doc/functions/vsprintf.texi: Update.
20810
20811 2007-11-04  Bruno Haible  <bruno@clisp.org>
20812
20813         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
20814
20815 2007-11-04  Bruno Haible  <bruno@clisp.org>
20816
20817         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
20818         Reported by Sylvain Beucler <beuc@gnu.org>.
20819
20820 2007-11-03  Bruno Haible  <bruno@clisp.org>
20821
20822         * tests/test-fprintf-posix2.sh: New file.
20823         * tests/test-fprintf-posix2.c: New file.
20824         * modules/fprintf-posix-tests (Files): Add them.
20825         (TESTS): Add test-fprintf-posix2.sh.
20826         (configure.ac): Check for getrlimit and setrlimit.
20827         (check_PROGRAMS): Add test-fprintf-posix2.
20828
20829         * tests/test-printf-posix2.sh: New file.
20830         * tests/test-printf-posix2.c: New file.
20831         * modules/printf-posix-tests (Files): Add them.
20832         (TESTS): Add test-printf-posix2.sh.
20833         (configure.ac): Check for getrlimit and setrlimit.
20834         (check_PROGRAMS): Add test-printf-posix2.
20835
20836         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
20837         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
20838         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
20839         (decode_double): New function, copied from decode_long_double.
20840         (scale10_round_decimal_decoded): New function, extracted from
20841         scale10_round_decimal_long_double.
20842         (scale10_round_decimal_long_double): Use it.
20843         (scale10_round_decimal_double): New function.
20844         (floorlog10): New function.
20845         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
20846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
20847         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20848         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20849         gl_PRINTF_ENOMEM and test its result. Invoke
20850         gl_PREREQ_VASNPRINTF_ENOMEM.
20851         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20852         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20853         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20854         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20855         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20856         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20857         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20858         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
20859         * modules/snprintf-posix (Depends-on): Likewise.
20860         * modules/sprintf-posix (Depends-on): Likewise.
20861         * modules/vasnprintf-posix (Depends-on): Likewise.
20862         * modules/vasprintf-posix (Depends-on): Likewise.
20863         * modules/vfprintf-posix (Depends-on): Likewise.
20864         * modules/vsnprintf-posix (Depends-on): Likewise.
20865         * modules/vsprintf-posix (Depends-on): Likewise.
20866         * doc/functions/fprintf.texi: Update.
20867         * doc/functions/printf.texi: Update.
20868         * doc/functions/snprintf.texi: Update.
20869         * doc/functions/sprintf.texi: Update.
20870         * doc/functions/vfprintf.texi: Update.
20871         * doc/functions/vprintf.texi: Update.
20872         * doc/functions/vsnprintf.texi: Update.
20873         * doc/functions/vsprintf.texi: Update.
20874
20875 2007-11-03  Bruno Haible  <bruno@clisp.org>
20876
20877         * modules/frexp-nolibm-tests: New file.
20878
20879         * modules/frexp-nolibm: New file.
20880         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
20881
20882 2007-11-03  Bruno Haible  <bruno@clisp.org>
20883
20884         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
20885         value is C99 compliant.
20886         Needed for OSF/1 5.1.
20887
20888 2007-11-03  Bruno Haible  <bruno@clisp.org>
20889
20890         Fix out-of-memory handling of vasnprintf.
20891         * lib/printf-parse.c: Include <errno.h>.
20892         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
20893         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
20894         is already set.
20895
20896 2007-11-02  Eric Blake  <ebb9@byu.net>
20897
20898         Fix tests on cygwin.
20899         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
20900
20901 2007-11-01  Bruno Haible  <bruno@clisp.org>
20902
20903         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
20904         warning.
20905         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
20906         needed for POSIX compatibility.
20907
20908 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20909
20910         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
20911         for compatibility with GNU.
20912
20913 2007-11-01  Bruno Haible  <bruno@clisp.org>
20914
20915         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
20916         (putenv): Renamed from rpl_putenv. Change argument type from
20917         'const char *' to 'char *'.
20918         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
20919         of defining putenv in config.h, just set REPLACE_PUTENV.
20920         * modules/putenv (Depends-on): Add stdlib.
20921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20922         (Include): Use <stdlib.h>.
20923         * lib/stdlib.in.h (putenv): New declaration.
20924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
20925         REPLACE_PUTENV.
20926         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
20927         REPLACE_PUTENV.
20928         Needed for MacOS X 10.5.0.
20929         Reported by Peter O'Gorman <peter@pogma.com>.
20930
20931 2007-11-01  Jim Meyering  <meyering@redhat.com>
20932
20933         Treat an empty date string exactly like "0".
20934         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
20935         if the remaining date string (to be parsed) is empty, use "0".
20936         Reported by Mischa Molhoek and discussed in this thread:
20937         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
20938
20939 2007-10-31  Bruno Haible  <bruno@clisp.org>
20940
20941         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
20942         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
20943         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
20944         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
20945         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
20946         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
20947
20948 2007-10-31  Bruno Haible  <bruno@clisp.org>
20949
20950         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
20951         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
20952         (AC_TYPE_LONG_LONG_INT): Use it.
20953         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
20954         it as well.
20955         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
20956         to m4/longlong.m4.
20957         * modules/stdint (Files): Remove m4/ulonglong.m4.
20958         * modules/strtoull (Files): Use m4/longlong.m4 instead of
20959         m4/ulonglong.m4.
20960         * modules/strtoumax (Files): Likewise.
20961
20962 2007-10-30  Bruno Haible  <bruno@clisp.org>
20963
20964         * modules/xvasprintf-posix: New file.
20965         Suggested by Eric Blake.
20966
20967 2007-10-30  Bruno Haible  <bruno@clisp.org>
20968
20969         * modules/xprintf-posix-tests: New file.
20970         * tests/test-xprintf-posix.sh: New file.
20971         * tests/test-xprintf-posix.c: New file.
20972         * tests/test-xfprintf-posix.c: New file.
20973
20974         * modules/xprintf-posix: New file.
20975
20976 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20977
20978         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
20979         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
20980         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
20981
20982 2007-10-29  Bruno Haible  <bruno@clisp.org>
20983
20984         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
20985         contain the special marker '_cv_'.
20986         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20987         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20988         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20989         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20990         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20991         Reported by Ralf Wildenhues.
20992
20993 2007-10-29  Bruno Haible  <bruno@clisp.org>
20994
20995         * gnulib-tool (func_import): When --lgpl is not specified, set
20996         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
20997         GPLv3.
20998         Reported by Simon Josefsson.
20999
21000 2007-10-28  Bruno Haible  <bruno@clisp.org>
21001
21002         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
21003         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
21004         HAVE_DECL_ISFINITE.
21005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
21006         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
21007         HAVE_DECL_ISFINITE.
21008
21009 2007-10-28  Bruno Haible  <bruno@clisp.org>
21010
21011         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
21012         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
21013
21014 2007-10-28  Bruno Haible  <bruno@clisp.org>
21015
21016         Fix link errors with Sun C 5.0 on Solaris 10.
21017         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
21018         function is declared but not present in the compiler's libm.
21019         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21020         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21021         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
21022         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
21023         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
21024         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
21025         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
21026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
21027         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
21028         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
21029         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
21030         HAVE_DECL_FLOORL.
21031
21032 2007-10-28  Bruno Haible  <bruno@clisp.org>
21033
21034         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
21035         gl_FUNC_FLOORL. Cache the result.
21036         (gl_FUNC_FLOORL): Use it.
21037         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
21038         gl_FUNC_CEILL. Cache the result.
21039         (gl_FUNC_CEILL): Use it.
21040
21041         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
21042         gl_FUNC_FLOOR. Cache the result.
21043         (gl_FUNC_FLOOR): Use it.
21044         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
21045         gl_FUNC_CEIL. Cache the result.
21046         (gl_FUNC_CEIL): Use it.
21047
21048         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
21049         gl_FUNC_FLOORF. Cache the result.
21050         (gl_FUNC_FLOORF): Use it.
21051         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
21052         gl_FUNC_CEILF. Cache the result.
21053         (gl_FUNC_CEILF): Use it.
21054
21055 2007-10-28  Bruno Haible  <bruno@clisp.org>
21056
21057         * gnulib-tool: Allow specifying the LGPL version number through
21058         --lgpl=2 or --lgpl=3.
21059         (func_usage): Document --lgpl with argument.
21060         Handle --lgpl=... arguments.
21061         (func_import): Recognize also gl_LGPL calls with an argument. When
21062         --lgpl=2 is used and the module's license is just LGPL, report an
21063         error. Set sed_transform_lib_file according to the lgpl variable. In
21064         the generated files, use --lgpl or gl_LGPL invocations with argument,
21065         if necessary.
21066         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
21067         an LGPv2+ license.
21068         * doc/gnulib-tool.texi (Modified imports): Update explanation of
21069         gl_LGPL macro.
21070
21071 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21072             Bruno Haible  <bruno@clisp.org>
21073
21074         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
21075         (u16_uctomb_aux): Likewise.
21076         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
21077         !HAVE_INLINE.
21078         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
21079
21080 2007-10-28  Bruno Haible  <bruno@clisp.org>
21081
21082         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
21083         Invoke AM_GETTEXT_OPTION if it exists.
21084         * modules/vasprintf: Likewise.
21085         * modules/verror: Likewise.
21086         * modules/xprintf: Likewise.
21087         * modules/xvasprintf: Likewise.
21088
21089 2007-10-27  Ben Pfaff  <blp@gnu.org>
21090
21091         * lib/math.in.h: Define isfinite macro and prototypes for
21092         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
21093         implementations.
21094         * m4/math_h.m4: New substitutions for isfinite module.
21095         * lib/isfinite.c: New file.
21096         * m4/isfinite.m4: New file.
21097         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
21098         * modules/isfinite: New file.
21099         * modules/isfinite-tests: New file.
21100         * tests/tests-isfinite.c: New file.
21101         * doc/functions/isfinite.texi: Mention isfinite module.
21102         * MODULES.html.sh: Mention new module.
21103
21104 2007-10-27  Ben Pfaff  <blp@gnu.org>
21105
21106         Ralf Wildenhues reported that Tru64 4.0D declares the round
21107         functions but does not have definitions.
21108         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
21109         cannot be found in any library, set the output variable to
21110         "missing" instead of "".
21111         * m4/round.m4: Also use our substitute if we cannot find round in
21112         any library, even if it is declared.
21113         * m4/roundf.m4: Likewise for roundf.
21114         * m4/roundl.m4: Likewise for roundl.
21115         * lib/math.in.h: Undefine roundf, round, roundl before defining
21116         their replacements, to allow for hypothetical systems where these
21117         may be defined as macros but not available in libraries.
21118
21119 2007-10-27  Bruno Haible  <bruno@clisp.org>
21120
21121         * doc/gnulib.texi: Invoke @firstparagraphindent.
21122         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
21123         changes in gnulib.
21124         (Source changes): New section.
21125
21126 2007-10-26  Bruno Haible  <bruno@clisp.org>
21127
21128         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
21129         borrowed from autoconf.
21130
21131 2007-10-26  Bruno Haible  <bruno@clisp.org>
21132
21133         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
21134         strerror returned the empty string. Needed on HP-UX 11.00.
21135
21136 2007-10-24  Micah Cowan  <micah@cowan.name>
21137
21138         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
21139         * build-aux/bootstrap: Remove support for now-unnecessary option,
21140         --cvs-user, and envvars CVS_USER, CVS_RSH.
21141
21142 2007-10-24  Jim Meyering  <meyering@redhat.com>
21143
21144         Avoid diagnostics from sha1sum when there is no cached checksum.
21145         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
21146         if the po.s1 file hasn't been created yet.
21147
21148         * build-aux/bootstrap: Sync from coreutils:
21149         2007-10-24  Jim Meyering  <meyering@redhat.com>
21150         Get gnulib from the git repository, not from an obsolete cvs one.
21151         * build-aux/bootstrap: Suggestion from Micah Cowan.
21152         2007-10-04  Jim Meyering  <jim@meyering.net>
21153         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
21154         (update_po_files): Work also when there are no .po files in po/.
21155
21156 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21157
21158         * README: Append ".git" to git and cg examples.
21159         Problem reported by Benoit Sigoure.
21160
21161 2007-10-23  Micah Cowan  <micah@cowan.name>
21162
21163         * users.txt: Add wget.
21164
21165 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21166
21167         Fix linking of some unistdio tests on FreeBSD.
21168         * modules/unistdio/u16-vsnprintf-tests
21169         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
21170         * modules/unistdio/u16-vsprintf-tests
21171         (test_u16_vsnprintf1_LDADD): Likewise.
21172         * modules/unistdio/u32-vsnprintf-tests
21173         (test_u32_vsnprintf1_LDADD): Likewise.
21174         * modules/unistdio/u32-vsprintf-tests
21175         (test_u32_vsprintf1_LDADD): Likewise.
21176         * modules/unistdio/u8-vsnprintf-tests
21177         (test_u8_vsnprintf1_LDADD): Likewise.
21178         * modules/unistdio/u8-vsprintf-tests
21179         (test_u8_vsprintf1_LDADD): Likewise.
21180         * modules/unistdio/ulc-vsnprintf-tests
21181         (test_ulc_vsnprintf1_LDADD): Likewise.
21182         * modules/unistdio/ulc-vsprintf-tests
21183         (test_ulc_vsprintf1_LDADD): Likewise.
21184
21185         Fix linking of some uniconv tests on FreeBSD.
21186         * modules/uniconv/u16-conv-from-enc-tests
21187         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
21188         * modules/uniconv/u16-conv-to-enc-tests
21189         (test_u16_conv_to_enc_LDADD): Likewise.
21190         * modules/uniconv/u16-strconv-from-enc-tests
21191         (test_u16_strconv_from_enc_LDADD): Likewise.
21192         * modules/uniconv/u16-strconv-to-enc-tests
21193         (test_u16_strconv_to_enc_LDADD): Likewise.
21194         * modules/uniconv/u32-conv-from-enc-tests
21195         (test_u32_conv_from_enc_LDADD): Likewise.
21196         * modules/uniconv/u32-conv-to-enc-tests
21197         (test_u32_conv_to_enc_LDADD): Likewise.
21198         * modules/uniconv/u32-strconv-from-enc-tests
21199         (test_u32_strconv_from_enc_LDADD): Likewise.
21200         * modules/uniconv/u32-strconv-to-enc-tests
21201         (test_u32_strconv_to_enc_LDADD): Likewise.
21202         * modules/uniconv/u8-conv-from-enc-tests
21203         (test_u8_conv_from_enc_LDADD): Likewise.
21204         * modules/uniconv/u8-conv-to-enc-tests
21205         (test_u8_conv_to_enc_LDADD): Likewise.
21206         * modules/uniconv/u8-strconv-from-enc-tests
21207         (test_u8_strconv_from_enc_LDADD): Likewise.
21208         * modules/uniconv/u8-strconv-to-enc-tests
21209         (test_u8_strconv_to_enc_LDADD): Likewise.
21210
21211 2007-10-22  Bruno Haible  <bruno@clisp.org>
21212
21213         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
21214         size.
21215
21216 2007-10-22  Eric Blake  <ebb9@byu.net>
21217
21218         Tweak x*printf documentation.
21219         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
21220         variable name and comments.
21221         Suggested by Bruno Haible.
21222
21223 2007-10-22  Bruno Haible  <bruno@clisp.org>
21224
21225         * lib/acl.c (copy_acl): Fix file name in comment.
21226
21227 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21228
21229         Fix Tru64 problem with stdbool.h.
21230         * lib/stdbool.in.h (false, true):
21231         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
21232         Don't declare as an enum in this situation; it runs afoul of Tru64.
21233         Problem reported by Steven M. Schweda in
21234         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
21235
21236 2007-10-22  Eric Blake  <ebb9@byu.net>
21237
21238         Also wrap vf?printf.
21239         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
21240         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
21241         (xvprintf, xvfprintf): New functions.
21242
21243 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21244
21245         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
21246         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
21247
21248         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
21249         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
21250
21251 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21252
21253         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
21254         by Bruno Haible.
21255
21256 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21257
21258         * lib/getloadavg.c
21259         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
21260         Undef `sys' after including sys/table.h, for Tru64 4.0D.
21261
21262         * tests/test-i-ring.c: Work for C89.
21263
21264 2007-10-22  Bruno Haible  <bruno@clisp.org>
21265
21266         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
21267         -1u, in preprocessor expression, so that we don't test for the bug
21268         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
21269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
21270
21271 2007-10-22  Eric Blake  <ebb9@byu.net>
21272
21273         * tests/test-yesno.sh: Silence stderr during test.
21274
21275 2007-10-22  Simon Josefsson  <simon@josefsson.org>
21276
21277         * modules/crypto/gc-camellia: New file.
21278
21279         * m4/gc-camellia.m4: New file.
21280
21281         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
21282
21283         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
21284
21285 2007-10-22  Simon Josefsson  <simon@josefsson.org>
21286
21287         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
21288         --help to stdout.  Reported by sms@antinode.org (Steven
21289         M. Schweda).
21290
21291 2007-10-22  Simon Josefsson  <simon@josefsson.org>
21292
21293         * users.txt: Fix link to libksba.
21294
21295 2007-10-21  Ben Pfaff  <blp@gnu.org>
21296
21297         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
21298         round.c roundf implementation that depends on floorf and ceilf to
21299         be tested unconditionally.
21300
21301 2007-10-21  Ben Pfaff  <blp@gnu.org>
21302
21303         * m4/check-libm-func.m4: Removed.
21304         * m4/check-math-lib.m4: New file.
21305         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
21306         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
21307         definition and lack of AC_LIBOBJ([roundf]).
21308         * m4/roundl.m4: Ditto, and similarly for roundl.
21309         * modules/round: Reference new m4 file.
21310         * modules/roundf: Ditto.
21311         * modules/roundl: Ditto.
21312         * tests/test-round2.c (main): Use ROUND instead of round.
21313         Bug report from Bruno Haible.
21314
21315 2007-10-21  Bruno Haible  <bruno@clisp.org>
21316
21317         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
21318         context.
21319
21320 2007-10-21  Bruno Haible  <bruno@clisp.org>
21321
21322         * tests/test-wcwidth.c (main): Allow negative result for some control
21323         characters.
21324
21325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
21326         Needed on OSF/1 5.1.
21327
21328 2007-10-21  Bruno Haible  <bruno@clisp.org>
21329
21330         * tests/test-floorf1.c: Include isnanf.h.
21331         (main): Use isnanf() instead of isnan().
21332         * tests/test-ceilf1.c: Include isnanf.h.
21333         (main): Use isnanf() instead of isnan().
21334         * tests/test-truncf1.c: Include isnanf.h.
21335         (main): Use isnanf() instead of isnan().
21336         * tests/test-roundf1.c: Include isnanf.h.
21337         (main): Use isnanf() instead of isnan().
21338
21339 2007-10-21  Eric Blake  <ebb9@byu.net>
21340
21341         * users.txt: Update URL for m4.
21342
21343 2007-10-21  Bruno Haible  <bruno@clisp.org>
21344
21345         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
21346
21347 2007-10-21  Bruno Haible  <bruno@clisp.org>
21348
21349         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
21350         Git's management files if the CVS files are not present.
21351
21352 2007-10-20  Bruno Haible  <bruno@clisp.org>
21353
21354         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
21355         gcc-3.4.x.
21356
21357 2007-10-20  Ben Pfaff  <blp@gnu.org>
21358
21359         * lib/math.in.h: Declare round, roundf, roundl if we are providing
21360         implementations.
21361         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
21362         * lib/round.c: New file.
21363         * lib/roundf.c: New file.
21364         * lib/roundl.c: New file.
21365         * m4/round.m4: New file.
21366         * m4/roundf.m4: New file.
21367         * m4/roundl.m4: New file.
21368         * m4/check-libm-func-m4: New file.
21369         * modules/math: Replace round, roundf, roundl related @VARS@ in
21370         math.in.h.
21371         * modules/round: New file.
21372         * modules/round-tests: New file.
21373         * modules/roundf: New file.
21374         * modules/roundf-tests: New file.
21375         * modules/roundl: New file.
21376         * modules/roundl-tests: New file.
21377         * tests/test-round1.c: New file.
21378         * tests/test-round2.c: New file.
21379         * tests/test-roundf1.c: New file.
21380         * tests/test-roundf2.c: New file.
21381         * tests/test-roundl.c: New file.
21382         * doc/functions/round.texi: Mention round module.
21383         * doc/functions/roundf.texi: Mention roundf module.
21384         * doc/functions/roundl.texi: Mention roundl module.
21385         * MODULES.html.sh: Mention new modules.
21386         Thanks to Bruno Haible for suggestions.
21387
21388 2007-10-20  Jim Meyering  <meyering@redhat.com>
21389
21390         * lib/xprintf.c: Include <config.h> unconditionally.
21391
21392         Change xprintf's license to GPL.
21393         * modules/xprintf (License): s/LGPL/GPL/, since this module
21394         depends on modules (exit and exitfail) which are GPL.
21395         Suggestion from Bruno Haible.
21396
21397         xprintf fixes.
21398         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
21399         Use a clearer diagnostic.
21400         Patch from Bruno Haible.
21401
21402 2007-10-20  Bruno Haible  <bruno@clisp.org>
21403
21404         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
21405         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
21406         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21407
21408 2007-10-20  Bruno Haible  <bruno@clisp.org>
21409
21410         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
21411         precision in the comparison result > x - 1 or similar.
21412         * tests/test-ceilf2.c (correct_result_p): Likewise.
21413         * tests/test-truncf2.c (correct_result_p): Likewise.
21414         * tests/test-trunc2.c (correct_result_p): Likewise.
21415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21416
21417 2007-10-20  Bruno Haible  <bruno@clisp.org>
21418
21419         * modules/ceil: New file.
21420         * m4/ceil.m4: New file.
21421         * doc/functions/ceil.texi: Mention the 'ceil' module.
21422
21423 2007-10-20  Bruno Haible  <bruno@clisp.org>
21424
21425         * modules/floor: New file.
21426         * m4/floor.m4: New file.
21427         * doc/functions/floor.texi: Mention the 'floor' module.
21428
21429 2007-10-20  Bruno Haible  <bruno@clisp.org>
21430
21431         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
21432         of %a.
21433         * modules/floorf-tests (Depends-on): Likewise.
21434         * modules/truncf-tests (Depends-on): Likewise.
21435         * modules/trunc-tests (Depends-on): Likewise.
21436         Reported by Ben Pfaff.
21437
21438 2007-10-19  Jim Meyering  <meyering@redhat.com>
21439
21440         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
21441         Don't bother testing specific errno values.  Just test ferror.
21442
21443         New module: xprintf
21444         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
21445
21446 2007-10-19  Bruno Haible  <bruno@clisp.org>
21447
21448         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
21449         syntax.
21450         * modules/javaexec (Makefile.am): Likewise.
21451         * modules/relocatable-prog (Makefile.am): Likewise.
21452         Suggested by Jim Meyering.
21453
21454 2007-10-18  Bruno Haible  <bruno@clisp.org>
21455
21456         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
21457         Reported by Jim Meyering.
21458
21459 2007-10-18  Eric Blake  <ebb9@byu.net>
21460
21461         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
21462
21463 2007-10-18  Bruno Haible  <bruno@clisp.org>
21464
21465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
21466         the format string into writable memory. Needed in Fortify conditions.
21467
21468 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
21469             Bruno Haible  <bruno@clisp.org>
21470
21471         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
21472         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
21473         * modules/trim (Depends-on): Add mbchar.
21474         (configure.ac): Add gl_FUNC_MBRTOWC.
21475         (Makefile.am): Augment lib_SOURCES.
21476
21477 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21478
21479         Modify glob.c to use fstatat and dirfd, to simplify it.
21480         Suggested by Eric Blake.
21481         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
21482         Don't include <stdbool.h>; not used.
21483         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
21484         (link_exists_p): Simplify implementation, since we can now assume
21485         dirfd and fstatat.
21486         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
21487
21488 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21489
21490         * gnulib-tool (func_get_dependencies): Fix sed script to
21491         match only tests.
21492
21493 2007-10-17  Bruno Haible  <bruno@clisp.org>
21494
21495         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
21496         allow locale names without encoding suffix.
21497         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21498         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21499
21500 2007-10-16  Bruno Haible  <bruno@clisp.org>
21501
21502         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
21503         * lib/getgroups.c (getgroups): Likewise.
21504         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
21505
21506 2007-10-16  Bruno Haible  <bruno@clisp.org>
21507
21508         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
21509         * modules/malloc-posix (License): Likewise.
21510         * modules/realloc-posix (License): Likewise.
21511         * modules/calloc-posix (License): Likewise.
21512         * modules/intprops (License): Change from GPL to LGPL, with
21513         Paul Eggert's approval.
21514
21515 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21516
21517         Merge glibc changes into lib/glob.c.
21518
21519         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
21520         2007-10-15 04:59:03 UTC.  Here are the changes:
21521
21522         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
21523
21524         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
21525
21526         * lib/glob.c: Add some branch prediction throughout.
21527
21528         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
21529
21530         [BZ #5103]
21531         * lib/glob.c (glob): Recognize patterns starting \/.
21532
21533         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
21534
21535         [BZ #3996]
21536         * lib/glob.c (attribute_hidden): Define if not defined.
21537         (glob): Unescape dirname, filename or username when needed and not
21538         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
21539         is NULL.  Handle unescaped [ in pattern without closing ].
21540         Don't pass GLOB_CHECK down to recursive glob for directories.
21541         (__glob_pattern_type): New function.
21542         (__glob_pattern_p): Implement using __glob_pattern_type.
21543         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
21544         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
21545         Remove unreachable code.
21546
21547         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
21548
21549         * lib/glob.c (glob_in_dir): Add some comments and asserts to
21550         explain why there are no leaks.
21551
21552         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
21553
21554         [BZ #3253]
21555         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
21556         time, rather allocate increasingly bigger arrays of pointers, if
21557         possible with alloca, if too large with malloc.
21558
21559 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21560
21561         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
21562         Problem reported by H.Merijn Brand in
21563         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
21564         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
21565         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
21566
21567 2007-10-15  Bruno Haible  <bruno@clisp.org>
21568
21569         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
21570         with explicit rpl_ prefix.
21571         * lib/fopen.c (fopen): Likewise.
21572         * lib/freopen.c (freopen): Likewise.
21573         * lib/iconv.c (iconv): Likewise.
21574         * lib/iconv_close.c (iconv_close): Likewise.
21575
21576 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21577
21578         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
21579
21580 2007-10-15  Bruno Haible  <bruno@clisp.org>
21581
21582         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
21583         <stddef.h> instead of <stdlib.h> since we only need NULL.
21584         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21585
21586 2007-10-15  Bruno Haible  <bruno@clisp.org>
21587
21588         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
21589         Replace paragraph talking about LIBOBJS.
21590         Reported by Colin Watson <cjwatson@debian.org>.
21591
21592 2007-10-15  Bruno Haible  <bruno@clisp.org>
21593
21594         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
21595         <stdlib.h> before using NULL.
21596
21597 2007-10-15  Simon Josefsson  <simon@josefsson.org>
21598
21599         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
21600         Reported by Albert Chin <china@thewrittenword.com>.
21601
21602 2007-10-14  Bruno Haible  <bruno@clisp.org>
21603
21604         * modules/iconv_open-utf-tests: New file.
21605         * tests/test-iconv-utf.c: New file.
21606
21607         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
21608         * modules/iconv_open-utf: New file.
21609         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
21610         (iconv, iconv_close): New declarations.
21611         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
21612         be defined.
21613         (iconv_open): Add special handling of conversion between UTF-8 and
21614         UTF-{16,32}{BE,LE}.
21615         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
21616         * lib/iconv_close.c: New file.
21617         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
21618         gl_FUNC_ICONV_OPEN.
21619         (gl_FUNC_ICONV_OPEN): Use it.
21620         (gl_FUNC_ICONV_OPEN_UTF): New macro.
21621         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
21622         and REPLACE_ICONV_UTF.
21623         * modules/iconv_open (Depends-on): Add c-strcase.
21624         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
21625         ICONV_CONST.
21626         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
21627
21628 2007-10-13  Albert Chin  <china@thewrittenword.com>
21629             Bruno Haible  <bruno@clisp.org>
21630
21631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
21632         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
21633
21634 2007-10-13  Bruno Haible  <bruno@clisp.org>
21635
21636         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
21637         defined, use the ISO C99 inline semantics.
21638         * lib/argp.h (ARGP_EI): Likewise.
21639
21640 2007-10-13  Bruno Haible  <bruno@clisp.org>
21641
21642         Handle 'inline' change in gcc 4.3.0.
21643         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
21644         argp_fmtstream_write, argp_fmtstream_set_lmargin,
21645         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
21646         argp_fmtstream_point): Disable 'extern' declaration if the function
21647         definition is going to be provided inline.
21648         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
21649         semantics, not the ISO C99 inline semantics.
21650         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
21651         'extern' declaration if the function definition is going to be provided
21652         inline.
21653         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
21654         the GNU C inline semantics, not the ISO C99 inline semantics. With
21655         GCC 4.2, avoid a warning.
21656
21657 2007-10-13  Bruno Haible  <bruno@clisp.org>
21658
21659         * lib/freading.h (freading): Enable the use of __freading for
21660         glibc >= 2.7.
21661         * lib/freading.c (freading): Likewise.
21662
21663 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21664
21665         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
21666         "warning: C99 inline functions are not supported; using GNU89".
21667
21668 2007-10-12  Bruno Haible  <bruno@clisp.org>
21669
21670         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
21671         of 2.
21672         * tests/test-ceilf2.c: New file.
21673         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
21674
21675         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
21676         * modules/ceilf-tests: Update.
21677
21678 2007-10-12  Bruno Haible  <bruno@clisp.org>
21679
21680         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
21681         of 2.
21682         * tests/test-floorf2.c: New file.
21683         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
21684
21685         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
21686         * modules/floorf-tests: Update.
21687
21688 2007-10-12  Bruno Haible  <bruno@clisp.org>
21689
21690         * tests/test-trunc2.c: New file.
21691         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
21692
21693         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
21694         * modules/trunc-tests: Update.
21695
21696 2007-10-12  Bruno Haible  <bruno@clisp.org>
21697
21698         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
21699         of 2.
21700         * tests/test-truncf2.c: New file.
21701         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
21702
21703         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
21704         * modules/truncf-tests: Update.
21705
21706 2007-10-11  Eric Blake  <ebb9@byu.net>
21707
21708         Don't claim strerror is broken on Interix.
21709         * doc/functions/strerror.texi (strerror): Known broken systems are
21710         now Solaris 8, and not Interix.
21711         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
21712         Interix on cross-compile.
21713         Reported by Martin Koeppe in
21714         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
21715
21716 2007-10-11  Bruno Haible  <bruno@clisp.org>
21717
21718         * modules/i-ring-tests: New file.
21719         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
21720         instead of assert.
21721
21722 2007-10-11  Bruno Haible  <bruno@clisp.org>
21723
21724         * modules/filenamecat-tests: New file.
21725         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
21726         * lib/filenamecat.c: Remove test code.
21727
21728 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21729
21730         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
21731
21732         * lib/strerror.c: Include <string.h> always, to test interface,
21733         and to remove the need for the dummy.
21734         Include intprops.h to compute width instead of doing it ourselves
21735         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
21736         (strerror): Define it to return NULL if there's no system strerror.
21737         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
21738         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
21739         ancient pre-strerror Unix systems well any more.  Saying "unknown
21740         system error" is enough.
21741         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
21742         simpler strerror.c implementation.
21743         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
21744         Simplify the tests to reflect the simpler strerror implementation.
21745         * modules/strerror (Depends-on): Add intprops.
21746
21747 2007-10-09  Eric Blake  <ebb9@byu.net>
21748
21749         Silence test-fpending.
21750         * modules/fpending-tests (Files): Add wrapper script.
21751         * tests/test-fpending.sh: New file.
21752
21753 2007-10-09  Bruno Haible  <bruno@clisp.org>
21754
21755         * MODULES.html.sh (func_module): Don't create a hyperlink for
21756         function names like 'printf_frexp'.
21757         (Misc): Add crc, memxor.
21758         (Characteristics of floating types): New section.
21759         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
21760         isnanf-nolibm, signbit, trunc, truncf, truncl.
21761         (Enhancements for ISO C 99 functions): New subsection Input/output.
21762         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
21763         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
21764         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
21765         (Compatibility checks for POSIX:2001 functions): Add clock-time.
21766         (Enhancements for POSIX:2001 functions): Add chdir-long.
21767         (File system functions): Add areadlink, chdir-safer, read-file.
21768         Remove cycle-check.
21769         (File system as inode set): New section.
21770         (Date and time): Add gethrxtime.
21771         (Multithreading): Add openmp.
21772         (Internationalization functions): Add localename.
21773         (Unicode string functions): Add unistr/u*-mbsnlen.
21774         (Support for maintaining and releasing projects): Add git-version-gen.
21775         (Lone files): Remove directories.
21776
21777 2007-10-08  Ben Pfaff  <blp@gnu.org>
21778
21779         * lib/xmalloca.h: Fix typo in comment.
21780
21781 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21782
21783         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
21784         when avoiding problems with integer overflow.  Use a portable test
21785         instead.
21786
21787 2007-10-08  Simon Josefsson  <simon@josefsson.org>
21788
21789         * modules/dummy (License): Change to LGPLv2+.
21790         * modules/float (License): Likewise
21791         * modules/realloc (License): Likewise
21792         * modules/stdlib (License): Likewise
21793
21794 2007-10-07  Bruno Haible  <bruno@clisp.org>
21795
21796         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
21797         * floor.c (TWO_MANT_DIG): Likewise.
21798         * ceil.c (TWO_MANT_DIG): Likewise.
21799         Reported by Ben Pfaff.
21800
21801 2007-10-07  Bruno Haible  <bruno@clisp.org>
21802
21803         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
21804         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
21805         * lib/frexp.c (FUNC): Likewise.
21806         * lib/printf-frexp.h (printf_frexp): Likewise.
21807         * lib/printf-frexpl.h (printf_frexpl): Likewise.
21808         * lib/printf-frexp.c (FUNC): Likewise.
21809         Suggested by Jim Meyering.
21810
21811 2007-10-07  Jim Meyering  <meyering@redhat.com>
21812
21813         Make xnanosleep's integer overflow test more robust.
21814         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
21815         so that gcc-4.3.0 doesn't optimize away this test for overflow.
21816
21817 2007-10-07  Bruno Haible  <bruno@clisp.org>
21818
21819         * NEWS: Mention the license change.
21820
21821         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
21822         abbreviations in the modules files.
21823
21824         Change copyright notice from GPLv2+ to GPLv3+.
21825         * README: Change copyright notice.
21826         * MODULES.html.sh: Likewise.
21827         * build-aux/bootstrap.conf: Likewise.
21828         * build-aux/config.libpath: Likewise.
21829         * build-aux/csharpcomp.sh.in: Likewise.
21830         * build-aux/csharpexec.sh.in: Likewise.
21831         * build-aux/install-reloc: Likewise.
21832         * build-aux/javacomp.sh.in: Likewise.
21833         * build-aux/javaexec.sh.in: Likewise.
21834         * build-aux/ldd.sh.in: Likewise.
21835         * build-aux/reloc-ldflags: Likewise.
21836         * build-aux/relocatable.sh.in: Likewise.
21837         * build-aux/x-to-1.in: Likewise.
21838         * check-module: Likewise.
21839         * config/srclistvars.sh: Likewise.
21840         * gnulib-tool: Likewise.
21841         * lib/acl-internal.h: Likewise.
21842         * lib/acl.c: Likewise.
21843         * lib/acl.h: Likewise.
21844         * lib/acl_entries.c: Likewise.
21845         * lib/areadlink-with-size.c: Likewise.
21846         * lib/areadlink.c: Likewise.
21847         * lib/areadlink.h: Likewise.
21848         * lib/argmatch.c: Likewise.
21849         * lib/argmatch.h: Likewise.
21850         * lib/argp-ba.c: Likewise.
21851         * lib/argp-eexst.c: Likewise.
21852         * lib/argp-fmtstream.c: Likewise.
21853         * lib/argp-fmtstream.h: Likewise.
21854         * lib/argp-fs-xinl.c: Likewise.
21855         * lib/argp-help.c: Likewise.
21856         * lib/argp-namefrob.h: Likewise.
21857         * lib/argp-parse.c: Likewise.
21858         * lib/argp-pin.c: Likewise.
21859         * lib/argp-pv.c: Likewise.
21860         * lib/argp-pvh.c: Likewise.
21861         * lib/argp-xinl.c: Likewise.
21862         * lib/argp.h: Likewise.
21863         * lib/at-func.c: Likewise.
21864         * lib/atanl.c: Likewise.
21865         * lib/backupfile.c: Likewise.
21866         * lib/backupfile.h: Likewise.
21867         * lib/basename.c: Likewise.
21868         * lib/binary-io.h: Likewise.
21869         * lib/byteswap.in.h: Likewise.
21870         * lib/c-stack.c: Likewise.
21871         * lib/c-stack.h: Likewise.
21872         * lib/c-strcasestr.c: Likewise.
21873         * lib/c-strcasestr.h: Likewise.
21874         * lib/c-strstr.c: Likewise.
21875         * lib/c-strstr.h: Likewise.
21876         * lib/c-strtod.c: Likewise.
21877         * lib/calloc.c: Likewise.
21878         * lib/canon-host.c: Likewise.
21879         * lib/canon-host.h: Likewise.
21880         * lib/canonicalize-lgpl.c: Likewise.
21881         * lib/canonicalize.c: Likewise.
21882         * lib/canonicalize.h: Likewise.
21883         * lib/ceil.c: Likewise.
21884         * lib/ceilf.c: Likewise.
21885         * lib/ceill.c: Likewise.
21886         * lib/chdir-long.c: Likewise.
21887         * lib/chdir-long.h: Likewise.
21888         * lib/chdir-safer.c: Likewise.
21889         * lib/chdir-safer.h: Likewise.
21890         * lib/chown.c: Likewise.
21891         * lib/classpath.c: Likewise.
21892         * lib/classpath.h: Likewise.
21893         * lib/clean-temp.c: Likewise.
21894         * lib/clean-temp.h: Likewise.
21895         * lib/cloexec.c: Likewise.
21896         * lib/close-stream.c: Likewise.
21897         * lib/closein.c: Likewise.
21898         * lib/closein.h: Likewise.
21899         * lib/closeout.c: Likewise.
21900         * lib/closeout.h: Likewise.
21901         * lib/concat-filename.c: Likewise.
21902         * lib/copy-file.c: Likewise.
21903         * lib/copy-file.h: Likewise.
21904         * lib/count-one-bits.h: Likewise.
21905         * lib/crc.c: Likewise.
21906         * lib/crc.h: Likewise.
21907         * lib/creat-safer.c: Likewise.
21908         * lib/csharpcomp.c: Likewise.
21909         * lib/csharpcomp.h: Likewise.
21910         * lib/csharpexec.c: Likewise.
21911         * lib/csharpexec.h: Likewise.
21912         * lib/cycle-check.c: Likewise.
21913         * lib/cycle-check.h: Likewise.
21914         * lib/diacrit.c: Likewise.
21915         * lib/diacrit.h: Likewise.
21916         * lib/diffseq.h: Likewise.
21917         * lib/dirchownmod.c: Likewise.
21918         * lib/dirent.in.h: Likewise.
21919         * lib/dirfd.c: Likewise.
21920         * lib/dirfd.h: Likewise.
21921         * lib/dirname.c: Likewise.
21922         * lib/dirname.h: Likewise.
21923         * lib/dummy.c: Likewise.
21924         * lib/dup-safer.c: Likewise.
21925         * lib/dup2.c: Likewise.
21926         * lib/eealloc.h: Likewise.
21927         * lib/error.c: Likewise.
21928         * lib/error.h: Likewise.
21929         * lib/euidaccess.c: Likewise.
21930         * lib/exclude.c: Likewise.
21931         * lib/exclude.h: Likewise.
21932         * lib/execute.c: Likewise.
21933         * lib/execute.h: Likewise.
21934         * lib/exitfail.c: Likewise.
21935         * lib/exitfail.h: Likewise.
21936         * lib/expl.c: Likewise.
21937         * lib/fatal-signal.c: Likewise.
21938         * lib/fatal-signal.h: Likewise.
21939         * lib/fbufmode.c: Likewise.
21940         * lib/fbufmode.h: Likewise.
21941         * lib/fchdir.c: Likewise.
21942         * lib/fchmodat.c: Likewise.
21943         * lib/fchownat.c: Likewise.
21944         * lib/fcntl--.h: Likewise.
21945         * lib/fcntl-safer.h: Likewise.
21946         * lib/fcntl.in.h: Likewise.
21947         * lib/fd-safer.c: Likewise.
21948         * lib/fflush.c: Likewise.
21949         * lib/file-has-acl.c: Likewise.
21950         * lib/file-set.c: Likewise.
21951         * lib/file-type.c: Likewise.
21952         * lib/file-type.h: Likewise.
21953         * lib/fileblocks.c: Likewise.
21954         * lib/filemode.c: Likewise.
21955         * lib/filemode.h: Likewise.
21956         * lib/filename.h: Likewise.
21957         * lib/filenamecat.c: Likewise.
21958         * lib/filenamecat.h: Likewise.
21959         * lib/findprog.c: Likewise.
21960         * lib/findprog.h: Likewise.
21961         * lib/float.in.h: Likewise.
21962         * lib/floor.c: Likewise.
21963         * lib/floorf.c: Likewise.
21964         * lib/floorl.c: Likewise.
21965         * lib/fopen-safer.c: Likewise.
21966         * lib/fopen.c: Likewise.
21967         * lib/fpending.c: Likewise.
21968         * lib/fpending.h: Likewise.
21969         * lib/fprintf.c: Likewise.
21970         * lib/fprintftime.h: Likewise.
21971         * lib/fpucw.h: Likewise.
21972         * lib/fpurge.c: Likewise.
21973         * lib/fpurge.h: Likewise.
21974         * lib/freadable.c: Likewise.
21975         * lib/freadable.h: Likewise.
21976         * lib/freadahead.c: Likewise.
21977         * lib/freadahead.h: Likewise.
21978         * lib/freading.c: Likewise.
21979         * lib/freading.h: Likewise.
21980         * lib/free.c: Likewise.
21981         * lib/freopen.c: Likewise.
21982         * lib/frexp.c: Likewise.
21983         * lib/frexpl.c: Likewise.
21984         * lib/fseek.c: Likewise.
21985         * lib/fseterr.c: Likewise.
21986         * lib/fseterr.h: Likewise.
21987         * lib/fstatat.c: Likewise.
21988         * lib/fstrcmp.c: Likewise.
21989         * lib/fstrcmp.h: Likewise.
21990         * lib/fsusage.c: Likewise.
21991         * lib/fsusage.h: Likewise.
21992         * lib/ftell.c: Likewise.
21993         * lib/ftello.c: Likewise.
21994         * lib/fts-cycle.c: Likewise.
21995         * lib/fts.c: Likewise.
21996         * lib/fts_.h: Likewise.
21997         * lib/full-read.c: Likewise.
21998         * lib/full-read.h: Likewise.
21999         * lib/full-write.c: Likewise.
22000         * lib/full-write.h: Likewise.
22001         * lib/fwritable.c: Likewise.
22002         * lib/fwritable.h: Likewise.
22003         * lib/fwriteerror.c: Likewise.
22004         * lib/fwriteerror.h: Likewise.
22005         * lib/fwriting.c: Likewise.
22006         * lib/fwriting.h: Likewise.
22007         * lib/gcd.c: Likewise.
22008         * lib/gcd.h: Likewise.
22009         * lib/getcwd.c: Likewise.
22010         * lib/getdate.h: Likewise.
22011         * lib/getdate.y: Likewise.
22012         * lib/getdomainname.c: Likewise.
22013         * lib/getdomainname.h: Likewise.
22014         * lib/getgroups.c: Likewise.
22015         * lib/gethostname.c: Likewise.
22016         * lib/gethrxtime.c: Likewise.
22017         * lib/gethrxtime.h: Likewise.
22018         * lib/getloadavg.c: Likewise.
22019         * lib/getndelim2.c: Likewise.
22020         * lib/getndelim2.h: Likewise.
22021         * lib/getnline.c: Likewise.
22022         * lib/getnline.h: Likewise.
22023         * lib/getopt.c: Likewise.
22024         * lib/getopt.in.h: Likewise.
22025         * lib/getopt1.c: Likewise.
22026         * lib/getopt_int.h: Likewise.
22027         * lib/getpagesize.h: Likewise.
22028         * lib/getsubopt.c: Likewise.
22029         * lib/gettime.c: Likewise.
22030         * lib/getugroups.c: Likewise.
22031         * lib/getugroups.h: Likewise.
22032         * lib/getusershell.c: Likewise.
22033         * lib/gl_anyavltree_list1.h: Likewise.
22034         * lib/gl_anyavltree_list2.h: Likewise.
22035         * lib/gl_anyhash_list1.h: Likewise.
22036         * lib/gl_anyhash_list2.h: Likewise.
22037         * lib/gl_anylinked_list1.h: Likewise.
22038         * lib/gl_anylinked_list2.h: Likewise.
22039         * lib/gl_anyrbtree_list1.h: Likewise.
22040         * lib/gl_anyrbtree_list2.h: Likewise.
22041         * lib/gl_anytree_list1.h: Likewise.
22042         * lib/gl_anytree_list2.h: Likewise.
22043         * lib/gl_anytree_oset.h: Likewise.
22044         * lib/gl_anytreehash_list1.h: Likewise.
22045         * lib/gl_anytreehash_list2.h: Likewise.
22046         * lib/gl_array_list.c: Likewise.
22047         * lib/gl_array_list.h: Likewise.
22048         * lib/gl_array_oset.c: Likewise.
22049         * lib/gl_array_oset.h: Likewise.
22050         * lib/gl_avltree_list.c: Likewise.
22051         * lib/gl_avltree_list.h: Likewise.
22052         * lib/gl_avltree_oset.c: Likewise.
22053         * lib/gl_avltree_oset.h: Likewise.
22054         * lib/gl_avltreehash_list.c: Likewise.
22055         * lib/gl_avltreehash_list.h: Likewise.
22056         * lib/gl_carray_list.c: Likewise.
22057         * lib/gl_carray_list.h: Likewise.
22058         * lib/gl_linked_list.c: Likewise.
22059         * lib/gl_linked_list.h: Likewise.
22060         * lib/gl_linkedhash_list.c: Likewise.
22061         * lib/gl_linkedhash_list.h: Likewise.
22062         * lib/gl_list.c: Likewise.
22063         * lib/gl_list.h: Likewise.
22064         * lib/gl_oset.c: Likewise.
22065         * lib/gl_oset.h: Likewise.
22066         * lib/gl_rbtree_list.c: Likewise.
22067         * lib/gl_rbtree_list.h: Likewise.
22068         * lib/gl_rbtree_oset.c: Likewise.
22069         * lib/gl_rbtree_oset.h: Likewise.
22070         * lib/gl_rbtreehash_list.c: Likewise.
22071         * lib/gl_rbtreehash_list.h: Likewise.
22072         * lib/gl_sublist.c: Likewise.
22073         * lib/gl_sublist.h: Likewise.
22074         * lib/group-member.c: Likewise.
22075         * lib/group-member.h: Likewise.
22076         * lib/hard-locale.c: Likewise.
22077         * lib/hard-locale.h: Likewise.
22078         * lib/hash-pjw.c: Likewise.
22079         * lib/hash-pjw.h: Likewise.
22080         * lib/hash-triple.c: Likewise.
22081         * lib/hash.c: Likewise.
22082         * lib/hash.h: Likewise.
22083         * lib/human.c: Likewise.
22084         * lib/human.h: Likewise.
22085         * lib/i-ring.c: Likewise.
22086         * lib/i-ring.h: Likewise.
22087         * lib/idcache.c: Likewise.
22088         * lib/imaxabs.c: Likewise.
22089         * lib/imaxdiv.c: Likewise.
22090         * lib/inet_pton.c: Likewise.
22091         * lib/inet_pton.h: Likewise.
22092         * lib/intprops.h: Likewise.
22093         * lib/inttostr.c: Likewise.
22094         * lib/inttostr.h: Likewise.
22095         * lib/inttypes.in.h: Likewise.
22096         * lib/isapipe.c: Likewise.
22097         * lib/isdir.c: Likewise.
22098         * lib/isnan.c: Likewise.
22099         * lib/isnan.h: Likewise.
22100         * lib/isnanf.c: Likewise.
22101         * lib/isnanf.h: Likewise.
22102         * lib/isnanl-nolibm.h: Likewise.
22103         * lib/isnanl.c: Likewise.
22104         * lib/isnanl.h: Likewise.
22105         * lib/javacomp.c: Likewise.
22106         * lib/javacomp.h: Likewise.
22107         * lib/javaexec.c: Likewise.
22108         * lib/javaexec.h: Likewise.
22109         * lib/javaversion.c: Likewise.
22110         * lib/javaversion.h: Likewise.
22111         * lib/javaversion.java: Likewise.
22112         * lib/lbrkprop.h: Likewise.
22113         * lib/lchmod.h: Likewise.
22114         * lib/lchown.c: Likewise.
22115         * lib/ldexpl.c: Likewise.
22116         * lib/linebreak.c: Likewise.
22117         * lib/linebreak.h: Likewise.
22118         * lib/linebuffer.c: Likewise.
22119         * lib/linebuffer.h: Likewise.
22120         * lib/locale.in.h: Likewise.
22121         * lib/logl.c: Likewise.
22122         * lib/long-options.c: Likewise.
22123         * lib/long-options.h: Likewise.
22124         * lib/lstat.c: Likewise.
22125         * lib/lstat.h: Likewise.
22126         * lib/math.in.h: Likewise.
22127         * lib/mbchar.c: Likewise.
22128         * lib/mbchar.h: Likewise.
22129         * lib/mbfile.h: Likewise.
22130         * lib/mbiter.h: Likewise.
22131         * lib/mbscasecmp.c: Likewise.
22132         * lib/mbscasestr.c: Likewise.
22133         * lib/mbschr.c: Likewise.
22134         * lib/mbscspn.c: Likewise.
22135         * lib/mbslen.c: Likewise.
22136         * lib/mbsncasecmp.c: Likewise.
22137         * lib/mbsnlen.c: Likewise.
22138         * lib/mbspbrk.c: Likewise.
22139         * lib/mbspcasecmp.c: Likewise.
22140         * lib/mbsrchr.c: Likewise.
22141         * lib/mbssep.c: Likewise.
22142         * lib/mbsspn.c: Likewise.
22143         * lib/mbsstr.c: Likewise.
22144         * lib/mbstok_r.c: Likewise.
22145         * lib/mbswidth.c: Likewise.
22146         * lib/mbswidth.h: Likewise.
22147         * lib/mbuiter.h: Likewise.
22148         * lib/memcasecmp.c: Likewise.
22149         * lib/memcasecmp.h: Likewise.
22150         * lib/memchr.c: Likewise.
22151         * lib/memcmp.c: Likewise.
22152         * lib/memcoll.c: Likewise.
22153         * lib/memcoll.h: Likewise.
22154         * lib/memcpy.c: Likewise.
22155         * lib/memrchr.c: Likewise.
22156         * lib/mkancesdirs.c: Likewise.
22157         * lib/mkdir-p.c: Likewise.
22158         * lib/mkdir-p.h: Likewise.
22159         * lib/mkdir.c: Likewise.
22160         * lib/mkdirat.c: Likewise.
22161         * lib/mkdtemp.c: Likewise.
22162         * lib/mkstemp-safer.c: Likewise.
22163         * lib/mkstemp.c: Likewise.
22164         * lib/modechange.c: Likewise.
22165         * lib/modechange.h: Likewise.
22166         * lib/mountlist.c: Likewise.
22167         * lib/mountlist.h: Likewise.
22168         * lib/mpsort.c: Likewise.
22169         * lib/nanosleep.c: Likewise.
22170         * lib/obstack.c: Likewise.
22171         * lib/obstack.h: Likewise.
22172         * lib/open-safer.c: Likewise.
22173         * lib/open.c: Likewise.
22174         * lib/openat-die.c: Likewise.
22175         * lib/openat-priv.h: Likewise.
22176         * lib/openat-proc.c: Likewise.
22177         * lib/openat.c: Likewise.
22178         * lib/openat.h: Likewise.
22179         * lib/pagealign_alloc.c: Likewise.
22180         * lib/pagealign_alloc.h: Likewise.
22181         * lib/physmem.c: Likewise.
22182         * lib/physmem.h: Likewise.
22183         * lib/pipe-safer.c: Likewise.
22184         * lib/pipe.c: Likewise.
22185         * lib/pipe.h: Likewise.
22186         * lib/posixtm.c: Likewise.
22187         * lib/posixtm.h: Likewise.
22188         * lib/posixver.c: Likewise.
22189         * lib/printf-frexp.c: Likewise.
22190         * lib/printf-frexp.h: Likewise.
22191         * lib/printf-frexpl.c: Likewise.
22192         * lib/printf-frexpl.h: Likewise.
22193         * lib/printf.c: Likewise.
22194         * lib/progname.c: Likewise.
22195         * lib/progname.h: Likewise.
22196         * lib/progreloc.c: Likewise.
22197         * lib/putenv.c: Likewise.
22198         * lib/quote.c: Likewise.
22199         * lib/quote.h: Likewise.
22200         * lib/quotearg.c: Likewise.
22201         * lib/quotearg.h: Likewise.
22202         * lib/raise.c: Likewise.
22203         * lib/readline.c: Likewise.
22204         * lib/readline.h: Likewise.
22205         * lib/readlink.c: Likewise.
22206         * lib/readtokens.c: Likewise.
22207         * lib/readtokens.h: Likewise.
22208         * lib/readtokens0.c: Likewise.
22209         * lib/readtokens0.h: Likewise.
22210         * lib/readutmp.c: Likewise.
22211         * lib/readutmp.h: Likewise.
22212         * lib/realloc.c: Likewise.
22213         * lib/relocwrapper.c: Likewise.
22214         * lib/rename-dest-slash.c: Likewise.
22215         * lib/rename.c: Likewise.
22216         * lib/rmdir.c: Likewise.
22217         * lib/rpmatch.c: Likewise.
22218         * lib/safe-read.c: Likewise.
22219         * lib/safe-read.h: Likewise.
22220         * lib/safe-write.c: Likewise.
22221         * lib/safe-write.h: Likewise.
22222         * lib/same-inode.h: Likewise.
22223         * lib/same.c: Likewise.
22224         * lib/same.h: Likewise.
22225         * lib/save-cwd.c: Likewise.
22226         * lib/save-cwd.h: Likewise.
22227         * lib/savedir.c: Likewise.
22228         * lib/savedir.h: Likewise.
22229         * lib/savewd.c: Likewise.
22230         * lib/savewd.h: Likewise.
22231         * lib/search.in.h: Likewise.
22232         * lib/setenv.c: Likewise.
22233         * lib/setenv.h: Likewise.
22234         * lib/settime.c: Likewise.
22235         * lib/sh-quote.c: Likewise.
22236         * lib/sh-quote.h: Likewise.
22237         * lib/sig2str.c: Likewise.
22238         * lib/sig2str.h: Likewise.
22239         * lib/signal.in.h: Likewise.
22240         * lib/signbitd.c: Likewise.
22241         * lib/signbitf.c: Likewise.
22242         * lib/signbitl.c: Likewise.
22243         * lib/sigprocmask.c: Likewise.
22244         * lib/sincosl.c: Likewise.
22245         * lib/sleep.c: Likewise.
22246         * lib/sprintf.c: Likewise.
22247         * lib/sqrtl.c: Likewise.
22248         * lib/stat-time.h: Likewise.
22249         * lib/stdio--.h: Likewise.
22250         * lib/stdio-safer.h: Likewise.
22251         * lib/stdlib--.h: Likewise.
22252         * lib/stdlib-safer.h: Likewise.
22253         * lib/stdlib.in.h: Likewise.
22254         * lib/stpcpy.c: Likewise.
22255         * lib/stpncpy.c: Likewise.
22256         * lib/strchrnul.c: Likewise.
22257         * lib/strcspn.c: Likewise.
22258         * lib/strerror.c: Likewise.
22259         * lib/strftime.c: Likewise.
22260         * lib/strftime.h: Likewise.
22261         * lib/striconveh.c: Likewise.
22262         * lib/striconveh.h: Likewise.
22263         * lib/striconveha.c: Likewise.
22264         * lib/striconveha.h: Likewise.
22265         * lib/stripslash.c: Likewise.
22266         * lib/strnlen1.c: Likewise.
22267         * lib/strnlen1.h: Likewise.
22268         * lib/strtod.c: Likewise.
22269         * lib/strtoimax.c: Likewise.
22270         * lib/strtok_r.c: Likewise.
22271         * lib/strtol.c: Likewise.
22272         * lib/strtoll.c: Likewise.
22273         * lib/strtoul.c: Likewise.
22274         * lib/strtoull.c: Likewise.
22275         * lib/sysexits.in.h: Likewise.
22276         * lib/tempname.c: Likewise.
22277         * lib/tempname.h: Likewise.
22278         * lib/timespec.h: Likewise.
22279         * lib/tls.c: Likewise.
22280         * lib/tls.h: Likewise.
22281         * lib/tmpdir.c: Likewise.
22282         * lib/tmpdir.h: Likewise.
22283         * lib/tmpfile-safer.c: Likewise.
22284         * lib/tmpfile.c: Likewise.
22285         * lib/trigl.c: Likewise.
22286         * lib/trigl.h: Likewise.
22287         * lib/trim.c: Likewise.
22288         * lib/trim.h: Likewise.
22289         * lib/trunc.c: Likewise.
22290         * lib/truncf.c: Likewise.
22291         * lib/truncl.c: Likewise.
22292         * lib/tsearch.c: Likewise.
22293         * lib/unicodeio.c: Likewise.
22294         * lib/unicodeio.h: Likewise.
22295         * lib/unistd--.h: Likewise.
22296         * lib/unistd-safer.h: Likewise.
22297         * lib/unistdio/ulc-fprintf.c: Likewise.
22298         * lib/unistdio/ulc-vfprintf.c: Likewise.
22299         * lib/unlinkdir.c: Likewise.
22300         * lib/unlinkdir.h: Likewise.
22301         * lib/unlocked-io.h: Likewise.
22302         * lib/unsetenv.c: Likewise.
22303         * lib/userspec.c: Likewise.
22304         * lib/utime.c: Likewise.
22305         * lib/utimecmp.c: Likewise.
22306         * lib/utimecmp.h: Likewise.
22307         * lib/utimens.c: Likewise.
22308         * lib/verify.h: Likewise.
22309         * lib/verror.c: Likewise.
22310         * lib/verror.h: Likewise.
22311         * lib/version-etc-fsf.c: Likewise.
22312         * lib/version-etc.c: Likewise.
22313         * lib/version-etc.h: Likewise.
22314         * lib/vfprintf.c: Likewise.
22315         * lib/vprintf.c: Likewise.
22316         * lib/vsprintf.c: Likewise.
22317         * lib/w32spawn.h: Likewise.
22318         * lib/wait-process.c: Likewise.
22319         * lib/wait-process.h: Likewise.
22320         * lib/wcwidth.c: Likewise.
22321         * lib/write-any-file.c: Likewise.
22322         * lib/xalloc-die.c: Likewise.
22323         * lib/xalloc.h: Likewise.
22324         * lib/xasprintf.c: Likewise.
22325         * lib/xgetcwd.c: Likewise.
22326         * lib/xgetcwd.h: Likewise.
22327         * lib/xgetdomainname.c: Likewise.
22328         * lib/xgetdomainname.h: Likewise.
22329         * lib/xgethostname.c: Likewise.
22330         * lib/xmalloc.c: Likewise.
22331         * lib/xmalloca.c: Likewise.
22332         * lib/xmalloca.h: Likewise.
22333         * lib/xmemcoll.c: Likewise.
22334         * lib/xnanosleep.c: Likewise.
22335         * lib/xreadlink.c: Likewise.
22336         * lib/xreadlink.h: Likewise.
22337         * lib/xsetenv.c: Likewise.
22338         * lib/xsetenv.h: Likewise.
22339         * lib/xstriconv.c: Likewise.
22340         * lib/xstriconv.h: Likewise.
22341         * lib/xstrndup.c: Likewise.
22342         * lib/xstrndup.h: Likewise.
22343         * lib/xstrtod.c: Likewise.
22344         * lib/xstrtod.h: Likewise.
22345         * lib/xstrtol-error.c: Likewise.
22346         * lib/xstrtol.c: Likewise.
22347         * lib/xstrtol.h: Likewise.
22348         * lib/xtime.h: Likewise.
22349         * lib/xvasprintf.c: Likewise.
22350         * lib/xvasprintf.h: Likewise.
22351         * lib/yesno.c: Likewise.
22352         * lib/yesno.h: Likewise.
22353         * posix-modules: Likewise.
22354         * tests/test-alloca-opt.c: Likewise.
22355         * tests/test-arcfour.c: Likewise.
22356         * tests/test-arctwo.c: Likewise.
22357         * tests/test-argmatch.c: Likewise.
22358         * tests/test-argp-2.sh: Likewise.
22359         * tests/test-argp.c: Likewise.
22360         * tests/test-arpa_inet.c: Likewise.
22361         * tests/test-array_list.c: Likewise.
22362         * tests/test-array_oset.c: Likewise.
22363         * tests/test-atexit.c: Likewise.
22364         * tests/test-avltree_list.c: Likewise.
22365         * tests/test-avltree_oset.c: Likewise.
22366         * tests/test-avltreehash_list.c: Likewise.
22367         * tests/test-base64.c: Likewise.
22368         * tests/test-binary-io.c: Likewise.
22369         * tests/test-byteswap.c: Likewise.
22370         * tests/test-c-ctype.c: Likewise.
22371         * tests/test-c-strcasecmp.c: Likewise.
22372         * tests/test-c-strcasestr.c: Likewise.
22373         * tests/test-c-strncasecmp.c: Likewise.
22374         * tests/test-c-strstr.c: Likewise.
22375         * tests/test-canonicalize-lgpl.c: Likewise.
22376         * tests/test-canonicalize.c: Likewise.
22377         * tests/test-carray_list.c: Likewise.
22378         * tests/test-ceilf.c: Likewise.
22379         * tests/test-ceill.c: Likewise.
22380         * tests/test-count-one-bits.c: Likewise.
22381         * tests/test-crc.c: Likewise.
22382         * tests/test-dirname.c: Likewise.
22383         * tests/test-fbufmode.c: Likewise.
22384         * tests/test-fcntl.c: Likewise.
22385         * tests/test-fflush.c: Likewise.
22386         * tests/test-floorf.c: Likewise.
22387         * tests/test-floorl.c: Likewise.
22388         * tests/test-fopen.c: Likewise.
22389         * tests/test-fprintf-posix.c: Likewise.
22390         * tests/test-fprintf-posix.h: Likewise.
22391         * tests/test-fpurge.c: Likewise.
22392         * tests/test-freadable.c: Likewise.
22393         * tests/test-freadahead.c: Likewise.
22394         * tests/test-freading.c: Likewise.
22395         * tests/test-freopen.c: Likewise.
22396         * tests/test-frexp.c: Likewise.
22397         * tests/test-frexpl.c: Likewise.
22398         * tests/test-fseek.c: Likewise.
22399         * tests/test-fseeko.c: Likewise.
22400         * tests/test-fseterr.c: Likewise.
22401         * tests/test-fstrcmp.c: Likewise.
22402         * tests/test-ftell.c: Likewise.
22403         * tests/test-ftello.c: Likewise.
22404         * tests/test-fwritable.c: Likewise.
22405         * tests/test-fwriting.c: Likewise.
22406         * tests/test-getaddrinfo.c: Likewise.
22407         * tests/test-getpass.c: Likewise.
22408         * tests/test-gettimeofday.c: Likewise.
22409         * tests/test-hmac-md5.c: Likewise.
22410         * tests/test-hmac-sha1.c: Likewise.
22411         * tests/test-iconv.c: Likewise.
22412         * tests/test-iconvme.c: Likewise.
22413         * tests/test-inttypes.c: Likewise.
22414         * tests/test-isnan.c: Likewise.
22415         * tests/test-isnanf.c: Likewise.
22416         * tests/test-isnanl-nolibm.c: Likewise.
22417         * tests/test-isnanl.c: Likewise.
22418         * tests/test-isnanl.h: Likewise.
22419         * tests/test-ldexpl.c: Likewise.
22420         * tests/test-linked_list.c: Likewise.
22421         * tests/test-linkedhash_list.c: Likewise.
22422         * tests/test-locale.c: Likewise.
22423         * tests/test-localename.c: Likewise.
22424         * tests/test-lock.c: Likewise.
22425         * tests/test-lseek.c: Likewise.
22426         * tests/test-malloca.c: Likewise.
22427         * tests/test-math.c: Likewise.
22428         * tests/test-mbscasecmp.c: Likewise.
22429         * tests/test-mbscasestr1.c: Likewise.
22430         * tests/test-mbscasestr2.c: Likewise.
22431         * tests/test-mbscasestr3.c: Likewise.
22432         * tests/test-mbscasestr4.c: Likewise.
22433         * tests/test-mbschr.c: Likewise.
22434         * tests/test-mbscspn.c: Likewise.
22435         * tests/test-mbsncasecmp.c: Likewise.
22436         * tests/test-mbspbrk.c: Likewise.
22437         * tests/test-mbspcasecmp.c: Likewise.
22438         * tests/test-mbsrchr.c: Likewise.
22439         * tests/test-mbsspn.c: Likewise.
22440         * tests/test-mbsstr1.c: Likewise.
22441         * tests/test-mbsstr2.c: Likewise.
22442         * tests/test-mbsstr3.c: Likewise.
22443         * tests/test-md5.c: Likewise.
22444         * tests/test-memmem.c: Likewise.
22445         * tests/test-netinet_in.c: Likewise.
22446         * tests/test-open.c: Likewise.
22447         * tests/test-printf-frexp.c: Likewise.
22448         * tests/test-printf-frexpl.c: Likewise.
22449         * tests/test-printf-posix.c: Likewise.
22450         * tests/test-printf-posix.h: Likewise.
22451         * tests/test-rbtree_list.c: Likewise.
22452         * tests/test-rbtree_oset.c: Likewise.
22453         * tests/test-rbtreehash_list.c: Likewise.
22454         * tests/test-read-file.c: Likewise.
22455         * tests/test-rijndael.c: Likewise.
22456         * tests/test-search.c: Likewise.
22457         * tests/test-signbit.c: Likewise.
22458         * tests/test-sleep.c: Likewise.
22459         * tests/test-snprintf-posix.c: Likewise.
22460         * tests/test-snprintf-posix.h: Likewise.
22461         * tests/test-snprintf.c: Likewise.
22462         * tests/test-sprintf-posix.c: Likewise.
22463         * tests/test-sprintf-posix.h: Likewise.
22464         * tests/test-stat-time.c: Likewise.
22465         * tests/test-stdbool.c: Likewise.
22466         * tests/test-stdint.c: Likewise.
22467         * tests/test-stdio.c: Likewise.
22468         * tests/test-stdlib.c: Likewise.
22469         * tests/test-stpncpy.c: Likewise.
22470         * tests/test-strcasestr.c: Likewise.
22471         * tests/test-striconv.c: Likewise.
22472         * tests/test-striconveh.c: Likewise.
22473         * tests/test-striconveha.c: Likewise.
22474         * tests/test-string.c: Likewise.
22475         * tests/test-sys_select.c: Likewise.
22476         * tests/test-sys_socket.c: Likewise.
22477         * tests/test-sys_stat.c: Likewise.
22478         * tests/test-sys_time.c: Likewise.
22479         * tests/test-sysexits.c: Likewise.
22480         * tests/test-time.c: Likewise.
22481         * tests/test-tls.c: Likewise.
22482         * tests/test-trunc.c: Likewise.
22483         * tests/test-truncf.c: Likewise.
22484         * tests/test-truncl.c: Likewise.
22485         * tests/test-unistd.c: Likewise.
22486         * tests/test-vasnprintf-posix.c: Likewise.
22487         * tests/test-vasnprintf-posix2.c: Likewise.
22488         * tests/test-vasnprintf.c: Likewise.
22489         * tests/test-vasprintf-posix.c: Likewise.
22490         * tests/test-vasprintf.c: Likewise.
22491         * tests/test-verify.c: Likewise.
22492         * tests/test-vfprintf-posix.c: Likewise.
22493         * tests/test-vprintf-posix.c: Likewise.
22494         * tests/test-vsnprintf-posix.c: Likewise.
22495         * tests/test-vsnprintf.c: Likewise.
22496         * tests/test-vsprintf-posix.c: Likewise.
22497         * tests/test-wchar.c: Likewise.
22498         * tests/test-wctype.c: Likewise.
22499         * tests/test-wcwidth.c: Likewise.
22500         * tests/test-xstrtol.c: Likewise.
22501         * tests/test-xvasprintf.c: Likewise.
22502         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22503         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22504         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22505         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22506         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22507         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22508         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22509         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22510         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22511         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22512         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22513         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22514         * tests/uniname/test-uninames.c: Likewise.
22515         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22516         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
22517         * tests/unistdio/test-u16-printf1.h: Likewise.
22518         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22519         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22520         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22521         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22522         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22523         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22524         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22525         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
22526         * tests/unistdio/test-u32-printf1.h: Likewise.
22527         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22528         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22529         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22530         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22531         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22532         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22533         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22534         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
22535         * tests/unistdio/test-u8-printf1.h: Likewise.
22536         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22537         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22538         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22539         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22540         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22541         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22542         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22543         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
22544         * tests/unistdio/test-ulc-printf1.h: Likewise.
22545         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22546         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22547         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22548         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22549         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22550         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22551         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22552         * tests/uniwidth/test-u16-width.c: Likewise.
22553         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22554         * tests/uniwidth/test-u32-width.c: Likewise.
22555         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22556         * tests/uniwidth/test-u8-width.c: Likewise.
22557         * tests/uniwidth/test-uc_width.c: Likewise.
22558         * config/srclist-update: Likewise.
22559         (fixlicense): Update to GPLv3+.
22560
22561         Change copyright notice from LGPLv2.1+ to LGPLv3+.
22562         * tests/test-tsearch.c: Change copyright notice.
22563
22564         Change copyright notice from LGPLv2.0+ to LGPLv3+.
22565         * lib/c-strcaseeq.h: Change copyright notice.
22566         * lib/streq.h: Likewise.
22567         * lib/uniconv.h: Likewise.
22568         * lib/uniconv/u-conv-from-enc.h: Likewise.
22569         * lib/uniconv/u-conv-to-enc.h: Likewise.
22570         * lib/uniconv/u-strconv-from-enc.h: Likewise.
22571         * lib/uniconv/u-strconv-to-enc.h: Likewise.
22572         * lib/uniconv/u16-conv-from-enc.c: Likewise.
22573         * lib/uniconv/u16-conv-to-enc.c: Likewise.
22574         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
22575         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
22576         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
22577         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
22578         * lib/uniconv/u32-conv-from-enc.c: Likewise.
22579         * lib/uniconv/u32-conv-to-enc.c: Likewise.
22580         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
22581         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
22582         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
22583         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
22584         * lib/uniconv/u8-conv-from-enc.c: Likewise.
22585         * lib/uniconv/u8-conv-to-enc.c: Likewise.
22586         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
22587         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
22588         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
22589         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
22590         * lib/uniname.h: Likewise.
22591         * lib/uniname/uniname.c: Likewise.
22592         * lib/unistdio.h: Likewise.
22593         * lib/unistdio/u-asnprintf.h: Likewise.
22594         * lib/unistdio/u-asprintf.h: Likewise.
22595         * lib/unistdio/u-printf-args.c: Likewise.
22596         * lib/unistdio/u-printf-args.h: Likewise.
22597         * lib/unistdio/u-printf-parse.h: Likewise.
22598         * lib/unistdio/u-snprintf.h: Likewise.
22599         * lib/unistdio/u-sprintf.h: Likewise.
22600         * lib/unistdio/u-vasprintf.h: Likewise.
22601         * lib/unistdio/u-vsnprintf.h: Likewise.
22602         * lib/unistdio/u-vsprintf.h: Likewise.
22603         * lib/unistdio/u16-asnprintf.c: Likewise.
22604         * lib/unistdio/u16-asprintf.c: Likewise.
22605         * lib/unistdio/u16-printf-parse.c: Likewise.
22606         * lib/unistdio/u16-snprintf.c: Likewise.
22607         * lib/unistdio/u16-sprintf.c: Likewise.
22608         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
22609         * lib/unistdio/u16-u16-asprintf.c: Likewise.
22610         * lib/unistdio/u16-u16-snprintf.c: Likewise.
22611         * lib/unistdio/u16-u16-sprintf.c: Likewise.
22612         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
22613         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
22614         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
22615         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
22616         * lib/unistdio/u16-vasnprintf.c: Likewise.
22617         * lib/unistdio/u16-vasprintf.c: Likewise.
22618         * lib/unistdio/u16-vsnprintf.c: Likewise.
22619         * lib/unistdio/u16-vsprintf.c: Likewise.
22620         * lib/unistdio/u32-asnprintf.c: Likewise.
22621         * lib/unistdio/u32-asprintf.c: Likewise.
22622         * lib/unistdio/u32-printf-parse.c: Likewise.
22623         * lib/unistdio/u32-snprintf.c: Likewise.
22624         * lib/unistdio/u32-sprintf.c: Likewise.
22625         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
22626         * lib/unistdio/u32-u32-asprintf.c: Likewise.
22627         * lib/unistdio/u32-u32-snprintf.c: Likewise.
22628         * lib/unistdio/u32-u32-sprintf.c: Likewise.
22629         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
22630         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
22631         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
22632         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
22633         * lib/unistdio/u32-vasnprintf.c: Likewise.
22634         * lib/unistdio/u32-vasprintf.c: Likewise.
22635         * lib/unistdio/u32-vsnprintf.c: Likewise.
22636         * lib/unistdio/u32-vsprintf.c: Likewise.
22637         * lib/unistdio/u8-asnprintf.c: Likewise.
22638         * lib/unistdio/u8-asprintf.c: Likewise.
22639         * lib/unistdio/u8-printf-parse.c: Likewise.
22640         * lib/unistdio/u8-snprintf.c: Likewise.
22641         * lib/unistdio/u8-sprintf.c: Likewise.
22642         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
22643         * lib/unistdio/u8-u8-asprintf.c: Likewise.
22644         * lib/unistdio/u8-u8-snprintf.c: Likewise.
22645         * lib/unistdio/u8-u8-sprintf.c: Likewise.
22646         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
22647         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
22648         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
22649         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
22650         * lib/unistdio/u8-vasnprintf.c: Likewise.
22651         * lib/unistdio/u8-vasprintf.c: Likewise.
22652         * lib/unistdio/u8-vsnprintf.c: Likewise.
22653         * lib/unistdio/u8-vsprintf.c: Likewise.
22654         * lib/unistdio/ulc-asnprintf.c: Likewise.
22655         * lib/unistdio/ulc-asprintf.c: Likewise.
22656         * lib/unistdio/ulc-printf-parse.c: Likewise.
22657         * lib/unistdio/ulc-snprintf.c: Likewise.
22658         * lib/unistdio/ulc-sprintf.c: Likewise.
22659         * lib/unistdio/ulc-vasnprintf.c: Likewise.
22660         * lib/unistdio/ulc-vasprintf.c: Likewise.
22661         * lib/unistdio/ulc-vsnprintf.c: Likewise.
22662         * lib/unistdio/ulc-vsprintf.c: Likewise.
22663         * lib/unistr.h: Likewise.
22664         * lib/unistr/u-cpy-alloc.h: Likewise.
22665         * lib/unistr/u-cpy.h: Likewise.
22666         * lib/unistr/u-endswith.h: Likewise.
22667         * lib/unistr/u-move.h: Likewise.
22668         * lib/unistr/u-set.h: Likewise.
22669         * lib/unistr/u-startswith.h: Likewise.
22670         * lib/unistr/u-stpcpy.h: Likewise.
22671         * lib/unistr/u-stpncpy.h: Likewise.
22672         * lib/unistr/u-strcat.h: Likewise.
22673         * lib/unistr/u-strcpy.h: Likewise.
22674         * lib/unistr/u-strcspn.h: Likewise.
22675         * lib/unistr/u-strdup.h: Likewise.
22676         * lib/unistr/u-strlen.h: Likewise.
22677         * lib/unistr/u-strncat.h: Likewise.
22678         * lib/unistr/u-strncpy.h: Likewise.
22679         * lib/unistr/u-strnlen.h: Likewise.
22680         * lib/unistr/u-strpbrk.h: Likewise.
22681         * lib/unistr/u-strspn.h: Likewise.
22682         * lib/unistr/u-strstr.h: Likewise.
22683         * lib/unistr/u-strtok.h: Likewise.
22684         * lib/unistr/u16-check.c: Likewise.
22685         * lib/unistr/u16-chr.c: Likewise.
22686         * lib/unistr/u16-cmp.c: Likewise.
22687         * lib/unistr/u16-cpy-alloc.c: Likewise.
22688         * lib/unistr/u16-cpy.c: Likewise.
22689         * lib/unistr/u16-endswith.c: Likewise.
22690         * lib/unistr/u16-mblen.c: Likewise.
22691         * lib/unistr/u16-mbsnlen.c: Likewise.
22692         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22693         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22694         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22695         * lib/unistr/u16-mbtouc.c: Likewise.
22696         * lib/unistr/u16-mbtoucr.c: Likewise.
22697         * lib/unistr/u16-move.c: Likewise.
22698         * lib/unistr/u16-next.c: Likewise.
22699         * lib/unistr/u16-prev.c: Likewise.
22700         * lib/unistr/u16-set.c: Likewise.
22701         * lib/unistr/u16-startswith.c: Likewise.
22702         * lib/unistr/u16-stpcpy.c: Likewise.
22703         * lib/unistr/u16-stpncpy.c: Likewise.
22704         * lib/unistr/u16-strcat.c: Likewise.
22705         * lib/unistr/u16-strchr.c: Likewise.
22706         * lib/unistr/u16-strcmp.c: Likewise.
22707         * lib/unistr/u16-strcpy.c: Likewise.
22708         * lib/unistr/u16-strcspn.c: Likewise.
22709         * lib/unistr/u16-strdup.c: Likewise.
22710         * lib/unistr/u16-strlen.c: Likewise.
22711         * lib/unistr/u16-strmblen.c: Likewise.
22712         * lib/unistr/u16-strmbtouc.c: Likewise.
22713         * lib/unistr/u16-strncat.c: Likewise.
22714         * lib/unistr/u16-strncmp.c: Likewise.
22715         * lib/unistr/u16-strncpy.c: Likewise.
22716         * lib/unistr/u16-strnlen.c: Likewise.
22717         * lib/unistr/u16-strpbrk.c: Likewise.
22718         * lib/unistr/u16-strrchr.c: Likewise.
22719         * lib/unistr/u16-strspn.c: Likewise.
22720         * lib/unistr/u16-strstr.c: Likewise.
22721         * lib/unistr/u16-strtok.c: Likewise.
22722         * lib/unistr/u16-to-u32.c: Likewise.
22723         * lib/unistr/u16-to-u8.c: Likewise.
22724         * lib/unistr/u16-uctomb-aux.c: Likewise.
22725         * lib/unistr/u16-uctomb.c: Likewise.
22726         * lib/unistr/u32-check.c: Likewise.
22727         * lib/unistr/u32-chr.c: Likewise.
22728         * lib/unistr/u32-cmp.c: Likewise.
22729         * lib/unistr/u32-cpy-alloc.c: Likewise.
22730         * lib/unistr/u32-cpy.c: Likewise.
22731         * lib/unistr/u32-endswith.c: Likewise.
22732         * lib/unistr/u32-mblen.c: Likewise.
22733         * lib/unistr/u32-mbsnlen.c: Likewise.
22734         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22735         * lib/unistr/u32-mbtouc.c: Likewise.
22736         * lib/unistr/u32-mbtoucr.c: Likewise.
22737         * lib/unistr/u32-move.c: Likewise.
22738         * lib/unistr/u32-next.c: Likewise.
22739         * lib/unistr/u32-prev.c: Likewise.
22740         * lib/unistr/u32-set.c: Likewise.
22741         * lib/unistr/u32-startswith.c: Likewise.
22742         * lib/unistr/u32-stpcpy.c: Likewise.
22743         * lib/unistr/u32-stpncpy.c: Likewise.
22744         * lib/unistr/u32-strcat.c: Likewise.
22745         * lib/unistr/u32-strchr.c: Likewise.
22746         * lib/unistr/u32-strcmp.c: Likewise.
22747         * lib/unistr/u32-strcpy.c: Likewise.
22748         * lib/unistr/u32-strcspn.c: Likewise.
22749         * lib/unistr/u32-strdup.c: Likewise.
22750         * lib/unistr/u32-strlen.c: Likewise.
22751         * lib/unistr/u32-strmblen.c: Likewise.
22752         * lib/unistr/u32-strmbtouc.c: Likewise.
22753         * lib/unistr/u32-strncat.c: Likewise.
22754         * lib/unistr/u32-strncmp.c: Likewise.
22755         * lib/unistr/u32-strncpy.c: Likewise.
22756         * lib/unistr/u32-strnlen.c: Likewise.
22757         * lib/unistr/u32-strpbrk.c: Likewise.
22758         * lib/unistr/u32-strrchr.c: Likewise.
22759         * lib/unistr/u32-strspn.c: Likewise.
22760         * lib/unistr/u32-strstr.c: Likewise.
22761         * lib/unistr/u32-strtok.c: Likewise.
22762         * lib/unistr/u32-to-u16.c: Likewise.
22763         * lib/unistr/u32-to-u8.c: Likewise.
22764         * lib/unistr/u32-uctomb.c: Likewise.
22765         * lib/unistr/u8-check.c: Likewise.
22766         * lib/unistr/u8-chr.c: Likewise.
22767         * lib/unistr/u8-cmp.c: Likewise.
22768         * lib/unistr/u8-cpy-alloc.c: Likewise.
22769         * lib/unistr/u8-cpy.c: Likewise.
22770         * lib/unistr/u8-endswith.c: Likewise.
22771         * lib/unistr/u8-mblen.c: Likewise.
22772         * lib/unistr/u8-mbsnlen.c: Likewise.
22773         * lib/unistr/u8-mbtouc-aux.c: Likewise.
22774         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22775         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22776         * lib/unistr/u8-mbtouc.c: Likewise.
22777         * lib/unistr/u8-mbtoucr.c: Likewise.
22778         * lib/unistr/u8-move.c: Likewise.
22779         * lib/unistr/u8-next.c: Likewise.
22780         * lib/unistr/u8-prev.c: Likewise.
22781         * lib/unistr/u8-set.c: Likewise.
22782         * lib/unistr/u8-startswith.c: Likewise.
22783         * lib/unistr/u8-stpcpy.c: Likewise.
22784         * lib/unistr/u8-stpncpy.c: Likewise.
22785         * lib/unistr/u8-strcat.c: Likewise.
22786         * lib/unistr/u8-strchr.c: Likewise.
22787         * lib/unistr/u8-strcmp.c: Likewise.
22788         * lib/unistr/u8-strcpy.c: Likewise.
22789         * lib/unistr/u8-strcspn.c: Likewise.
22790         * lib/unistr/u8-strdup.c: Likewise.
22791         * lib/unistr/u8-strlen.c: Likewise.
22792         * lib/unistr/u8-strmblen.c: Likewise.
22793         * lib/unistr/u8-strmbtouc.c: Likewise.
22794         * lib/unistr/u8-strncat.c: Likewise.
22795         * lib/unistr/u8-strncmp.c: Likewise.
22796         * lib/unistr/u8-strncpy.c: Likewise.
22797         * lib/unistr/u8-strnlen.c: Likewise.
22798         * lib/unistr/u8-strpbrk.c: Likewise.
22799         * lib/unistr/u8-strrchr.c: Likewise.
22800         * lib/unistr/u8-strspn.c: Likewise.
22801         * lib/unistr/u8-strstr.c: Likewise.
22802         * lib/unistr/u8-strtok.c: Likewise.
22803         * lib/unistr/u8-to-u16.c: Likewise.
22804         * lib/unistr/u8-to-u32.c: Likewise.
22805         * lib/unistr/u8-uctomb-aux.c: Likewise.
22806         * lib/unistr/u8-uctomb.c: Likewise.
22807         * lib/unitypes.h: Likewise.
22808         * lib/uniwidth.h: Likewise.
22809         * lib/uniwidth/cjk.h: Likewise.
22810         * lib/uniwidth/u16-strwidth.c: Likewise.
22811         * lib/uniwidth/u16-width.c: Likewise.
22812         * lib/uniwidth/u32-strwidth.c: Likewise.
22813         * lib/uniwidth/u32-width.c: Likewise.
22814         * lib/uniwidth/u8-strwidth.c: Likewise.
22815         * lib/uniwidth/u8-width.c: Likewise.
22816         * lib/uniwidth/width.c: Likewise.
22817
22818 2007-10-07  Bruno Haible  <bruno@clisp.org>
22819
22820         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
22821         The file is still under LGPL (see modules/inttypes).
22822
22823 2007-10-06  Bruno Haible  <bruno@clisp.org>
22824
22825         * modules/trunc (Dependencies): Add 'extensions'.
22826         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
22827         Reported by Ben Pfaff <blp@gnu.org>.
22828
22829 2007-10-06  Bruno Haible  <bruno@clisp.org>
22830
22831         * modules/freopen-tests: New file.
22832         * tests/test-freopen.c: New file.
22833
22834         * modules/fopen-tests: New file.
22835         * tests/test-fopen.c: New file.
22836
22837         * modules/fopen: New file.
22838         * lib/fopen.c: New file.
22839         * m4/fopen.m4: New file.
22840         * modules/freopen: New file.
22841         * lib/freopen.c: New file.
22842         * m4/freopen.m4: New file.
22843         * lib/stdio.in.h (fopen, freopen): New declarations.
22844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
22845         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22846         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
22847         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22848         * doc/functions/fopen.texi: Mention the 'fopen' module.
22849         * doc/functions/freopen.texi: Mention the 'freopen' module.
22850
22851 2007-10-06  Bruno Haible  <bruno@clisp.org>
22852
22853         * modules/open-tests: New file.
22854         * tests/test-open.c: New file.
22855
22856         * modules/open: New file.
22857         * lib/open.c: New file.
22858         * m4/open.m4: New file.
22859         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
22860         lib/open.c does.
22861         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
22862         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
22863         macros.
22864         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
22865         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
22866         REPLACE_OPEN.
22867         * doc/functions/open.texi: Mention the 'open' module.
22868
22869 2007-10-04  Bruno Haible  <bruno@clisp.org>
22870
22871         * modules/ceill-tests: New file.
22872         * tests/test-ceill.c: New file.
22873
22874         * modules/ceill: New file.
22875         * lib/ceill.c: Replace entire file.
22876         * m4/ceill.m4: New file.
22877         * lib/math.in.h (ceill): Replace declaration.
22878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
22879         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
22880         * doc/functions/ceill.texi: Mention the 'ceill' module.
22881         * modules/mathl (Files): Remove lib/ceill.c.
22882         (Depends-on): Add ceill.
22883
22884 2007-10-04  Bruno Haible  <bruno@clisp.org>
22885
22886         * modules/ceilf-tests: New file.
22887         * tests/test-ceilf.c: New file.
22888
22889         * modules/ceilf: New file.
22890         * lib/ceil.c: New file.
22891         * lib/ceilf.c: New file.
22892         * m4/ceilf.m4: New file.
22893         * lib/math.in.h (ceilf): New declaration.
22894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
22895         HAVE_DECL_CEILF.
22896         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
22897         HAVE_DECL_CEILF.
22898         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
22899
22900 2007-10-04  Bruno Haible  <bruno@clisp.org>
22901
22902         * modules/floorl-tests: New file.
22903         * tests/test-floorl.c: New file.
22904
22905         * modules/floorl: New file.
22906         * lib/floorl.c: Replace entire file.
22907         * m4/floorl.m4: New file.
22908         * lib/math.in.h (floorl): Replace declaration.
22909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
22910         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
22911         * doc/functions/floorl.texi: Mention the 'floorl' module.
22912         * modules/mathl (Files): Remove lib/floorl.c.
22913         (Depends-on): Add floorl.
22914
22915 2007-10-04  Bruno Haible  <bruno@clisp.org>
22916
22917         * modules/floorf-tests: New file.
22918         * tests/test-floorf.c: New file.
22919
22920         * modules/floorf: New file.
22921         * lib/floor.c: New file.
22922         * lib/floorf.c: New file.
22923         * m4/floorf.m4: New file.
22924         * lib/math.in.h (floorf): New declaration.
22925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
22926         HAVE_DECL_FLOORF.
22927         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
22928         HAVE_DECL_FLOORF.
22929         * doc/functions/floorf.texi: Mention the 'floorf' module.
22930
22931 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
22932             Bruno Haible  <bruno@clisp.org>
22933
22934         Advertise for the Git server instead of the CVS server.
22935         * doc/gnulib-intro.texi (Steady Development): Mention the Git
22936         repository instead of the CVS one.
22937         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
22938         about all VCS systems generically.
22939         * doc/gnulib.texi (Introduction): Capitalize `Git'.
22940
22941 2007-10-04  Bruno Haible  <bruno@clisp.org>
22942
22943         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
22944         means.
22945         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
22946
22947 2007-10-04  Bruno Haible  <bruno@clisp.org>
22948
22949         * modules/truncl-tests: New file.
22950         * tests/test-truncl.c: New file.
22951
22952         * modules/truncl: New file.
22953         * lib/truncl.c: New file.
22954         * m4/truncl.m4: New file.
22955         * lib/math.in.h (truncl): New declaration.
22956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
22957         HAVE_DECL_TRUNCL.
22958         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
22959         HAVE_DECL_TRUNCL.
22960         * doc/functions/truncl.texi: Mention the 'truncl' module.
22961
22962 2007-10-04  Bruno Haible  <bruno@clisp.org>
22963
22964         * modules/truncf-tests: New file.
22965         * tests/test-truncf.c: New file.
22966
22967         * modules/truncf: New file.
22968         * lib/trunc.c: Make paramerizable through USE_* macros.
22969         * lib/truncf.c: New file.
22970         * m4/truncf.m4: New file.
22971         * lib/math.in.h (truncf): New declaration.
22972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
22973         HAVE_DECL_TRUNCF.
22974         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
22975         HAVE_DECL_TRUNCF.
22976         * doc/functions/truncf.texi: Mention the 'truncf' module.
22977
22978 2007-10-03  Bruno Haible  <bruno@clisp.org>
22979
22980         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22981         augmentation also for tests modules.
22982         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
22983         * modules/atexit-tests (Makefile.am): Likewise.
22984         * modules/binary-io-tests (Makefile.am): Likewise.
22985         * modules/c-strcase-tests (Makefile.am): Likewise.
22986         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
22987         * modules/canonicalize-tests (Makefile.am): Likewise.
22988         * modules/closein-tests (Makefile.am): Likewise.
22989         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22990         * modules/freadahead-tests (Makefile.am): Likewise.
22991         * modules/fseek-tests (Makefile.am): Likewise.
22992         * modules/fseeko-tests (Makefile.am): Likewise.
22993         * modules/ftell-tests (Makefile.am): Likewise.
22994         * modules/ftello-tests (Makefile.am): Likewise.
22995         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
22996         * modules/isnanl-tests (Makefile.am): Likewise.
22997         * modules/lseek-tests (Makefile.am): Likewise.
22998         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22999         * modules/mbscasestr-tests (Makefile.am): Likewise.
23000         * modules/mbschr-tests (Makefile.am): Likewise.
23001         * modules/mbscspn-tests (Makefile.am): Likewise.
23002         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23003         * modules/mbspbrk-tests (Makefile.am): Likewise.
23004         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23005         * modules/mbsrchr-tests (Makefile.am): Likewise.
23006         * modules/mbsspn-tests (Makefile.am): Likewise.
23007         * modules/mbsstr-tests (Makefile.am): Likewise.
23008         * modules/printf-posix-tests (Makefile.am): Likewise.
23009         * modules/snprintf-posix-tests (Makefile.am): Likewise.
23010         * modules/sprintf-posix-tests (Makefile.am): Likewise.
23011         * modules/tsearch-tests (Makefile.am): Likewise.
23012         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23013         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23014         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23015         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23016         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23017         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23018         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23019         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23020         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
23021         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
23022         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23023         * modules/xstrtol-tests (Makefile.am): Likewise.
23024         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23025         * modules/yesno-tests (Makefile.am): Likewise.
23026
23027 2007-10-03  Bruno Haible  <bruno@clisp.org>
23028
23029         * modules/trunc-tests: New file.
23030         * tests/test-trunc.c: New file.
23031
23032         * modules/trunc: New file.
23033         * lib/trunc.c: New file.
23034         * m4/trunc.m4: New file.
23035         * lib/math.in.h (trunc): New declaration.
23036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
23037         HAVE_DECL_TRUNC.
23038         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
23039         HAVE_DECL_TRUNC.
23040         * doc/functions/trunc.texi: Mention the 'trunc' module.
23041
23042 2007-10-03  Bruno Haible  <bruno@clisp.org>
23043
23044         * tests/test-fpending.c: New file, mostly copied
23045         from coreutils/lib/t-fpending.c.
23046         * modules/fpending-tests: New file.
23047
23048 2007-10-03  Bruno Haible  <bruno@clisp.org>
23049
23050         Port the stdio extensions to QNX (untested).
23051         * lib/fseterr.c (fseterr): Add support for QNX.
23052         * lib/fbufmode.c (fbufmode): Likewise.
23053         * lib/freadable.c (freadable): Likewise.
23054         * lib/fwritable.c (fwritable): Likewise.
23055         * lib/freading.c (freading): Likewise.
23056         * lib/fwriting.c (fwriting): Likewise.
23057         * lib/freadahead.c (freadahed): Likewise.
23058         * lib/fpurge.c (fpurge): Likewise.
23059         * lib/fseeko.c (rpl_fseeko): Likewise.
23060
23061 2007-10-03  Bruno Haible  <bruno@clisp.org>
23062             Jim Meyering  <jim@meyering.net>
23063             Eric Blake  <ebb9@byu.net>
23064
23065         * doc/relocatable.texi: Use @command instead of @program.
23066
23067 2007-10-02  Jim Meyering  <jim@meyering.net>
23068
23069         Perform one more "_.h" -> ".in.h" substitution.
23070         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
23071         instead of unistd_.h here, too.
23072
23073 2007-10-01  Bruno Haible  <bruno@clisp.org>
23074
23075         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
23076         Needed for the alloca-opt module.
23077
23078 2007-09-30  Bruno Haible  <bruno@clisp.org>
23079
23080         * lib/alloca.in.h: Renamed from lib/alloca_.h.
23081         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
23082         alloca_.h.
23083         * lib/argz.in.h: Renamed from lib/argz_.h.
23084         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
23085         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
23086         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
23087         byteswap_.h.
23088         * lib/dirent.in.h: Renamed from lib/dirent_.h.
23089         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
23090         dirent_.h.
23091         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
23092         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
23093         fcntl_.h.
23094         * lib/float.in.h: Renamed from lib/float_.h.
23095         * modules/float (Files, Makefile.am): Use float.in.h instead of
23096         float_.h.
23097         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
23098         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
23099         fnmatch_.h.
23100         * lib/getopt.in.h: Renamed from lib/getopt_.h.
23101         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
23102         getopt_.h.
23103         * lib/glob.in.h: Renamed from lib/glob_.h.
23104         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
23105         * lib/iconv.in.h: Renamed from lib/iconv_.h.
23106         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
23107         iconv_.h.
23108         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
23109         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
23110         inttypes_.h.
23111         * lib/locale.in.h: Renamed from lib/locale_.h.
23112         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
23113         locale_.h.
23114         * lib/math.in.h: Renamed from lib/math_.h.
23115         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
23116         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
23117         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
23118         of netinet_in_.h. Add dependency.
23119         * lib/poll.in.h: Renamed from lib/poll_.h.
23120         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
23121         * lib/search.in.h: Renamed from lib/search_.h.
23122         * modules/search (Files, Makefile.am): Use search.in.h instead of
23123         search_.h.
23124         * lib/signal.in.h: Renamed from lib/signal_.h.
23125         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
23126         _signal.h.
23127         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
23128         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
23129         stdbool_.h.
23130         * lib/stdint.in.h: Renamed from lib/stdint_.h.
23131         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
23132         stdint_.h.
23133         * lib/stdio.in.h: Renamed from lib/stdio_.h.
23134         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
23135         stdio_.h.
23136         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
23137         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
23138         stdlib_.h.
23139         * lib/string.in.h: Renamed from lib/string_.h.
23140         * modules/string (Files, Makefile.am): Use string.in.h instead of
23141         string_.h.
23142         * doc/gnulib-tool.texi (Initial import): Update.
23143         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
23144         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
23145         of sys_select_.h. Add dependency.
23146         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
23147         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
23148         of sys_socket_.h.
23149         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
23150         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
23151         sys_stat_.h.
23152         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
23153         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
23154         sys_time_.h.
23155         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
23156         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
23157         sysexits_.h.
23158         * lib/time.in.h: Renamed from lib/time_.h.
23159         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
23160         * lib/unistd.in.h: Renamed from lib/unistd_.h.
23161         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
23162         unistd_.h.
23163         * lib/wchar.in.h: Renamed from lib/wchar_.h.
23164         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
23165         wchar_.h.
23166         * lib/wctype.in.h: Renamed from lib/wctype_.h.
23167         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
23168         wctype_.h.
23169         * build-aux/bootstrap (slurp): Update.
23170         * lib/.cppi-disable: Update.
23171
23172 2007-09-30  Bruno Haible  <bruno@clisp.org>
23173
23174         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
23175         Needed on BeOS.
23176
23177 2007-09-30  Bruno Haible  <bruno@clisp.org>
23178
23179         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
23180
23181 2007-09-29  Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
23184
23185 2007-09-29  Bruno Haible  <bruno@clisp.org>
23186
23187         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
23188         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
23189         * build-aux/install-reloc: Compile also areadlink.c.
23190         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
23191
23192 2007-09-29  Bruno Haible  <bruno@clisp.org>
23193
23194         * gnulib-tool (func_emit_initmacro_done): Indentation.
23195
23196 2007-09-29  Bruno Haible  <bruno@clisp.org>
23197
23198         * README: Add CVS checkout update instructions.
23199         Info from Bob Proulx <bob@proulx.com>.
23200
23201 2007-09-28  Eric Blake  <ebb9@byu.net>
23202
23203         Provide move-if-change.
23204         * build-aux/move-if-change: New file, based on best practice
23205         rather than any canonical upstream location.
23206
23207 2007-09-28  Jim Meyering  <jim@meyering.net>
23208
23209         Fix canonicalize loop-detection corner case.
23210         Do not attempt to stat the symlink values stored via seen_triple.
23211         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
23212         on linux-2.6.18, (but not 2.6.22).
23213         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
23214         triple_compare.  The former compares dev,ino,filename, while the latter
23215         would actually stat dirname(filename) when dev and ino were equal.
23216         * lib/hash-triple.c: Install <string.h>.
23217         (STREQ): Define.
23218         (triple_compare_ino_str): New function.
23219         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
23220
23221 2007-09-28  Eric Blake  <ebb9@byu.net>
23222
23223         Enforce that AC_REPLACE_FUNCS files exist.
23224         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
23225         override check for typos.
23226
23227         Fix test-closein on Solaris 10.
23228         * tests/test-closein.c (main): Don't assume stdin can be inherited
23229         closed on all systems.
23230         * tests/test-closein.sh: Likewise.
23231         Reported by Piotr Tarnowski.
23232
23233 2007-09-28  Jim Meyering  <jim@meyering.net>
23234
23235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
23236
23237 2007-09-27  Jim Meyering  <jim@meyering.net>
23238
23239         canonicalize: Avoid a false-positive cycle failure.
23240         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
23241         Sort.  Remove cycle-check.
23242         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
23243         not cycle-check.h.
23244         (seen_triple): New function.
23245         (canonicalize_filename_mode): Use it instead of cycle-check.
23246         * tests/test-canonicalize.c: Add a test for this bug.
23247         * tests/test-canonicalize.sh: Set up and run the test.
23248
23249         New module, file-set, from coreutils.
23250         * modules/file-set: Define it.
23251         * lib/file-set.c, lib/file-set.h: Implement.
23252
23253         New module, hash-triple, from coreutils.
23254         * modules/hash-triple: Define it.
23255         * lib/hash-triple.c, lib/hash-triple.h: Implement.
23256
23257 2007-09-25  Eric Blake  <ebb9@byu.net>
23258
23259         Fix strerror on Interix.
23260         * lib/string_.h (strerror): Declare replacement.
23261         * doc/functions/strerror.texi (strerror): Document the Interix
23262         shortcoming.
23263         * modules/string (Makefile.am): Support new hooks.
23264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
23265         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
23266         gl_FUNC_STRERROR_SEPARATE.
23267         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
23268         * lib/strerror.c (rpl_strerror): Provide replacement.
23269         * modules/strerror (Depends-on): Add string.
23270         (configure.ac): Detect use of module.
23271         * tests/test-strerror.c: New file.
23272         * modules/strerror-tests: New test module.
23273         * modules/argp (Depends-on): Add strerror.
23274         * modules/error (Depends-on): Likewise.
23275         Reported by Martin Koeppe.
23276
23277 2007-09-24  Bruno Haible  <bruno@clisp.org>
23278
23279         * README: Update git instructions.
23280
23281 2007-09-24  Eric Blake  <ebb9@byu.net>
23282
23283         Revert fpending breakage from 2007-09-08.
23284         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
23285         __fpending.c.
23286
23287 2007-09-24  Jim Meyering  <jim@meyering.net>
23288
23289         filenamecat.c: Add a test.
23290         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
23291         showing how the function works when DIR is the empty string.
23292
23293 2007-09-21  Simon Josefsson  <simon@josefsson.org>
23294
23295         * tests/test-canonicalize.sh: Turn on executable bit.
23296
23297 2007-09-19  Eric Blake  <ebb9@byu.net>
23298
23299         * README: Update CVS instructions.
23300
23301 2007-09-18  Bruno Haible  <bruno@clisp.org>
23302
23303         * modules/areadlink: New file.
23304         * lib/areadlink.h (areadlink): New declaration.
23305         * lib/areadlink.c: New file, based on lib/xreadlink.c.
23306
23307 2007-09-17  Jim Meyering  <jim@meyering.net>
23308
23309         * lib/savewd.c (ESTALE) [!defined]: Define.
23310         Reported to be required on Interix by Martin Koeppe.
23311
23312 2007-09-17  Bruno Haible  <bruno@clisp.org>
23313
23314         * gnulib-tool (func_version): Use $version.
23315
23316 2007-09-16  Bruno Haible  <bruno@clisp.org>
23317
23318         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
23319         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
23320         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
23321         Reported by Greg Schafer <gschafer@zip.com.au>.
23322
23323 2007-09-15  Bruno Haible  <bruno@clisp.org>
23324
23325         * gnulib-tool (sed): Try a little harder to make bash understand the
23326         alias.
23327         Reported by Bruce Korb <bruce.korb@gmail.com>.
23328
23329 2007-09-13  Eric Blake  <ebb9@byu.net>
23330
23331         * ChangeLog: Remove conflict markers.
23332
23333 2007-09-13  Simon Josefsson  <simon@josefsson.org>
23334
23335         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
23336         Reported by Bruno Haible <bruno@clisp.org>.
23337
23338 2007-09-12  Bruno Haible  <bruno@clisp.org>
23339
23340         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
23341         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
23342         is not defined.
23343
23344 2007-09-12  Eric Blake  <ebb9@byu.net>
23345
23346         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
23347         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
23348         Autoconf definition.
23349         * modules/euidaccess (Depends-on): Add extensions, for
23350         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
23351         * modules/fnmatch (Depends-on): Likewise.
23352         * modules/getaddrinfo (Depends-on): Likewise.
23353         * modules/getdelim (Depends-on): Likewise.
23354         * modules/getline (Depends-on): Likewise.
23355         * modules/getsubopt (Depends-on): Likewise.
23356         * modules/gettext (Depends-on): Likewise.
23357         * modules/group-member (Depends-on): Likewise.
23358         * modules/mbchar (Depends-on): Likewise.
23359         * modules/memmem (Depends-on): Likewise.
23360         * modules/mempcpy (Depends-on): Likewise.
23361         * modules/memrchr (Depends-on): Likewise.
23362         * modules/pagealign_alloc (Depends-on): Likewise.
23363         * modules/readutmp (Depends-on): Likewise.
23364         * modules/stpcpy (Depends-on): Likewise.
23365         * modules/stpncpy (Depends-on): Likewise.
23366         * modules/strchrnul (Depends-on): Likewise.
23367         * modules/strndup (Depends-on): Likewise.
23368         * modules/strsep (Depends-on): Likewise.
23369         * modules/strverscmp (Depends-on): Likewise.
23370         * modules/vasprintf (Depends-on): Likewise.
23371         * modules/wcwidth (Depends-on): Likewise.
23372         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
23373         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
23374         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
23375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
23376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23377         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23378         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
23379         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23380         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
23381         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23382         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
23384         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
23385         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23386         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
23387         * m4/readutmp.m4 (gl_READUTMP): Likewise.
23388         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23389         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
23390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23391         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
23392         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23393         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
23394         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
23395         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
23396         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
23397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23398         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
23399         so that lock.m4 can be used in gettext without extensions module.
23400
23401 2007-09-11  Bruno Haible  <bruno@clisp.org>
23402
23403         * m4/isc-posix.m4: Remove file.
23404         Suggested by Eric Blake.
23405
23406 2007-09-11  Eric Blake  <ebb9@byu.net>
23407
23408         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
23409
23410 2007-09-10  Bruno Haible  <bruno@clisp.org>
23411
23412         * posix-modules: Fix typo in error message.
23413         Reported by Matt <mkraai@beckman.com>.
23414
23415 2007-09-09  Bruno Haible  <bruno@clisp.org>
23416
23417         * doc/functions/getdelim.texi: Update list of platforms lacking the
23418         function.
23419         * doc/functions/getline.texi: Likewise.
23420
23421 2007-09-09  Jim Meyering  <jim@meyering.net>
23422
23423         * lib/hash.c (hash_initialize): Detect calloc failure.
23424         Reported by Bruno Haible.
23425
23426 2007-09-09  Bruno Haible  <bruno@clisp.org>
23427
23428         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
23429         malloc or realloc fails.
23430
23431 2007-09-09  Bruno Haible  <bruno@clisp.org>
23432
23433         * modules/getcwd (Depends-on): Add malloc-posix.
23434         * modules/glob (Depends-on): Likewise.
23435         * modules/putenv (Depends-on): Likewise.
23436         * modules/strdup (Depends-on): Likewise.
23437         * modules/getdelim (Depends-on): Add realloc-posix.
23438         * modules/read-file (Depends-on): Likewise.
23439
23440 2007-09-09  Bruno Haible  <bruno@clisp.org>
23441
23442         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
23443         (gl_FUNC_MALLOC_POSIX): Require it.
23444         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
23445         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
23446         * modules/realloc (Files): Add m4/malloc.m4.
23447         * modules/calloc (Files): Likewise.
23448
23449 2007-09-09  Bruno Haible  <bruno@clisp.org>
23450
23451         * modules/malloc-posix: New file.
23452         * modules/malloc (Depends-on): Add malloc-posix.
23453         * lib/malloc.c: Include errno.h.
23454         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
23455         and a POSIX-compatible malloc into a single function. Set ENOMEM
23456         when returning NULL.
23457         * m4/malloc.m4: New file.
23458         * doc/functions/malloc.texi: Mention the malloc-posix module.
23459         * lib/stdlib_.h (malloc): New declaration.
23460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23461         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
23462         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
23463         and HAVE_MALLOC_POSIX.
23464
23465 2007-09-09  Bruno Haible  <bruno@clisp.org>
23466
23467         * modules/realloc-posix: New file.
23468         * modules/realloc (Depends-on): Add realloc-posix.
23469         * lib/realloc.c: Include errno.h.
23470         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
23471         and a POSIX-compatible realloc into a single function. Set ENOMEM
23472         when returning NULL.
23473         * m4/realloc.m4: New file.
23474         * doc/functions/realloc.texi: Mention the realloc-posix module.
23475         * lib/stdlib_.h (realloc): New declaration.
23476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23477         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
23478         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
23479         and HAVE_REALLOC_POSIX.
23480
23481 2007-09-09  Bruno Haible  <bruno@clisp.org>
23482
23483         * modules/calloc-posix: New file.
23484         * modules/calloc (Depends-on): Add calloc-posix.
23485         * lib/calloc.c: Include errno.h.
23486         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
23487         and a POSIX-compatible calloc into a single function. Set ENOMEM
23488         when returning NULL.
23489         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
23490         * doc/functions/calloc.texi: Mention the calloc-posix module.
23491         * lib/stdlib_.h (calloc): New declaration.
23492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23493         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
23494         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
23495         and HAVE_CALLOC_POSIX.
23496
23497 2007-09-09  Bruno Haible  <bruno@clisp.org>
23498
23499         Allow for modules to show an arbitrary notice.
23500         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
23501         * gnulib-tool: New option --extract-notice.
23502         (func_usage): Document it.
23503         (sed_extract_prog): Update.
23504         (func_get_notice): New function.
23505         (func_modules_notice): New function.
23506         (func_import, func_create_testdir): Invoke it.
23507         Suggested by Jim Meyering.
23508
23509 2007-09-09  Bruno Haible  <bruno@clisp.org>
23510
23511         * gnulib-tool: New options --verbose, --quiet.
23512         (func_usage): Document them.
23513         (verbose): New variable.
23514         (func_execute_command): New function.
23515         (func_import): Don't show the module list and the file list if
23516         $verbose < 0.
23517         (func_create_testdir): Likewise. Use func_execute_command.
23518         (func_create_megatestdir): Use func_execute_command.
23519
23520 2007-09-08  Bruno Haible  <bruno@clisp.org>
23521
23522         * gnulib-tool (func_import): Prefer rsync over wget when available,
23523         for fetching the PO files.
23524
23525 2007-09-08  Bruno Haible  <bruno@clisp.org>
23526
23527         * posix-modules: New file. Portions copied from gnulib-tool.
23528         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
23529
23530 2007-09-08  Jim Meyering  <jim@meyering.net>
23531
23532         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
23533         * lib/fpending.h: Rename from __fpending.h.
23534         * lib/fpending.c: Rename from __fpending.c.
23535         Include "fpending.h", not "__fpending.h".
23536         * lib/__fpending.h, lib/__fpending.c: Remove files.
23537         * modules/fpending (Files): Reflect new file names.
23538         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
23539
23540 2007-09-08  Bruno Haible  <bruno@clisp.org>
23541
23542         * m4/inttypes-h.m4: Remove stub file.
23543
23544 2007-09-07  Simon Josefsson  <simon@josefsson.org>
23545
23546         * doc/headers/stdint.texi: Discuss #include_next issue.
23547
23548 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23549
23550         * build-aux/bootstrap: Remove obsolete comment about wget --help.
23551
23552 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23553
23554         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
23555         in variable name.
23556
23557 2007-09-03  Jim Meyering  <jim@meyering.net>
23558
23559         New module: git-version-gen.
23560         * modules/git-version-gen: New file.
23561
23562         Import changes from coreutils for bootstrap script.
23563
23564         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
23565
23566         bootstrap: uses rsync to download the .po files
23567         * build-aux/bootstrap (po_download_command_format): New global.
23568         (download_po_files): Use rsync.
23569         (update_po_files): Don't remove .po files after download,
23570         so future rsync runs can take advantage of the copies.
23571
23572         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
23573
23574         Solve the unnecessary-.po-file-regeneration problem once and for all.
23575         * build-aux/bootstrap (download_po_files): New function, renamed from
23576         get_translations.  Now, downloads, but doesn't update LINGUAS.
23577         (update_po_files): New function.
23578
23579         bootstrap: Ignore more.
23580         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
23581         uniwidth to e.g., lib/.gitignore.
23582         (slurp): Handle the sys_stat_.h -> sys mapping, too.
23583
23584         * build-aux/bootstrap: New setting: vc_ignore.
23585         (insert_sorted_if_absent): Create $file if absent.
23586         Adapt to new, possibly empty, list: $vc_ignore.
23587
23588         bootstrap: generate more ignorable names
23589         * build-aux/bootstrap (slurp): When generating ignorable names,
23590         also map .sin to .sed, .gperf to .c, and .y to .c.
23591
23592 2007-09-03  Jim Meyering  <jim@meyering.net>
23593
23594         * build-aux/git-version-gen: New file, from coreutils.  For details, see
23595         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
23596
23597 2007-09-02  Bruno Haible  <bruno@clisp.org>
23598
23599         Fix mis-recognition of 'mcs' on QNX 6.
23600         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
23601         output contains the string "Mono".
23602         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
23603         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
23604
23605 2007-09-01  Bruno Haible  <bruno@clisp.org>
23606
23607         Fix collision between uniwidth/* and linebreak modules.
23608         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
23609         u32_width): Remove declarations.
23610         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
23611         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
23612         streq3, streq2, streq1, streq0): Remove functions.
23613         (STREQ): Remove macro.
23614         (is_cjk_encoding): Remove function.
23615         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
23616         (uc_width, u8_width, u16_width, u32_width): Remove functions.
23617         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
23618         * NEWS: Document the change.
23619
23620 2007-09-01  Bruno Haible  <bruno@clisp.org>
23621
23622         * lib/streq.h: Add double-inclusion guard.
23623
23624 2007-09-01  Karl Berry  <karl@gnu.org>
23625
23626         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
23627
23628 2007-08-28  Jim Meyering  <jim@meyering.net>
23629
23630         Rename mreadlink_with_size to areadlink_with_size.
23631         * NEWS: Document the change.
23632         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
23633         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
23634         * lib/mreadlink.h: Rename this to...
23635         * lib/areadlink.h: ...this.
23636         * modules/mreadlink-with-size: Rename this to...
23637         * modules/areadlink-with-size: ...this.
23638         * lib/canonicalize.c: Reflect the renaming.
23639         * modules/canonicalize: Likewise.
23640
23641 2007-08-26  Bruno Haible  <bruno@clisp.org>
23642
23643         * gnulib-tool (func_import): When deciding which files to remove,
23644         consider also dangling symbolic links.
23645         Reported by Eric Blake.
23646
23647 2007-08-26  Bruno Haible  <bruno@clisp.org>
23648
23649         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
23650
23651 2007-08-23  Simon Josefsson  <simon@josefsson.org>
23652
23653         * lib/readline.c: Don't include getline.h, the prototype is now
23654         found in stdio.h.
23655
23656 2007-08-23  Jim Meyering  <jim@meyering.net>
23657
23658         Getdelim touchup.
23659         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
23660         around the funlockfile call, since funlockfile never sets errno.
23661         Don't set errno upon failed realloc.
23662
23663 2007-08-22  Eric Blake  <ebb9@byu.net>
23664
23665         Getline touchups.
23666         * lib/getdelim.c (getdelim): Revert regression that required *n to
23667         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
23668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
23669         getdelim, rather than whether implementation is missing.
23670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
23671         * lib/stdio_.h (getline): Also declare if replacement is
23672         required.
23673         * doc/functions/getdelim.texi: New file.
23674         * doc/functions/getline.texi: Likewise.
23675         * doc/gnulib.texi (Function Substitutes): Add new files.
23676         Reported by Bruno Haible.
23677
23678 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
23679
23680         * users.txt: Add Guile.
23681
23682 2007-08-22  Eric Blake  <ebb9@byu.net>
23683
23684         * tests/test-getdelim.c (main): Use remove, not unlink.
23685         * tests/test-getline.c (main): Likewise.
23686
23687         Move getline and getdelim into stdio.h, per POSIX 200x.
23688         * modules/getline (Files): Remove getline.h.
23689         (Depends-on): Add stdio.
23690         (configure.ac): Add module indicator.
23691         * modules/getdelim (Files): Remove getdelim.h.
23692         (Depends-on): Add stdio.
23693         (configure.ac): Add module indicator.
23694         * modules/stdio (Makefile.am): Work with new indicators.
23695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23696         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
23697         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23698         * lib/getdelim.h: Delete.
23699         * lib/getline.h: Delete.
23700         * lib/stdio_.h (getdelim, getline): Declare.
23701         * modules/getdelim-tests: New module.
23702         * modules/getline-tests: Likewise.
23703         * tests/test-getdelim.c: New file.
23704         * tests/test-getline.c: Likewise.
23705         * NEWS: Document the change.
23706         * lib/getline.c: Update choice of header.
23707         * lib/csharpcomp.c: Likewise.
23708         * lib/getpass.c: Likewise.
23709         * lib/javacomp.c: Likewise.
23710         * lib/javaversion.c: Likewise.
23711         * lib/yesno.c: Likewise.
23712         * lib/getdelim.c: Likewise.
23713         (getdelim): Set errno on failure, and avoid memory leak.
23714
23715 2007-08-19  Bruno Haible  <bruno@clisp.org>
23716
23717         * modules/closein (Depends-on): Add freadahead.
23718         * lib/closein.c: Include freadahead.h.
23719         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
23720         is zero.
23721
23722 2007-08-19  Bruno Haible  <bruno@clisp.org>
23723
23724         * modules/freadahead-tests: New file.
23725         * tests/test-freadahead.sh: New file.
23726         * tests/test-freadahead.c: New file.
23727
23728         * modules/freadahead: New file.
23729         * lib/freadahead.h: New file.
23730         * lib/freadahead.c: New file.
23731         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
23732         fbufmode, fpurge, freadable, fwritable.
23733
23734 2007-08-19  Eric Blake  <ebb9@byu.net>
23735
23736         Test yesno in combination with closein.
23737         * lib/yesno.c (yesno): Document use of stdin.
23738         * modules/yesno-tests (Files): New module.
23739         * tests/test-yesno.c (main): New file.
23740         * tests/test-yesno.sh: Likewise.
23741
23742 2007-08-19  Bruno Haible  <bruno@clisp.org>
23743
23744         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
23745         * lib/fseeko.c (rpl_fseeko): Likewise.
23746         * lib/fseterr.c (fseterr): Likewise.
23747
23748 2007-08-19  Bruno Haible  <bruno@clisp.org>
23749
23750         * tests/test-lseek.c (main): Disable a test for BeOS.
23751         * doc/functions/lseek.texi: Document the BeOS bug.
23752
23753 2007-08-19  Bruno Haible  <bruno@clisp.org>
23754             Eric Blake  <ebb9@byu.net>
23755
23756         * lib/lseek.c: Include <sys/stat.h>.
23757         (rpl_lseek): Add workaround code also for Unix platforms.
23758         Needed for BeOS.
23759         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
23760         * doc/functions/lseek.texi: Document BeOS definiency.
23761
23762 2007-08-18  Bruno Haible  <bruno@clisp.org>
23763
23764         * modules/fstrcmp-tests: New file.
23765         * tests/test-fstrcmp.c: New file.
23766
23767 2007-08-18  Bruno Haible  <bruno@clisp.org>
23768
23769         * modules/fstrcmp: New file, from GNU gettext with modifications.
23770         * lib/fstrcmp.h: New file, from GNU gettext.
23771         * lib/fstrcmp.c: New file, from GNU gettext.
23772         * MODULES.html.sh (String handling): Add fstrcmp.
23773
23774 2007-08-18  Bruno Haible  <bruno@clisp.org>
23775
23776         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
23777         'bool'.
23778         (diag, compareseq): Remove const from the ctxt argument.
23779         (USE_HEURISTIC): Undefine at the end.
23780
23781 2007-08-18  Jim Meyering  <jim@meyering.net>
23782
23783         New file: lib/idcache.h
23784         * NEWS: Mention the addition.
23785         * modules/idcache (Files): Add lib/idcache.h
23786         * lib/idcache.c: Include "idcache.h".
23787         Don't include <sys/types.h>.
23788         Add a FIXME comment.
23789         Move file-scoped "static" declarations to the top.
23790         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
23791
23792 2007-08-17  Bruno Haible  <bruno@clisp.org>
23793         and Paul Eggert  <eggert@cs.ucla.edu>
23794
23795         * MODULES.html.sh: Add diffseq.
23796         * modules/diffseq: New file.
23797         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
23798         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
23799
23800 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23801
23802         Import changes from coreutils for bootstrap script.
23803
23804         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
23805
23806         * build-aux/bootstrap (slurp): Work even in environments where
23807         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
23808         current code does not slurp files whose names start with ".", and
23809         this looks like it might be a troublesome area.
23810
23811         2007-07-11  Jim Meyering  <jim@meyering.net>
23812
23813         If there's a GPL vN copyright comment, require that N == 3.
23814
23815         2007-07-08  Jim Meyering  <jim@meyering.net>
23816
23817         Run the coreutils-specific code only if tests/Makefile.am.in exists.
23818         * build-aux/bootstrap (mam_template): Move definition out of loop.
23819
23820         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
23821
23822         * build-aux/bootstrap (symlink_to_dir): Rename function from
23823         symlink_to_gnulib.  Add a directory parameter.  Update all
23824         callers.
23825         (cp_mark_as_generated): Also check for -- and link to -- files in
23826         gl/.
23827
23828         2007-07-08  Jim Meyering  <jim@meyering.net>
23829
23830         Adapt to deeper hierarchy in gnulib.
23831         * build-aux/bootstrap (symlink_to_dir): If the destination
23832         directory doesn't exist, create it. This is required at least for
23833         "lib/uniwidth/cjk.h".
23834
23835         2007-05-15  Jim Meyering  <jim@meyering.net>
23836
23837         * build-aux/bootstrap: Now that generated Makefile.am files
23838         are no longer under version control, they must be created at
23839         bootstrap time.
23840
23841 2007-08-14  Ben Pfaff  <blp@gnu.org>
23842
23843         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
23844
23845 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23846
23847         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
23848         given the changes below.
23849         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
23850         even on hosts that have padding bits beyond the supported 64.
23851
23852 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23853
23854         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
23855         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
23856         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
23857         depends on it.
23858         (xstrtol_error): Remove.
23859         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
23860         but with a different signature.
23861         (ATTRIBUTE_NORETURN, __attribute__): New macros.
23862         * lib/xstrtol-error.c: Include exitfail.h.
23863         (xstrtol_fatal): New function, with a different signature from the
23864         old xstrtol_error, so that the caller need not worry about passing
23865         in an exit status, or about storage management of the option argument.
23866         (xstrtol_error): Now a static function.  Redo signature to
23867         implement xstrtol_fatal.  Output the correct number of hyphens in
23868         front of the option so that the caller need not worry about
23869         storage management.
23870         (N_): New macro.
23871         (_): Remove; not used now.
23872         * modules/xstrtol: Depend on getopt.
23873         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
23874         of old STRTOL_FATAL_ERROR macro.
23875         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
23876         of test program.
23877         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
23878         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
23879
23880 2007-08-08  Eric Blake  <ebb9@byu.net>
23881
23882         * lib/xstrtol-error.c: Add missing include.
23883
23884         Move xstrtol messages into gnulib domain, when --pobase is used.
23885         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
23886         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
23887         * modules/xstrtol (Files): Distribute new file.
23888         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
23889         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
23890         * tests/test-xstrtol.c: ...into new file.
23891         * tests/test-xstrtoul.c: Also test xstrtoul.
23892         * tests/test-xstrtoimax.c: Also test xstrtoimax.
23893         * tests/test-xstrtoumax.c: Also test xstrtoumax.
23894         * tests/test-xstrtol.sh: Drive the tests.
23895         * tests/test-xstrtoimax.sh: Likewise.
23896         * tests/test-xstrtoumax.sh: Likewise.
23897         * modules/xstrtol-tests: New module.
23898         * modules/xstrtoimax-tests: Likewise.
23899         * modules/xstrtoumax-tests: Likewise.
23900
23901 2007-08-08  Jim Meyering  <jim@meyering.net>
23902
23903         New function: mfile_name_concat.
23904         * lib/filenamecat.c (mfile_name_concat): New function, just like
23905         file_name_concat, but return NULL upon failure rather than exiting
23906         with a diagnostic.
23907         * lib/filenamecat.h: Declare it.
23908
23909 2007-08-07  Bruno Haible  <bruno@clisp.org>
23910
23911         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
23912         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
23913         warning from gcc.
23914         Reported by Eric Blake.
23915
23916 2007-08-07  Simon Josefsson  <simon@josefsson.org>
23917
23918         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
23919         * modules/crypto/arcfour (License): Likewise.
23920         * modules/crypto/des-tests (License): Likewise.
23921         * modules/crypto/gc-arctwo-tests (License): Likewise.
23922         * modules/crypto/gc-des-tests (License): Likewise.
23923         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
23924         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
23925         * modules/crypto/gc-md2-tests (License): Likewise.
23926         * modules/crypto/gc-md4-tests (License): Likewise.
23927         * modules/crypto/gc-md5-tests (License): Likewise.
23928         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
23929         * modules/crypto/gc-rijndael-tests (License): Likewise.
23930         * modules/crypto/gc-sha1-tests (License): Likewise.
23931         * modules/crypto/gc-tests (License): Likewise.
23932         * modules/crypto/hmac-md5 (License): Likewise.
23933         * modules/crypto/hmac-sha1 (License): Likewise.
23934         * modules/crypto/md2-tests (License): Likewise.
23935         * modules/crypto/md4-tests (License): Likewise.
23936         * modules/crypto/md5 (License): Likewise.
23937         * modules/crypto/rijndael (License): Likewise.
23938         * modules/crypto/sha1 (License): Likewise.
23939         * modules/memxor (License): Likewise.
23940
23941 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23942         and Bruno Haible  <bruno@clisp.org>
23943
23944         * NEWS: Describe interface changes to human, xstrtol.
23945         * lib/human.h: Include <xstrtol.h>.
23946         (human_options): Return enum strtol_error, not int.  Remove
23947         bool arg; take int * instead.
23948         * lib/human.c: Don't include "gettext.h".
23949         (_): Remove; no longer used.
23950         Don't include <xstrtol.h>, since human.h does it.
23951         (human_options): Adjust to abovementioned interface changes.
23952         Do not report error to stderr; that's now the caller's
23953         responsibility.
23954         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
23955         interface change.
23956         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
23957         Str, Argument_type_string.  All uses changed.  Put " argument"
23958         in diagnostics to make them clearer.  Change wording of suffix
23959         message for clarity.
23960         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
23961         Argument_type_string.
23962         (STRTOL_FATAL_WARN): Remove; no longer used.
23963         * modules/human (Depends-on): Remove gettext-h.
23964
23965 2007-08-06  Simon Josefsson  <simon@josefsson.org>
23966
23967         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
23968
23969 2007-07-31  Bruno Haible  <bruno@clisp.org>
23970
23971         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
23972         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
23973         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
23974
23975 2007-07-31  Bruno Haible  <bruno@clisp.org>
23976
23977         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
23978         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
23979
23980 2007-07-30  Bruno Haible  <bruno@clisp.org>
23981
23982         * modules/base64 (License): Use the synonymous term "LGPLv2+".
23983         * modules/c-ctype (License): Likewise.
23984         * modules/c-strcase (License): Likewise.
23985         * modules/check-version (License): Likewise.
23986         * modules/iconv (License): Likewise.
23987         * modules/iconv_open (License): Likewise.
23988         * modules/read-file (License): Likewise.
23989         * modules/striconv (License): Likewise.
23990         * modules/strverscmp (License): Likewise.
23991         * modules/vasprintf (License): Likewise.
23992         * modules/crypto/des (License): Likewise.
23993         * modules/crypto/gc (License): Likewise.
23994         * modules/crypto/gc-arcfour (License): Likewise.
23995         * modules/crypto/gc-arctwo (License): Likewise.
23996         * modules/crypto/gc-des (License): Likewise.
23997         * modules/crypto/gc-hmac-md5 (License): Likewise.
23998         * modules/crypto/gc-hmac-sha1 (License): Likewise.
23999         * modules/crypto/gc-md2 (License): Likewise.
24000         * modules/crypto/gc-md4 (License): Likewise.
24001         * modules/crypto/gc-md5 (License): Likewise.
24002         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
24003         * modules/crypto/gc-random (License): Likewise.
24004         * modules/crypto/gc-rijndael (License): Likewise.
24005         * modules/crypto/gc-sha1 (License): Likewise.
24006         * modules/crypto/md2 (License): Likewise.
24007         * modules/crypto/md4 (License): Likewise.
24008
24009 2007-07-30  Jim Meyering  <jim@meyering.net>
24010
24011         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
24012         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
24013         it has valid stat data.  This bug would cause du not to count the
24014         sizes of inaccessible directories.
24015         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
24016         in <http://bugzilla.redhat.com/250077>.
24017
24018 2007-07-25  Peter O'Gorman  <peter@pogma.com>
24019             Bruno Haible  <bruno@clisp.org>
24020
24021         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
24022         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
24023         #include_next, gives a diagnostic about it, but reports no error in
24024         the exit code.
24025         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24026
24027 2007-07-24  Ben Pfaff  <blp@gnu.org>
24028
24029         Improve name: "count-one-bits" is better than "popcount".
24030         * MODULES.html.sh: Update name.
24031         * lib/popcount.h: Renamed lib/count-one-bits.h.
24032         (popcount): Renamed count_one_bits.
24033         (popcountl): Renamed count_one_bits_l.
24034         (popcountll): Renamed count_one_bits_ll.
24035         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
24036         * modules/popcount: Renamed module/count-one-bits.
24037         * modules/popcount-tests: Renamed module/count-one-bits-tests.
24038         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
24039
24040 2007-07-23  Ben Pfaff  <blp@gnu.org>
24041
24042         * lib/popcount.h (popcount32): Reduce size of constants, to allow
24043         better code generation, and add U to large constants to avoid
24044         warnings, in non-GCC case.
24045         Suggested by Bruno Haible.
24046
24047 2007-07-23  Ben Pfaff  <blp@gnu.org>
24048
24049         * lib/popcount.h: Use verify_true instead of if...abort.
24050         * modules/popcount: Depend on verify module.
24051         Suggested by Jim Meyering.
24052
24053 2007-07-23  Bruno Haible  <bruno@clisp.org>
24054
24055         * gnulib-tool (func_import): Create a .cvsignore file also when the
24056         directory is not yet in CVS but the toplevel directory is. When
24057         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
24058         Reported by Karl Berry.
24059
24060 2007-07-22  Ben Pfaff  <blp@gnu.org>
24061
24062         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
24063         case.
24064         Suggested by Eric Blake.
24065
24066 2007-07-22  Ben Pfaff  <blp@gnu.org>
24067
24068         New module: popcount.
24069         * MODULES.html.sh: Add popcount.
24070         * modules/popcount: New file.
24071         * modules/popcount-tests: New file.
24072         * tests/test-popcount.c: New file.
24073         * lib/popcount.h: New file.
24074         * m4/popcount.m4: New file.
24075
24076 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24077
24078         * build-aux/announce-gen: Update to GPLv3.
24079
24080         * build-aux/config.guess: Update from config.
24081
24082 2007-07-21  Bruno Haible  <bruno@clisp.org>
24083
24084         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
24085         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
24086
24087 2007-07-20  Jim Meyering  <jim@meyering.net>
24088
24089         * check-module: Diagnose a self-dependency.
24090
24091 2007-07-19  Bruno Haible  <bruno@clisp.org>
24092
24093         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
24094         empty.
24095         Reported by Eric Blake.
24096
24097 2007-07-18  Bruno Haible  <bruno@clisp.org>
24098
24099         * gnulib-tool: New options --po-base, --po-domain.
24100         (func_usage): Document them.
24101         (pobase, po_domain): New variables.
24102         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
24103         DEFAULT_TEXT_DOMAIN.
24104         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
24105         (func_import): Consider pobase and po_domain. Create a po/ directory.
24106         (func_create_testdir): Set pobase and po_domain to empty.
24107         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
24108         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
24109
24110 2007-07-18  Bruno Haible  <bruno@clisp.org>
24111
24112         * gnulib-tool (func_get_automake_snippet): Synthesize also an
24113         EXTRA_DIST augmentation for files in build-aux/.
24114
24115 2007-07-16  Bruno Haible  <bruno@clisp.org>
24116
24117         * modules/lseek (License): Use the synonymous term "LGPLv2+".
24118         * modules/getdelim (License): Likewise.
24119
24120 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24121
24122         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
24123         * modules/d-type (License): Likewise.
24124         * modules/extensions (License): Likewise.
24125         * modules/fnmatch (License): Likewise.
24126         * modules/fseeko (License): Likewise.
24127         * modules/getaddrinfo (License): Likewise.
24128         * modules/getline (License): Likewise.
24129         * modules/getlogin_r (License): Likewise.
24130         * modules/getpass (License): Likewise.
24131         * modules/gettimeofday (License): Likewise.
24132         * modules/glob (License): Likewise.
24133         * modules/inet_ntop (License): Likewise.
24134         * modules/malloc (License): Likewise.
24135         * modules/malloca (License): Likewise.
24136         * modules/memmem (License): Likewise.
24137         * modules/mempcpy (License): Likewise.
24138         * modules/memset (License): Likewise.
24139         * modules/minmax (License): Likewise.
24140         * modules/mktime (License): Likewise.
24141         * modules/netinet_in (License): Likewise.
24142         * modules/pathmax (License): Likewise.
24143         * modules/poll (License): Likewise.
24144         * modules/regex (License): Likewise.
24145         * modules/snprintf (License): Likewise.
24146         * modules/stdbool (License): Likewise.
24147         * modules/stdint (License): Likewise.
24148         * modules/stdio (License): Likewise.
24149         * modules/strcase (License): Likewise.
24150         * modules/strcasestr (License): Likewise.
24151         * modules/strdup (License): Likewise.
24152         * modules/string (License): Likewise.
24153         * modules/strndup (License): Likewise.
24154         * modules/strnlen (License): Likewise.
24155         * modules/strpbrk (License): Likewise.
24156         * modules/strptime (License): Likewise.
24157         * modules/strsep (License): Likewise.
24158         * modules/sys_select (License): Likewise.
24159         * modules/sys_socket (License): Likewise.
24160         * modules/sys_stat (License): Likewise.
24161         * modules/sys_time (License): Likewise.
24162         * modules/time (License): Likewise.
24163         * modules/time_r (License): Likewise.
24164         * modules/timegm (License): Likewise.
24165         * modules/unistd (License): Likewise.
24166         * modules/vsnprintf (License): Likewise.
24167         * modules/wctype (License): Likewise.
24168
24169 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24170
24171         * modules/argz (License): LGPLv2+.
24172
24173 2007-07-15  Karl Berry  <karl@gnu.org>
24174
24175         * doc/gnulib.texi: revise node structure per new fdl.texi.
24176
24177 2007-07-14  Bruno Haible  <bruno@clisp.org>
24178
24179         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
24180         the output file.
24181         * lib/uniname/uninames.h: Regenerated.
24182
24183 2007-07-14  Karl Berry  <karl@gnu.org>
24184
24185         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
24186         omitting sectioning and index commands.
24187
24188 2007-07-13  Bruno Haible  <bruno@clisp.org>
24189
24190         New gnulib-tool option --more-symlinks.
24191         * gnulib-tool (func_usage): Document --more-symlinks.
24192         (do_copyrights): New variable.
24193         Recognize option --more-symlinks.
24194         (func_import): Don't add a copyright notice transform to
24195         sed_transform_lib_file if do_copyrights is empty.
24196
24197 2007-07-13  Bruno Haible  <bruno@clisp.org>
24198
24199         * lib/vasnprintf.c (decimal_point_char): Define also if
24200         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
24201         && !NEED_PRINTF_DIRECTIVE_A.
24202         Reported by Clemens Koller <clemens.koller@anagramm.de> via
24203         Gary V. Vaughan <gary@gnu.org>.
24204
24205 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24206
24207         * lib/inttypes_.h: Undo previous change, since it was fixed
24208         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
24209
24210 2007-07-13  Bruno Haible  <bruno@clisp.org>
24211
24212         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
24213         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
24214
24215 2007-07-13  Jim Meyering  <jim@meyering.net>
24216
24217         df: Don't fail for Tru64's "file-on-file mount".
24218         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
24219         so we fall through and use statfs instead.  Details here:
24220         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
24221         Reported by Albert Chin.
24222
24223 2007-07-13  Bruno Haible  <bruno@clisp.org>
24224
24225         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
24226         * modules/configmake (License): Likewise.
24227         * modules/gettext (License): Likewise.
24228         * modules/gettext-h (License): Likewise.
24229         * modules/include_next (License): Likewise.
24230         * modules/link-warning (License): Likewise.
24231         * modules/localcharset (License): Likewise.
24232         * modules/localename (License): Likewise.
24233         * modules/lock (License): Likewise.
24234         * modules/relocatable-lib-lgpl (License): Likewise.
24235         * modules/size_max (License): Likewise.
24236         * modules/vasnprintf (License): Likewise.
24237         * modules/wchar (License): Likewise.
24238         * modules/xsize (License): Likewise.
24239
24240 2007-07-13  Bruno Haible  <bruno@clisp.org>
24241
24242         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
24243         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
24244
24245 2007-07-12  Bruno Haible  <bruno@clisp.org>
24246
24247         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
24248         in the modules files.
24249
24250 2007-07-11  Karl Berry  <karl@gnu.org>
24251
24252         * MODULES.html.sh (func_module): use
24253          sed -e '\|^'"${includefile}"'$|d'
24254          instead of /.../d, to avoid errors on $includefile's containing /.
24255
24256 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24257
24258         * gnulib-tool (func_import): Avoid duplication of --avoid
24259         statements
24260         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
24261         names to `_' in variable names.
24262
24263 2007-07-10  Eric Blake  <ebb9@byu.net>
24264
24265         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
24266         * NEWS: Document this change.
24267
24268 2007-07-08  Bruno Haible  <bruno@clisp.org>
24269
24270         Update to Unicode 5.0.
24271         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
24272         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
24273         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
24274         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
24275         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
24276         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
24277         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
24278         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
24279         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
24280         U+10A3F, U+1D242..U+1D244.
24281         (nonspacing_table_ind): Update.
24282         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
24283         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
24284
24285 2007-07-08  Bruno Haible  <bruno@clisp.org>
24286
24287         Update to Unicode 5.0.
24288         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
24289         code transform. Extend the name index field of unicode_name_to_code and
24290         unicode_code_to_name from 16 to 24 bits.
24291         * lib/uniname/uniname.c (unicode_character_name,
24292         unicode_name_character): Add the range 0x12xxx to the code transform.
24293         * lib/uniname/uninames.h: Regenerated.
24294         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
24295
24296 2007-07-07  Bruno Haible  <bruno@clisp.org>
24297
24298         * modules/wcwidth-tests: New file.
24299         * tests/test-wcwidth.c: New file.
24300
24301         Work around MacOS X wcwidth() bug.
24302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
24303         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
24304         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
24305         original wcwidth in non-UTF-8 locales.
24306         * modules/wcwidth (Depends-on): Add localcharset, streq,
24307         uniwidth/width.
24308         * doc/functions/wcwidth.texi: Update.
24309
24310 2007-07-07  Bruno Haible  <bruno@clisp.org>
24311
24312         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
24313         (wcwidth): New declaration.
24314         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
24315         macros.
24316         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
24317         here. Prepare for creating <wchar.h> unconditionally.
24318         * modules/wchar (Depends-on): Add link-warning.
24319         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
24320         REPLACE_WCWIDTH, and GL_LINK_WARNING.
24321         * lib/wcwidth.h: Remove file.
24322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
24323         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
24324         * modules/wcwidth (Files): Remove lib/wcwidth.h.
24325         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
24326         (Include): Replace wcwidth.h with <wchar.h>.
24327         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
24328         * lib/mbchar.h: Don't include wcwidth.h.
24329         * lib/mbswidth.c: Likewise.
24330         * NEWS: Mention the change.
24331
24332 2007-07-07  Bruno Haible  <bruno@clisp.org>
24333
24334         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
24335         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
24336         definition with an external declaration.
24337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
24338         defined as a function. Remove AC_C_INLINE requirement.
24339         * modules/wcwidth (Files): Add lib/wcwidth.c.
24340         (Makefile.am): Remove redundant statement.
24341
24342 2007-07-07  Bruno Haible  <bruno@clisp.org>
24343
24344         * MODULES.html.sh (Unicode string functions): Add the new modules.
24345
24346         * tests/uniwidth/test-u32-strwidth.c: New file.
24347         * modules/uniwidth/u32-strwidth-tests: New file.
24348
24349         * lib/uniwidth/u32-strwidth.c: New file.
24350         * modules/uniwidth/u32-strwidth: New file.
24351
24352         * tests/uniwidth/test-u16-strwidth.c: New file.
24353         * modules/uniwidth/u16-strwidth-tests: New file.
24354
24355         * lib/uniwidth/u16-strwidth.c: New file.
24356         * modules/uniwidth/u16-strwidth: New file.
24357
24358         * tests/uniwidth/test-u8-strwidth.c: New file.
24359         * modules/uniwidth/u8-strwidth-tests: New file.
24360
24361         * lib/uniwidth/u8-strwidth.c: New file.
24362         * modules/uniwidth/u8-strwidth: New file.
24363
24364         * tests/uniwidth/test-u32-width.c: New file.
24365         * modules/uniwidth/u32-width-tests: New file.
24366
24367         * lib/uniwidth/u32-width.c: New file.
24368         * modules/uniwidth/u32-width: New file.
24369
24370         * tests/uniwidth/test-u16-width.c: New file.
24371         * modules/uniwidth/u16-width-tests: New file.
24372
24373         * lib/uniwidth/u16-width.c: New file.
24374         * modules/uniwidth/u16-width: New file.
24375
24376         * tests/uniwidth/test-u8-width.c: New file.
24377         * modules/uniwidth/u8-width-tests: New file.
24378
24379         * lib/uniwidth/u8-width.c: New file.
24380         * modules/uniwidth/u8-width: New file.
24381
24382         * tests/uniwidth/test-uc_width.c: New file.
24383         * modules/uniwidth/width-tests: New file.
24384
24385         * lib/uniwidth/width.c: New file, from GNU libiconv.
24386         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
24387         * modules/uniwidth/width: New file.
24388
24389         * lib/uniwidth.h: New file, from GNU libiconv.
24390         * modules/uniwidth/base: New file.
24391
24392 2007-07-07  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/uniname.h: New file, from GNU gettext.
24395         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
24396         * lib/uniname/uninames.h: New file, from GNU gettext.
24397         * lib/uniname/uniname.c: New file, from GNU gettext.
24398         * tests/uniname/test-uninames.sh: New file.
24399         * tests/uniname/test-uninames.c: New file, from GNU gettext.
24400         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
24401         * modules/uniname/base: New file.
24402         * modules/uniname/uniname: New file.
24403         * modules/uniname/uniname-tests: New file.
24404         * MODULES.html.sh (Unicode string functions): Add the new modules.
24405
24406 2007-07-06  Bruno Haible  <bruno@clisp.org>
24407
24408         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
24409
24410 2007-07-06  Bruno Haible  <bruno@clisp.org>
24411
24412         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
24413         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
24414         includes <cygwin/sys_time.h> which includes <sys/select.h> which
24415         include <sys/time.h>.
24416         Reported by Eric Blake.
24417
24418 2007-07-06  Eric Blake  <ebb9@byu.net>
24419
24420         Fix testing canonicalize on cygwin.
24421         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
24422         Revert patch from 2007-06-19.
24423         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
24424         canonicalize module is also in use.
24425         * tests/test-canonicalize.c: New file.
24426         * tests/test-canonicalize.sh: Likewise.
24427         * modules/canonicalize-tests: Likewise.
24428
24429 2007-07-06  Jim Meyering  <jim@meyering.net>
24430
24431         * lib/getugroups.c (getugroups): Detect getgrent failure.
24432         Adjust comment to reflect reality: this function may return -1.
24433
24434 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24435
24436         * build-aux/bootstrap (TP_URL,get_translations): Update to use
24437         the new TP address.
24438         (usage): Fix typo
24439         (gnulib_mk): New variable.
24440
24441 2007-07-05  Jim Meyering  <jim@meyering.net>
24442
24443         Don't let endgrent clobber errno, no matter how improbable.
24444         * lib/getugroups.c (getugroups): Save and restore errno around
24445         endgrent call.
24446
24447         Close the group DB even when failing with 2^31 or more members.
24448         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
24449
24450 2007-07-04  Jim Meyering  <jim@meyering.net>
24451
24452         * lib/getugroups.h: New file.
24453         * lib/getugroups.c: Include "getugroups.h".
24454         Remove uses of "register" keyword.
24455         Move local variable, "cp", down into scope where used.
24456         Give "username" parameter the "const" attribute.
24457         * modules/getugroups (Files): Add lib/getugroups.h
24458
24459 2007-07-04  Karl Berry  <karl@gnu.org>
24460
24461         * MODULES.html.sh (func_all_modules): Complete rename of
24462         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
24463
24464 2007-07-02  Bruno Haible  <bruno@clisp.org>
24465
24466         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
24467         mode, when inttypes.h comes from gnulib.
24468         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24469
24470 2007-07-02  Simon Josefsson  <simon@josefsson.org>
24471
24472         * NEWS: Mention lgpl module name change.
24473
24474         * modules/lgpl-2.1: Renamed from lgpl.
24475
24476         * NEWS: Mention gpl module name change.
24477
24478         * modules/gpl-3.0: New file, based on gpl-2.0.
24479
24480         * modules/gpl-2.0: Renamed from gpl.
24481
24482         * modules/gpl: Fix filename, doc/gpl.texi is now found at
24483         doc/gpl-2.0.texi.
24484
24485 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24486
24487         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
24488         #define __STDC_LIMIT_MACROS temporarily while including
24489         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
24490         Problem reported by Joel E. Denny in
24491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
24492
24493 2007-07-01  Bruno Haible  <bruno@clisp.org>
24494
24495         * lib/unistdio.h: New file.
24496         * lib/unistdio/u-asnprintf.h: New file.
24497         * lib/unistdio/u-asprintf.h: New file.
24498         * lib/unistdio/u-printf-args.c: New file.
24499         * lib/unistdio/u-printf-args.h: New file.
24500         * lib/unistdio/u-printf-parse.h: New file.
24501         * lib/unistdio/u-snprintf.h: New file.
24502         * lib/unistdio/u-sprintf.h: New file.
24503         * lib/unistdio/u-vasprintf.h: New file.
24504         * lib/unistdio/u-vsnprintf.h: New file.
24505         * lib/unistdio/u-vsprintf.h: New file.
24506         * lib/unistdio/ulc-asnprintf.c: New file.
24507         * lib/unistdio/ulc-asprintf.c: New file.
24508         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
24509         * lib/unistdio/ulc-printf-parse.c: New file.
24510         * lib/unistdio/ulc-snprintf.c: New file.
24511         * lib/unistdio/ulc-sprintf.c: New file.
24512         * lib/unistdio/ulc-vasnprintf.c: New file.
24513         * lib/unistdio/ulc-vasprintf.c: New file.
24514         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
24515         * lib/unistdio/ulc-vsnprintf.c: New file.
24516         * lib/unistdio/ulc-vsprintf.c: New file.
24517         * lib/unistdio/u8-asnprintf.c: New file.
24518         * lib/unistdio/u8-asprintf.c: New file.
24519         * lib/unistdio/u8-printf-parse.c: New file.
24520         * lib/unistdio/u8-snprintf.c: New file.
24521         * lib/unistdio/u8-sprintf.c: New file.
24522         * lib/unistdio/u8-vasnprintf.c: New file.
24523         * lib/unistdio/u8-vasprintf.c: New file.
24524         * lib/unistdio/u8-vsnprintf.c: New file.
24525         * lib/unistdio/u8-vsprintf.c: New file.
24526         * lib/unistdio/u8-u8-asnprintf.c: New file.
24527         * lib/unistdio/u8-u8-asprintf.c: New file.
24528         * lib/unistdio/u8-u8-snprintf.c: New file.
24529         * lib/unistdio/u8-u8-sprintf.c: New file.
24530         * lib/unistdio/u8-u8-vasnprintf.c: New file.
24531         * lib/unistdio/u8-u8-vasprintf.c: New file.
24532         * lib/unistdio/u8-u8-vsnprintf.c: New file.
24533         * lib/unistdio/u8-u8-vsprintf.c: New file.
24534         * lib/unistdio/u16-asnprintf.c: New file.
24535         * lib/unistdio/u16-asprintf.c: New file.
24536         * lib/unistdio/u16-printf-parse.c: New file.
24537         * lib/unistdio/u16-snprintf.c: New file.
24538         * lib/unistdio/u16-sprintf.c: New file.
24539         * lib/unistdio/u16-vasnprintf.c: New file.
24540         * lib/unistdio/u16-vasprintf.c: New file.
24541         * lib/unistdio/u16-vsnprintf.c: New file.
24542         * lib/unistdio/u16-vsprintf.c: New file.
24543         * lib/unistdio/u16-u16-asnprintf.c: New file.
24544         * lib/unistdio/u16-u16-asprintf.c: New file.
24545         * lib/unistdio/u16-u16-snprintf.c: New file.
24546         * lib/unistdio/u16-u16-sprintf.c: New file.
24547         * lib/unistdio/u16-u16-vasnprintf.c: New file.
24548         * lib/unistdio/u16-u16-vasprintf.c: New file.
24549         * lib/unistdio/u16-u16-vsnprintf.c: New file.
24550         * lib/unistdio/u16-u16-vsprintf.c: New file.
24551         * lib/unistdio/u32-asnprintf.c: New file.
24552         * lib/unistdio/u32-asprintf.c: New file.
24553         * lib/unistdio/u32-printf-parse.c: New file.
24554         * lib/unistdio/u32-snprintf.c: New file.
24555         * lib/unistdio/u32-sprintf.c: New file.
24556         * lib/unistdio/u32-vasnprintf.c: New file.
24557         * lib/unistdio/u32-vasprintf.c: New file.
24558         * lib/unistdio/u32-vsnprintf.c: New file.
24559         * lib/unistdio/u32-vsprintf.c: New file.
24560         * lib/unistdio/u32-u32-asnprintf.c: New file.
24561         * lib/unistdio/u32-u32-asprintf.c: New file.
24562         * lib/unistdio/u32-u32-snprintf.c: New file.
24563         * lib/unistdio/u32-u32-sprintf.c: New file.
24564         * lib/unistdio/u32-u32-vasnprintf.c: New file.
24565         * lib/unistdio/u32-u32-vasprintf.c: New file.
24566         * lib/unistdio/u32-u32-vsnprintf.c: New file.
24567         * lib/unistdio/u32-u32-vsprintf.c: New file.
24568         * tests/unistdio/test-ulc-asnprintf1.c: New file.
24569         * tests/unistdio/test-ulc-asnprintf1.h: New file.
24570         * tests/unistdio/test-ulc-printf1.h: New file.
24571         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
24572         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
24573         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
24574         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
24575         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
24576         * tests/unistdio/test-ulc-vasprintf1.c: New file.
24577         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
24578         * tests/unistdio/test-ulc-vsprintf1.c: New file.
24579         * tests/unistdio/test-u8-asnprintf1.c: New file.
24580         * tests/unistdio/test-u8-asnprintf1.h: New file.
24581         * tests/unistdio/test-u8-printf1.h: New file.
24582         * tests/unistdio/test-u8-vasnprintf1.c: New file.
24583         * tests/unistdio/test-u8-vasnprintf2.c: New file.
24584         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
24585         * tests/unistdio/test-u8-vasnprintf3.c: New file.
24586         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
24587         * tests/unistdio/test-u8-vasprintf1.c: New file.
24588         * tests/unistdio/test-u8-vsnprintf1.c: New file.
24589         * tests/unistdio/test-u8-vsprintf1.c: New file.
24590         * tests/unistdio/test-u16-asnprintf1.c: New file.
24591         * tests/unistdio/test-u16-asnprintf1.h: New file.
24592         * tests/unistdio/test-u16-printf1.h: New file.
24593         * tests/unistdio/test-u16-vasnprintf1.c: New file.
24594         * tests/unistdio/test-u16-vasnprintf2.c: New file.
24595         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
24596         * tests/unistdio/test-u16-vasnprintf3.c: New file.
24597         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
24598         * tests/unistdio/test-u16-vasprintf1.c: New file.
24599         * tests/unistdio/test-u16-vsnprintf1.c: New file.
24600         * tests/unistdio/test-u16-vsprintf1.c: New file.
24601         * tests/unistdio/test-u32-asnprintf1.c: New file.
24602         * tests/unistdio/test-u32-asnprintf1.h: New file.
24603         * tests/unistdio/test-u32-printf1.h: New file.
24604         * tests/unistdio/test-u32-vasnprintf1.c: New file.
24605         * tests/unistdio/test-u32-vasnprintf2.c: New file.
24606         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
24607         * tests/unistdio/test-u32-vasnprintf3.c: New file.
24608         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
24609         * tests/unistdio/test-u32-vasprintf1.c: New file.
24610         * tests/unistdio/test-u32-vsnprintf1.c: New file.
24611         * tests/unistdio/test-u32-vsprintf1.c: New file.
24612         * modules/unistdio/base: New file.
24613         * modules/unistdio/u-printf-args: New file.
24614         * modules/unistdio/ulc-asnprintf: New file.
24615         * modules/unistdio/ulc-asprintf: New file.
24616         * modules/unistdio/ulc-fprintf: New file.
24617         * modules/unistdio/ulc-printf-parse: New file.
24618         * modules/unistdio/ulc-snprintf: New file.
24619         * modules/unistdio/ulc-sprintf: New file.
24620         * modules/unistdio/ulc-vasnprintf: New file.
24621         * modules/unistdio/ulc-vasprintf: New file.
24622         * modules/unistdio/ulc-vfprintf: New file.
24623         * modules/unistdio/ulc-vsnprintf: New file.
24624         * modules/unistdio/ulc-vsprintf: New file.
24625         * modules/unistdio/u8-asnprintf: New file.
24626         * modules/unistdio/u8-asprintf: New file.
24627         * modules/unistdio/u8-printf-parse: New file.
24628         * modules/unistdio/u8-snprintf: New file.
24629         * modules/unistdio/u8-sprintf: New file.
24630         * modules/unistdio/u8-vasnprintf: New file.
24631         * modules/unistdio/u8-vasprintf: New file.
24632         * modules/unistdio/u8-vsnprintf: New file.
24633         * modules/unistdio/u8-vsprintf: New file.
24634         * modules/unistdio/u8-u8-asnprintf: New file.
24635         * modules/unistdio/u8-u8-asprintf: New file.
24636         * modules/unistdio/u8-u8-snprintf: New file.
24637         * modules/unistdio/u8-u8-sprintf: New file.
24638         * modules/unistdio/u8-u8-vasnprintf: New file.
24639         * modules/unistdio/u8-u8-vasprintf: New file.
24640         * modules/unistdio/u8-u8-vsnprintf: New file.
24641         * modules/unistdio/u8-u8-vsprintf: New file.
24642         * modules/unistdio/u16-asnprintf: New file.
24643         * modules/unistdio/u16-asprintf: New file.
24644         * modules/unistdio/u16-printf-parse: New file.
24645         * modules/unistdio/u16-snprintf: New file.
24646         * modules/unistdio/u16-sprintf: New file.
24647         * modules/unistdio/u16-vasnprintf: New file.
24648         * modules/unistdio/u16-vasprintf: New file.
24649         * modules/unistdio/u16-vsnprintf: New file.
24650         * modules/unistdio/u16-vsprintf: New file.
24651         * modules/unistdio/u16-u16-asnprintf: New file.
24652         * modules/unistdio/u16-u16-asprintf: New file.
24653         * modules/unistdio/u16-u16-snprintf: New file.
24654         * modules/unistdio/u16-u16-sprintf: New file.
24655         * modules/unistdio/u16-u16-vasnprintf: New file.
24656         * modules/unistdio/u16-u16-vasprintf: New file.
24657         * modules/unistdio/u16-u16-vsnprintf: New file.
24658         * modules/unistdio/u16-u16-vsprintf: New file.
24659         * modules/unistdio/u32-asnprintf: New file.
24660         * modules/unistdio/u32-asprintf: New file.
24661         * modules/unistdio/u32-printf-parse: New file.
24662         * modules/unistdio/u32-snprintf: New file.
24663         * modules/unistdio/u32-sprintf: New file.
24664         * modules/unistdio/u32-vasnprintf: New file.
24665         * modules/unistdio/u32-vasprintf: New file.
24666         * modules/unistdio/u32-vsnprintf: New file.
24667         * modules/unistdio/u32-vsprintf: New file.
24668         * modules/unistdio/u32-u32-asnprintf: New file.
24669         * modules/unistdio/u32-u32-asprintf: New file.
24670         * modules/unistdio/u32-u32-snprintf: New file.
24671         * modules/unistdio/u32-u32-sprintf: New file.
24672         * modules/unistdio/u32-u32-vasnprintf: New file.
24673         * modules/unistdio/u32-u32-vasprintf: New file.
24674         * modules/unistdio/u32-u32-vsnprintf: New file.
24675         * modules/unistdio/u32-u32-vsprintf: New file.
24676         * modules/unistdio/ulc-asnprintf-tests: New file.
24677         * modules/unistdio/ulc-vasnprintf-tests: New file.
24678         * modules/unistdio/ulc-vasprintf-tests: New file.
24679         * modules/unistdio/ulc-vsnprintf-tests: New file.
24680         * modules/unistdio/ulc-vsprintf-tests: New file.
24681         * modules/unistdio/u8-asnprintf-tests: New file.
24682         * modules/unistdio/u8-vasnprintf-tests: New file.
24683         * modules/unistdio/u8-vasprintf-tests: New file.
24684         * modules/unistdio/u8-vsnprintf-tests: New file.
24685         * modules/unistdio/u8-vsprintf-tests: New file.
24686         * modules/unistdio/u16-asnprintf-tests: New file.
24687         * modules/unistdio/u16-vasnprintf-tests: New file.
24688         * modules/unistdio/u16-vasprintf-tests: New file.
24689         * modules/unistdio/u16-vsnprintf-tests: New file.
24690         * modules/unistdio/u16-vsprintf-tests: New file.
24691         * modules/unistdio/u32-asnprintf-tests: New file.
24692         * modules/unistdio/u32-vasnprintf-tests: New file.
24693         * modules/unistdio/u32-vasprintf-tests: New file.
24694         * modules/unistdio/u32-vsnprintf-tests: New file.
24695         * modules/unistdio/u32-vsprintf-tests: New file.
24696         * MODULES.html.sh (Unicode string functions): Add the new modules.
24697
24698 2007-07-01  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/sprintf.c (sprintf): Limit the available length estimation,
24701         to avoid address wraparound.
24702         * lib/vsprintf.c (vsprintf): Likewise.
24703         * modules/sprintf-posix (Dependencies): Add stdint.
24704         * modules/vsprintf-posix (Dependencies): Likewise.
24705
24706 2007-07-01  Bruno Haible  <bruno@clisp.org>
24707
24708         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
24709         Windows PATH as well. Conservative double-quoting. Comments.
24710
24711 2007-07-01  Bruno Haible  <bruno@clisp.org>
24712             Eric Blake  <ebb9@byu.net>
24713             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24714
24715         * gnulib-tool (self_abspathname): Fix algorithm to cope with
24716         empty components in $PATH, denoting '.'.
24717
24718 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24719
24720         * gnulib-tool: Fix indentation.
24721         (func_create_megatestdir): Likewise.
24722         Report by Bruno Haible.
24723
24724 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24725
24726         Sync from Automake.
24727         * build-aux/gnupload: Fix shell portability issues with for loops.
24728         Report by Karl Berry.
24729
24730 2007-06-29  Simon Josefsson  <simon@josefsson.org>
24731
24732         * build-aux/maint.mk (POURL): Use translationproject.org.
24733
24734 2007-06-27  Simon Josefsson  <simon@josefsson.org>
24735             Bruno Haible  <bruno@clisp.org>
24736
24737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
24738         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
24739         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
24740         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
24741         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
24742
24743 2007-06-27  Bruno Haible  <bruno@clisp.org>
24744
24745         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
24746         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
24747
24748 2007-06-26  Karl Berry  <karl@gnu.org>
24749
24750         * MODULES.html.sh: remove xreadlink-with-size.
24751
24752 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24753
24754         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
24755         method that I hope also handles the double-include problem noted
24756         by Bruno Haible in
24757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
24758
24759 2007-06-23  Bruno Haible  <bruno@clisp.org>
24760
24761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24762         Don't let the 'mostlyclean' target fail if the last subdirectory could
24763         not be removed.
24764         Reported by Karl Berry.
24765
24766 2007-06-23  Bruno Haible  <bruno@clisp.org>
24767
24768         * gnulib-tool (echo): Add a speedier workaround for ksh.
24769         * tests/test-echo.sh: Likewise.
24770
24771 2007-06-23  Bruno Haible  <bruno@clisp.org>
24772
24773         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
24774         * tests/test-echo.sh: Likewise.
24775
24776 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24777
24778         * gnulib-tool (IFS): Initialize early, so we don't set it to
24779         empty later.
24780         (self_abspathname): Rewrite algorithm to set it, reindent.
24781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24782         (func_create_megatestdir): Merge some sed scripts.
24783
24784 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24785
24786         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
24787         exposed by Sun Studio 11 cc on Solaris 8.
24788
24789 2007-06-22  Bruno Haible  <bruno@clisp.org>
24790
24791         * gnulib-tool (echo): Ensure the echo primitive does not interpret
24792         backslashes.
24793         * tests/test-echo.sh: New file.
24794
24795 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24796
24797         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
24798         simplify `sed_replace_build_aux' scripts, they are portable but
24799         echoing them with `echo' is not.
24800         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
24801
24802 2007-06-21  Karl Berry  <karl@gnu.org>
24803
24804         * config/srclist.txt: guess we can't handle the licenses via
24805         srclist at the moment.
24806
24807 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24808
24809         * MODULES.html.sh: Add include_next.
24810         * modules/include_next: New file.
24811
24812 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24813
24814         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
24815         INCLUDE_NEXT.
24816         (gl_CHECK_NEXT_HEADERS): New macro.
24817         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
24818         the obsolescent gl_ABSOLUTE_HEADER.
24819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
24820         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
24821         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24822         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24823         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24824         * m4/math_h.m4 (gl_MATH_H): Likewise.
24825         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24826         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24827         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24828         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24829         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24830         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24831         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24834         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24835         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24836         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24837         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
24838         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24839         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24840         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24841         * m4/inttypes.m4 (gl_INTTYPES_H): Define
24842         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
24843         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
24844         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
24845         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
24846         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
24847         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
24848         * lib/float_.h: Likewise.
24849         * lib/inttypes_.h: Likewise.
24850         * lib/math_.h: Likewise.
24851         * lib/search_.h: Likewise.
24852         * lib/signal_.h: Likewise.
24853         * lib/stdint_.h: Likewise.
24854         * lib/stdio_.h: Likewise.
24855         * lib/stdlib_.h: Likewise.
24856         * lib/string_.h: Likewise.
24857         * lib/sys_stat_.h: Likewise.
24858         * lib/sys_time_.h: Likewise.
24859         * lib/time_.h: Likewise.
24860         * lib/unistd_.h: Likewise.
24861         * lib/wchar_.h: Likewise.
24862         * lib/wctype_.h: Likewise.
24863         * lib/dirent_.h: Likewise.
24864         * lib/iconv_.h: Likewise.
24865         * lib/locale_.h: Likewise.
24866         * lib/netinet_in_.h: Likewise.
24867         * lib/sys_select_.h: Likewise.
24868         * lib/sys_socket_.h: Likewise.
24869         * lib/sysexits_.h: Likewise.
24870         * modules/fcntl (Depends-on): Depend on include_next, not
24871         absolute_header.
24872         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
24873         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
24874         * modules/fchdir: Likewise.
24875         * modules/float: Likewise.
24876         * modules/iconv_open: Likewise.
24877         * modules/inttypes: Likewise.
24878         * modules/locale: Likewise.
24879         * modules/math: Likewise.
24880         * modules/netinet_in: Likewise.
24881         * modules/search: Likewise.
24882         * modules/signal: Likewise.
24883         * modules/stdint: Likewise.
24884         * modules/stdio: Likewise.
24885         * modules/stdlib: Likewise.
24886         * modules/string: Likewise.
24887         * modules/sys_select: Likewise.
24888         * modules/sys_socket: Likewise.
24889         * modules/sys_stat: Likewise.
24890         * modules/sys_time: Likewise.
24891         * modules/sysexits: Likewise.
24892         * modules/time: Likewise.
24893         * modules/unistd: Likewise.
24894         * modules/wchar: Likewise.
24895         * modules/wctype: Likewise.
24896         * modules/sys_stat: Change maintainer to "all".
24897         * modules/unistd: Likewise.
24898
24899 2007-06-20  Karl Berry  <karl@gnu.org>
24900
24901         * config/srclist.txt: track www changes in license files.
24902
24903 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
24904
24905         * build-aux/bootstrap: Remove stray dot.
24906         Make sure build_aux settings are honored when linking
24907         gnulib_extra_files.
24908
24909 2007-06-19  Eric Blake  <ebb9@byu.net>
24910
24911         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
24912         Allow compilation on cygwin.
24913
24914 2007-06-19  Jim Meyering  <jim@meyering.net>
24915
24916         xreadlink-with-size: Remove module.  No longer used.
24917         Ex-callers now use xreadlink or mreadlink-with-size.
24918         * modules/xreadlink-with-size: Remove module.
24919         * lib/xreadlink-with-size.c: Remove file.
24920         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
24921         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
24922         just before the function definition *is* accurate.
24923
24924         Eliminate one way canonicalize_filename_mode could exit.
24925         * lib/canonicalize.c (canonicalize_filename_mode):
24926         Use mreadlink_with_size, not xreadlink_with_size.
24927
24928 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
24929
24930         Detect porting problems to FreeBSD/arm, which has time_t wider than
24931         long int.  Original problem reported for GNU diff by Xin Li in
24932         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
24933         * modules/getdate (Depends-on): Add intprops, verify.
24934         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
24935         is an integer type no wider than long int.
24936
24937 2007-06-18  Jim Meyering  <jim@meyering.net>
24938
24939         New module: mreadlink-with-size.
24940         * MODULES.html.sh: Add mreadlink-with-size.
24941         * modules/mreadlink-with-size: New module
24942         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
24943         not xreadlink-with-size.
24944         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
24945
24946 2007-06-16  Bruno Haible  <bruno@clisp.org>
24947
24948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
24949         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
24950         Reported by Gary V. Vaughan <gary@gnu.org>.
24951
24952 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
24953
24954         Revamp lchown so that it lives in unistd.h where it belongs.
24955         * lib/lchown.h: Remove.
24956         * lib/dirchownmod.c: Don't include lib/lchown.h.
24957         * lib/fchownat.c: Likewise.
24958         * lib/openat.c: Likewise.
24959         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
24960         does not follow symlinks.
24961         (EOPNOTSUPP): Define if not defined.
24962         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
24963         is defined to 0.
24964         (lchown): New decl.
24965         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
24966         Do not check for lchown decl.
24967         Set REPLACE_LCHOWN.
24968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
24969         REPLACE_LCHOWN.
24970         * modules/chown: Make it clear it follows symlinks.
24971         * modules/lchown: Make it clear it doesn't follow symlinks.
24972         (Files): Remove lib/lchown.h
24973         (Depends-on): Add unistd.
24974         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
24975         (Include): Include <unistd.h>, not "lchown.h".
24976         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
24977         REPLACE_LCHOWN.
24978
24979 2007-06-15  Jim Meyering  <jim@meyering.net>
24980
24981         Change license (GPL to LGPL) of fsusage and dependents.
24982         * modules/fsusage (License): Change to LGPL.
24983         * modules/full-read (License): Likewise.
24984         * modules/full-write (License): Likewise.
24985         * modules/safe-read (License): Likewise.
24986         * modules/safe-write (License): Likewise.
24987
24988 2007-06-14  Ben Pfaff  <blp@gnu.org>
24989
24990         Missing part of allocsa -> malloca transition.
24991         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
24992         gl_MALLOCA.
24993
24994 2007-06-12  Bruno Haible  <bruno@clisp.org>
24995
24996         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
24997         to ia64, x86_64, i386.
24998         Reported by Eric Blake.
24999
25000 2007-06-12  Bruno Haible  <bruno@clisp.org>
25001
25002         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
25003         cross-compiling to x86_64.
25004
25005 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
25006
25007         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
25008         glitch reported by Ralf Wildenhues in
25009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
25010
25011         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
25012         Vin Shelton.
25013
25014 2007-06-11  Bruno Haible  <bruno@clisp.org>
25015
25016         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
25017         replacement string.
25018         Reported by Eric Blake.
25019
25020 2007-06-10  Bruno Haible  <bruno@clisp.org>
25021
25022         Prepare vasnprintf code for use with Unicode strings.
25023         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
25024         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
25025         TYPE_U32_STRING.
25026         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
25027         a_u32_string variants.
25028         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
25029         * lib/printf-args.c: Don't include config.h and the specification
25030         header if PRINTF_FETCHARGS is already defined.
25031         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
25032         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
25033         TYPE_U16_STRING, TYPE_U32_STRING.
25034         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
25035         u16_directive, u16_directives, u32_directive, u32_directives): New
25036         types.
25037         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
25038         New declarations.
25039         * lib/printf-parse.c: Don't include config.h and the specification
25040         header if PRINTF_PARSE is already defined. Eliminate the set of
25041         parameters for WIDE_CHAR_VERSION; the user of this file must provide
25042         them now. Include c-ctype.h.
25043         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
25044         directive and CHAR_T_ONLY_ASCII.
25045         * lib/vasnprintf.c: Don't include config.h and the specification header
25046         if VASNPRINTF is already defined.
25047         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
25048         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
25049         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
25050         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
25051         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
25052         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
25053         code accordingly.
25054         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
25055         pad_ourselves also in this case, with the 'c' and 's' directives, and
25056         with a different notion of "width".
25057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
25058
25059 2007-06-10  Bruno Haible  <bruno@clisp.org>
25060
25061         * modules/unistr/u32-mbsnlen: New file.
25062         * lib/unistr/u32-mbsnlen.c: New file.
25063
25064         * modules/unistr/u16-mbsnlen: New file.
25065         * lib/unistr/u16-mbsnlen.c: New file.
25066
25067         * modules/unistr/u8-mbsnlen: New file.
25068         * lib/unistr/u8-mbsnlen.c: New file.
25069
25070         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
25071         declarations.
25072
25073 2007-06-10  Bruno Haible  <bruno@clisp.org>
25074
25075         * lib/string_.h (mbsnlen): New declaration.
25076         * lib/mbsnlen.c: New file.
25077         * m4/mbsnlen.m4: New file.
25078         * modules/mbsnlen: New file.
25079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
25080         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
25081         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
25082
25083 2007-06-10  Bruno Haible  <bruno@clisp.org>
25084
25085         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
25086
25087 2007-06-10  Bruno Haible  <bruno@clisp.org>
25088
25089         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
25090         * lib/mbuiter.h: Likewise.
25091
25092 2007-06-10  Bruno Haible  <bruno@clisp.org>
25093
25094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
25095         declaration.
25096
25097 2007-06-10  Karl Berry  <karl@gnu.org>
25098
25099         * config/srclist.txt: remove gettext entries, Bruno prefers
25100         to update individually.
25101
25102 2007-06-10  Bruno Haible  <bruno@clisp.org>
25103
25104         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
25105         'maxlen'. Ensure only length + width bytes are allocated, not
25106         length + 1 + width.
25107
25108 2007-06-09  Bruno Haible  <bruno@clisp.org>
25109
25110         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
25111         (CHAR_T): Remove macro.
25112         (VASNPRINTF): Update.
25113
25114 2007-06-09  Bruno Haible  <bruno@clisp.org>
25115
25116         * MODULES.html.sh (Unicode string functions): Add the new modules.
25117
25118         * modules/uniconv/u32-conv-to-enc: New file.
25119         * lib/uniconv/u32-conv-to-enc.c: New file.
25120         * modules/uniconv/u32-conv-to-enc-tests: New file.
25121         * tests/uniconv/test-u32-conv-to-enc.c: New file.
25122
25123         * modules/uniconv/u16-conv-to-enc: New file.
25124         * lib/uniconv/u16-conv-to-enc.c: New file.
25125         * lib/uniconv/u-conv-to-enc.h: New file.
25126         * modules/uniconv/u16-conv-to-enc-tests: New file.
25127         * tests/uniconv/test-u16-conv-to-enc.c: New file.
25128
25129         * modules/uniconv/u8-conv-to-enc: New file.
25130         * lib/uniconv/u8-conv-to-enc.c: New file.
25131         * modules/uniconv/u8-conv-to-enc-tests: New file.
25132         * tests/uniconv/test-u8-conv-to-enc.c: New file.
25133
25134         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
25135         u32_conv_to_encoding): New declarations.
25136
25137 2007-06-09  Bruno Haible  <bruno@clisp.org>
25138
25139         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
25140
25141 2007-06-09  Bruno Haible  <bruno@clisp.org>
25142
25143         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
25144         * modules/malloca: Renamed from modules/allocsa, updated.
25145         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
25146         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
25147         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
25148         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
25149         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
25150         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
25151         * modules/xmalloca: Renamed from modules/xallocsa, updated.
25152         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
25153         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
25154         * modules/c-strcasestr (Depends-on): Update.
25155         * lib/c-strcasestr.c: Update.
25156         * modules/c-strstr (Depends-on): Update.
25157         * lib/c-strstr.c: Update.
25158         * modules/canonicalize-lgpl (Depends-on): Update.
25159         * lib/canonicalize-lgpl.c: Update.
25160         * modules/clean-temp (Depends-on): Update.
25161         * lib/clean-temp.c: Update.
25162         * modules/csharpcomp (Depends-on): Update.
25163         * lib/csharpcomp.c: Update.
25164         * modules/csharpexec (Depends-on): Update.
25165         * lib/csharpexec.c: Update.
25166         * modules/javacomp (Depends-on): Update.
25167         * lib/javacomp.c: Update.
25168         * modules/javaexec (Depends-on): Update.
25169         * lib/javaexec.c: Update.
25170         * modules/mbscasestr (Depends-on): Update.
25171         * lib/mbscasestr.c: Update.
25172         * modules/mbsstr (Depends-on): Update.
25173         * lib/mbsstr.c: Update.
25174         * modules/setenv (Depends-on): Update.
25175         * lib/setenv.c: Update.
25176         * modules/strcasestr (Depends-on): Update.
25177         * lib/strcasestr.c: Update.
25178         * modules/striconveha (Depends-on): Update.
25179         * lib/striconveha.c: Update.
25180         * modules/relocatable-prog-wrapper (Files): Update.
25181         * lib/relocwrapper.c: Update.
25182         * build-aux/install-reloc: Update.
25183         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
25184
25185 2007-06-08  Bruno Haible  <bruno@clisp.org>
25186
25187         Port to uClibc.
25188         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
25189         * lib/fpurge.c (fpurge): Likewise.
25190         * lib/freading.c (freading): Likewise.
25191         * lib/fseeko.c (rpl_fseeko): Likewise.
25192         * lib/fseterr.c (fseterr): Likewise.
25193         * lib/fwriting.c (fwriting): Likewise.
25194         * tests/test-fflush.c (main): Avoid a failure on uClibc.
25195
25196 2007-06-08  Bruno Haible  <bruno@clisp.org>
25197
25198         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
25199         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
25200         * modules/gettext (Files): Add m4/intlmacosx.m4.
25201
25202 2007-06-07  Bruno Haible  <bruno@clisp.org>
25203
25204         * modules/localename-tests: New file.
25205         * tests/test-localename.c: New file.
25206
25207         New module 'localename'.
25208         * lib/localename.h: New file.
25209         * lib/localename.c: New file, from GNU gettext.
25210         * m4/localename.m4: New file.
25211         * modules/localename: New file.
25212
25213 2007-06-07  Bruno Haible  <bruno@clisp.org>
25214
25215         Work around the lack of <wchar.h> on some builds of uClibc.
25216         * doc/headers/wchar.texi: Update.
25217         * lib/wchar_.h: Include <wchar.h> only if it exists.
25218         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
25219         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
25220         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
25221         doesn't exist.
25222         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
25223         * modules/mbfile (Depends-on): Add wchar.
25224         * modules/mbiter (Depends-on): Likewise.
25225         * modules/mbuiter (Depends-on): Likewise.
25226         Reported by Simon Josefsson.
25227
25228 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
25229
25230         Work around problem reported by Steven M. Schweda in
25231         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
25232         Tru64 5.1B with the Compaq compiler environment installed declares
25233         an 'isblank' function but does not define it in the C library.
25234         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
25235         * lib/regex_internal.h (isblank): Likewise.
25236         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
25237         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25238
25239 2007-06-05  Bruno Haible  <bruno@clisp.org>
25240
25241         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
25242         ia64.
25243         * modules/printf-safe: New file.
25244         * modules/fprintf-posix (Depends-on): Add printf-safe.
25245         * modules/printf-posix (Depends-on): Likewise.
25246         * modules/snprintf-posix (Depends-on): Likewise.
25247         * modules/sprintf-posix (Depends-on): Likewise.
25248         * modules/vasnprintf-posix (Depends-on): Likewise.
25249         * modules/vasprintf-posix (Depends-on): Likewise.
25250         * modules/vfprintf-posix (Depends-on): Likewise.
25251         * modules/vprintf-posix (Depends-on): Likewise.
25252         * modules/vsnprintf-posix (Depends-on): Likewise.
25253         * modules/vsprintf-posix (Depends-on): Likewise.
25254         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
25255         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
25256         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
25257         "no" on i386, x86_64, ia64.
25258         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
25259         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25260         on i386, x86_64, ia64.
25261         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
25262         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25263         on i386, x86_64, ia64.
25264         * tests/test-vasnprintf-posix.c: Include float.h.
25265         (LDBL80_WORDS): New macro.
25266         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25267         on i386, x86_64, ia64.
25268         * tests/test-vasprintf-posix.c: Include float.h.
25269         (LDBL80_WORDS): New macro.
25270         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25271         on i386, x86_64, ia64.
25272         * tests/test-snprintf-posix.c: Include float.h.
25273         * tests/test-sprintf-posix.c: Likewise.
25274         * tests/test-vsnprintf-posix.c: Likewise.
25275         * tests/test-vsprintf-posix.c: Likewise.
25276
25277 2007-06-05  Bruno Haible  <bruno@clisp.org>
25278
25279         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
25280         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
25281         non-IEEE numbers on i386, x86_64, ia64.
25282         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
25283         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
25284         * tests/test-isnanl.h: Include float.h.
25285         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
25286
25287 2007-06-05  Bruno Haible  <bruno@clisp.org>
25288
25289         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
25290         also the %a / %A. Handle the %a / %A code before this extra handling.
25291
25292 2007-06-05  Bruno Haible  <bruno@clisp.org>
25293
25294         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
25295         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
25296
25297 2007-06-05  Bruno Haible  <bruno@clisp.org>
25298
25299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
25300         typo in variable name.
25301
25302 2007-06-05  Eric Blake  <ebb9@byu.net>
25303
25304         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
25305         Reported by Simon Josefsson.
25306
25307 2007-06-04  Bruno Haible  <bruno@clisp.org>
25308
25309         Avoid test failures on some PowerPC platforms.
25310         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
25311         Define differently for PowerPC.
25312         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
25313         Reported by Gary V. Vaughan <gary@gnu.org>.
25314
25315 2007-06-02  Bruno Haible  <bruno@clisp.org>
25316
25317         Fix test-stdint failure on FreeBSD/ia64.
25318         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
25319         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
25320         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
25321         * doc/headers/stdint.texi: Update.
25322
25323 2007-06-01  Bruno Haible  <bruno@clisp.org>
25324
25325         * tests/test-binary-io.c (main): Pass a third argument to open().
25326         Reported by Gary V. Vaughan <gary@gnu.org>.
25327
25328 2007-06-01  Bruno Haible  <bruno@clisp.org>
25329
25330         * doc/functions/frexpl.texi: Update for mingw.
25331
25332 2007-06-01  Bruno Haible  <bruno@clisp.org>
25333
25334         * tests/test-lseek.c (main): Disable test of errno for invalid third
25335         argument.
25336         * doc/functions/lseek.texi: Update.
25337         Reported by Gary V. Vaughan <gary@gnu.org>.
25338
25339 2007-05-28  Bruno Haible  <bruno@clisp.org>
25340
25341         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
25342
25343 2007-05-31  Eric Blake  <ebb9@byu.net>
25344
25345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
25346         cross compiling.
25347
25348 2007-05-30  Eric Blake  <ebb9@byu.net>
25349         and Bruno Haible  <bruno@clisp.org>
25350
25351         Work around mingw test failures exposed by m4-1.4.9b.
25352         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
25353         * tests/test-unistd.c: Disable uid_t and git_t tests for the
25354         moment.
25355
25356 2007-05-30  Bruno Haible  <bruno@clisp.org>
25357
25358         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
25359         assuming that they are closed. Needed on HP-UX 11.
25360
25361 2007-05-29  Bruno Haible  <bruno@clisp.org>
25362
25363         Fix a problem with #include_next.
25364         * lib/dirent_.h: Split the double-inclusion guard.
25365         * lib/fcntl_.h: Likewise.
25366         * lib/float_.h: Likewise.
25367         * lib/iconv_.h: Likewise.
25368         * lib/inttypes_.h: Likewise.
25369         * lib/locale_.h: Likewise.
25370         * lib/math_.h: Likewise.
25371         * lib/netinet_in_.h: Likewise.
25372         * lib/search_.h: Likewise.
25373         * lib/signal_.h: Likewise.
25374         * lib/stdint_.h: Likewise.
25375         * lib/stdio_.h: Likewise.
25376         * lib/stdlib_.h: Likewise.
25377         * lib/string_.h: Likewise.
25378         * lib/sys_select_.h: Likewise.
25379         * lib/sys_socket_.h: Likewise.
25380         * lib/sys_stat_.h: Likewise.
25381         * lib/sys_time_.h: Likewise.
25382         * lib/sysexits_.h: Likewise.
25383         * lib/time_.h: Likewise.
25384         * lib/unistd_.h: Likewise.
25385         * lib/wchar_.h: Likewise.
25386         * lib/wctype_.h: Likewise.
25387
25388 2007-05-29  Bruno Haible  <bruno@clisp.org>
25389
25390         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
25391         for the moment.
25392
25393 2007-05-29  Bruno Haible  <bruno@clisp.org>
25394
25395         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
25396         invocation.
25397         Reported by Eric Blake.
25398
25399 2007-05-29  Bruno Haible  <bruno@clisp.org>
25400
25401         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
25402         compiling case.
25403
25404 2007-05-29  Eric Blake  <ebb9@byu.net>
25405             Bruno Haible  <bruno@clisp.org>
25406
25407         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
25408         cross compiles.
25409
25410 2007-05-28  Eric Blake  <ebb9@byu.net>
25411
25412         * modules/closein-tests (test_closein_LDADD): Support test on
25413         cygwin with libtool.
25414
25415 2007-05-28  Bruno Haible  <bruno@clisp.org>
25416
25417         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
25418         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25419         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25420         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25421         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25422         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25423         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25424         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25425         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25426
25427 2007-05-28  Eric Blake  <ebb9@byu.net>
25428
25429         Unconditionally include <config.h> in unit tests.
25430         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
25431         * tests/test-allocsa.c, tests/test-arcfour.c,
25432         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
25433         tests/test-array_list.c, tests/test-array_oset.c,
25434         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
25435         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
25436         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
25437         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
25438         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
25439         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
25440         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
25441         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
25442         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
25443         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
25444         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
25445         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
25446         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
25447         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
25448         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
25449         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
25450         test-md5.c, test-memmem.c, test-printf-posix.c,
25451         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
25452         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
25453         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
25454         test-strcasestr.c, test-striconv.c, test-striconveh.c,
25455         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
25456         test-vasnprintf-posix2.c, test-vasnprintf.c,
25457         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
25458         test-vfprintf-posix.c, test-vprintf-posix.c,
25459         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
25460         test-xvasprintf.c: Likewise.
25461
25462 2007-05-28  Bruno Haible  <bruno@clisp.org>
25463
25464         * gnulib-tool (func_import): Remember the --with-tests command-line
25465         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
25466         Reported by Eric Blake.
25467
25468 2007-05-28  Bruno Haible  <bruno@clisp.org>
25469
25470         * modules/ftell-tests: New file.
25471         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
25472         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
25473
25474         * lib/ftell.c: New file.
25475         * modules/ftell: New file.
25476         * m4/ftell.m4: New file.
25477         * doc/functions/ftell.texi: Update.
25478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
25479         REPLACE_FTELL.
25480         * lib/stdio_.h (rpl_ftell): New declaration.
25481         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
25482         REPLACE_FTELL.
25483
25484 2007-05-28  Eric Blake  <ebb9@byu.net>
25485
25486         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
25487
25488 2007-05-28  Bruno Haible  <bruno@clisp.org>
25489
25490         * modules/fseek-tests: New file.
25491         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
25492         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
25493
25494         * lib/fseek.c: New file.
25495         * modules/fseek: New file.
25496         * m4/fseek.m4: New file.
25497         * doc/functions/fseek.texi: Update.
25498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
25499         REPLACE_FSEEK.
25500         * lib/stdio_.h (rpl_fseek): New declaration.
25501         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
25502         REPLACE_FSEEK.
25503
25504 2007-05-28  Bruno Haible  <bruno@clisp.org>
25505
25506         * lib/stdio_.h (fflush): More comments.
25507
25508 2007-05-28  Bruno Haible  <bruno@clisp.org>
25509
25510         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
25511         runtime test.
25512
25513 2007-05-28  Eric Blake  <ebb9@byu.net>
25514
25515         Improve lseek module.
25516         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
25517         * lib/unistd_.h (lseek): Scale back link warning message.
25518         * tests/test-lseek.c: Beef up test.
25519         * tests/test-lseek.sh: Exercise more facets of lseek.
25520         Reported by Bruno Haible.
25521
25522 2007-05-28  Bruno Haible  <bruno@clisp.org>
25523
25524         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
25525         to define.
25526
25527 2007-05-27  Bruno Haible  <bruno@clisp.org>
25528
25529         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
25530
25531 2007-05-27  Bruno Haible  <bruno@clisp.org>
25532
25533         * modules/openmp: New file.
25534         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
25535         Noah Misch.
25536
25537 2007-05-26  Bruno Haible  <bruno@clisp.org>
25538
25539         * modules/chdir-long (Depends-on): Add fchdir.
25540         * modules/chdir-safer (Depends-on): Likewise.
25541         * modules/fts (Depends-on): Likewise.
25542         * modules/fts-lgpl (Depends-on): Likewise.
25543         * modules/openat (Depends-on): Likewise.
25544         * modules/savewd (Depends-on): Likewise.
25545
25546 2007-05-24  Eric Blake  <ebb9@byu.net>
25547
25548         Fix lseek on mingw.
25549         * modules/lseek: New module.
25550         * m4/lseek.m4: New file.
25551         * lib/lseek.c: New file.
25552         * modules/lseek-tests: New file.
25553         * tests/test-lseek.c: New file.
25554         * tests/test-lseek.sh: New file.
25555         * MODULES.html.sh: Document lseek module.
25556         * modules/fflush (Depends-on): Add lseek, fseeko.
25557         * modules/fseeko (Depends-on): Likewise.
25558         * modules/ftello (Depends-on): Likewise.
25559         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
25560         broken.
25561         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
25562         broken.
25563         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
25564         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
25565         * lib/ftello.c (rpl_ftello): Likewise.
25566         * tests/test-fseeko.c (main): Test this.
25567         * tests/test-fseeko.sh: Likewise.
25568         * tests/test-ftello.c (main): Likewise.
25569         * tests/test-ftello.sh: Likewise.
25570         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
25571         implies replacing fseek.
25572         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
25573         HAVE_FTELLO.
25574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
25575         * modules/unistd (Makefile.am): Likewise.
25576         * lib/unistd_.h (lseek): Declare a replacement.
25577         * doc/functions/lseek.texi (lseek): Document this fix.
25578         * doc/functions/fseek.texi (fseek): Likewise.
25579         * doc/functions/ftell.texi (ftell): Likewise.
25580
25581 2007-05-24  Bruno Haible  <bruno@clisp.org>
25582
25583         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
25584         in the printed representation of a NaN.
25585         * tests/test-vasprintf-posix.c (test_function): Likewise.
25586         * tests/test-snprintf-posix.h (test_function): Likewise.
25587         * tests/test-sprintf-posix.h (test_function): Likewise.
25588         Reported by Eric Blake.
25589
25590 2007-05-23  Eric Blake  <ebb9@byu.net>
25591
25592         Fix fseeko/ftello on cygwin 1.5.24.
25593         * doc/functions/fseeko.texi (fseeko): Document the fix.
25594         * doc/functions/ftello.texi (ftello): Document the fix.
25595         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
25596         * doc/functions/stdout.text (stdout): New file.
25597         * doc/functions/stderr.text (stderr): New file.
25598         * doc/gnulib.texi (Function Substitutes): Use new files.
25599         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
25600         prior to 1.7.0.
25601         * tests/test-ftello.c (main): Likewise for ftello.
25602         * tests/test-fseeko.sh: New file.
25603         * tests/test-ftello.sh: New file.
25604         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
25605         with seekable stdin.
25606         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
25607         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
25608         (gl_REPLACE_FSEEKO): New macro.
25609         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
25610         * modules/fseeko (Files): Distribute fseeko.c.
25611         * modules/ftello (Files): Distribute ftello.c.
25612         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
25613         mode.
25614         * lib/ftello.c (rpl_ftello): New file.
25615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
25616         fseeko, ftello.
25617         (gl_STDIN_LARGE_OFFSET): New macro.
25618         * modules/stdio (Makefile.am): Perform the replacement.
25619         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
25620
25621 2007-05-23  Bruno Haible  <bruno@clisp.org>
25622
25623         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
25624         GNULIB_POSIXCHECK is defined.
25625
25626 2007-05-21  Bruno Haible  <bruno@clisp.org>
25627
25628         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
25629         Check also the output for NaN arguments. When cross-compiling, guess
25630         no on IRIX.
25631         * lib/vasnprintf.c: Update comments.
25632         * tests/test-vasnprintf-posix.c (strisnan): New function.
25633         (test_function): Use it.
25634         * tests/test-vasprintf-posix.c (strisnan): New function.
25635         (test_function): Use it.
25636         * tests/test-snprintf-posix.h (strisnan): New function.
25637         (test_function): Use it.
25638         * tests/test-sprintf-posix.h (strisnan): New function.
25639         (test_function): Use it.
25640         Reported by Eric Blake.
25641
25642 2007-05-20  Bruno Haible  <bruno@clisp.org>
25643
25644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
25645         numbers that fails on BeOS.
25646         * doc/functions/frexpl.texi: Update.
25647
25648 2007-05-20  Jim Meyering  <jim@meyering.net>
25649
25650         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
25651         forced upon us by glibc-2.6.
25652
25653 2007-05-20  Bruno Haible  <bruno@clisp.org>
25654
25655         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
25656         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
25657         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
25658         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
25659         NEED_PRINTF_INFINITE.
25660         (is_infinitel): New function.
25661         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
25662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
25663         gl_PREREQ_VASNPRINTF_INFINITE.
25664         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
25665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25666         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
25667         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
25668         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
25669         gl_PREREQ_VASNPRINTF_INFINITE.
25670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25677         * doc/functions/fprintf.texi: Update.
25678         * doc/functions/printf.texi: Update.
25679         * doc/functions/snprintf.texi: Update.
25680         * doc/functions/sprintf.texi: Update.
25681         * doc/functions/vfprintf.texi: Update.
25682         * doc/functions/vprintf.texi: Update.
25683         * doc/functions/vsnprintf.texi: Update.
25684         * doc/functions/vsprintf.texi: Update.
25685
25686 2007-05-20  Bruno Haible  <bruno@clisp.org>
25687
25688         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
25689         was not found in libc.
25690         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25691
25692 2007-05-20  Bruno Haible  <bruno@clisp.org>
25693
25694         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25695         printed as "-nan" instead of "nan".
25696         * tests/test-vasprintf-posix.c (test_function): Likewise.
25697         * tests/test-snprintf-posix.h (test_function): Likewise.
25698         * tests/test-sprintf-posix.h (test_function): Likewise.
25699         Needed for HP-UX 11.
25700
25701 2007-05-20  Jim Meyering  <jim@meyering.net>
25702
25703         Fix buggy test for the fchownat-deref bug.
25704         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
25705         symlink required for the run-test.  Without it, this test would
25706         always declare that fchownat doesn't work, and client code would
25707         unnecessarily use the replacement function with fixed libc.
25708         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
25709         Reported by Greg Schafer.
25710
25711 2007-05-19  Bruno Haible  <bruno@clisp.org>
25712
25713         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
25714         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
25715         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
25716         Needed for IRIX 6.5 and Solaris 2.5.1.
25717
25718 2007-05-19  Bruno Haible  <bruno@clisp.org>
25719
25720         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
25721         (test_function): Skip tests involving -0.0 on platforms where
25722         -0.0 = 0.0.
25723         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
25724         (test_function): Skip tests involving -0.0 on platforms where
25725         -0.0 = 0.0.
25726         * tests/test-snprintf-posix.h (have_minus_zero): New function.
25727         (test_function): Skip tests involving -0.0 on platforms where
25728         -0.0 = 0.0.
25729         * tests/test-sprintf-posix.h (have_minus_zero): New function.
25730         (test_function): Skip tests involving -0.0 on platforms where
25731         -0.0 = 0.0.
25732         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
25733         tests.
25734         * tests/test-printf-posix.h (test_function): Likewise.
25735         * tests/test-printf-posix.output: Remove all -0.0 related results.
25736         Needed for IRIX 6.5.
25737
25738 2007-05-19  Bruno Haible  <bruno@clisp.org>
25739
25740         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25741         printed as "nan0x7fffffff" instead of "nan".
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         * tests/test-fprintf-posix.h (NaN): Remove macro.
25746         (test_function): Remove all NaN related tests.
25747         * tests/test-printf-posix.h (NaN): Remove macro.
25748         (test_function): Remove all NaN related tests.
25749         * tests/test-printf-posix.output: Remove all NaN related results.
25750         Needed for IRIX 6.5.
25751
25752 2007-05-19  Bruno Haible  <bruno@clisp.org>
25753
25754         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
25755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25756
25757 2007-05-19  Bruno Haible  <bruno@clisp.org>
25758
25759         * lib/float_.h: New file.
25760         * m4/float_h.m4: New file.
25761         * modules/float: New file.
25762         * modules/isnanl (Dependencies): Add float.
25763         * modules/isnanl-nolibm (Dependencies): Likewise.
25764         * modules/mathl (Dependencies): Likewise.
25765         * modules/printf-frexpl (Dependencies): Likewise.
25766         * modules/signbit (Dependencies): Likewise.
25767         * modules/vasnprintf (Dependencies): Likewise.
25768         * doc/headers/float.texi: Update.
25769
25770 2007-05-19  Jim Meyering  <jim@meyering.net>
25771
25772         * lib/utimens.c (gl_futimens): Rename from futimens,
25773         now that glibc-2.6 declares futimens.
25774         * lib/utimens.h: Likewise.
25775
25776 2007-05-19  Bruno Haible  <bruno@clisp.org>
25777
25778         Avoid test failures on mingw.
25779         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
25780         * tests/test-printf-posix.sh: Likewise.
25781         * tests/test-vfprintf-posix.sh: Likewise.
25782         * tests/test-vprintf-posix.sh: Likewise.
25783
25784 2007-05-19  Bruno Haible  <bruno@clisp.org>
25785
25786         Fix *printf result for NaN, Inf, -0.0 on mingw.
25787         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
25788         * lib/vasnprintf.c: Include math.h and isnan.h.
25789         (is_infinite_or_zero): New function.
25790         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
25791         values in the %f, %F, %e, %E, %g, %G directives.
25792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
25793         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25794         gl_PRINTF_INFINITE and test its result. Invoke
25795         gl_PREREQ_VASNPRINTF_INFINITE.
25796         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25797         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25803         * doc/functions/fprintf.texi: Update.
25804         * doc/functions/printf.texi: Update.
25805         * doc/functions/snprintf.texi: Update.
25806         * doc/functions/sprintf.texi: Update.
25807         * doc/functions/vfprintf.texi: Update.
25808         * doc/functions/vprintf.texi: Update.
25809         * doc/functions/vsnprintf.texi: Update.
25810         * doc/functions/vsprintf.texi: Update.
25811
25812 2007-05-19  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
25815         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
25816         Instead of multiplying with 10^k, set extra_zeroes to k.
25817         (scale10_round_long_double): Remove function.
25818
25819 2007-05-18  Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
25822         introduced on 2007-05-06.
25823
25824 2007-05-18  Bruno Haible  <bruno@clisp.org>
25825
25826         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
25827         %g directives.
25828         * tests/test-vasprintf-posix.c (test_function): Likewise.
25829         * tests/test-snprintf-posix.h (test_function): Likewise.
25830         * tests/test-sprintf-posix.h (test_function): Likewise.
25831
25832 2007-05-18  Bruno Haible  <bruno@clisp.org>
25833
25834         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
25835         (strmatch): New function.
25836         (test_function): Test the %f directive on numbers of various exponents.
25837         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
25838         (strmatch): New function.
25839         (test_function): Test the %f directive on numbers of various exponents.
25840         * tests/test-snprintf-posix.h (strmatch): New function.
25841         (test_function): Test the %f directive on numbers of various exponents.
25842         * tests/test-sprintf-posix.h (strmatch): New function.
25843         (test_function): Test the %f directive on numbers of various exponents.
25844         * tests/test-snprintf-posix.c (SIZEOF): New macro.
25845         * tests/test-sprintf-posix.c (SIZEOF): New macro.
25846         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
25847         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
25848
25849 2007-05-18  Bruno Haible  <bruno@clisp.org>
25850
25851         Add support for 'long double' number output.
25852         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
25853         * lib/vasnprintf.c: Include math.h and float+.h.
25854         (mp_limb_t): New type.
25855         (GMP_LIMB_BITS): New macro.
25856         (mp_twolimb_t): New type.
25857         (GMP_TWOLIMB_BITS): New macro.
25858         (mpn_t): New type.
25859         (multiply, divide, convert_to_decimal, decode_long_double,
25860         scale10_round_long_double, scale10_round_decimal_long_double,
25861         floorlog10l): New functions.
25862         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
25863         for the %f, %F, %e, %E, %g, %G directives.
25864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
25865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25866         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
25867         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
25868         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25869         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25870         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25871         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25872         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25873         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25874         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25875         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
25876         * modules/snprintf-posix (Depends-on): Likewise.
25877         * modules/sprintf-posix (Depends-on): Likewise.
25878         * modules/vasnprintf-posix (Depends-on): Likewise.
25879         * modules/vasprintf-posix (Depends-on): Likewise.
25880         * modules/vfprintf-posix (Depends-on): Likewise.
25881         * modules/vsnprintf-posix (Depends-on): Likewise.
25882         * modules/vsprintf-posix (Depends-on): Likewise.
25883         * modules/vasnprintf (Files): Add lib/float+.h.
25884         * doc/functions/fprintf.texi: Update.
25885         * doc/functions/printf.texi: Update.
25886         * doc/functions/snprintf.texi: Update.
25887         * doc/functions/sprintf.texi: Update.
25888         * doc/functions/vfprintf.texi: Update.
25889         * doc/functions/vprintf.texi: Update.
25890         * doc/functions/vsnprintf.texi: Update.
25891         * doc/functions/vsprintf.texi: Update.
25892
25893 2007-05-18  Bruno Haible  <bruno@clisp.org>
25894
25895         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
25896
25897 2007-05-18  Bruno Haible  <bruno@clisp.org>
25898
25899         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
25900         for printing 64-bit integers. Needed for mingw.
25901
25902 2007-05-18  Bruno Haible  <bruno@clisp.org>
25903
25904         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25905         gl_FUNC_FREXPL_WORKS.
25906         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
25907
25908 2007-05-18  Bruno Haible  <bruno@clisp.org>
25909
25910         * modules/frexpl-nolibm-tests: New file.
25911
25912         * modules/frexpl-nolibm: New file.
25913         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
25914
25915 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25916
25917         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
25918         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
25919         GCC 4.2, which otherwise issues a lot of warnings.
25920         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
25921         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
25922         Likewise.
25923         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
25924         * modules/iconv_open (iconv.h): Likewise.
25925         * modules/locale (locale.h): Likewise.
25926         * modules/netinet_in (netinet/in.h): Likewise.
25927         * modules/sys_select (sys_select.h): Likewise.
25928         * modules/sys_socket (sys/socket.h): Likewise.
25929         * modules/sys_stat (sys/stat.h): Likewise.
25930         * modules/sysexits (sysexits.h): Likewise.
25931         * modules/unistd (unistd.h): Likewise.
25932
25933 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25934
25935         * modules/closein-tests (Makefile.am): Distribute
25936         `test-closein.sh'.
25937
25938 2007-05-17  Bruno Haible  <bruno@clisp.org>
25939
25940         * tests/test-printf-posix.output: Renamed from
25941         tests/test-fprintf-posix.out.
25942         * modules/fprintf-posix-tests: Update.
25943         * modules/printf-posix-tests: Update.
25944         * modules/vfprintf-posix-tests: Update.
25945         * modules/vprintf-posix-tests: Update.
25946         * tests/test-fprintf-posix.sh: Update.
25947         * tests/test-printf-posix.sh: Update.
25948         * tests/test-vfprintf-posix.sh: Update.
25949         * tests/test-vprintf-posix.sh: Update.
25950         Reported by Ralf Wildenhues.
25951
25952 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
25953
25954         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
25955         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
25956         GCC 4.2, which otherwise issues a lot of warnings.
25957         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
25958         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
25959         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
25960         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
25961         it should no longer be needed.
25962         * lib/string_.h: Likewise.
25963         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
25964         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
25965         * modules/inttypes (inttypes.h): Likewise.
25966         * modules/math (math.h): Likewise.
25967         * modules/search (search.h): Likewise.
25968         * modules/signal (signal.h): Likewise.
25969         * modules/stdint (stdint.h): Likewise.
25970         * modules/stdio (stdio.h): Likewise.
25971         * modules/stdlib (stdlib.h): Likewise.
25972         * modules/string (string.h): Likewise.
25973         * modules/sys_time (sys/time.h): Likewise.
25974         * modules/time (time.h): Likewise.
25975         * modules/wchar (wchar.h): Likewise.
25976         * modules/wctype (wtype.h): Likewise.
25977
25978 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25979
25980         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
25981
25982 2007-05-13  Bruno Haible  <bruno@clisp.org>
25983
25984         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
25985         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25986         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
25987         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25988         (gl_PREREQ_STRTOK_R): Don't require it here.
25989
25990 2007-05-13  Bruno Haible  <bruno@clisp.org>
25991
25992         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
25993         when used in C++ mode.
25994
25995 2007-05-12  Bruno Haible  <bruno@clisp.org>
25996
25997         * lib/linebuffer.h: Tweak doc.
25998         * lib/linebuffer.c: Likewise.
25999
26000 2007-05-12  James Youngman  <jay@gnu.org>
26001
26002         * lib/linebuffer.c (readlinebuffer_delim): New function,
26003         like readlinebuffer, but use a caller-specified delimiter.
26004         (readlinebuffer): Just call readlinebuffer_delim with '\n'
26005         as the delimiter.
26006         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
26007
26008 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26009
26010         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
26011         * modules/openat (Files): Remove openat-die.c.
26012         (Depends-on): Add openat-die.
26013         * modules/openat-die: New module.
26014
26015 2007-05-06  Bruno Haible  <bruno@clisp.org>
26016
26017         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
26018         Update with info about Cygwin.
26019         * doc/functions/fprintf.texi: Update.
26020         * doc/functions/printf.texi: Update.
26021         * doc/functions/snprintf.texi: Update.
26022         * doc/functions/sprintf.texi: Update.
26023         * doc/functions/vfprintf.texi: Update.
26024         * doc/functions/vprintf.texi: Update.
26025         * doc/functions/vsnprintf.texi: Update.
26026         * doc/functions/vsprintf.texi: Update.
26027         Reported by Eric Blake.
26028
26029 2007-05-06  Bruno Haible  <bruno@clisp.org>
26030
26031         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
26032         padding ourselves for the floating-point directives.
26033         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
26034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
26035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26036         gl_PRINTF_FLAG_ZERO and test its result. Invoke
26037         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
26038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
26040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26044         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26045         * tests/test-snprintf-posix.h (test_function): Also check the width
26046         and some flags in the %f directive.
26047         * tests/test-sprintf-posix.h (test_function): Likewise.
26048         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26049         * tests/test-vasprintf-posix.c (test_function): Likewise.
26050         * doc/functions/fprintf.texi: Update.
26051         * doc/functions/printf.texi: Update.
26052         * doc/functions/snprintf.texi: Update.
26053         * doc/functions/sprintf.texi: Update.
26054         * doc/functions/vfprintf.texi: Update.
26055         * doc/functions/vprintf.texi: Update.
26056         * doc/functions/vsnprintf.texi: Update.
26057         * doc/functions/vsprintf.texi: Update.
26058
26059 2007-05-06  Bruno Haible  <bruno@clisp.org>
26060
26061         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
26062         pass the ' flag character to sprintf or snprintf.
26063         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
26064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
26065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26066         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
26067         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
26068         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26069         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
26070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26075         * tests/test-snprintf-posix.h (test_function): Also check the grouping
26076         flag.
26077         * tests/test-sprintf-posix.h (test_function): Likewise.
26078         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26079         * tests/test-vasprintf-posix.c (test_function): Likewise.
26080         * doc/functions/fprintf.texi: Update.
26081         * doc/functions/printf.texi: Update.
26082         * doc/functions/snprintf.texi: Update.
26083         * doc/functions/sprintf.texi: Update.
26084         * doc/functions/vfprintf.texi: Update.
26085         * doc/functions/vprintf.texi: Update.
26086         * doc/functions/vsnprintf.texi: Update.
26087         * doc/functions/vsprintf.texi: Update.
26088
26089 2007-05-01  Bruno Haible  <bruno@clisp.org>
26090
26091         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
26092
26093 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
26096         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
26097
26098 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26099
26100         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
26101         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
26102         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
26103
26104 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
26105
26106         * lib/argp-help.c (struct hol_entry): New member `ord'.
26107         (HOL_ENTRY_PTRCMP): Use ord for comparison
26108         (hol_sort): Initialize ord.
26109
26110 2007-05-01  Bruno Haible  <bruno@clisp.org>
26111
26112         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
26113         Reported by Eric Blake.
26114         * doc/gnulib.texi (Function Substitutes): Update.
26115
26116 2007-05-01  Bruno Haible  <bruno@clisp.org>
26117
26118         * doc/functions.texi: Remove file, now redundant through
26119         doc/functions/*.texi.
26120
26121 2007-05-01  Bruno Haible  <bruno@clisp.org>
26122
26123         * modules/argp (Depends-on): Add sleep.
26124
26125 2007-05-01  Bruno Haible  <bruno@clisp.org>
26126
26127         * modules/sleep-tests: New file.
26128         * tests/test-sleep.c: New file.
26129
26130         * modules/sleep: New file.
26131         * lib/sleep.c: New file.
26132         * m4/sleep.m4: New file.
26133         * lib/unistd_.h (sleep): New declaration.
26134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
26135         HAVE_SLEEP.
26136         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
26137         * doc/functions/sleep.texi: Document the sleep module.
26138
26139 2007-05-01  Bruno Haible  <bruno@clisp.org>
26140
26141         * lib/sigprocmask.h: Remove file.
26142         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
26143         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
26144         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
26145         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
26146         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
26147         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
26148         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
26149         HAVE_SIGSET_T as a shell variable.
26150         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
26151         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
26152         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
26153         (Depends-on): Add signal. Remove verify.
26154         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
26155         (Include): Mention <signal.h> instead of sigprocmask.h.
26156         * NEWS: Mention the change.
26157         * lib/fatal-signal.c: Don't include sigprocmask.h.
26158
26159 2007-05-01  Bruno Haible  <bruno@clisp.org>
26160
26161         * modules/signal: New file.
26162         * lib/signal_.h: New file.
26163         * m4/signal_h.m4: New file.
26164
26165 2007-05-01  Bruno Haible  <bruno@clisp.org>
26166
26167         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
26168         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
26169         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
26170         HAVE_WCTYPE_CTMP_BUG into wctype.h.
26171
26172 2007-05-01  Bruno Haible  <bruno@clisp.org>
26173
26174         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
26175         configure time.
26176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
26177         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
26178         * modules/sys_stat (Makefile.am): Substitute their values into
26179         sys/stat.h.
26180
26181 2007-05-01  Bruno Haible  <bruno@clisp.org>
26182
26183         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
26184         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
26185         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
26186
26187 2007-05-01  Bruno Haible  <bruno@clisp.org>
26188
26189         * doc/header/assert.texi: Undo last change: don't mention the gnulib
26190         'assert' module here.
26191
26192 2007-05-01  Bruno Haible  <bruno@clisp.org>
26193
26194         * doc/functions/*.texi: New files.
26195         * doc/functions/google-ranking.txt: New file.
26196         * doc/gnulib.texi (Function Substitutes): New chapter.
26197         (ctime, inet_ntoa): Remove sections.
26198         * doc/ctime.texi: Remove file.
26199         * doc/inet_ntoa.texi: Remove file.
26200         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
26201         dependencies.
26202         (%.info): New rule, specifying a --reference-limit.
26203
26204 2007-05-01  Bruno Haible  <bruno@clisp.org>
26205
26206         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
26207
26208 2007-05-01  Bruno Haible  <bruno@clisp.org>
26209
26210         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
26211         the portability of 'mkdir' to mingw systems.
26212
26213 2007-05-01  Bruno Haible  <bruno@clisp.org>
26214
26215         * doc/headers/google-ranking.txt: New file.
26216
26217 2007-04-30  Eric Blake  <ebb9@byu.net>
26218
26219         Prefer fseeko to fseek.
26220         * modules/getpass (Depends-on): Add fseeko.
26221         * lib/getpass.c (getpass): Use fseeko, not fseek.
26222
26223 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
26224
26225         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
26226         assumes the sorting is stable, while most qsort implementations
26227         are not.  Use argument addresses to ensure they never compare as
26228         equal.
26229
26230         * tests/test-argp-2.sh (usage-indent test): Fix output
26231         (func_compare): Restore diff options
26232         * tests/test-argp.c: Restore #include "progname.h"
26233
26234 2007-04-29  Bruno Haible  <bruno@clisp.org>
26235
26236         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
26237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26238         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
26239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26240         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
26241         (configure.ac): Define CHECK_SNPRINTF_POSIX.
26242         (TESTS, check_PROGRAMS): Add test-snprintf.
26243         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
26244         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
26245         (TESTS, check_PROGRAMS): Add test-vsnprintf.
26246         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
26247         assertions that fail on HP-UX, OSF/1, or IRIX.
26248         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
26249
26250 2007-04-29  Bruno Haible  <bruno@clisp.org>
26251
26252         * MODULES.html.sh (posix_functions): Remove 'contents'.
26253
26254 2007-04-29  Karl Berry  <karl@gnu.org>
26255
26256         * config/srclist.txt (gendocs_template_min): new entry.
26257
26258 2007-04-29  Bruno Haible  <bruno@clisp.org>
26259
26260         Work around fpurge bug on BSD systems.
26261         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
26262         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
26263         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
26264         fpurge to rpl_fpurge if the system already has this function.
26265         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
26266         the case where the system already has this function. Correct invariants
26267         on BSD systems.
26268         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
26269         BSD systems.
26270
26271 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26272
26273         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
26274         proposed by Sven Verdoolaege.
26275
26276         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
26277         options.
26278         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
26279         (usage and help tests): Update
26280
26281 2007-04-29  Bruno Haible  <bruno@clisp.org>
26282
26283         * tests/test-fflush.c (main): Use a file of size 17, not 10.
26284         Print more information in case of failure. Disable a test on BeOS.
26285
26286 2007-04-29  Bruno Haible  <bruno@clisp.org>
26287
26288         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
26289         This helps debugging on systems on which no gdb is available.
26290
26291 2007-04-29  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/freading.h: Improve comments.
26294         * lib/fwriting.h: Likewise.
26295         * tests/test-freading.c (main): Don't check freading immediately after
26296         repositioning. Needed for glibc.
26297
26298 2007-04-29  Bruno Haible  <bruno@clisp.org>
26299
26300         * lib/freading.c (freading): Trivial simplification.
26301
26302 2007-04-28  Bruno Haible  <bruno@clisp.org>
26303
26304         * tests/test-fwriting.c (main): Also test the interaction between
26305         fflush and fwriting.
26306         * modules/fwriting-tests (Depends-on): Add fflush.
26307
26308         * tests/test-freading.c (main): Also test the interaction between
26309         fflush and freading.
26310         * modules/freading-tests (Depends-on): Add fflush.
26311
26312 2007-04-28  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
26315         fseeko and ftello.
26316         Suggested by Eric Blake.
26317
26318 2007-04-28  Jim Meyering  <jim@meyering.net>
26319
26320         Avoid false-negative in gl_STDINT_H's C99 conformance test.
26321         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
26322         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
26323
26324 2007-04-27  Eric Blake  <ebb9@byu.net>
26325
26326         * doc/headers/assert.texi (assert.h): Document assert module use.
26327
26328 2007-04-27  Bruno Haible  <bruno@clisp.org>
26329
26330         * doc/headers/*.texi: New files.
26331         * doc/gnulib.texi (Header File Substitutes): New chapter.
26332         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
26333         dependencies.
26334         (standards.info ,standards.html, standards.dvi): Update dependencies.
26335         (mostlyclean, clean): New targets.
26336
26337 2007-04-27  Bruno Haible  <bruno@clisp.org>
26338
26339         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
26340         * modules/sysexits (Files, Makefile.am): Update.
26341
26342         * lib/sys_socket_.h: Renamed from lib/socket_.h.
26343         * modules/sys_socket (Files, Makefile.am): Update.
26344
26345         * lib/sys_stat_.h: Renamed from lib/stat_.h.
26346         * modules/sys_stat (Files, Makefile.am): Update.
26347
26348 2007-04-27  Eric Blake  <ebb9@byu.net>
26349
26350         * lib/freading.h: Improve comments.
26351         * lib/fwriting.h: Likewise.
26352         * lib/fflush.c: Likewise.
26353
26354         Fix closein for mingw.
26355         * modules/closein-tests: Add tests for closein.
26356         * tests/test-closein.c: New file.
26357         * tests/test-closein.sh: Likewise.
26358         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
26359         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
26360
26361 2007-04-27  Bruno Haible  <bruno@clisp.org>
26362
26363         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
26364         version is < 6.
26365         * lib/math_.h [__DECC]: Likewise.
26366         * lib/stdio_.h [__DECC]: Likewise.
26367         * lib/stdlib_.h [__DECC]: Likewise.
26368         * lib/string_.h [__DECC]: Likewise.
26369         * lib/time_.h [__DECC]: Likewise.
26370         * lib/wchar_.h [__DECC]: Likewise.
26371         * lib/wctype_.h [__DECC]: Likewise.
26372
26373 2007-04-27  Bruno Haible  <bruno@clisp.org>
26374
26375         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
26376
26377 2007-04-27  Bruno Haible  <bruno@clisp.org>
26378
26379         * lib/fflush.c: Add comments.
26380         * modules/fpurge-tests (Depends-on): Add fflush.
26381         * modules/freadable-tests (Depends-on): Likewise.
26382         * modules/fwritable-tests (Depends-on): Likewise.
26383
26384 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
26385
26386         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
26387         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
26388         Report by Bruno Haible <bruno@clisp.org>.
26389
26390 2007-04-26  Eric Blake  <ebb9@byu.net>
26391
26392         Fix fflush on mingw.
26393         * modules/fflush (Depends-on): Add freading.
26394         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
26395         but unread data.
26396
26397 2007-04-26  Eric Blake  <ebb9@byu.net>
26398         and Bruno Haible  <bruno@clisp.org>
26399
26400         Implement freading and fwriting.
26401         * lib/freading.c: New file.
26402         * lib/freading.h: Likewise.
26403         * m4/freading.m4: Likewise.
26404         * modules/freading: Likewise.
26405         * modules/freading-tests: Likewise.
26406         * tests/test-freading.c: Likewise.
26407         * lib/fwriting.c: New file.
26408         * lib/fwriting.h: Likewise.
26409         * m4/fwriting.m4: Likewise.
26410         * modules/fwriting: Likewise.
26411         * modules/fwriting-tests: Likewise.
26412         * tests/test-fwriting.c: Likewise.
26413         * MODULES.html.sh (File stream based Input/Output): Mention them.
26414
26415 2007-04-26  Bruno Haible  <bruno@clisp.org>
26416
26417         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
26418         'long' when we assume it.
26419         Suggested by Eric Blake.
26420
26421 2007-04-26  Bruno Haible  <bruno@clisp.org>
26422
26423         Ensure fseeko, ftello are declared on glibc systems.
26424         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
26425         * modules/fseeko (configure.ac-early): Likewise.
26426         * modules/ftello (configure.ac-early): Likewise.
26427         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
26428         AC_FUNC_FSEEKO for this.
26429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
26430         (gl_CHECK_FSEEKO): Remove macro.
26431
26432 2007-04-26  Bruno Haible  <bruno@clisp.org>
26433
26434         * tests/test-fflush.c (main): Also check the ftell result after
26435         fflush and fseek/fseeko.
26436         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
26437         file descriptor position cache in the stream.
26438         * lib/fseeko.c (rpl_fseeko): Likewise.
26439
26440 2007-04-26  Bruno Haible  <bruno@clisp.org>
26441
26442         * modules/fflush-tests (Depends-on): Add fseeko.
26443
26444 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
26445             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26446
26447         * lib/argz_.h: ensure error_t definition is obtained in same
26448         mechanism system argz.h would have.
26449         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
26450         argz facilities are known bad.  Err on the side of caution if
26451         cross-compiling.
26452
26453 2007-04-25  Eric Blake  <ebb9@byu.net>
26454
26455         * lib/fpurge.c (includes): Use stdlib.h for free.
26456         * tests/test-fflush.c (main): Also test fflush-fseeko.
26457
26458 2007-04-25  Bruno Haible  <bruno@clisp.org>
26459
26460         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
26461         * lib/fseeko.c: New file.
26462         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
26463         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
26464         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
26465         gl_FUNC_FSEEKO.
26466         (gl_FUNC_FSEEKO): Invoke it.
26467         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
26468         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
26469         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
26470
26471 2007-04-25  Bruno Haible  <bruno@clisp.org>
26472
26473         * modules/fflush (Depends-on): Add ftello.
26474
26475 2007-04-25  Bruno Haible  <bruno@clisp.org>
26476
26477         * modules/ftello-tests: New file.
26478         * tests/test-ftello.c: New file.
26479
26480         * modules/ftello: New file.
26481         * m4/ftello.m4: New file.
26482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
26483         HAVE_FTELLO.
26484         * lib/stdio_.h (ftello): New declaration.
26485         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
26486         HAVE_FTELLO.
26487
26488 2007-04-25  Bruno Haible  <bruno@clisp.org>
26489
26490         * modules/fseeko-tests: New file.
26491         * tests/test-fseeko.c: New file.
26492
26493         * modules/fseeko: New file.
26494         * m4/fseeko.m4: New file.
26495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
26496         HAVE_FSEEKO.
26497         * lib/stdio_.h (fseeko): New declaration.
26498         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
26499         HAVE_FSEEKO.
26500
26501 2007-04-25  Bruno Haible  <bruno@clisp.org>
26502
26503         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
26504
26505 2007-04-25  Bruno Haible  <bruno@clisp.org>
26506
26507         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
26508         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
26509         * tests/test-unistd.c: Likewise.
26510         * tests/test-fcntl.c: Likewise.
26511
26512 2007-04-23  Eric Blake  <ebb9@byu.net>
26513
26514         * lib/fflush.c: Fix missing include.
26515         Reported by Bruno Haible.
26516
26517 2007-04-23  Bruno Haible  <bruno@clisp.org>
26518
26519         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
26520         Reported by Eric Blake.
26521
26522 2007-04-23  Bruno Haible  <bruno@clisp.org>
26523
26524         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
26525
26526 2007-04-23  Bruno Haible  <bruno@clisp.org>
26527
26528         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
26529
26530 2007-04-23  Bruno Haible  <bruno@clisp.org>
26531
26532         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
26533         Needed on HP-UX 11.
26534
26535 2007-04-16  Eric Blake  <ebb9@byu.net>
26536
26537         Make fflush rely on fpurge.
26538         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
26539         open coding all variants.
26540         * modules/fflush (Depends-on): Add fpurge and unistd.
26541         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
26542         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
26543
26544         Fix --with-tests compilation on cygwin.
26545         * modules/argmatch-tests (Makefile.am): List gnulib library first
26546         in LDADD.
26547         * modules/argp-tests (Makefile.am): Likewise.
26548         * modules/array-list-tests (Makefile.am): Likewise.
26549         * modules/array-oset-tests (Makefile.am): Likewise.
26550         * modules/avltree-list-tests (Makefile.am): Likewise.
26551         * modules/avltree-oset-tests (Makefile.am): Likewise.
26552         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26553         * modules/carray-list-tests (Makefile.am): Likewise.
26554         * modules/dirname-tests (Makefile.am): Likewise.
26555         * modules/frexp-tests (Makefile.am): Likewise.
26556         * modules/isnanl-tests (Makefile.am): Likewise.
26557         * modules/linked-list-tests (Makefile.am): Likewise.
26558         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26559         * modules/lock-tests (Makefile.am): Likewise.
26560         * modules/rbtree-list-tests (Makefile.am): Likewise.
26561         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26562         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26563         * modules/tls-tests (Makefile.am): Likewise.
26564         * modules/tsearch-tests (Makefile.am): Likewise.
26565         * modules/xvasprintf-tests (Makefile.am): Likewise.
26566
26567         Fix fpurge for cygwin.
26568         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
26569         value.
26570         * modules/fpurge-tests (Depends-on): Clean up trash.
26571
26572 2007-04-16  Simon Josefsson  <simon@josefsson.org>
26573
26574         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
26575
26576         * m4/autobuild.m4: Re-indent.
26577
26578 2007-04-13  Bruno Haible  <bruno@clisp.org>
26579
26580         * modules/fpurge-tests: New file.
26581         * tests/test-fpurge.c: New file.
26582
26583         * modules/fpurge: New file.
26584         * lib/fpurge.h: New file.
26585         * lib/fpurge.c: New file.
26586         * m4/fpurge.m4: New file.
26587
26588 2007-04-13  Bruno Haible  <bruno@clisp.org>
26589
26590         * modules/fbufmode-tests: New file.
26591         * tests/test-fbufmode.c: New file.
26592
26593         * modules/fbufmode: New file.
26594         * lib/fbufmode.h: New file.
26595         * lib/fbufmode.c: New file.
26596         * m4/fbufmode.m4: New file.
26597
26598 2007-04-13  Bruno Haible  <bruno@clisp.org>
26599
26600         * modules/fwritable-tests: New file.
26601         * tests/test-fwritable.c: New file.
26602
26603         * modules/fwritable: New file.
26604         * lib/fwritable.h: New file.
26605         * lib/fwritable.c: New file.
26606         * m4/fwritable.m4: New file.
26607
26608 2007-04-13  Bruno Haible  <bruno@clisp.org>
26609
26610         * modules/freadable-tests: New file.
26611         * tests/test-freadable.c: New file.
26612
26613         * modules/freadable: New file.
26614         * lib/freadable.h: New file.
26615         * lib/freadable.c: New file.
26616         * m4/freadable.m4: New file.
26617
26618 2007-04-13  Bruno Haible  <bruno@clisp.org>
26619
26620         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
26621         MOSTLYCLEANFILES.
26622
26623 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26624
26625         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
26626         gzip bootstrap.conf to avoid dragging in i18n machinery.
26627         (gnulib_tool_option): Use it.
26628
26629 2007-04-13  Bruno Haible  <bruno@clisp.org>
26630
26631         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
26632         %F directives.
26633         * tests/test-vasprintf-posix.c (test_function): Likewise.
26634         * tests/test-snprintf-posix.h (test_function): Likewise.
26635         * tests/test-sprintf-posix.h (test_function): Likewise.
26636         * tests/test-fprintf-posix.h (test_function): Likewise.
26637         * tests/test-printf-posix.h (test_function): Likewise.
26638         * tests/test-fprintf-posix.out: Likewise.
26639
26640 2007-04-13  Bruno Haible  <bruno@clisp.org>
26641
26642         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
26643         * modules/tls-tests (configure.ac): Likewise.
26644         Reported by Arto C. Nirkko <anirkko@insel.ch>.
26645
26646 2007-04-13  Bruno Haible  <bruno@clisp.org>
26647
26648         * lib/tls.c (glthread_tls_get): Fix return type.
26649         Patch by Arto C. Nirkko <anirkko@insel.ch>.
26650
26651 2007-04-12  Eric Blake  <ebb9@byu.net>
26652
26653         * modules/gettime (Depends-on): Remove gettime.
26654         Reported by Dmitry V. Levin.
26655
26656 2007-04-12  Bruno Haible  <bruno@clisp.org>
26657
26658         * modules/fflush (Include): Mention <stdio.h>.
26659         * modules/strtoimax (Include): Mention <inttypes.h>.
26660         * modules/strtoumax (Include): Likewise.
26661
26662 2007-04-12  Eric Blake  <ebb9@byu.net>
26663
26664         * .cvsignore: New file.
26665         * .gitignore: Likewise.
26666
26667 2007-04-12  Bruno Haible  <bruno@clisp.org>
26668
26669         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
26670         not before, since $(LDADD) often contains libgnu.a.
26671         * modules/striconv-tests (test_striconv_LDADD): Likewise.
26672         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
26673         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
26674         Needed on Cygwin.
26675
26676 2007-04-12  Eric Blake  <ebb9@byu.net>
26677
26678         Work around glibc's failure to flush stdin on fclose.
26679         * lib/closein.c (close_stdin): Flush stdin before closing.
26680
26681         Work around glibc's failure to reset seekable stdin on exit.
26682         * modules/closein: New module.
26683         * lib/closein.c: New file.
26684         * lib/closein.h: Likewise.
26685         * m4/closein.m4: Likewise.
26686         * MODULES.html.sh (File stream based Input/Output): Document it.
26687
26688 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26689
26690         * gnulib-tool: Rename generated 'autobuild' script to
26691         'do-autobuild' in --create-megatestdir output.
26692
26693         * doc/gnulib.texi (Build robot for gnulib): Fix.
26694
26695 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26696
26697         * modules/sysexits (Depends-on): Add absolute-header.
26698
26699 2007-04-12  Eric Blake  <ebb9@byu.net>
26700
26701         No need to preserve errno on success.
26702         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
26703         Reported by Bruno Haible.
26704
26705 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26706
26707         * MODULES.html.sh (Support for maintaining and releasing
26708         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
26709
26710 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26711
26712         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
26713
26714 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26715
26716         * modules/autobuild: New module.
26717
26718         * m4/autobuild.m4: New file.
26719
26720 2007-04-11  Bruno Haible  <bruno@clisp.org>
26721
26722         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
26723         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
26724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
26725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
26726         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26727         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26728         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26730         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26731         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
26733         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26734         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
26736         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26737         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
26739         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26740         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26741         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
26742         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26743         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
26745         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26746         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
26748         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26749         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26750         Reported by Eric Blake.
26751
26752 2007-04-11  Bruno Haible  <bruno@clisp.org>
26753
26754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
26755
26756 2007-04-10  Bruno Haible  <bruno@clisp.org>
26757
26758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
26759         for NaN and Infinity. Needed on FreeBSD 6.1.
26760         * tests/test-vasnprintf-posix.c (test_function): Undo last change
26761         regarding results for "%010a" of Infinity and NaN.
26762         * tests/test-vasprintf-posix.c (test_function): Likewise.
26763         * tests/test-snprintf-posix.h (test_function): Likewise.
26764         * tests/test-sprintf-posix.h (test_function): Likewise.
26765         * tests/test-fprintf-posix.h (test_function): Likewise.
26766         * tests/test-printf-posix.h (test_function): Likewise.
26767         * tests/test-fprintf-posix.out: Likewise.
26768
26769 2007-04-10  Bruno Haible  <bruno@clisp.org>
26770
26771         * modules/locale-tests: New file.
26772         * tests/test-locale.c: New file.
26773
26774         * modules/locale: New file.
26775         * lib/locale_.h: New file.
26776         * m4/locale_h.m4: New file.
26777
26778 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
26779             Bruno Haible  <bruno@clisp.org>
26780
26781         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
26782         be determined, test for availability of the copysignf, copysign,
26783         copysignl functions.
26784         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
26785         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
26786         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
26787
26788 2007-04-09  Eric Blake  <ebb9@byu.net>
26789
26790         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
26791         * modules/stdio (Makefile.am): Support fflush.
26792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26793         * modules/fflush: New file.
26794         * lib/fflush.c: Likewise.
26795         * m4/fflush.m4: Likewise.
26796         * modules/fflush-tests: New test.
26797         * tests/test-fflush.c: Likewise.
26798         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
26799
26800 2007-04-06  Bruno Haible  <bruno@clisp.org>
26801
26802         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
26803         (VASNPRINTF): Use signbit for faster determination whether to print a
26804         minus sign.
26805         * modules/vasnprintf (Files): Remove lib/float+.h.
26806         * modules/fprintf-posix (Depends-on): Add signbit.
26807         * modules/snprintf-posix (Depends-on): Likewise.
26808         * modules/sprintf-posix (Depends-on): Likewise.
26809         * modules/vasnprintf-posix (Depends-on): Likewise.
26810         * modules/vasprintf-posix (Depends-on): Likewise.
26811         * modules/vfprintf-posix (Depends-on): Likewise.
26812         * modules/vsnprintf-posix (Depends-on): Likewise.
26813         * modules/vsprintf-posix (Depends-on): Likewise.
26814
26815 2007-04-06  Bruno Haible  <bruno@clisp.org>
26816
26817         * tests/test-frexp.c (main): Test also the sign bit of zero results.
26818         * tests/test-frexpl.c (main): Likewise.
26819         * tests/test-ldexpl.c (main): Likewise.
26820         * modules/frexp-tests (Depends-on): Add signbit.
26821         * modules/frexpl-tests (Depdends-on): Likewise.
26822         * modules/ldexpl-tests (Depdends-on): Likewise.
26823
26824 2007-04-06  Bruno Haible  <bruno@clisp.org>
26825
26826         * modules/signbit-tests: New file.
26827         * tests/test-signbit.c: New file.
26828
26829         * modules/signbit: New file.
26830         * lib/signbitf.c: New file.
26831         * lib/signbitd.c: New file.
26832         * lib/signbitl.c: New file.
26833         * m4/signbit.m4: New file.
26834         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
26835         (signbit): New macro.
26836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
26837         REPLACE_SIGNBIT.
26838         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
26839         REPLACE_FREXPL into math.h.
26840
26841 2007-04-06  Bruno Haible  <bruno@clisp.org>
26842
26843         * modules/isnanf-nolibm-tests: New file.
26844         * tests/test-isnanf.c: New file.
26845
26846         * modules/isnanf-nolibm: New file.
26847         * lib/isnanf.h: New file.
26848         * lib/isnanf.c: New file.
26849         * lib/isnan.c: Consider the USE_FLOAT macro.
26850         * m4/isnanf.m4: New file.
26851
26852 2007-04-06  Bruno Haible  <bruno@clisp.org>
26853
26854         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
26855         (Link): New section.
26856
26857         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
26858
26859 2007-04-06  Bruno Haible  <bruno@clisp.org>
26860
26861         Assume the 'long double' type.
26862         * m4/longdouble.m4: Remove file.
26863         * config/srclist.txt: Don't mention longdouble.m4.
26864         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
26865         * lib/float+.h: Likewise.
26866         * lib/frexp.c: Likewise.
26867         * lib/printf-args.h: Likewise.
26868         * lib/printf-args.c: Likewise.
26869         * lib/printf-frexp.c: Likewise.
26870         * lib/printf-parse.c: Likewise.
26871         * lib/vasnprintf.c: Likewise.
26872         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
26873         * m4/intl.m4: Likewise.
26874         * m4/isnanl.m4: Likewise.
26875         * m4/printf.m4: Likewise.
26876         * m4/printf-frexpl.m4: Likewise.
26877         * m4/vasnprintf.m4: Likewise.
26878         * modules/allocsa (Files): Remove m4/longdouble.m4.
26879         * modules/gettext (Files): Likewise.
26880         * modules/relocatable-prog-wrapper (Files): Likewise.
26881         * modules/vasnprintf (Files): Likewise.
26882         * modules/isnanl (Files): Likewise.
26883         (Include): Simplify.
26884         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
26885         (Include): Simplify.
26886         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
26887         (Include): Simplify.
26888         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
26889         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26890         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
26891         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26892         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26893         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26894         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
26895         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26896         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26897         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26898         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
26899         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26900         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
26901         * tests/test-isnanl.c: Likewise.
26902         * tests/test-snprintf-posix.h: Likewise.
26903         * tests/test-sprintf-posix.h: Likewise.
26904         * tests/test-vasnprintf-posix.c: Likewise.
26905         * tests/test-vasnprintf-posix2.c: Likewise.
26906         * tests/test-vasprintf-posix.c: Likewise.
26907
26908 2007-04-06  Bruno Haible  <bruno@clisp.org>
26909
26910         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
26911         * lib/math_.h [__DECC]: Include the overridden include file through
26912         #include_next, outside the double-inclusion guard.
26913         * lib/stdio_.h [__DECC]: Likewise.
26914         * lib/stdlib_.h [__DECC]: Likewise.
26915         * lib/string_.h [__DECC]: Likewise.
26916         * lib/time_.h [__DECC]: Likewise.
26917         * lib/wchar_.h [__DECC]: Likewise.
26918         * lib/wctype_.h [__DECC]: Likewise.
26919         * lib/inttypes_.h [__DECC]: Likewise.
26920         Reported by Albert Chin <china@thewrittenword.com> in
26921         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
26922
26923 2007-04-04  Eric Blake  <ebb9@byu.net>
26924
26925         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
26926         1.5.x.
26927
26928 2007-04-04  Bruno Haible  <bruno@clisp.org>
26929
26930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
26931         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
26932
26933 2007-04-04  Bruno Haible  <bruno@clisp.org>
26934
26935         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
26936         results for "%010a" of Infinity and NaN.
26937         * tests/test-vasprintf-posix.c (test_function): Likewise.
26938         * tests/test-snprintf-posix.h (test_function): Likewise.
26939         * tests/test-sprintf-posix.h (test_function): Likewise.
26940         * tests/test-fprintf-posix.h (test_function): Remove these tests.
26941         * tests/test-printf-posix.h (test_function): Likewise.
26942         * tests/test-fprintf-posix.out: Update.
26943         Needed for FreeBSD 6.1.
26944
26945 2007-04-04  Bruno Haible  <bruno@clisp.org>
26946
26947         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
26948         directly used by the gnulib modules nor by gnulib-tool.
26949
26950 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
26951
26952         * DEPENDENCIES: Give overall description of version dependency
26953         desirability.  Use more-typical names for apps.
26954         Add shell, coreutils, diffutils, grep, tar, gzip.
26955
26956 2007-04-04  Simon Josefsson  <simon@josefsson.org>
26957
26958         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
26959
26960 2007-04-04  Karl Berry  <karl@gnu.org>
26961
26962         * MODULES.html.sh (func_module): missing '.
26963
26964 2007-04-03  Bruno Haible  <bruno@clisp.org>
26965
26966         * modules/argmatch-tests (Makefile.am): New variable
26967         test_argmatch_LDADD.
26968         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
26969         * modules/array-list-tests (Makefile.am): New variable
26970         test_array_list_LDADD.
26971         * modules/array-oset-tests (Makefile.am): New variable
26972         test_array_oset_LDADD.
26973         * modules/avltree-list-tests (Makefile.am): New variable
26974         test_avltree_list_LDADD.
26975         * modules/avltree-oset-tests (Makefile.am): New variable
26976         test_avltree_oset_LDADD.
26977         * modules/avltreehash-list-tests (Makefile.am): New variable
26978         test_avltreehash_list_LDADD.
26979         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
26980         test_canonicalize_lgpl_LDADD.
26981         * modules/carray-list-tests (Makefile.am): New variable
26982         test_carray_list_LDADD.
26983         * modules/dirname-tests (Makefile.am): New variable
26984         test_dirname_LDADD.
26985         * modules/linked-list-tests (Makefile.am): New variable
26986         test_linked_list_LDADD.
26987         * modules/linkedhash-list-tests (Makefile.am): New variable
26988         test_linkedhash_list_LDADD.
26989         * modules/rbtree-list-tests (Makefile.am): New variable
26990         test_rbtree_list_LDADD.
26991         * modules/rbtree-oset-tests (Makefile.am): New variable
26992         test_rbtree_oset_LDADD.
26993         * modules/rbtreehash-list-tests (Makefile.am): New variable
26994         test_rbtreehash_list_LDADD.
26995         * modules/xvasprintf-tests (Makefile.am): New variable
26996         test_xvasprintf_LDADD.
26997         Reported by Eric Blake.
26998
26999 2007-04-03  Eric Blake  <ebb9@byu.net>
27000
27001         * DEPENDENCIES: Weaken m4 requirements.
27002
27003 2007-04-03  Bruno Haible  <bruno@clisp.org>
27004
27005         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
27006         * modules/isnanl-tests (configure.ac): Likewise.
27007
27008 2007-04-03  Ben Pfaff  <blp@gnu.org>
27009
27010         * modules/iconv_open: Add $(srcdir)/ to source directory
27011         references in Makefile fragments that call gperf, to fix VPATH
27012         builds.
27013
27014 2007-04-03  Bruno Haible  <bruno@clisp.org>
27015
27016         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
27017         * lib/ldexpl.c: Undo last change.
27018
27019 2007-04-03  Bruno Haible  <bruno@clisp.org>
27020
27021         * modules/printf-frexpl (Depends-on): Undo last change.
27022         (Files): Add m4/ldexpl.m4.
27023
27024 2007-04-03  Bruno Haible  <bruno@clisp.org>
27025
27026         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
27027         * modules/isnanl (Link): New section.
27028
27029         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
27030         * modules/frexp (Link): New section.
27031
27032         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
27033         * modules/frexpl (Link): New section.
27034
27035         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
27036         * modules/ldexpl (Link): New section.
27037
27038 2007-04-03  Bruno Haible  <bruno@clisp.org>
27039
27040         * modules/TEMPLATE-EXTENDED: New file.
27041         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
27042
27043 2007-04-03  Bruno Haible  <bruno@clisp.org>
27044
27045         * DEPENDENCIES: New file.
27046         Suggested by Simon Josefsson.
27047
27048 2007-04-03  Bruno Haible  <bruno@clisp.org>
27049
27050         * doc/gnulib.texi: Escape @.
27051
27052 2007-04-03  James Youngman  <jay@gnu.org>
27053         and Paul Eggert  <eggert@cs.ucla.edu>
27054
27055         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
27056         birthtime on all systems that have birthtime, not just those which
27057         use st_birthtimensec rather than st_birthtim.  Putting zero in
27058         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
27059         that the birth time is not available for files on an NFS mount.
27060
27061 2007-04-03  Simon Josefsson  <simon@josefsson.org>
27062
27063         * modules/memxor: Move back from crypto/, suggested by Bruno.
27064         * modules/crypto/hmac-sha1: Fix memxor dependency.
27065
27066         * modules/crypto/gc: Moved from ../.
27067
27068 2007-04-02  Eric Blake  <ebb9@byu.net>
27069
27070         * lib/ldexpl.c (includes): Avoid libm.
27071
27072         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
27073
27074 2007-04-02  Bruno Haible  <bruno@clisp.org>
27075
27076         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
27077         on IRIX.
27078
27079 2007-04-02  Bruno Haible  <bruno@clisp.org>
27080
27081         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
27082         x86 or x86_64 platforms running MacOS X.
27083         Reported by Ryan Schmidt <@ryandesign.com>.
27084
27085 2007-04-02  Bruno Haible  <bruno@clisp.org>
27086
27087         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
27088         i386.
27089
27090 2007-04-01  Simon Josefsson  <simon@josefsson.org>
27091
27092         * modules/crypto/arcfour: Moved from ../.
27093         * modules/crypto/arcfour-tests: Moved from ../.
27094         * modules/crypto/arctwo: Moved from ../.
27095         * modules/crypto/arctwo-tests: Moved from ../.
27096         * modules/crypto/des: Moved from ../.
27097         * modules/crypto/des-tests: Moved from ../.
27098         * modules/crypto/gc-arcfour: Moved from ../.
27099         * modules/crypto/gc-arcfour-tests: Moved from ../.
27100         * modules/crypto/gc-arctwo: Moved from ../.
27101         * modules/crypto/gc-arctwo-tests: Moved from ../.
27102         * modules/crypto/gc-des: Moved from ../.
27103         * modules/crypto/gc-des-tests: Moved from ../.
27104         * modules/crypto/gc-hmac-md5: Moved from ../.
27105         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
27106         * modules/crypto/gc-hmac-sha1: Moved from ../.
27107         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
27108         * modules/crypto/gc-md2: Moved from ../.
27109         * modules/crypto/gc-md2-tests: Moved from ../.
27110         * modules/crypto/gc-md4: Moved from ../.
27111         * modules/crypto/gc-md4-tests: Moved from ../.
27112         * modules/crypto/gc-md5: Moved from ../.
27113         * modules/crypto/gc-md5-tests: Moved from ../.
27114         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
27115         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
27116         * modules/crypto/gc-random: Moved from ../.
27117         * modules/crypto/gc-rijndael: Moved from ../.
27118         * modules/crypto/gc-rijndael-tests: Moved from ../.
27119         * modules/crypto/gc-sha1: Moved from ../.
27120         * modules/crypto/gc-sha1-tests: Moved from ../.
27121         * modules/crypto/gc-tests: Moved from ../.
27122         * modules/crypto/hmac-md5: Moved from ../.
27123         * modules/crypto/hmac-md5-tests: Moved from ../.
27124         * modules/crypto/hmac-sha1: Moved from ../.
27125         * modules/crypto/hmac-sha1-tests: Moved from ../.
27126         * modules/crypto/md2: Moved from ../.
27127         * modules/crypto/md2-tests: Moved from ../.
27128         * modules/crypto/md4: Moved from ../.
27129         * modules/crypto/md4-tests: Moved from ../.
27130         * modules/crypto/md5: Moved from ../.
27131         * modules/crypto/md5-tests: Moved from ../.
27132         * modules/crypto/memxor: Moved from ../.
27133         * modules/crypto/rijndael: Moved from ../.
27134         * modules/crypto/rijndael-tests: Moved from ../.
27135         * modules/crypto/sha1: Moved from ../.
27136
27137 2007-03-30  James Youngman  <jay@gnu.org>
27138
27139         * tests/test-stat-time.c (prepare_test): use chmod() rather than
27140         rename() to change the ctime of a file (because ctime is unaffected
27141         by rename on jfs2 on AIX 5.1).
27142         (main): Start by doing cleanup, in case a previous run failed leaving
27143         test files behind.
27144
27145 2007-03-31  Bruno Haible  <bruno@clisp.org>
27146
27147         Support old proprietary implementations of iconv.
27148         * modules/iconv_open: New file.
27149         * lib/iconv_.h: New file.
27150         * m4/iconv_h.m4: New file.
27151         * lib/iconv_open.c: New file.
27152         * lib/iconv_open-aix.gperf: New file.
27153         * lib/iconv_open-hpux.gperf: New file.
27154         * lib/iconv_open-irix.gperf: New file.
27155         * lib/iconv_open-osf.gperf: New file.
27156         * m4/iconv_open.m4: New file.
27157         * modules/linebreak (Depends-on): Add iconv_open.
27158         * modules/striconv (Depends-on): Likewise.
27159         * modules/striconveh (Depends-on): Likewise.
27160         * modules/unicodeio (Depends-on): Likewise.
27161         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
27162         (iconv_t)(-1).
27163         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
27164         conversion if cd is (iconv_t)(-1).
27165         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
27166         is not possible.
27167
27168 2007-03-31  Bruno Haible  <bruno@clisp.org>
27169
27170         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
27171         work on Solaris either. Protect also second use of "autodetect_jp".
27172
27173 2007-03-31  Bruno Haible  <bruno@clisp.org>
27174
27175         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
27176         the function is not present.
27177
27178 2007-03-31  Bruno Haible  <bruno@clisp.org>
27179
27180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
27181         the function is not present.
27182
27183 2007-03-31  Bruno Haible  <bruno@clisp.org>
27184
27185         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
27186         a bug in HP-UX iconv_open().
27187
27188 2007-03-31  Bruno Haible  <bruno@clisp.org>
27189
27190         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
27191         (Mathematics <math.h>): New section, add fpieee.
27192         (Input/output <stdio.h>): Add fseterr.
27193         (Mathematics <math.h>): New section, add printf-frexp.
27194         (Container data structures): Add sublist.
27195         (Core language properties): Add fpucw, inline.
27196         (Functions for greatest-width integer types <inttypes.h>): Add
27197         imaxabs, imaxdiv, inttypes.
27198         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
27199         isnanl-nolibm, ldexp.
27200         (Mathematics <math.h>): New section, add printf-frexpl.
27201         (Support for systems lacking POSIX:2001): Add fprintf-posix,
27202         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
27203         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
27204         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
27205         (Unicode string functions): Add unistr/u*-mbtoucr.
27206         (Java): Add javacomp-script, javaexec-script.
27207         (C#): Add csharpcomp-script, csharpexec-script.
27208         (Support for building libraries and executables): Add havelib,
27209         relocatable-*.
27210         (Support for maintaining and releasing projects): Renamed from
27211         'Support for maintaining and release projects'. Add announce-gen.
27212
27213 2007-03-31  Bruno Haible  <bruno@clisp.org>
27214
27215         * README: Talk primarily about git.
27216         (git and CVS): Renamed from CVS.
27217         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
27218         gnulib is available through git.
27219         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
27220
27221 2007-03-30  Bruno Haible  <bruno@clisp.org>
27222
27223         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
27224         * lib/poll_.h: Likewise.
27225         * lib/stat_.h: Likewise.
27226         * lib/sys_time_.h: Likewise.
27227         * lib/sysexit_.h: Likewise.
27228         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
27229         * lib/stdbool_.h: Likewise.
27230         * lib/byteswap_.h: Add double-inclusion guard.
27231
27232 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
27233
27234         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
27235
27236 2007-03-30  Karl Berry  <karl@gnu.org>
27237
27238         * config/srclist-update: double space after USA in the license
27239         substitution, since that's how it's usually (?) written.
27240
27241 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27242
27243         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
27244         reported by Bruno Haible.
27245
27246 2007-03-29  Bruno Haible  <bruno@clisp.org>
27247
27248         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
27249         a bug in AIX iconv().
27250
27251 2007-03-29  Bruno Haible  <bruno@clisp.org>
27252
27253         * modules/ldexpl-tests: New file.
27254         * tests/test-ldexpl.c: New file.
27255
27256 2007-03-29  Bruno Haible  <bruno@clisp.org>
27257
27258         * lib/ldexpl.c: Include fpucw.h.
27259         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
27260         multiplication.
27261         * modules/ldexpl (Depends-on): Add fpucw.
27262
27263 2007-03-29  Bruno Haible  <bruno@clisp.org>
27264
27265         * modules/ldexpl: New file.
27266         * m4/ldexpl.m4: New file.
27267         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
27268         set.
27269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
27270         REPLACE_LDEXPL.
27271         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
27272         REPLACE_LDEXPL.
27273         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
27274         gl_FUNC_LDEXPL_WORKS.
27275         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
27276         * modules/mathl (Files): Remove lib/ldexpl.c.
27277         (Depends-on): Add ldexpl.
27278
27279 2007-03-29  Bruno Haible  <bruno@clisp.org>
27280
27281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
27282
27283 2007-03-29  Bruno Haible  <bruno@clisp.org>
27284
27285         * tests/test-striconveh.c (main): Don't assume that a direct conversion
27286         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
27287         and possibly also HP-UX.
27288         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
27289         work on AIX, IRIX, HP-UX, OSF/1.
27290         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27291         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27292         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27293         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27294         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
27295         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27296
27297 2007-03-29  Bruno Haible  <bruno@clisp.org>
27298
27299         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
27300
27301 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
27302
27303         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
27304         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
27305
27306 2007-03-29  Eric Blake  <ebb9@byu.net>
27307
27308         * lib/acl-internal.h: Remove redundant include.
27309         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
27310         Cygwin when a file is locked.
27311
27312 2007-03-29  Bruno Haible  <bruno@clisp.org>
27313
27314         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
27315         file.
27316         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
27317
27318 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
27319
27320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
27321         try to remove a parent directory if the child couldn't be removed
27322         (except for the first rmdir, which could fail because the child
27323         doesn't exist).  Problem reported by Jeff Blaine in
27324         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
27325
27326 2007-03-28  Bruno Haible  <bruno@clisp.org>
27327
27328         * lib/striconveh.c (utf8conv_carefully): New function.
27329         (mem_cd_iconveh_internal): Invoke it.
27330
27331 2007-03-28  Bruno Haible  <bruno@clisp.org>
27332
27333         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
27334         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
27335         input.
27336         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
27337         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
27338         unistr/u8-uctomb.
27339
27340 2007-03-28  Bruno Haible  <bruno@clisp.org>
27341
27342         * modules/unistr/u8-mbtoucr: New file.
27343         * lib/unistr/u8-mbtoucr.c: New file.
27344         * modules/unistr/u16-mbtoucr: New file.
27345         * lib/unistr/u16-mbtoucr.c: New file.
27346         * modules/unistr/u16-mbtoucr: New file.
27347         * lib/unistr/u16-mbtoucr.c: New file.
27348         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
27349
27350 2007-03-27  Simon Josefsson  <simon@josefsson.org>
27351             Bruno Haible  <bruno@clisp.org>
27352
27353         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
27354         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
27355         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
27356
27357         * m4/stdio_h.m4: Add stubs for vasprintf too.
27358
27359         * modules/stdio: Support vasprintf in sed command.
27360
27361         * modules/vasprintf: Depend on stdio for prototypes.  Remove
27362         vasprintf.h.  Add stdio module indicator.
27363
27364         * lib/stdio_.h: Declare asprintf and vasprintf, based on
27365         vasprintf.h.
27366
27367         * lib/vasprintf.h: File removed.
27368
27369         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
27370         * lib/vasprintf.c: Ditto.
27371         * lib/xvasprintf.c: Ditto.
27372         * tests/test-vasprintf-posix.c: Ditto.
27373         * tests/test-vasprintf.c: Ditto.
27374
27375 2007-03-27  Bruno Haible  <bruno@clisp.org>
27376
27377         Make vasnprintf multithread-safe.
27378         * lib/vasnprintf.c (decimal_point_char): New function.
27379         (VASNPRINTF): Use it.
27380         Suggested by Simon Josefsson.
27381
27382 2007-03-27  Eric Blake  <ebb9@byu.net>
27383
27384         Support sub-second birthtime on cygwin.
27385         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
27386         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
27387         (get_stat_birthtime): Also work with st_birthtim.
27388
27389 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
27390
27391         * lib/stat-time.h (USE_BIRTHTIME): Remove.
27392         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
27393         (get_stat_birthtime_ns): Do not try to use "spare" fields.
27394         (get_stat_birthtime_ns): Simplify compile-time tests.
27395         (get_stat_birthtime): Change the API to look like
27396         get_stat_mtime etc., except return a negative tv_nsec on error.
27397         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
27398         Don't check for "spare" fields.
27399         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
27400         or for struct stat.st_birthtime, as these tests aren't used.
27401         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
27402
27403 2007-03-27  Bruno Haible  <bruno@clisp.org>
27404
27405         * lib/stat-time.h: Include <sys/stat.h>.
27406
27407 2007-03-27  James Youngman  <jay@gnu.org>
27408
27409         * lib/stat-time.h (get_stat_birthtime): New function for
27410           retrieving st_birthtime as provided by UFS2 (hence *BSD).
27411         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
27412           and its variants.
27413         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
27414         * modules/stat-time-test: New file.
27415         * tests/test-stat-time.c: New test, devised by Bruno Haible.
27416
27417 2007-03-26  Bruno Haible  <bruno@clisp.org>
27418
27419         Better support of signalling NaNs.
27420         * lib/atanl.c: Include isnanl.h.
27421         (atanl): Perform test for NaN at the beginning of the function and
27422         through a call to isnanl.
27423         * lib/cosl.c: Include isnanl.h.
27424         (cosl): Perform test for NaN at the beginning of the function and
27425         through a call to isnanl.
27426         * lib/ldexpl.c: Include isnanl.h.
27427         (ldexpl): Perform test for NaN through a call to isnanl.
27428         * lib/logl.c: Include isnanl.h.
27429         (logl): Perform test for NaN at the beginning of the function and
27430         through a call to isnanl.
27431         * lib/sinl.c: Include isnanl.h.
27432         (sinl): Perform test for NaN at the beginning of the function and
27433         through a call to isnanl.
27434         * lib/sqrtl.c: Include isnanl.h.
27435         (sqrtl): Perform test for NaN at the beginning of the function and
27436         through a call to isnanl.
27437         * lib/tanl.c: Include isnanl.h.
27438         (tanl): Perform test for NaN at the beginning of the function and
27439         through a call to isnanl.
27440         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
27441         * modules/mathl (Depends-on): Add isnanl.
27442
27443 2007-03-26  Eric Blake  <ebb9@byu.net>
27444
27445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
27446         regression in logic sense of previous patch.
27447
27448 2007-03-26  Bruno Haible  <bruno@clisp.org>
27449
27450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
27451         unportable shell command "if ! ...".
27452         Reported by Ralf Wildenhues.
27453
27454 2007-03-25  Bruno Haible  <bruno@clisp.org>
27455
27456         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
27457         <sysexits.h> file, and only add EX_CONFIG.
27458         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
27459         absolute file name and whether it is sufficient. Substitute also
27460         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
27461         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
27462         ABSOLUTE_SYSEXITS_H into sysexits.h.
27463
27464 2007-03-25  Bruno Haible  <bruno@clisp.org>
27465
27466         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
27467         hints is NULL.
27468
27469 2007-03-25  Bruno Haible  <bruno@clisp.org>
27470
27471         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
27472         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27473
27474 2007-03-25  Bruno Haible  <bruno@clisp.org>
27475
27476         * lib/vasnprintf.c: Include langinfo.h.
27477         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
27478         multithread-safe.
27479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
27480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
27481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
27487         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27488         Reported by Simon Josefsson.
27489
27490 2007-03-25  Bruno Haible  <bruno@clisp.org>
27491
27492         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
27493         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
27494         * modules/vasnprintf (Depends-on): Add stdint.
27495
27496 2007-03-25  Bruno Haible  <bruno@clisp.org>
27497
27498         * modules/fpieee: New file.
27499         * m4/fpieee.m4: New file.
27500         * modules/isnan-nolibm (Depends-on): Add fpieee.
27501         * modules/isnanl-nolibm (Depends-on): Add fpieee.
27502         * modules/isnanl (Depends-on): Add fpieee.
27503
27504 2007-03-25  Bruno Haible  <bruno@clisp.org>
27505
27506         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
27507
27508 2007-03-25  Bruno Haible  <bruno@clisp.org>
27509
27510         Avoid test failures on IRIX 6.5.
27511         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
27512         (main): Use it.
27513         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
27514         macros.
27515         (main): Use them.
27516
27517 2007-03-25  Bruno Haible  <bruno@clisp.org>
27518
27519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
27520         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
27521         exists but doesn't work.
27522         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
27523         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
27524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
27525         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
27526
27527 2007-03-25  Bruno Haible  <bruno@clisp.org>
27528
27529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
27530         returns inf. Needed on IRIX 6.5.
27531
27532 2007-03-25  Bruno Haible  <bruno@clisp.org>
27533
27534         * tests/test-frexpl.c: Include isnanl-nolibm.h.
27535         (main): Use isnanl instead of x != x idiom.
27536         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
27537
27538         * tests/test-frexp.c: Include isnan.h.
27539         (main): Use isnan instead of x != x idiom.
27540         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
27541
27542 2007-03-25  Bruno Haible  <bruno@clisp.org>
27543
27544         * tests/test-frexp.c (NaN): New function/macro.
27545         (main): Use it instead of 0.0 / 0.0.
27546         * tests/test-isnan.c (NaN): New function/macro.
27547         (main): Use it instead of 0.0 / 0.0.
27548         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
27549         (test_function): Use it instead of 0.0 / 0.0.
27550         * tests/test-vasprintf-posix.c (NaN): New function/macro.
27551         (test_function): Use it instead of 0.0 / 0.0.
27552         * tests/test-snprintf-posix.h (NaN): New function/macro.
27553         (test_function): Use it instead of 0.0 / 0.0.
27554         * tests/test-sprintf-posix.h (NaN): New function/macro.
27555         (test_function): Use it instead of 0.0 / 0.0.
27556         * tests/test-fprintf-posix.h (NaN): New function/macro.
27557         (test_function): Use it instead of 0.0 / 0.0.
27558         * tests/test-printf-posix.h (NaN): New function/macro.
27559         (test_function): Use it instead of 0.0 / 0.0.
27560
27561         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
27562
27563 2007-03-25  Bruno Haible  <bruno@clisp.org>
27564
27565         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
27566
27567 2007-03-25  Bruno Haible  <bruno@clisp.org>
27568
27569         * lib/regexec.c (merge_state_with_log): Make static.
27570
27571 2007-03-25  Bruno Haible  <bruno@clisp.org>
27572
27573         * lib/trigl.c (kernel_rem_pio2): Make static.
27574
27575 2007-03-25  Bruno Haible  <bruno@clisp.org>
27576
27577         * lib/sincosl.c (sincosl_table): Make static.
27578
27579 2007-03-25  Bruno Haible  <bruno@clisp.org>
27580
27581         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
27582         if the compiler does not support C99.
27583
27584 2007-03-25  Bruno Haible  <bruno@clisp.org>
27585
27586         * modules/time (Makefile.am): Ensure all rule action lines start with a
27587         tab.
27588
27589 2007-03-24  Bruno Haible  <bruno@clisp.org>
27590
27591         * modules/tsearch-tests: New file.
27592         * tests/test-tsearch.sh: New file.
27593         * tests/test-tsearch.c: New file, mostly copied from glibc.
27594
27595         * modules/search-tests: New file.
27596         * tests/test-search.c: New file.
27597
27598         * modules/search: New file.
27599         * lib/search_.h: New file, incorporating lib/tsearch.h.
27600         * m4/search_h.m4: New file.
27601         * lib/tsearch.h: Remove file.
27602         * lib/tsearch.c: Include search.h instead of tsearch.h.
27603         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
27604         HAVE_TSEARCH.
27605         * modules/tsearch (Files): Remove lib/tsearch.h.
27606         (Depends-on): Add search.
27607         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
27608         (Include): Change tsearch.h into search.h.
27609
27610 2007-03-24  Bruno Haible  <bruno@clisp.org>
27611
27612         * modules/fpucw: New file.
27613         * lib/fpucw.h: New file.
27614         * lib/frexp.c: Include fpucw.h.
27615         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27616         (FUNC): Use them.
27617         * lib/printf-frexp.c: Include fpucw.h.
27618         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27619         (FUNC): Use them.
27620         * lib/vasnprintf.c: Include fpucw.h.
27621         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
27622         'long double' calculations.
27623         * tests/test-frexpl.c: Include fpucw.h.
27624         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27625         * tests/test-printf-frexpl.c: Include fpucw.h.
27626         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27627         * modules/frexpl (Depends-on): Add fpucw.
27628         * modules/printf-frexpl (Depends-on): Likewise.
27629         * modules/fprintf-posix (Depends-on): Likewise.
27630         * modules/snprintf-posix (Depends-on): Likewise.
27631         * modules/sprintf-posix (Depends-on): Likewise.
27632         * modules/vasnprintf-posix (Depends-on): Likewise.
27633         * modules/vasprintf-posix (Depends-on): Likewise.
27634         * modules/vfprintf-posix (Depends-on): Likewise.
27635         * modules/vsnprintf-posix (Depends-on): Likewise.
27636         * modules/vsprintf-posix (Depends-on): Likewise.
27637         * modules/frexpl-tests (Depends-on): Likewise.
27638         * modules/printf-frexpl-tests (Depends-on): Likewise.
27639
27640 2007-03-24  Bruno Haible  <bruno@clisp.org>
27641
27642         * lib/float+.h: New file.
27643         * lib/isnan.c: Include float+.h.
27644         (SIZE): New macro.
27645         (FUNC): Compare only SIZE bytes of the value.
27646         * lib/vasnprintf.c: Include float+.h.
27647         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
27648         SIZEOF_LDBL or SIZEOF_DBL bytes.
27649         * modules/isnan-nolibm (Files): Add lib/float+.h.
27650         * modules/isnanl-nolibm (Files): Add lib/float+.h.
27651         * modules/isnanl (Files): Add lib/float+.h.
27652         * modules/vasnprintf (Files): Add lib/float+.h.
27653
27654 2007-03-24  Bruno Haible  <bruno@clisp.org>
27655
27656         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
27657         include isnanl-nolibm.h.
27658
27659 2007-03-24  Bruno Haible  <bruno@clisp.org>
27660
27661         * tests/test-read-file.c (main): Don't produce spurious output for
27662         expected situations. Make the test fail if it encountered unexpected
27663         results.
27664
27665 2007-03-24  Bruno Haible  <bruno@clisp.org>
27666
27667         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
27668         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
27669
27670 2007-03-24  Bruno Haible  <bruno@clisp.org>
27671
27672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
27673
27674 2007-03-24  Bruno Haible  <bruno@clisp.org>
27675
27676         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
27677         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
27678
27679         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
27680         * modules/utf8-ucs4: Turn into a symbolic link to module
27681         unistr/u8-mbtouc.
27682
27683         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
27684         utf8-ucs4-unsafe.
27685         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
27686         unistr/u8-mbtouc-unsafe.
27687
27688         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
27689         * modules/utf16-ucs4: Turn into a symbolic link to module
27690         unistr/u16-mbtouc.
27691
27692         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
27693         utf16-ucs4-unsafe.
27694         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
27695         unistr/u16-mbtouc-unsafe.
27696
27697         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
27698         * modules/ucs4-utf8: Turn into a symbolic link to module
27699         unistr/u8-ubtomb.
27700
27701         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
27702         * modules/ucs4-utf16: Turn into a symbolic link to module
27703         unistr/u16-ubtomb.
27704
27705 2007-03-24  Bruno Haible  <bruno@clisp.org>
27706
27707         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
27708         Enable the function only if HAVE_INLINE.
27709         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
27710         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27711         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
27712         Enable the function only if HAVE_INLINE.
27713         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
27714         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27715         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
27716         Enable the function only if HAVE_INLINE.
27717         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
27718         Enable the function only if HAVE_INLINE.
27719         * modules/utf8-ucs4: Update.
27720         * modules/utf8-ucs4-unsafe: Update.
27721         * modules/utf16-ucs4: Update.
27722         * modules/utf16-ucs4-unsafe: Update.
27723         * modules/ucs4-utf8: Update.
27724         * modules/ucs4-utf16: Update.
27725
27726 2007-03-24  Bruno Haible  <bruno@clisp.org>
27727
27728         * lib/utf8-ucs4.h: Remove file.
27729         * lib/utf8-ucs4-unsafe.h: Remove file.
27730         * lib/utf16-ucs4.h: Remove file.
27731         * lib/utf16-ucs4-unsafe.h: Remove file.
27732         * lib/ucs4-utf8.h: Remove file.
27733         * lib/ucs4-utf16.h: Remove file.
27734         * lib/unistr.h: Include their previous contents.
27735         * m4/utf-ucs4.m4: Remove file.
27736         * m4/ucs4-utf.m4: Remove file.
27737         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
27738         (Depends-on): Add unistr/base.
27739         (configure.ac): Remove gl_UTF_UCS4.
27740         (Makefile.am): Update.
27741         (Include): Change to unistr.h.
27742         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
27743         (Depends-on): Add unistr/base.
27744         (configure.ac): Remove gl_UTF_UCS4.
27745         (Makefile.am): Update.
27746         (Include): Change to unistr.h.
27747         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
27748         (Depends-on): Add unistr/base.
27749         (configure.ac): Remove gl_UTF_UCS4.
27750         (Makefile.am): Update.
27751         (Include): Change to unistr.h.
27752         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
27753         (Depends-on): Add unistr/base.
27754         (configure.ac): Remove gl_UTF_UCS4.
27755         (Makefile.am): Update.
27756         (Include): Change to unistr.h.
27757         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
27758         (Depends-on): Add unistr/base.
27759         (configure.ac): Remove gl_UCS4_UTF.
27760         (Makefile.am): Update.
27761         (Include): Change to unistr.h.
27762         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
27763         (Depends-on): Add unistr/base.
27764         (configure.ac): Remove gl_UCS4_UTF.
27765         (Makefile.am): Update.
27766         (Include): Change to unistr.h.
27767         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
27768         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
27769         utf8-ucs4-unsafe.h.
27770         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
27771         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
27772         utf16-ucs4-unsafe.h.
27773         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
27774         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
27775         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
27776         * lib/unistr/u8-strchr.c: Likewise.
27777         * lib/unistr/u8-strrchr.c: Likewise.
27778         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
27779         * lib/unistr/u16-strchr.c: Likewise.
27780         * lib/unistr/u16-strrchr.c: Likewise.
27781         * lib/striconveh.c: Update.
27782         * lib/linebreak.c: Update.
27783
27784 2007-03-24  Bruno Haible  <bruno@clisp.org>
27785
27786         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
27787         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
27788
27789 2007-03-22  Bruno Haible  <bruno@clisp.org>
27790
27791         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
27792
27793 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
27794
27795         * MODULES.html.sh (File system functions): New module write-any-file.
27796         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
27797         * m4/write-any-file.m4: New files.
27798
27799 2007-03-23  Eric Blake  <ebb9@byu.net>
27800
27801         * gnulib-tool: Rearrange space-tab sequences, since some editors
27802         like to eat them.
27803
27804 2007-03-23  Eric Blake  <ebb9@byu.net>
27805
27806         * lib/version-etc.c (version_etc_va): Update license wording to
27807         be more concise.  Recommended by Richard Stallman.
27808
27809 2007-03-22  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/poll.c (MSG_PEEK): New fallback definition.
27812
27813 2007-03-22  Bruno Haible  <bruno@clisp.org>
27814
27815         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
27816         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
27817         (main): Update.
27818         Fixes a compilation error on BeOS.
27819
27820 2007-03-22  Bruno Haible  <bruno@clisp.org>
27821
27822         * modules/frexpl-tests: New file.
27823         * tests/test-frexpl.c: New file.
27824
27825         * modules/frexpl: New file.
27826         * m4/frexpl.m4: New file.
27827         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
27828         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
27829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
27830         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
27831         (Depends-on): Add frexpl. Remove isnanl-nolibm.
27832         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
27833
27834 2007-03-22  Bruno Haible  <bruno@clisp.org>
27835
27836         * lib/frexpl.c: Share code with lib/frexp.c.
27837         * modules/mathl (Files): Add lib/frexp.c.
27838         (Depends-on): Add isnanl-nolibm.
27839
27840 2007-03-22  Bruno Haible  <bruno@clisp.org>
27841
27842         * modules/printf-frexp (Files): Add m4/frexp.m4.
27843         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
27844         only if the found frexp function actually works.
27845
27846 2007-03-22  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/frexp.c: Remove older implementation that uses divisions.
27849
27850 2007-03-21  Bruno Haible  <bruno@clisp.org>
27851
27852         * modules/frexp-tests: New file.
27853         * tests/test-frexp.c: New file.
27854
27855         * modules/frexp: New file.
27856         * lib/frexp.c: New file.
27857         * m4/frexp.m4: New file.
27858         * lib/math_.h (frexp): New declaration.
27859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
27860         REPLACE_FREXP.
27861         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
27862
27863 2007-03-21  Bruno Haible  <bruno@clisp.org>
27864
27865         * modules/isnanl-tests: New file.
27866         * tests/test-isnanl.c: New file.
27867
27868         * modules/isnanl: New file.
27869         * lib/isnanl.h: New file.
27870         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
27871         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
27872         gl_FUNC_ISNANL_WORKS.
27873         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
27874         New macros.
27875
27876 2007-03-21  Bruno Haible  <bruno@clisp.org>
27877
27878         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
27879         lib/isnanl.h.
27880         (Include): Update.
27881         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
27882         * lib/vasnprintf.c: Update.
27883         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
27884         tests/test-isnanl.h, remove tests/test-isnanl.c.
27885         (Makefile.am): Update.
27886         * tests/test-isnanl-nolibm.c: New file.
27887         * tests/test-isnanl.h: New file.
27888         * tests/test-isnanl.c: Remove file.
27889
27890 2007-03-21  Jim Meyering  <jim@meyering.net>
27891
27892         When trying to open ".", treat ESTALE like EACCES.
27893         * lib/savewd.c (savewd_save): Resort to forking not just upon
27894         failure with EACCES, but also when errno is ESTALE.
27895
27896 2007-03-20  Bruno Haible  <bruno@clisp.org>
27897
27898         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
27899         Needed on AIX 5.1. Reported by Matthew Woehlke.
27900
27901 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         Suggestions by Bruno Haible:
27904         * lib/acl-internal.h: Include "gettext.h" rather than rolling
27905         our own.
27906         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
27907         * modules/acl (Depends-on): Add gettext.
27908
27909 2007-03-19  Bruno Haible  <bruno@clisp.org>
27910
27911         * modules/iconvme: Remove file.
27912         * lib/iconvme.h: Remove file.
27913         * lib/iconvme.c: Remove file.
27914         * m4/iconvme.m4: Remove file.
27915
27916 2007-03-19  Bruno Haible  <bruno@clisp.org>
27917
27918         * doc/relocatable-maint.texi: Break long shell script line.
27919         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27920
27921 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27922
27923         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
27924         handle file_has_acl.
27925         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
27926         * lib/acl.c: Move header inclusions and related macro defns into
27927         lib/acl-internal.h.
27928         (S_ISLNK): Remove defn, since that's now done for us.
27929         (file_has_acl): Move to lib/file-has-acl.c.
27930         Call acl_trivial if available.  This is the crucial part of the fix.
27931         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
27932         shared within the library.  Rewrite a bit, partly to make it compatible
27933         with the GNU coding style.
27934         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
27935         Remove unnecessary double-quotes.
27936         Don't test for acl_to_text; the build will catch that.
27937         Replace acl_entries if it doesn't exist and it is needed.
27938         Check for -lsec and acl_trivial (as used on Solaris 10).
27939         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
27940         lib/file-has-acl.c.
27941         (Depends-on): Add sys_stat, for S_ISLNK.
27942
27943 2007-03-19  Ben Pfaff  <blp@gnu.org>
27944
27945         * doc/gnulib.texi: Fix typos.
27946         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27947
27948 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27949
27950         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
27951         If size is zero here, buf must be zero.
27952
27953 2007-03-19  Simon Josefsson  <simon@josefsson.org>
27954
27955         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
27956         <bruno@clisp.org>.
27957
27958 2007-03-18  Bruno Haible  <bruno@clisp.org>
27959
27960         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
27961         Suggested by Eric Blake.
27962
27963 2007-03-18  Ben Pfaff  <blp@gnu.org>
27964
27965         * doc/relocatable.texi: Recommend using as prefix a directory
27966         that does not exist and will never be created.  Based on
27967         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
27968         and others.
27969
27970 2007-03-17  Bruno Haible  <bruno@clisp.org>
27971
27972         * lib/fchownat.c: Include lchown.h.
27973
27974 2007-03-17  Bruno Haible  <bruno@clisp.org>
27975
27976         Fix endless loop when the given allocated size was > INT_MAX.
27977         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
27978         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
27979         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
27980         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
27981         * lib/sprintf.c (sprintf): Likewise.
27982
27983 2007-03-17  Bruno Haible  <bruno@clisp.org>
27984
27985         * tests/test-argp-2.sh (func_compare): Output a context diff.
27986
27987 2007-03-17  Bruno Haible  <bruno@clisp.org>
27988
27989         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
27990         locale's decimal-point character.
27991
27992 2007-03-17  Bruno Haible  <bruno@clisp.org>
27993
27994         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
27995         before comparing it. Needed because on some platforms (e.g. x86) a
27996         'long double' occupies less bytes than sizeof (long double).
27997
27998 2007-03-17  Bruno Haible  <bruno@clisp.org>
27999
28000         * tests/test-crc.c (main): Make printf statements 64-bit clean.
28001         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
28002         * tests/test-getaddrinfo.c (simple): Likewise.
28003         * tests/test-read-file.c (main): Likewise.
28004
28005 2007-03-17  Bruno Haible  <bruno@clisp.org>
28006
28007         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
28008
28009 2007-03-17  Bruno Haible  <bruno@clisp.org>
28010
28011         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
28012         unused variable.
28013
28014 2007-03-17  Bruno Haible  <bruno@clisp.org>
28015
28016         * tests/test-c-strcasecmp.c: Include c-strcase.h.
28017         * tests/test-c-strncasecmp.c: Likewise.
28018
28019 2007-03-17  Bruno Haible  <bruno@clisp.org>
28020
28021         * modules/stdlib (Depends-on): Add unistd.
28022         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
28023         Needed for MacOS X 10.3.
28024
28025 2007-03-17  Bruno Haible  <bruno@clisp.org>
28026
28027         * lib/unistr/u-strdup.h: Include <stdlib.h>.
28028
28029 2007-03-17  Bruno Haible  <bruno@clisp.org>
28030
28031         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
28032
28033 2007-03-17  Bruno Haible  <bruno@clisp.org>
28034
28035         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
28036         to reflect files copied from gnulib (with or without modifications).
28037         Suggested by Jim Meyering.
28038
28039 2007-03-17  Eric Blake  <ebb9@byu.net>
28040
28041         * NEWS: Document stdlib change from 2007-02-18.
28042
28043 2007-03-17  Jim Meyering  <jim@meyering.net>
28044
28045         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
28046         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
28047         someone uses a name containing shell meta-characters.
28048         Reported by Alfred M. Szmidt.
28049
28050         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
28051
28052 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
28053
28054         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
28055         and copy gettext configuration files only if configure.ac contains
28056         a use of AM_GNU_GETTEXT_VERSION.
28057
28058 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
28059
28060         * build-aux/bootstrap (gnulib_name): New variable.
28061         (gnulib_tool_options): Use it.
28062
28063 2007-03-13  Simon Josefsson  <simon@josefsson.org>
28064
28065         * tests/test-des.c: Use new namespace.
28066
28067 2007-03-15  Bruno Haible  <bruno@clisp.org>
28068
28069         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
28070         Reported by James Youngman <jay@gnu.org>.
28071
28072 2007-03-15  Bruno Haible  <bruno@clisp.org>
28073
28074         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
28075         declared prototype. Needed with cc on OSF/1 5.1.
28076
28077 2007-03-15  Bruno Haible  <bruno@clisp.org>
28078
28079         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
28080         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
28081         (struct gl_list_implementation): Add dispose_fn argument to the
28082         'create_empty', 'create' methods.
28083         (struct gl_list_impl_base): Add field 'dispose_fn'.
28084         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
28085         argument.
28086         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
28087         dispose_fn argument.
28088         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
28089         dispose_fn on the dropped values.
28090         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
28091         dispose_fn argument.
28092         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
28093         dropped values.
28094         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
28095         (gl_tree_remove_node): Call dispose_fn on the dropped value.
28096         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
28097         (gl_tree_remove_node): Call dispose_fn on the dropped value.
28098         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
28099         argument.
28100         (gl_tree_list_free): Call dispose_fn on the dropped values.
28101         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
28102         the dropped values.
28103         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
28104         Add dispose_fn argument.
28105         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
28106         Call dispose_fn on the dropped values.
28107         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
28108         Add dispose_fn argument.
28109         (gl_sublist_create): Initialize the 'dispose_fn' field.
28110         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
28111         * tests/test-array_list.c (main): Update.
28112         * tests/test-carray_list.c (main): Update.
28113         * tests/test-avltree_list.c (main): Update.
28114         * tests/test-rbtree_list.c (main): Update.
28115         * tests/test-avltreehash_list.c (main): Update.
28116         * tests/test-rbtreehash_list.c (main): Update.
28117         * tests/test-linked_list.c (main): Update.
28118         * tests/test-linkedhash_list.c (main): Update.
28119         * tests/test-array_oset.c (main): Update.
28120
28121 2007-03-15  Bruno Haible  <bruno@clisp.org>
28122
28123         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
28124         (gl_oset_create_empty): Add dispose_fn argument.
28125         (struct gl_oset_implementation): Add dispose_fn argument to
28126         'create_empty' method.
28127         (struct gl_oset_impl_base): Add dispose_fn field.
28128         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
28129         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
28130         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
28131         values.
28132         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
28133         (gl_tree_oset_free): Call dispose_fn on the dropped values.
28134         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
28135         dropped value.
28136         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
28137         dropped value.
28138         * tests/test-array_oset.c (main): Update.
28139         * tests/test-avltree_oset.c (main): Update.
28140         * tests/test-rbtree_oset.c (main): Update.
28141         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
28142
28143 2007-03-13  Bruno Haible  <bruno@clisp.org>
28144
28145         * tests/test-stdbool.c (i): Update after last patch.
28146
28147 2007-03-12  Bruno Haible  <bruno@clisp.org>
28148
28149         * lib/quotearg.c: Include <wctype.h> early, before the definition of
28150         the iswprint macro. Needed on Solaris 2.5.1.
28151
28152 2007-03-12  Bruno Haible  <bruno@clisp.org>
28153
28154         * tests/test-printf-frexp.c (main): Declare x as volatile.
28155
28156 2007-03-12  Simon Josefsson  <simon@josefsson.org>
28157
28158         * doc/gnulib.texi (Build robot for gnulib): New section.
28159
28160 2007-03-12  Jim Meyering  <jim@meyering.net>
28161
28162         * build-aux/bootstrap: New file.
28163         * build-aux/bootstrap.conf: New file, from coreutils.
28164
28165 2007-03-11  Bruno Haible  <bruno@clisp.org>
28166
28167         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
28168
28169 2007-03-12  Simon Josefsson  <simon@josefsson.org>
28170
28171         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
28172         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
28173         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
28174
28175 2007-03-11  Bruno Haible  <bruno@clisp.org>
28176
28177         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
28178         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
28179
28180 2007-03-11  Bruno Haible  <bruno@clisp.org>
28181
28182         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
28183         formula. Needed for SunPRO C 5.0.
28184
28185 2007-03-11  Bruno Haible  <bruno@clisp.org>
28186
28187         * modules/long-options (Depends-on): Add getopt.
28188
28189 2007-03-11  Bruno Haible  <bruno@clisp.org>
28190
28191         * modules/modechange (Depends-on): Add stdbool.
28192
28193 2007-03-11  Bruno Haible  <bruno@clisp.org>
28194
28195         * modules/i-ring (Depends-on): Add stdbool.
28196
28197 2007-03-11  Bruno Haible  <bruno@clisp.org>
28198
28199         * modules/gc-des (Depends-on): Add stdbool.
28200
28201 2007-03-11  Bruno Haible  <bruno@clisp.org>
28202
28203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
28204
28205 2007-03-11  Bruno Haible  <bruno@clisp.org>
28206
28207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
28208
28209 2007-03-11  Bruno Haible  <bruno@clisp.org>
28210
28211         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
28212
28213 2007-03-11  Bruno Haible  <bruno@clisp.org>
28214
28215         * lib/vasnprintf.c (sprintf): Undefine.
28216
28217 2007-03-11  Bruno Haible  <bruno@clisp.org>
28218
28219         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
28220         initializers in SunPRO C and Compaq C compilers.
28221
28222 2007-03-11  Bruno Haible  <bruno@clisp.org>
28223
28224         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
28225         decrementing code ANSI C compliant.
28226
28227 2007-03-11  Bruno Haible  <bruno@clisp.org>
28228
28229         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
28230         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
28231
28232 2007-03-11  Bruno Haible  <bruno@clisp.org>
28233
28234         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
28235         <stdbool.h> substitute doesn't pass.
28236
28237 2007-03-11  Bruno Haible  <bruno@clisp.org>
28238
28239         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
28240
28241 2007-03-11  Bruno Haible  <bruno@clisp.org>
28242
28243         * gnulib-tool (func_create_megatestdir): Create also an autobuild
28244         script, for submission to autobuild.josefsson.org.
28245
28246 2007-03-10  Bruno Haible  <bruno@clisp.org>
28247
28248         * modules/canonicalize-lgpl-tests: New file.
28249         * tests/test-canonicalize-lgpl.sh: New file.
28250         * tests/test-canonicalize-lgpl.c: New file.
28251
28252         * modules/c-strcase-tests: New file.
28253         * tests/test-c-strcase.sh: New file.
28254         * tests/test-c-strcasecmp.c: New file.
28255         * tests/test-c-strncasecmp.c: New file.
28256
28257         * modules/atexit-tests: New file.
28258         * tests/test-atexit.sh: New file.
28259         * tests/test-atexit.c: New file.
28260
28261 2007-03-10  Bruno Haible  <bruno@clisp.org>
28262
28263         * tests/test-binary-io.sh: Use temporary filenames that are not so
28264         likely to clash with those of other tests (in a parallel make).
28265         * tests/test-binary-io.c: Likewise.
28266
28267 2007-03-10  Bruno Haible  <bruno@clisp.org>
28268
28269         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
28270         fallback; use #error instead.
28271         Suggested by Simon Josefsson.
28272
28273 2007-03-10  Bruno Haible  <bruno@clisp.org>
28274
28275         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
28276         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
28277         first and the last.
28278
28279 2007-03-10  Bruno Haible  <bruno@clisp.org>
28280
28281         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
28282
28283 2007-03-10  Bruno Haible  <bruno@clisp.org>
28284
28285         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
28286         "make distcheck".
28287         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
28288         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
28289         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
28290
28291 2007-03-10  Bruno Haible  <bruno@clisp.org>
28292
28293         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
28294         variable.
28295         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
28296         variable.
28297
28298 2007-03-09  Eric Blake  <ebb9@byu.net>
28299         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
28300
28301         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
28302         types are not being provided by gnulib.
28303         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
28304         types are supported.
28305
28306 2007-03-10  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/stdio_.h (__attribute__): New macro.
28309         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
28310         vsprintf): Specify __attribute__ __format__ for GCC.
28311         Suggested by Eric Blake.
28312
28313 2007-03-09  Bruno Haible  <bruno@clisp.org>
28314
28315         * modules/printf-posix-tests: New file.
28316         * tests/test-printf-posix.sh: New file.
28317         * tests/test-printf-posix.c: New file.
28318
28319         * modules/printf-posix: New file.
28320         * lib/printf.c: New file.
28321         * m4/printf-posix-rpl.m4: New file.
28322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
28323         REPLACE_PRINTF.
28324         * lib/stdio_.h (printf): New declaration.
28325         (format, __format__, ____printf____, ____scanf____, ____strftime____,
28326         ____strfmon____): New macros.
28327         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
28328         REPLACE_PRINTF.
28329
28330 2007-03-09  Bruno Haible  <bruno@clisp.org>
28331
28332         * tests/test-vasnprintf-posix2.sh: New file.
28333         * tests/test-vasnprintf-posix2.c: New file.
28334         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
28335         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
28336         (Makefile.am): Activate test-vasnprintf-posix2.sh.
28337
28338         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
28339         a locale dependent decimal point, rather than always '.'.
28340
28341 2007-03-09  Eric Blake  <ebb9@byu.net>
28342
28343         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
28344         spite of platforms like Tandem/NSK that define it to -1.
28345
28346 2007-03-08  Bruno Haible  <bruno@clisp.org>
28347
28348         * modules/vprintf-posix-tests: New file.
28349         * tests/test-vprintf-posix.sh: New file.
28350         * tests/test-vprintf-posix.c: New file.
28351         * tests/test-printf-posix.h: New file.
28352
28353         * modules/vprintf-posix: New file.
28354         * lib/vprintf.c: New file.
28355         * m4/vprintf-posix.m4: New file.
28356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
28357         REPLACE_VPRINTF.
28358         * lib/stdio_.h (vprintf): New declaration.
28359         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
28360         REPLACE_VPRINTF.
28361
28362 2007-03-08  Bruno Haible  <bruno@clisp.org>
28363
28364         * modules/fprintf-posix-tests: New file.
28365         * tests/test-fprintf-posix.sh: New file.
28366         * tests/test-fprintf-posix.c: New file.
28367
28368         * modules/fprintf-posix: New file.
28369         * lib/fprintf.c: New file.
28370         * m4/fprintf-posix.m4: New file.
28371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
28372         REPLACE_FPRINTF.
28373         * lib/stdio_.h (fprintf): New declaration.
28374         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
28375         REPLACE_FPRINTF.
28376
28377 2007-03-08  Bruno Haible  <bruno@clisp.org>
28378
28379         * modules/vfprintf-posix-tests: New file.
28380         * tests/test-vfprintf-posix.sh: New file.
28381         * tests/test-vfprintf-posix.c: New file.
28382         * tests/test-fprintf-posix.h: New file.
28383         * tests/test-fprintf-posix.out: New file.
28384
28385         * modules/vfprintf-posix: New file.
28386         * lib/vfprintf.c: New file.
28387         * m4/vfprintf-posix.m4: New file.
28388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
28389         REPLACE_VFPRINTF.
28390         * lib/stdio_.h (vfprintf): New declaration.
28391         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
28392         REPLACE_VFPRINTF.
28393
28394 2007-03-08  Bruno Haible  <bruno@clisp.org>
28395
28396         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
28397
28398 2007-03-08  Bruno Haible  <bruno@clisp.org>
28399
28400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
28401         instead of 'expr' invocations.
28402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28407         Suggested by Paul Eggert.
28408
28409 2007-03-08  Bruno Haible  <bruno@clisp.org>
28410
28411         * modules/fseterr-tests: New file.
28412         * tests/test-fseterr.c: New file.
28413
28414         * modules/fseterr: New file.
28415         * lib/fseterr.h: New file.
28416         * lib/fseterr.c: New file.
28417
28418 2007-03-08  Bruno Haible  <bruno@clisp.org>
28419
28420         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
28421         * lib/getopt_.h: Likewise.
28422         * lib/mbswidth.h: Likewise.
28423         * lib/setenv.h: Likewise.
28424         * lib/vasnprintf.h: Likewise.
28425         * lib/vasprintf.h: Likewise.
28426         * lib/verror.h: Likewise.
28427         * lib/xsetenv.h: Likewise.
28428         * lib/xvasprintf.h: Likewise.
28429
28430 2007-03-08  Jim Meyering  <jim@meyering.net>
28431
28432         * users.txt: Add parted.
28433
28434         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
28435
28436 2007-03-07  Bruno Haible  <bruno@clisp.org>
28437
28438         * m4/printf.m4: Make the shell script snippets copy&pastable.
28439
28440 2007-03-02  Bruno Haible  <bruno@clisp.org>
28441
28442         * lib/netinet_in_.h: New file.
28443         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
28444         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
28445         * modules/netinet_in (Files): Add lib/netinet_in_.h.
28446         (Depends-on): Add absolute-header.
28447         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
28448         into netinet/in.h.
28449
28450 2007-03-03  Bruno Haible  <bruno@clisp.org>
28451
28452         * lib/sys_select_.h: New file.
28453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
28454         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
28455         * modules/sys_select (Files): Add lib/sys_select_.h.
28456         (Depends-on): Add absolute-header.
28457         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
28458         into sys/select.h.
28459
28460 2007-03-02  Bruno Haible  <bruno@clisp.org>
28461
28462         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
28463         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
28464         values.
28465         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
28466         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
28467         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
28468         * modules/sys_socket (Depends-on): Add absolute-header.
28469         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
28470         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
28471         (Include): Remove requirement of inclusion of <sys/types.h>.
28472
28473 2007-03-02  Bruno Haible  <bruno@clisp.org>
28474
28475         * lib/byteswap_.h (bswap_32): Fix formula.
28476
28477 2007-03-06  Bruno Haible  <bruno@clisp.org>
28478
28479         * modules/sprintf-posix-tests: New file.
28480         * tests/test-sprintf-posix.c: New file.
28481
28482         * modules/sprintf-posix: New file.
28483         * lib/sprintf.c: New file.
28484         * m4/sprintf-posix.m4: New file.
28485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
28486         REPLACE_SPRINTF.
28487         * lib/stdio_.h (sprintf): New declaration.
28488         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
28489         REPLACE_SPRINTF.
28490
28491 2007-03-06  Bruno Haible  <bruno@clisp.org>
28492
28493         * modules/vsprintf-posix-tests: New file.
28494         * tests/test-vsprintf-posix.c: New file.
28495         * tests/test-sprintf-posix.h: New file.
28496
28497         * modules/vsprintf-posix: New file.
28498         * lib/vsprintf.c: New file.
28499         * m4/vsprintf-posix.m4: New file.
28500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
28501         REPLACE_VSPRINTF.
28502         * lib/stdio_.h (vsprintf): New declaration.
28503         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
28504         REPLACE_VSPRINTF.
28505
28506 2007-03-06  Bruno Haible  <bruno@clisp.org>
28507
28508         * modules/vsnprintf (Depend-on): Remove minmax.
28509
28510 2007-03-06  Bruno Haible  <bruno@clisp.org>
28511
28512         * modules/snprintf-posix-tests: New file.
28513         * tests/test-snprintf-posix.c: New file.
28514
28515         * modules/snprintf-posix: New file.
28516         * m4/snprintf-posix.m4: New file.
28517         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
28518         gl_FUNC_SNPRINTF.
28519         (gl_FUNC_SNPRINTF): Invoke it.
28520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
28521         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
28522         is set.
28523         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
28524
28525 2007-03-06  Bruno Haible  <bruno@clisp.org>
28526
28527         * modules/vsnprintf-posix-tests: New file.
28528         * tests/test-vsnprintf-posix.c: New file.
28529         * tests/test-snprintf-posix.h: New file.
28530
28531         * modules/vsnprintf-posix: New file.
28532         * m4/vsnprintf-posix.m4: New file.
28533         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
28534         gl_FUNC_VSNPRINTF.
28535         (gl_FUNC_VSNPRINTF): Invoke it.
28536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
28537         * lib/stdio_.h (vsnprintf): Define as a replacement if
28538         REPLACE_VSNPRINTF is set.
28539         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
28540
28541 2007-03-06  Bruno Haible  <bruno@clisp.org>
28542
28543         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
28544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
28545
28546 2007-03-06  Bruno Haible  <bruno@clisp.org>
28547
28548         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
28549         (asinl): Declare also if HAVE_DECL_ASINL is set.
28550         (atanl): Declare also if HAVE_DECL_ATANL is set.
28551         (ceill): Declare also if HAVE_DECL_CEILL is set.
28552         (cosl): Declare also if HAVE_DECL_COSL is set.
28553         (expl): Declare also if HAVE_DECL_EXPL is set.
28554         (floorl): Declare also if HAVE_DECL_FLOORL is set.
28555         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
28556         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
28557         (logl): Declare also if HAVE_DECL_LOGL is set.
28558         (sinl): Declare also if HAVE_DECL_SINL is set.
28559         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
28560         (tanl): Declare also if HAVE_DECL_TANL is set.
28561         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
28562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
28563         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
28564         declaration of frexpl, ldexpl.
28565         * modules/printf-frexpl (Depends-on): Add math.
28566         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
28567
28568 2007-03-05  Bruno Haible  <bruno@clisp.org>
28569
28570         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
28571         frexpl and ldexpl are declared.
28572         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
28573
28574 2007-03-05  Bruno Haible  <bruno@clisp.org>
28575
28576         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
28577         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
28578
28579 2007-03-05  Bruno Haible  <bruno@clisp.org>
28580
28581         * lib/stdio_.h: Include <stddef.h>.
28582
28583 2007-03-05  Bruno Haible  <bruno@clisp.org>
28584
28585         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
28586
28587 2007-03-05  Bruno Haible  <bruno@clisp.org>
28588
28589         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
28590         NetBSD 4, from Ralf Wildenhues.
28591
28592 2007-03-04  Bruno Haible  <bruno@clisp.org>
28593
28594         * lib/vasprintf.h: Update #if logic for the case when the functions
28595         exist but are overridden.
28596
28597 2007-03-04  Bruno Haible  <bruno@clisp.org>
28598
28599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
28600         implementations: glibc-2.4 and MacOS X 10.3.
28601         * tests/test-vasnprintf-posix.c (test_function): Test also the case
28602         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
28603         * tests/test-vasprintf-posix.c (test_function): Likewise.
28604
28605 2007-03-04  Bruno Haible  <bruno@clisp.org>
28606
28607         * modules/vasprintf-posix-tests: New file.
28608         * tests/test-vasprintf-posix.c: New file.
28609
28610         * modules/vasprintf-posix: New file.
28611         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
28612         defined.
28613         * m4/vasprintf-posix.m4: New file.
28614         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
28615         gl_FUNC_VASPRINTF.
28616         (gl_FUNC_VASPRINTF): Invoke it.
28617         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
28618         here.
28619         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
28620
28621 2007-03-04  Bruno Haible  <bruno@clisp.org>
28622
28623         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
28624         REPLACE_GETTIMEOFDAY.
28625         * modules/sys_time (Makefile.am): Likewise.
28626         * m4/sys_time_h.m4: Likewise.
28627         * m4/gettimeofday.m4: Likewise.
28628
28629 2007-03-04  Bruno Haible  <bruno@clisp.org>
28630
28631         * modules/vasnprintf-posix-tests: New file.
28632         * tests/test-vasnprintf-posix.c: New file.
28633
28634         * modules/vasnprintf-posix: New file.
28635         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
28636         printf-frexpl.h.
28637         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
28638         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
28639         REPLACE_VASNPRINTF is defined.
28640         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
28641         gl_FUNC_VASNPRINTF.
28642         (gl_FUNC_VASNPRINTF): Invoke it.
28643         * m4/vasnprintf-posix.m4: New file.
28644         * m4/printf.m4: New file.
28645
28646 2007-03-04  Bruno Haible  <bruno@clisp.org>
28647
28648         Compile progreloc.c only if --enable-relocatable is specified.
28649         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
28650         if --enable-relocatable was specified.
28651         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
28652         lib_SOURCES.
28653
28654 2007-03-04  Jim Meyering  <jim@meyering.net>
28655
28656         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
28657         Use it consistently, rather than enumerating errno constants.
28658
28659 2007-03-04  Bruno Haible  <bruno@clisp.org>
28660
28661         * modules/xvasprintf-tests: New file.
28662         * tests/test-xvasprintf.c: New file.
28663
28664         * modules/vasprintf-tests: New file.
28665         * tests/test-vasprintf.c: New file.
28666
28667         * modules/vasnprintf-tests: New file.
28668         * tests/test-vasnprintf.c: New file.
28669
28670         * modules/vsnprintf-tests: New file.
28671         * tests/test-vsnprintf.c: New file.
28672
28673         * modules/snprintf-tests: New file.
28674         * tests/test-snprintf.c: New file.
28675
28676 2007-03-04  Bruno Haible  <bruno@clisp.org>
28677
28678         Compile relocatable.c only if --enable-relocatable is specified.
28679         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
28680         gl_RELOCATABLE_LIBRARY.
28681         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
28682         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
28683         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
28684         gl_RELOCATABLE_LIBRARY.
28685         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
28686         (Makefile.am): Remove lib_SOURCES.
28687         * modules/relocatable-lib-lgpl (configure.ac): Invoke
28688         gl_RELOCATABLE_LIBRARY.
28689         (Makefile.am): Remove lib_SOURCES.
28690         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
28691         always.
28692         * modules/relocatable-prog-wrapper (configure.ac): Invoke
28693         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
28694
28695 2007-03-04  Bruno Haible  <bruno@clisp.org>
28696
28697         * modules/argmatch-tests: New file.
28698         * tests/test-argmatch.c: New file.
28699
28700         * tests/test-allocsa.c (main): Halve the number of loop runs.
28701
28702         * modules/alloca-opt-tests: New file.
28703         * tests/test-alloca-opt.c: New file.
28704
28705 2007-03-04  Jim Meyering  <jim@meyering.net>
28706
28707         Work around difference between Linux ACLs and Solaris 10 ZFS.
28708         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
28709         for EINVAL.
28710
28711 2007-03-03  Bruno Haible  <bruno@clisp.org>
28712
28713         * modules/relocatable-prog (Depends-on): Add back progreloc's
28714         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
28715
28716 2007-03-03  Bruno Haible  <bruno@clisp.org>
28717
28718         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
28719         * modules/relocatable-lib: New file.
28720
28721 2007-03-03  Bruno Haible  <bruno@clisp.org>
28722
28723         * modules/relocatable-prog: Renamed from modules/relocatable.
28724         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
28725
28726 2007-03-03  Bruno Haible  <bruno@clisp.org>
28727
28728         * modules/relocatable-script (Files): Add doc/relocatable.texi,
28729         m4/relocatable-lib.m4.
28730         (Depends-on): Remove 'relocatable'.
28731         (configure.ac): Add gl_RELOCATABLE_NOP.
28732
28733 2007-03-03  Bruno Haible  <bruno@clisp.org>
28734
28735         * modules/relocatable-prog-wrapper: New file.
28736         * modules/relocatable (Depends-on): Add it. Remove all other
28737         dependencies except progname.
28738         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
28739
28740         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
28741         (gl_FUNC_STRERROR): Nop.
28742         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
28743
28744         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
28745         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
28746
28747         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
28748         (gl_FUNC_READLINK): Update.
28749
28750         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
28751
28752 2007-03-03  Bruno Haible  <bruno@clisp.org>
28753
28754         * lib/xreadlink.c: Include <unistd.h> unconditionally.
28755         * modules/xreadlink (Depends-on): Add unistd.
28756         * modules/xreadlink-with-size (Depends-on): Likewise.
28757
28758 2007-03-03  Bruno Haible  <bruno@clisp.org>
28759
28760         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
28761         extracted from gt_FUNC_SETENV.
28762         (gt_FUNC_SETENV): Remove macro.
28763         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
28764         remove gt_FUNC_SETENV.
28765
28766 2007-03-03  Bruno Haible  <bruno@clisp.org>
28767
28768         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
28769         ENABLE_RELOCATABLE here.
28770         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
28771
28772 2007-03-03  Bruno Haible  <bruno@clisp.org>
28773
28774         * modules/rbtreehash-list-tests (Depends-on): Add progname.
28775         * tests/test-rbtreehash_list.c: Include progname.h.
28776         (main): Call set_program_name.
28777
28778         * modules/rbtree-oset-tests (Depends-on): Add progname.
28779         * tests/test-rbtree_oset.c: Include progname.h.
28780         (main): Call set_program_name.
28781
28782         * modules/rbtree-list-tests (Depends-on): Add progname.
28783         * tests/test-rbtree_list.c: Include progname.h.
28784         (main): Call set_program_name.
28785
28786         * modules/linked-list-tests (Depends-on): Add progname.
28787         * tests/test-linked_list.c: Include progname.h.
28788         (main): Call set_program_name.
28789
28790 2007-03-03  Bruno Haible  <bruno@clisp.org>
28791
28792         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
28793         All uses of __restrict changed to _Restrict_.
28794         * lib/glob_.h (__restrict): Remove macro.
28795
28796 2007-03-02  Bruno Haible  <bruno@clisp.org>
28797
28798         * modules/gettext (configure.ac): Require gettext infrastructure
28799         from version 0.16.1.
28800
28801 2007-03-02  Bruno Haible  <bruno@clisp.org>
28802
28803         * modules/linkedhash-list-tests (Depends-on): Add progname.
28804         * tests/test-linkedhash_list.c: Include progname.h.
28805         (main): Call set_program_name.
28806
28807         * modules/carray-list-tests (Depends-on): Add progname.
28808         * tests/test-carray_list.c: Include progname.h.
28809         (main): Call set_program_name.
28810
28811         * modules/avltreehash-list-tests (Depends-on): Add progname.
28812         * tests/test-avltreehash_list.c: Include progname.h.
28813         (main): Call set_program_name.
28814
28815         * modules/avltree-oset-tests (Depends-on): Add progname.
28816         * tests/test-avltree_oset.c: Include progname.h.
28817         (main): Call set_program_name.
28818
28819         * modules/avltree-list-tests (Depends-on): Add progname.
28820         * tests/test-avltree_list.c: Include progname.h.
28821         (main): Call set_program_name.
28822
28823         * modules/array-oset-tests (Depends-on): Add progname.
28824         * tests/test-array_oset.c: Include progname.h.
28825         (main): Call set_program_name.
28826
28827         * modules/array-list-tests (Depends-on): Add progname.
28828         * tests/test-array_list.c: Include progname.h.
28829         (main): Call set_program_name.
28830
28831         * modules/argp-tests (Depends-on): Add progname.
28832         * tests/test-argp.c: Include argp.h first. Include progname.h.
28833         (main): Call set_program_name.
28834
28835 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
28836
28837         * doc/gnulib-tool.texi (Initial import): Reword description of
28838         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
28839         limited effect even if defined after the first system include.
28840
28841 2007-03-01  Bruno Haible  <bruno@clisp.org>
28842
28843         * build-aux/config.libpath: Update to libtool-1.5.22.
28844         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28845
28846 2007-03-01  Bruno Haible  <bruno@clisp.org>
28847
28848         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
28849         foo_CFLAGS.
28850         Reported by Ralf Wildenhues.
28851
28852 2007-03-01  Bruno Haible  <bruno@clisp.org>
28853
28854         * build-aux/install-reloc: Remove object files left over by some
28855         compilers.
28856         Reported by Ralf Wildenhues.
28857
28858 2007-03-01  Bruno Haible  <bruno@clisp.org>
28859
28860         * build-aux/install-reloc: Break long lines.
28861
28862 2007-03-01  Bruno Haible  <bruno@clisp.org>
28863
28864         * doc/relocatable.texi: Document that it may not work on OpenBSD.
28865         Reported by Ralf Wildenhues.
28866
28867 2007-03-01  Bruno Haible  <bruno@clisp.org>
28868
28869         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
28870         include ordering constraints.
28871
28872 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28873
28874         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
28875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
28876         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
28877         as another example.
28878         * lib/time_.h: Fix misspelling.
28879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28880         Require gl_HEADER_TIME_H_DEFAULTS.
28881         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
28882         * m4/time_r.m4 (gl_TIME_R): Likewise.
28883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
28884
28885 2007-03-01  Bruno Haible  <bruno@clisp.org>
28886
28887         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
28888         * m4/utimens.m4 (gl_UTIMENS): Likewise.
28889
28890 2007-03-01  Jim Meyering  <jim@meyering.net>
28891
28892         * modules/xreadlink (Maintainer): Add my name.
28893         * modules/xreadlink-with-size (Depends-on): Alphabetize.
28894
28895 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
28896             Bruno Haible  <bruno@clisp.org>
28897
28898         * build-aux/install-reloc: Compile also c-ctype.c.
28899         * build-aux/relocatable.sh.in: New file.
28900         * doc/relocatable.texi: New file.
28901         * doc/relocatable-maint.texi: New file.
28902         * doc/gnulib.texi: Include relocatable-maint.texi.
28903         * lib/progreloc.c: Include unistd.h unconditionally.
28904         * lib/relocwrapper.c: Include unistd.h unconditionally.
28905         Include c-ctype.h.
28906         (add_dotbin): Use c_tolower.
28907         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
28908         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
28909         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
28910         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
28911         to m4/relocatable-lib.m4.
28912         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
28913         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
28914         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
28915         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
28916         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
28917         * modules/relocatable: New file.
28918         * modules/relocatable-lib: New file.
28919         * modules/relocatable-script: New file.
28920
28921 2007-02-28  Bruno Haible  <bruno@clisp.org>
28922
28923         Import --enable-relocatable infrastructure.
28924         * build-aux/config.libpath: New file, from GNU gettext.
28925         * build-aux/install-reloc: New file, from GNU gettext.
28926         * build-aux/reloc-ldflags: New file, from GNU gettext.
28927         * lib/relocatable.h: New file, from GNU gettext.
28928         * lib/relocatable.c: New file, from GNU gettext.
28929         * lib/relocwrapper.c: New file, from GNU gettext.
28930         * m4/relocatable.m4: New file, from GNU gettext.
28931
28932 2007-02-28  Bruno Haible  <bruno@clisp.org>
28933
28934         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
28935
28936         * modules/xreadlink: New file, from GNU gettext with modifications.
28937         * lib/xreadlink.c: New file, from GNU gettext.
28938         * lib/xreadlink.h: Add comments.
28939         (xreadlink): New declaration.
28940
28941         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
28942         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
28943         lib/xreadlink-with-size.c.
28944         (configure.ac): Remove gl_XREADLINK invocation.
28945         (Makefile.am): Augment lib_SOURCES.
28946         * m4/xreadlink.m4: Remove file.
28947         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
28948         (xreadlink_with_size): Renamed from xreadink.
28949         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
28950         * modules/canonicalize (Depends-on): Replace xreadlink with
28951         xreadlink-with-size.
28952         * lib/canonicalize.c (canonicalize_filename_mode): Update.
28953
28954 2007-02-25  Jim Meyering  <jim@meyering.net>
28955
28956         * build-aux/announce-gen: When complaining about excess arguments,
28957         list them.
28958
28959 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
28960
28961         * README: Document signed integer overflow situation more
28962         accurately.
28963
28964 2007-02-25  Bruno Haible  <bruno@clisp.org>
28965
28966         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
28967         'a' or 'A' conversion.
28968
28969 2007-02-25  Bruno Haible  <bruno@clisp.org>
28970
28971         * modules/filename: Renamed from modules/pathname.
28972         (Files): Replace lib/pathname.h with lib/filename.h. Replace
28973         lib/concatpath.c with lib/concat-filename.c.
28974         (Makefile.am): Update.
28975         (Include): Replace pathname.h with filename.h.
28976         * lib/filename.h: Renamed from lib/pathname.h.
28977         (concatenated_filename): Renamed from concatenated_pathname.
28978         * lib/concat-filename.c: Renamed from lib/concatpath.c.
28979         (concatenated_filename): Renamed from concatenated_pathname.
28980         * lib/findprog.c: Include filename.h instead of pathname.h.
28981         (find_in_path): Update.
28982         * lib/javacomp.c: Include filename.h instead of pathname.h.
28983         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28984         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28985         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28986         is_oldgcj_14_13_usable, is_javac_usable): Update.
28987         * lib/javaexec.c: Include filename.h instead of pathname.h.
28988         (execute_java_class): Update.
28989         * modules/findprog: Update.
28990         * modules/javacomp: Update.
28991         * modules/javaexec: Update.
28992         * MODULES.html.sh (File system functions): Add 'filename', remove
28993         'pathname'.
28994
28995 2007-02-25  Bruno Haible  <bruno@clisp.org>
28996
28997         * modules/printf-frexpl-tests: New file.
28998         * tests/test-printf-frexpl.c: New file.
28999
29000         * modules/printf-frexpl: New file.
29001         * lib/printf-frexpl.h: New file.
29002         * lib/printf-frexpl.c: New file.
29003         * m4/printf-frexpl.m4: New file.
29004
29005 2007-02-25  Bruno Haible  <bruno@clisp.org>
29006
29007         * modules/printf-frexp-tests: New file.
29008         * tests/test-printf-frexp.c: New file.
29009
29010         * modules/printf-frexp: New file.
29011         * lib/printf-frexp.h: New file.
29012         * lib/printf-frexp.c: New file.
29013         * m4/printf-frexp.m4: New file.
29014
29015 2007-02-25  Bruno Haible  <bruno@clisp.org>
29016
29017         Assume automake >= 1.10 for the tests.
29018         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
29019         * modules/arctwo-tests: Likewise.
29020         * modules/argp-tests: Likewise.
29021         * modules/avltree-list-tests: Likewise.
29022         * modules/avltree-oset-tests: Likewise.
29023         * modules/avltreehash-list-tests: Likewise.
29024         * modules/carray-list-tests: Likewise.
29025         * modules/crc-tests: Likewise.
29026         * modules/des-tests: Likewise.
29027         * modules/gc-arcfour-tests: Likewise.
29028         * modules/gc-arctwo-tests: Likewise.
29029         * modules/gc-des-tests: Likewise.
29030         * modules/gc-hmac-md5-tests: Likewise.
29031         * modules/gc-hmac-sha1-tests: Likewise.
29032         * modules/gc-md2-tests: Likewise.
29033         * modules/gc-md4-tests: Likewise.
29034         * modules/gc-md5-tests: Likewise.
29035         * modules/gc-pbkdf2-sha1-tests: Likewise.
29036         * modules/gc-rijndael-tests: Likewise.
29037         * modules/gc-sha1-tests: Likewise.
29038         * modules/gc-tests: Likewise.
29039         * modules/getaddrinfo-tests: Likewise.
29040         * modules/hmac-md5-tests: Likewise.
29041         * modules/hmac-sha1-tests: Likewise.
29042         * modules/linked-list-tests: Likewise.
29043         * modules/linkedhash-list-tests: Likewise.
29044         * modules/lock-tests: Likewise.
29045         * modules/md2-tests: Likewise.
29046         * modules/md4-tests: Likewise.
29047         * modules/md5-tests: Likewise.
29048         * modules/rbtree-list-tests: Likewise.
29049         * modules/rbtree-oset-tests: Likewise.
29050         * modules/rbtreehash-list-tests: Likewise.
29051         * modules/read-file-tests: Likewise.
29052         * modules/rijndael-tests: Likewise.
29053         * modules/stdint-tests: Likewise.
29054         * modules/tls-tests: Likewise.
29055
29056 2007-02-24  Bruno Haible  <bruno@clisp.org>
29057
29058         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
29059         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
29060         function; instead check whether isnan with a double argument links.
29061         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
29062         function; instead check whether isnan with a 'long double' argument
29063         links.
29064         Reported by Eric Blake <ebb9@byu.net>.
29065
29066 2007-02-24  Bruno Haible  <bruno@clisp.org>
29067
29068         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
29069         defined.
29070         * lib/isnanl.c: Remove all code. Just include isnan.c.
29071         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
29072
29073 2007-02-25  Jim Meyering  <jim@meyering.net>
29074
29075         Avoid conflicting types for 'unsetenv' on FreeBSD.
29076         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
29077         conflicting with FreeBSD's (5.0 and 6.1) function declaration
29078         in stdlib.h.
29079
29080 2007-02-24  Bruno Haible  <bruno@clisp.org>
29081
29082         * modules/isnanl-nolibm-tests: New file.
29083         * tests/test-isnanl.c: New file.
29084
29085         * modules/isnanl-nolibm: New file.
29086         * lib/isnanl.h: New file.
29087         * lib/isnanl.c: New file.
29088         * m4/isnanl.m4: New file.
29089
29090 2007-02-24  Bruno Haible  <bruno@clisp.org>
29091
29092         * modules/isnan-nolibm-tests: New file.
29093         * tests/test-isnan.c: New file.
29094
29095         * modules/isnan-nolibm: New file.
29096         * lib/isnan.h: New file.
29097         * lib/isnan.c: New file.
29098         * m4/isnan.m4: New file.
29099
29100 2007-02-24  Bruno Haible  <bruno@clisp.org>
29101
29102         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
29103         assume that an exponent fits in 20 bits.
29104
29105 2007-02-24  Jim Meyering  <jim@meyering.net>
29106
29107         * m4/regex.m4: Update the description of the configure-time option,
29108         --without-included-regex, to state accurately what the defaults are,
29109         and perhaps to give people an idea why using this option is risky.
29110
29111 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
29112
29113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
29114         loops on small arguments.  This attempts to avoid the problem
29115         Bruno Haible reported for AIX 4.3.2 in
29116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
29117
29118 2007-02-23  Bruno Haible  <bruno@clisp.org>
29119
29120         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
29121         Needed for help2man.
29122
29123 2007-02-23  Karl Berry  <karl@gnu.org>
29124
29125         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
29126         exists, foo.h should be cvs-ignored, not committed.
29127
29128 2007-02-23  Eric Blake  <ebb9@byu.net>
29129
29130         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
29131         * lib/stat-time.h (includes): Likewise.
29132         * lib/utimecmp.c (includes): Likewise.
29133         * lib/utimens.h (includes): Likewise.
29134         * lib/getdate.y (includes): Also include "timespec.h" for use
29135         internal to the module.
29136         * modules/utimens (Depends-on): Revert yesterday's patch.
29137         * modules/nanosleep (Depends-on): Add missing dependency.
29138
29139 2007-02-22  Bruno Haible  <bruno@clisp.org>
29140
29141         * lib/glob.c: Don't include getlogin_r.h.
29142
29143 2007-02-22  Jim Meyering  <jim@meyering.net>
29144
29145         * modules/utimens (Depends-on): Add timespec, required for
29146         utimens.h's inclusion of timespec.h.
29147
29148 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29149
29150         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
29151         long unreadable paths in GNU/Linux.  Problem reported by Andreas
29152         Schwab in
29153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
29154         I'll try to think of a better way to fix the Solaris problem.
29155
29156         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
29157         like glibc; on Solaris 10, it fails with errno == EINVAL.
29158         POSIX says the behavior is unspecified if the first argument is NULL,
29159         so play it safe and never pass NULL to the system getcwd.
29160
29161 2007-02-21  Jim Meyering  <jim@meyering.net>
29162
29163         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
29164         of gettimeofday.  It would conflict with the one now always
29165         provided via sys_time_.h.  Reported by Matthew Woehlke, as
29166         an IRIX 6.5 build failure.
29167
29168 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29169
29170         Minor fixups to port to Solaris 10 with Sun C 5.8.
29171         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
29172         * modules/getcwd (Depends-on): Add dirfd.
29173         * lib/putenv.c (putenv): #undef it.
29174         (rpl_putenv): New decl.
29175         (malloc, free): Include <stdlib.h> rather than prototyping separately.
29176
29177 2007-02-20  Bruno Haible  <bruno@clisp.org>
29178
29179         * modules/stdio-tests: New file.
29180         * tests/test-stdio.c: New file.
29181
29182         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
29183         (Depends-on): Add stdio.
29184         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29185         (Include): Use <stdio.h> instead of vsnprintf.h.
29186         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
29187         HAVE_DECL_VSNPRINTF.
29188         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
29189
29190         * modules/snprintf (Files): Remove lib/snprintf.h.
29191         (Depends-on): Add stdio.
29192         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29193         (Include): Use <stdio.h> instead of snprintf.h.
29194         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
29195         HAVE_DECL_SNPRINTF.
29196         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
29197         * lib/getaddrinfo.c: Likewise.
29198
29199         * modules/stdio: New file.
29200         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
29201         * lib/snprintf.h: Remove file.
29202         * lib/vsnprintf.h: Remove file.
29203         * lib/.cppi-disable: Remove snprintf.h.
29204         * m4/stdio_h.m4: New file.
29205         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
29206
29207 2007-02-20  Jim Meyering  <jim@meyering.net>
29208
29209         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
29210         used by e.g., mingw.  From Bruno Haible.
29211
29212 2007-02-19  Bruno Haible  <bruno@clisp.org>
29213
29214         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
29215         warnings.
29216         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29217
29218 2007-02-19  Bruno Haible  <bruno@clisp.org>
29219
29220         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
29221         from mingw users.
29222
29223 2007-02-19  Bruno Haible  <bruno@clisp.org>
29224
29225         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
29226         warnings.
29227         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
29228
29229 2007-02-19  Jim Meyering  <jim@meyering.net>
29230
29231         Don't use FD after a successful "fdopendir (fd)".
29232         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
29233         Reset it by calling dirfd on the just-obtained DIR*.
29234
29235         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
29236         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
29237
29238 2007-02-18  Bruno Haible  <bruno@clisp.org>
29239
29240         * lib/readlink.c: Include <unistd.h>.
29241         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
29242         HAVE_READLINK.
29243         * modules/readlink (Depends-on): Add unistd.
29244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29245         (Include): Add <unistd.h>.
29246
29247         * lib/getlogin_r.h: Remove file.
29248         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
29249         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
29250         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
29251         HAVE_DECL_GETLOGIN_R.
29252         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
29253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29254         (Include): Use <unistd.h> instead of getlogin_r.h.
29255
29256         * lib/getcwd.h: Remove file.
29257         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
29258         * lib/xgetcwd.c: Likewise.
29259         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
29260         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
29261         * modules/getcwd (Files): Remove lib/getcwd.h.
29262         (Depends-on): Add unistd.
29263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29264         (Include): Use <unistd.h> instad of getcwd.h.
29265
29266         * lib/ftruncate.c: Include <unistd.h> first.
29267         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
29268         Set HAVE_FTRUNCATE.
29269         * modules/ftruncate (Depends-on): Add unistd.
29270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29271
29272         * lib/fchdir.c: Include <unistd.h> first.
29273         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
29274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
29275         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
29276         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29277         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
29278
29279         * lib/dup2.c: Include <unistd.h> first.
29280         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
29281         HAVE_DUP2.
29282         * modules/dup2 (Depends-on): Add unistd.
29283         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29284
29285         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
29286         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
29287         REPLACE_CHOWN. Don't define chown as a macro here.
29288         * modules/chown (Depends-on): Add unistd.
29289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29290
29291         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
29292         Add definition for GL_LINK_WARNING.
29293         (chown, dup2): New declarations.
29294         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
29295         link warning.
29296         (ftruncate): New declaration.
29297         (getcwd): New declaration, taken from old getcwd.h.
29298         (getlogin_r): New declaration, taken from old getlogin_r.h.
29299         (readlink): New declaration.
29300         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
29301         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
29302         (gl_PREREQ_UNISTD): Remove macro.
29303         (gl_UNISTD_MODULE_INDICATOR): New macro.
29304         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
29305         many new variables. Don't set UNISTD_H.
29306         * modules/unistd (Description): Change.
29307         (Depends-on): Add link-warning.
29308         (configure.ac): Update.
29309         (Makefile.am): Create unistd.h always. Substitute many new variables
29310         into it.
29311
29312 2007-02-18  Bruno Haible  <bruno@clisp.org>
29313
29314         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
29315         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
29316         HAVE_GETSUBOPT.
29317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
29318         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
29319         * lib/getsubopt.h: Remove file.
29320         * modules/getsubopt (Files): Remove lib/getsubopt.h.
29321         (Depends-on): Add stdlib.
29322         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29323         (Includes): Use <stdlib.h> instead of getsubopt.h.
29324         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
29325         Set HAVE_GETSUBOPT.
29326         * lib/getsubopt.c: Don't include getsubopt.h.
29327
29328 2007-02-18  Bruno Haible  <bruno@clisp.org>
29329
29330         * modules/fchdir (Depends-on): Add dup2.
29331
29332 2007-02-18  Bruno Haible  <bruno@clisp.org>
29333
29334         * lib/stdlib_.h: Handle glibc's special invocation convention
29335         specially.
29336
29337 2007-02-18  Bruno Haible  <bruno@clisp.org>
29338
29339         * modules/stdlib-tests: New file.
29340         * tests/test-stdlib.c: New file.
29341
29342         * modules/mkstemp (Files): Remove lib/mkstemp.h.
29343         (Depends-on): Add stdlib.
29344         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29345         (Includes): Use <stdlib.h> instead of mkstemp.h.
29346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
29347         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
29348         * lib/mkstemp.c: Don't include mkstemp.h.
29349         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
29350         * lib/stdlib--.h: Don't include mkstemp.h.
29351
29352         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
29353         (Depends-on): Add stdlib.
29354         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29355         (Includes): Use <stdlib.h> instead of mkdtemp.h.
29356         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
29357         HAVE_MKDTEMP.
29358         * lib/mkdtemp.c: Don't include mkdtemp.h.
29359         * lib/clean-temp.c: Don't include mkdtemp.h.
29360
29361         * modules/exit (Files): Remove lib/exit.h.
29362         (Depends-on): Add stdlib.
29363         (Makefile.am): Remove lib_SOURCES.
29364         (Include): Use <stdlib.h> instead of exit.h.
29365         * lib/argmatch.c: Don't include exit.h.
29366         * lib/execute.c: Likewise.
29367         * lib/pagealign_alloc.c: Likewise.
29368         * lib/pipe.c: Likewise.
29369         * lib/wait-process.c: Likewise.
29370         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
29371         * lib/exitfail.c: Likewise.
29372         * lib/savewd.c: Likewise.
29373         * lib/xsetenv.c: Likewise.
29374
29375         * modules/stdlib: New file.
29376         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
29377         and extra comments about mkstemp().
29378         * lib/exit.h: Remove file.
29379         * lib/mkdtemp.h: Remove file.
29380         * lib/mkstemp.h: Remove file.
29381         * m4/stdlib_h.m4: New file.
29382         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
29383
29384 2007-02-18  Bruno Haible  <bruno@clisp.org>
29385
29386         * modules/math-tests: New file.
29387         * tests/test-math.c: New file.
29388
29389         * modules/math: New file.
29390         * modules/mathl (Files): Remove lib/mathl.h.
29391         (Depends-on): Add math.
29392         (Makefile.am): Don't mention mathl.h.
29393         (Include): Use <math.h> instead of mathl.h.
29394         * lib/math_.h: New file.
29395         * lib/mathl.h: Remove file.
29396         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
29397         mathl.h.
29398         * lib/asinl.c: Likewise.
29399         * lib/atanl.c: Likewise.
29400         * lib/ceill.c: Likewise.
29401         * lib/cosl.c: Likewise.
29402         * lib/expl.c: Likewise.
29403         * lib/floorl.c: Likewise.
29404         * lib/frexpl.c: Likewise.
29405         * lib/ldexpl.c: Likewise.
29406         * lib/logl.c: Likewise.
29407         * lib/sincosl.c: Likewise.
29408         * lib/sinl.c: Likewise.
29409         * lib/sqrtl.c: Likewise.
29410         * lib/tanl.c: Likewise.
29411         * lib/trigl.c: Likewise.
29412         * m4/math_h.m4: New file.
29413         * MODULES.html.sh (Mathematics): Add math.
29414
29415 2007-02-17  Bruno Haible  <bruno@clisp.org>
29416
29417         * modules/wctype-tests: New file.
29418         * tests/test-wctype.c: New file.
29419
29420         * modules/wchar-tests: New file.
29421         * tests/test-wchar.c: New file.
29422
29423         * modules/unistd-tests: New file.
29424         * tests/test-unistd.c: New file.
29425
29426         * modules/time-tests: New file.
29427         * tests/test-time.c: New file.
29428
29429         * modules/sysexits-tests: New file.
29430         * tests/test-sysexits.c: New file.
29431
29432         * modules/sys_time-tests: New file.
29433         * tests/test-sys_time.c: New file.
29434
29435         * modules/sys_stat-tests: New file.
29436         * tests/test-sys_stat.c: New file.
29437
29438         * modules/sys_socket-tests: New file.
29439         * tests/test-sys_socket.c: New file.
29440
29441         * modules/sys_select-tests: New file.
29442         * tests/test-sys_select.c: New file.
29443
29444         * modules/string-tests: New file.
29445         * tests/test-string.c: New file.
29446
29447         * modules/stdbool-tests: New file.
29448         * tests/test-stdbool.c: New file.
29449
29450         * modules/netinet_in-tests: New file.
29451         * tests/test-netinet_in.c: New file.
29452
29453         * modules/inttypes-tests: New file.
29454         * tests/test-inttypes.c: New file.
29455
29456         * modules/fcntl-tests: New file.
29457         * tests/test-fcntl.c: New file.
29458
29459         * modules/byteswap-tests: New file.
29460         * tests/test-byteswap.c: New file.
29461
29462         * modules/arpa_inet-tests: New file.
29463         * tests/test-arpa_inet.c: New file.
29464
29465 2007-02-17  Bruno Haible  <bruno@clisp.org>
29466
29467         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
29468         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
29469         if the corresponding module is not enabled. Emit link warnings if
29470         the function is used nevertheless.
29471         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
29472         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
29473         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
29474         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
29475         * modules/inttypes (Depends-on): Add link-warning.
29476         (Makefile.am): Copy the contents of build-aux/link-warning.h into
29477         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
29478         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
29479         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
29480         * modules/imaxdiv (configure.ac): Likewise.
29481         * modules/strtoimax (configure.ac): Likewise.
29482         * modules/strtoumax (configure.ac): Likewise.
29483
29484 2007-02-17  Bruno Haible  <bruno@clisp.org>
29485
29486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
29487         gl_STRING_MODULE_INDICATOR_DEFAULTS.
29488         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
29489         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
29490
29491 2007-02-17  Bruno Haible  <bruno@clisp.org>
29492
29493         * modules/link-warning: New file.
29494         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
29495         * lib/string_.h (GL_LINK_WARNING): Remove definition.
29496         * modules/string (Depends-on): Add link-warning.
29497         (Makefile.am): Copy the contents of build-aux/link-warning.h into
29498         string.h.
29499         * MODULES.html.sh (Support for building libraries and executables): Add
29500         link-warning.
29501
29502 2007-02-17  Bruno Haible  <bruno@clisp.org>
29503
29504         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
29505         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
29506         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
29507         long lines.
29508
29509 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
29510             Bruno Haible  <bruno@clisp.org>
29511
29512         * modules/tmpfile: New file.
29513         * lib/tmpfile.c: New file.
29514         * m4/tmpfile.m4: New file.
29515         * MODULES.html.sh (func_all_modules): New section "Input/output".
29516
29517 2007-02-15  Bruno Haible  <bruno@clisp.org>
29518
29519         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
29520         (supports_delete_on_close): New function.
29521         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
29522
29523 2007-02-14  Bruno Haible  <bruno@clisp.org>
29524
29525         * modules/mbspcasecmp-tests: New file.
29526         * tests/test-mbspcasecmp.sh: New file.
29527         * tests/test-mbspcasecmp.c: New file.
29528
29529         New module mbspcasecmp.
29530         * modules/mbspcasecmp: New file.
29531         * lib/mbspcasecmp.c: New file.
29532         * lib/string_.h (strncasecmp): Change warning message.
29533         (mbspcasecmp): New declaration.
29534         * m4/mbspcasecmp.m4: New file.
29535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29536         GNULIB_MBSPCASECMP.
29537         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
29538         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
29539
29540 2007-02-14  Bruno Haible  <bruno@clisp.org>
29541
29542         * modules/mbsncasecmp-tests: New file.
29543         * tests/test-mbsncasecmp.sh: New file.
29544         * tests/test-mbsncasecmp.c: New file.
29545
29546         New module mbsncasecmp.
29547         * modules/mbsncasecmp: New file.
29548         * lib/mbsncasecmp.c: New file.
29549         * lib/string_.h (mbsncasecmp): New declaration.
29550         * m4/mbsncasecmp.m4: New file.
29551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29552         GNULIB_MBSNCASECMP.
29553         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
29554         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
29555
29556 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
29557
29558         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
29559         Verify that it doesn't overlap with our flags.
29560         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
29561         do not have the desired effect in multibyte locales; instead, use
29562         mbscasecmp.
29563         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
29564         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
29565         we don't require GNU fnmatch ourselves (if our users require it, they
29566         should do so explicitly).
29567
29568         Fix regex code so it doesn't rely on strcasecmp.
29569         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
29570         Otherwise, include gnulib's langinfo.h.
29571         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
29572         undesirable behavior in non-C locales.  Instead, rely on localecharset.
29573         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
29574         * modules/regex (FILES): Remove m4/codeset.m4.
29575         (Depends-on): Add localcharset.  Remove strcase.
29576
29577 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29578
29579         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
29580         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29581
29582 2007-02-13  Bruno Haible  <bruno@clisp.org>
29583
29584         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
29585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29586
29587 2007-02-12  Bruno Haible  <bruno@clisp.org>
29588
29589         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29590         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
29591         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
29592         time warning rather than a link error.
29593
29594 2007-02-12  Bruno Haible  <bruno@clisp.org>
29595
29596         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
29597         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29598         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29599
29600 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
29601
29602         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
29603         args, not 2.
29604
29605 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
29606
29607         New module 'time', so that apps can include <time.h> as per
29608         POSIX and GNU instead of separate include files like time_r.h
29609         and timegm.h.  This implementation tries out a simpler approach
29610         for replacing decls in standard include files (as compared to
29611         the string module), somewhat as an experiment.
29612
29613         * config/srclist.txt: Comment out mktime.c for now.
29614         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
29615         since it doesn't apply any more.  Use generic wording instead.
29616         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
29617         'time'.
29618         * lib/time_.h, m4/time_h.m4, modules/time: New files.
29619         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
29620         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
29621         Don't include <sys/types.h>; no longer needed since we assume C89.
29622         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
29623         * lib/strftime.c: Likewise.
29624         * lib/time_r.c: Likewise.
29625         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
29626         * lib/nanosleep.c: Include <time.h> first, to check interface.
29627         * lib/strptime.c: Likewise.
29628         * lib/time_r.c: Likewise.
29629         * lib/timegm.c: Likewise.
29630         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
29631         needed.
29632         * lib/timegm.c: Don't include timegm.h; no longer needed.
29633         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
29634         time.h now handles any problems in that area.
29635         (struct timespec, nanosleep): Remove; time.h now arranges for these.
29636         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
29637         that time.h defines struct timespec.
29638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
29639         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
29640         handles that.
29641         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
29642         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
29643         needed.  Set REPLACE_LOCALTIME.
29644         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
29645         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
29646         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
29647         nanosleep; time_h.m4 now does that.  Don't require
29648         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
29649         module handles this now.
29650         * modules/getdate (Depends-on): Remove timespec.  Add time.
29651         * modules/nanosleep (Depends-on): Likewise.
29652         * modules/stat-time (Depends-on): Likewise.
29653         * modules/nanosleep (Include): Include time.h, not timespec.h.
29654         * modules/strptime (Files): Remove lib/strptime.h.
29655         (Depends-on): Add extensions, time.
29656         (Include): Include time.h, not strptime.h.
29657         * modules/time_r (Files): Remove lib/time_r.h.
29658         (Depends-on): Add time.
29659         (Include): Include time.h, not time_r.h.
29660         * modules/timegm: Likewise.
29661         * modules/timespec (Description): Now does timespec-related decls
29662         of our own, instead of struct timespec itself.
29663         (Depends-on): Add time; remove extensions.
29664         (Maintainer): Add self.
29665         * modules/utimecmp (Depends-on): Add time; remove timespec.
29666         * modules/utimens (Depends-on): Likewise.
29667         * modules/xnanosleep (Depends-on): Likewise.
29668
29669 2007-02-11  Bruno Haible  <bruno@clisp.org>
29670
29671         * lib/c-strstr.c: Include allocsa.h.
29672         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29673         * lib/c-strcasestr.c: Include allocsa.h.
29674         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29675         * lib/strcasestr.c: Include allocsa.h.
29676         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29677         * lib/mbsstr.c: Include allocsa.h.
29678         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29679         allocsa/freesa instead of malloc/free.
29680         * lib/mbscasestr.c: Include allocsa.h.
29681         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29682         allocsa/freesa instead of malloc/free.
29683         * modules/c-strstr (Depends-on): Add allocsa.
29684         * modules/c-strcasestr (Depends-on): Likewise.
29685         * modules/strcasestr (Depends-on): Likewise.
29686         * modules/mbsstr (Depends-on): Likewise.
29687         * modules/mbscasestr (Depends-on): Likewise.
29688
29689 2007-02-11  Bruno Haible  <bruno@clisp.org>
29690
29691         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
29692
29693         * modules/mbsspn-tests: New file.
29694         * tests/test-mbsspn.sh: New file.
29695         * tests/test-mbsspn.c: New file.
29696
29697 2007-02-11  Bruno Haible  <bruno@clisp.org>
29698
29699         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
29700
29701         * modules/mbspbrk-tests: New file.
29702         * tests/test-mbspbrk.sh: New file.
29703         * tests/test-mbspbrk.c: New file.
29704
29705 2007-02-11  Bruno Haible  <bruno@clisp.org>
29706
29707         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
29708         unneeded cast.
29709
29710         * modules/mbscspn-tests: New file.
29711         * tests/test-mbscspn.sh: New file.
29712         * tests/test-mbscspn.c: New file.
29713
29714 2007-02-11  Bruno Haible  <bruno@clisp.org>
29715
29716         * modules/mbscasecmp-tests: New file.
29717         * tests/test-mbscasecmp.sh: New file.
29718         * tests/test-mbscasecmp.c: New file.
29719
29720 2007-02-11  Bruno Haible  <bruno@clisp.org>
29721
29722         Ensure O(n) worst-case complexity of mbscasestr.
29723         * lib/mbscasestr.c: Include stdbool.h.
29724         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29725         functions.
29726         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
29727         the bookkeeping indicates that it's worth it.
29728         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
29729
29730         * modules/mbscasestr-tests: New file.
29731         * tests/test-mbscasestr1.c: New file.
29732         * tests/test-mbscasestr2.sh: New file.
29733         * tests/test-mbscasestr2.c: New file.
29734         * tests/test-mbscasestr3.sh: New file.
29735         * tests/test-mbscasestr3.c: New file.
29736         * tests/test-mbscasestr4.sh: New file.
29737         * tests/test-mbscasestr4.c: New file.
29738         * m4/locale-tr.m4: New file.
29739
29740 2007-02-11  Bruno Haible  <bruno@clisp.org>
29741
29742         Ensure O(n) worst-case complexity of mbsstr.
29743         * lib/mbsstr.c: Include stdbool.h.
29744         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29745         functions.
29746         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
29747         bookkeeping indicates that it's worth it.
29748         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
29749
29750         * modules/mbsstr-tests: New file.
29751         * tests/test-mbsstr1.c: New file.
29752         * tests/test-mbsstr2.sh: New file.
29753         * tests/test-mbsstr2.c: New file.
29754         * tests/test-mbsstr3.sh: New file.
29755         * tests/test-mbsstr3.c: New file.
29756         * m4/locale-fr.m4: New file.
29757
29758 2007-02-11  Bruno Haible  <bruno@clisp.org>
29759
29760         * lib/mbsrchr.c (mbsrchr): Fix bug.
29761
29762         * modules/mbsrchr-tests: New file.
29763         * tests/test-mbsrchr.sh: New file.
29764         * tests/test-mbsrchr.c: New file.
29765
29766 2007-02-11  Bruno Haible  <bruno@clisp.org>
29767
29768         * lib/mbschr.c (mbschr): Fix bug.
29769
29770         * modules/mbschr-tests: New file.
29771         * tests/test-mbschr.sh: New file.
29772         * tests/test-mbschr.c: New file.
29773         * m4/locale-zh.m4: New file.
29774
29775 2007-02-11  Bruno Haible  <bruno@clisp.org>
29776
29777         Support for copying multibyte string iterators.
29778         * lib/mbiter.h: Include <string.h>.
29779         (mbiter_multi_copy): New function.
29780         (mbi_copy): New macro.
29781         * lib/mbuiter.h: Include <string.h>.
29782         (mbuiter_multi_copy): New function.
29783         (mbui_copy): New macro.
29784
29785 2007-02-11  Bruno Haible  <bruno@clisp.org>
29786
29787         New module mbslen.
29788         * modules/mbslen: New file.
29789         * lib/mbslen.c: New file.
29790         * lib/string_.h (mbslen): New declaration.
29791         * m4/mbslen.m4: New file.
29792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29793         GNULIB_MBSLEN.
29794         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
29795         * MODULES.html.sh (Internationalization functions): Add mbslen.
29796
29797 2007-02-11  Bruno Haible  <bruno@clisp.org>
29798
29799         Ensure O(n) worst-case complexity of strcasestr substitute.
29800         * lib/strcasestr.c: Include stdbool.h.
29801         (knuth_morris_pratt): New function.
29802         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29803         bookkeeping indicates that it's worth it.
29804         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
29805
29806         * modules/strcasestr-tests: New file.
29807         * tests/test-strcasestr.c: New file.
29808
29809 2007-02-11  Bruno Haible  <bruno@clisp.org>
29810
29811         Ensure O(n) worst-case complexity of c_strcasestr.
29812         * lib/c-strcasestr.c: Include stdbool.h, string.h.
29813         (knuth_morris_pratt): New function.
29814         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
29815         the bookkeeping indicates that it's worth it.
29816         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
29817
29818         * modules/c-strcasestr-tests: New file.
29819         * tests/test-c-strcasestr.c: New file.
29820
29821 2007-02-11  Bruno Haible  <bruno@clisp.org>
29822
29823         Ensure O(n) worst-case complexity of c_strstr.
29824         * lib/c-strstr.c: Include stdbool.h, string.h.
29825         (knuth_morris_pratt): New function.
29826         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29827         bookkeeping indicates that it's worth it.
29828         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
29829
29830         * lib/c-strstr.c: Complete rewrite for maintainability.
29831
29832         * modules/c-strstr-tests: New file.
29833         * tests/test-c-strstr.c: New file.
29834
29835 2007-02-11  Bruno Haible  <bruno@clisp.org>
29836
29837         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
29838         5.2.1 and earlier, whereby \055 was treated just like the range
29839         delimiter '-'.
29840         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29841
29842 2007-02-08  Bruno Haible  <bruno@clisp.org>
29843
29844         * modules/regex (Depends-on): Add stdbool.
29845         Reported by Dalibor Topic <robilad@kaffe.org>.
29846
29847 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29848
29849         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
29850         Prefer returning from main to exiting from it.
29851         Remove unnecessary parens after sizeof.
29852
29853 2007-02-05  Bruno Haible  <bruno@clisp.org>
29854
29855         New module mbssep.
29856         * modules/mbssep: New file.
29857         * lib/mbssep.c: New file.
29858         * lib/string_.h (strsep): Add a conditional link warning.
29859         (mbssep): New declaration.
29860         * m4/mbssep.m4: New file.
29861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29862         GNULIB_MBSSEP.
29863         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
29864         * MODULES.html.sh (Internationalization functions): Add mbssep.
29865
29866 2007-02-05  Bruno Haible  <bruno@clisp.org>
29867
29868         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
29869         Optimize search in case of 1 delimiter.
29870
29871 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
29872
29873         * lib/acl.h: Include sys/types.h before sys/acl.h.
29874
29875 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
29876
29877         Merge upstream fix for glibc bugzilla #3957:
29878
29879         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
29880
29881         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
29882         bit for RE_HAT_LISTS_NOT_NEWLINE.
29883         (build_charclass_op): Remove bogus comment.
29884
29885 2007-02-05  Simon Josefsson  <simon@josefsson.org>
29886
29887         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
29888
29889 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
29890
29891         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
29892         * lib/memmem.c [!defined _LIBC]: Include config.h.
29893
29894 2007-02-04  Bruno Haible  <bruno@clisp.org>
29895
29896         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
29897         warning message.
29898
29899 2007-02-04  Bruno Haible  <bruno@clisp.org>
29900
29901         New module mbstok_r.
29902         * modules/mbstok_r: New file.
29903         * lib/mbstok_r.c: New file.
29904         * lib/string_.h (strtok_r): Change argument names to match the
29905         comments. Add a conditional link warning.
29906         (mbstok_r): New declaration.
29907         * m4/mbstok_r.m4: New file.
29908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29909         GNULIB_MBSTOK_R.
29910         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
29911         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
29912
29913 2007-02-04  Bruno Haible  <bruno@clisp.org>
29914
29915         New module mbsspn.
29916         * modules/mbsspn: New file.
29917         * lib/mbsspn.c: New file.
29918         * lib/string_.h (strspn): Add a conditional link warning.
29919         (mbsspn): New declaration.
29920         * m4/mbsspn.m4: New file.
29921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29922         GNULIB_MBSSPN.
29923         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
29924         * MODULES.html.sh (Internationalization functions): Add mbsspn.
29925
29926 2007-02-04  Bruno Haible  <bruno@clisp.org>
29927
29928         New module mbspbrk.
29929         * modules/mbspbrk: New file.
29930         * lib/mbspbrk.c: New file.
29931         * lib/string_.h (strpbrk): Add a conditional link warning.
29932         (mbspbrk): New declaration.
29933         * m4/mbspbrk.m4: New file.
29934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29935         GNULIB_MBSPBRK.
29936         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
29937         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
29938
29939 2007-02-04  Bruno Haible  <bruno@clisp.org>
29940
29941         New module mbscspn.
29942         * modules/mbscspn: New file.
29943         * lib/mbscspn.c: New file.
29944         * lib/string_.h (strcspn): Add a conditional link warning.
29945         (mbscspn): New declaration.
29946         * m4/mbscspn.m4: New file.
29947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29948         GNULIB_MBSCSPN.
29949         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
29950         * MODULES.html.sh (Internationalization functions): Add mbscspn.
29951
29952 2007-02-04  Bruno Haible  <bruno@clisp.org>
29953
29954         New module mbscasestr, reduced goal of strcasestr.
29955         * modules/mbscasestr: New file.
29956         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
29957         (mbscasestr): Renamed from strcasestr.
29958         * lib/strcasestr.c: Don't include mbuiter.h.
29959         (strcasestr): Remove support for multibyte locales.
29960         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
29961         Change the conditional link warning.
29962         (mbscasestr): New declaration.
29963         * m4/mbscasestr.m4: New file.
29964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
29965         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
29966         REPLACE_STRCASESTR.
29967         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
29968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29969         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29970         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
29971         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
29972         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29973         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
29974         (Depends-on): Remove mbuiter.
29975         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
29976
29977 2007-02-04  Bruno Haible  <bruno@clisp.org>
29978
29979         Simplify handling of strncasecmp.
29980         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
29981         the conditional link warning.
29982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29983         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
29984         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
29985         * modules/strcase (configure.ac): Don't invoke
29986         gl_STRING_MODULE_INDICATOR.
29987         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
29988
29989 2007-02-04  Bruno Haible  <bruno@clisp.org>
29990
29991         New module mbscasecmp, reduced goal of strcasecmp.
29992         * modules/mbscasecmp: New file.
29993         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
29994         (mbscasecmp): Renamed from strcasecmp.
29995         * lib/strcasecmp.c: Don't include mbuiter.h.
29996         (strcasecmp): Remove support for multibyte locales.
29997         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
29998         Change the conditional link warning.
29999         (mbscasecmp): New declaration.
30000         * m4/mbscasecmp.m4: New file.
30001         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
30002         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
30003         REPLACE_STRCASECMP.
30004         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
30005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
30006         GNULIB_MBSCASECMP.
30007         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
30008         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
30009         * modules/strcase (Files): Remove m4/mbrtowc.m4.
30010         (Depends-on): Remove mbuiter.
30011         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
30012
30013 2007-02-04  Bruno Haible  <bruno@clisp.org>
30014
30015         New module mbsstr. Remove module strstr.
30016         * modules/mbsstr: New file.
30017         * modules/strstr: Remove file.
30018         * lib/mbsstr.c: Renamed from lib/strstr.c.
30019         (mbsstr): Renamed from strstr.
30020         * lib/string_.h (strstr): Remove declaration. Change the conditional
30021         link warning.
30022         (mbsstr): New declaration.
30023         * m4/mbsstr.m4: New file.
30024         * m4/strstr.m4: Remove file.
30025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30026         REPLACE_STRSTR.
30027         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
30028         Don't initialize GNULIB_STRSTR.
30029         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
30030         substitute GNULIB_STRSTR and REPLACE_STRSTR.
30031         * MODULES.html.sh (Internationalization functions): Add mbsstr.
30032         (Support for systems lacking ANSI C 89): Remove strstr.
30033
30034 2007-02-04  Bruno Haible  <bruno@clisp.org>
30035
30036         New module mbsrchr.
30037         * modules/mbsrchr: New file.
30038         * lib/mbsrchr.c: New file.
30039         * lib/string_.h (strrchr): Add a conditional link warning.
30040         (mbsrchr): New declaration.
30041         * m4/mbsrchr.m4: New file.
30042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
30043         GNULIB_MBSRCHR.
30044         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
30045         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
30046
30047 2007-02-04  Bruno Haible  <bruno@clisp.org>
30048
30049         New module mbschr.
30050         * modules/mbschr: New file.
30051         * lib/mbschr.c: New file.
30052         * lib/string_.h (strchr): Add a conditional link warning.
30053         (mbschr): New declaration.
30054         * m4/mbschr.m4: New file.
30055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
30056         GNULIB_MBSCHR.
30057         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
30058         * MODULES.html.sh (Internationalization functions): Add mbschr.
30059
30060 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
30061
30062         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
30063
30064         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
30065
30066 2007-02-04  Bruno Haible  <bruno@clisp.org>
30067
30068         New module description section 'configure.ac-early'.
30069         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
30070         (func_get_autoconf_early_snippet): New function.
30071         (func_import, func_create_testdir): Use it. Remove special cases for
30072         modules 'extensions' and 'lock'.
30073         * modules/extensions (configure.ac-early): Require
30074         gl_USE_SYSTEM_EXTENSIONS.
30075         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
30076
30077 2007-02-04  Bruno Haible  <bruno@clisp.org>
30078
30079         Make use of gcj-4.3's -fsource and -ftarget option.
30080         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
30081         and if so try the options -fsource and -ftarget.
30082         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
30083         source_version, ftarget_option, target_version arguments.
30084         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
30085         (is_envjavac_oldgcj_14_14_usable): Renamed from
30086         is_envjavac_gcj_14_14_usable.
30087         (is_envjavac_oldgcj_14_13_usable): Renamed from
30088         is_envjavac_gcj_14_13_usable.
30089         (is_gcj_present): Update.
30090         (is_gcj_43, is_gcj43_usable): New functions.
30091         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
30092         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
30093         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
30094         try the options -fsource and -ftarget.
30095
30096 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30097
30098         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
30099         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
30100         larger value.
30101
30102 2007-02-03  Jim Meyering  <jim@meyering.net>
30103
30104         Give tools a better chance to allocate space for very large buffers.
30105         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
30106
30107         Make pwd and readlink work also when run with an unreadable parent dir
30108         on systems with openat support.
30109         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
30110         provided getcwd function, even when we have openat support.
30111         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
30112
30113 2007-02-02  Bruno Haible  <bruno@clisp.org>
30114
30115         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
30116         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
30117         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
30118         portability problems if one of these functions is only used on specific
30119         platforms.
30120         Reported by Paul Eggert.
30121
30122 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
30123
30124         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
30125         is causing more trouble than it's curing.
30126         * lib/regex_internal.h (__mempcpy): Remove.
30127         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
30128         (and make the code a tad smaller to boot).
30129         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
30130
30131 2007-02-02  Jim Meyering  <jim@meyering.net>
30132
30133         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
30134         section, not in the Makefile.am: one.
30135
30136 2007-02-02  Eric Blake  <ebb9@byu.net>
30137
30138         * lib/strchrnul.c: Always include config.h first.
30139
30140         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
30141         gnulib strstr is not necessary here.
30142
30143 2007-02-02  Simon Josefsson  <simon@josefsson.org>
30144
30145         * m4/socklen.m4: Fix typo.
30146
30147 2007-02-02  Eric Blake  <ebb9@byu.net>
30148
30149         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
30150         * modules/netinet_in (Makefile.am): Likewise.
30151
30152 2007-02-01  Bruno Haible  <bruno@clisp.org>
30153
30154         * lib/string_.h (GL_LINK_WARNING): New macro.
30155         (strcasecmp, strstr, strcasestr): If provided by the system,
30156         conditionally define as a macro that leads to a warning instead of to
30157         an error.
30158         (strncasecmp): Conditionally define as a macro that leads to a warning.
30159
30160 2007-02-01  Karl Berry  <karl@gnu.org>
30161
30162         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
30163
30164 2007-02-01  Bruno Haible  <bruno@clisp.org>
30165
30166         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
30167         renamings.
30168
30169 2007-02-01  Eric Blake  <ebb9@byu.net>
30170
30171         * modules/regex (Depends-on): Revert dependence on mempcpy.
30172         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
30173         module's definition of mempcpy.
30174         Reported by Paul Eggert.
30175
30176 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
30177
30178         * lib/string_.h: If the gnulib module XYZ is not present, undefine
30179         the symbol XYZ before redefining it.  This fixes a problem with
30180         programs that don't use XYZ, when compiled on systems that define
30181         XYZ to something else.
30182
30183 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
30184
30185         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
30186         occurs when "mkdir -m foo" creates a setgid directory that is (1)
30187         writeable to group or other and (2) is intended to have a special
30188         mode bit that is set or cleared.  In such a case, the directory
30189         should be neither group- nor other-writeable until the special
30190         mode bits are right.
30191
30192 2007-01-31  Eric Blake  <ebb9@byu.net>
30193
30194         * modules/mountlist (Depends-on): Add strstr.
30195
30196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
30197         bug.
30198         * modules/string (Makefile.am): Remove redundant replacement.
30199         * modules/regex (Depends-on): Add mempcpy.
30200
30201 2007-01-31  Bruno Haible  <bruno@clisp.org>
30202
30203         New module description field 'Link'.
30204         * gnulib-tool (func_usage): Document --extract-link-directive.
30205         (sed_extract_prog): Recognize 'Link' directive.
30206         (func_get_link_directive): New function.
30207         (func_import): Show summary of link directives.
30208         Handle --extract-link-directive option.
30209         * modules/acl (Link): New section.
30210         * modules/clock-time (Link): New section.
30211         * modules/euidaccess (Link): New section.
30212         * modules/gettext (Link): New section.
30213         * modules/iconv (Link): New section.
30214         * modules/lock (Link): New section.
30215         * modules/nanosleep (Link): New section.
30216         * modules/readline (Link): New section.
30217
30218 2007-01-27  Bruno Haible  <bruno@clisp.org>
30219
30220         Enforce the use of gnulib modules for unportable <string.h> functions.
30221         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
30222         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
30223         (gl_HEADER_STRING_H_BODY): Require it.
30224         * lib/string_.h: If the gnulib module XYZ is not present, redefine
30225         the symbol XYZ to one that gives a link error.
30226         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
30227         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
30228         * modules/mempcpy (configure.ac): Likewise.
30229         * modules/memrchr (configure.ac): Likewise.
30230         * modules/stpcpy (configure.ac): Likewise.
30231         * modules/stpncpy (configure.ac): Likewise.
30232         * modules/strcase (configure.ac): Likewise.
30233         * modules/strcasestr (configure.ac): Likewise.
30234         * modules/strchrnul (configure.ac): Likewise.
30235         * modules/strdup (configure.ac): Likewise.
30236         * modules/strndup (configure.ac): Likewise.
30237         * modules/strnlen (configure.ac): Likewise.
30238         * modules/strpbrk (configure.ac): Likewise.
30239         * modules/strsep (configure.ac): Likewise.
30240         * modules/strstr (configure.ac): Likewise.
30241         * modules/strtok_r (configure.ac): Likewise.
30242
30243 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
30244
30245         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
30246
30247 2007-01-30  Jim Meyering  <jim@meyering.net>
30248
30249         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
30250
30251 2007-01-29  Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
30254         * lib/execute.c: Likewise.
30255         * lib/pipe.c: Likewise.
30256         * lib/printf-args.h: Likewise.
30257         * lib/printf-args.c: Likewise.
30258         * lib/printf-parse.c: Likewise.
30259         * lib/vasnprintf.c: Likewise.
30260
30261 2007-01-29  Eric Blake  <ebb9@byu.net>
30262
30263         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
30264         declaration.
30265
30266 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
30267
30268         * lib/strptime.h (strptime): Use 'restrict' for args where
30269         POSIX requires this.
30270         * lib/strptime.c (strptime): Likewise.
30271         Change license notice from LGPL to GPL, since gnulib-tool will
30272         change this as needed.
30273         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
30274         defined.
30275         Include "strptime.h" first, to check interface.
30276         Do not #undef _LIBC and _NL_CURRENT.
30277         Do not include <stdlib.h>; no longer needed.
30278         Include "time_r.h" and declare ptime_locale_status
30279         only if _LIBC is not defined.
30280         (__P): Remove unused macro.
30281         (match_string): Bring back glibc version, but use it only if _LIBC
30282         is defined.
30283         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
30284         Remove unnecessary assertion and abort() call.
30285         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
30286         * m4/strptime.m4: Fix serial number comment.
30287         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
30288         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
30289         (Depends-on): Add time_r.
30290
30291 2007-01-29  Bruno Haible  <bruno@clisp.org>
30292
30293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30294         strptime.
30295         * modules/strptime (Depends-on): Add stdbool.
30296         * lib/strptime.h: Include <time.h> always. Add comments.
30297
30298 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30299
30300         * modules/strptime: New file.
30301         * lib/strptime.h: New file.
30302         * lib/strptime.c: New file.
30303         * m4/strptime.m4: New file.
30304
30305 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30306
30307         * MODULES.html.sh: New module mpsort.
30308         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
30309
30310         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
30311         a circularity problem with HP-UX ia64 reported by Bob Proulx in
30312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
30313         All uses changed.
30314         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
30315         All uses changed.
30316         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
30317         to _Restrict_.
30318         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
30319         the parameter matches the prototype.
30320
30321 2007-01-28  Jim Meyering  <jim@meyering.net>
30322
30323         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
30324         sys/time.h here, reverting that part of the previous patch:
30325         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
30326
30327 2007-01-28  Bruno Haible  <bruno@clisp.org>
30328
30329         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
30330         value of $(SYS_TIME_H).
30331         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
30332         remove it conditionally, too. [added by Jim Meyering]
30333         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
30334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
30335         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
30336         GETTIMEOFDAY_REPLACEMENT to 1.
30337
30338 2007-01-28  Bruno Haible  <bruno@clisp.org>
30339
30340         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
30341         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
30342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
30343         Set UNISTD_H instead of UNISTD_H2.
30344         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
30345
30346 2007-01-28  Bruno Haible  <bruno@clisp.org>
30347
30348         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
30349         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
30350
30351 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30352
30353         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
30354         (func_create_testdir): Ensure C locale for `grep' and `tr'
30355         character ranges.
30356         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
30357         ACLOCAL_AMFLAGS parsing state machine.
30358
30359 2007-01-27  Bruno Haible  <bruno@clisp.org>
30360
30361         * modules/unistr/base: Update.
30362
30363 2007-01-27  Bruno Haible  <bruno@clisp.org>
30364
30365         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
30366         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
30367         * modules/unistr/u32-mbtouc-unsafe: Renamed from
30368         modules/unistr/u32-mbtouc.
30369         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
30370         * lib/unistr.h: Update.
30371         * lib/linebreak.c: Update.
30372         * modules/unistr/u32-mbtouc: Renamed from
30373         modules/unistr/u32-mbtouc-safe.
30374         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
30375         * lib/unistr.h: Update.
30376         * lib/unistr/u32-to-u8.c: Update.
30377         * lib/unistr/u32-to-u16.c: Update.
30378
30379 2007-01-27  Bruno Haible  <bruno@clisp.org>
30380
30381         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
30382         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
30383         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
30384         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
30385         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
30386         * modules/unistr/u16-mbtouc-unsafe: Renamed from
30387         modules/unistr/u16-mbtouc.
30388         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
30389         * lib/unistr.h: Update.
30390         * lib/linebreak.c: Update.
30391         * modules/linebreak: Update.
30392         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
30393         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
30394         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
30395         * modules/unistr/u16-mbtouc: Renamed from
30396         modules/unistr/u16-mbtouc-safe.
30397         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
30398         * lib/unistr.h: Update.
30399         * lib/unistr/u16-to-u8.c: Update.
30400         * modules/unistr/u16-to-u8: Update.
30401         * lib/unistr/u16-to-u32.c: Update.
30402         * modules/unistr/u16-to-u32: Update.
30403
30404 2007-01-27  Bruno Haible  <bruno@clisp.org>
30405
30406         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
30407         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
30408         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
30409         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
30410         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
30411         * modules/unistr/u8-mbtouc-unsafe: Renamed from
30412         modules/unistr/u8-mbtouc.
30413         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
30414         * lib/unistr.h: Update.
30415         * lib/striconveh.c: Update.
30416         * modules/striconveh: Update.
30417         * lib/linebreak.c: Update.
30418         * modules/linebreak: Update.
30419         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
30420         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
30421         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
30422         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
30423         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
30424         * lib/unistr.h: Update.
30425         * lib/striconveh.c: Update.
30426         * modules/striconveh: Update.
30427         * lib/unistr/u8-to-u16.c: Update.
30428         * modules/unistr/u8-to-u16: Update.
30429         * lib/unistr/u8-to-u32.c: Update.
30430         * modules/unistr/u8-to-u32: Update.
30431
30432 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30433
30434         Sync from Libtool.
30435         * lib/argz.c: Do not include strings.h nor memory.h, include
30436         string.h unconditionally.  Patch by Simon Josefsson.
30437
30438 2007-01-27  Bruno Haible  <bruno@clisp.org>
30439
30440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
30441         from gl_HEADER_STRING_H_BODY.
30442         (gl_HEADER_STRING_H_BODY): Require it.
30443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
30444         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30445         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30446         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30447         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30448         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
30449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30450         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30451         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
30452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30453         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30454         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
30455         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30456         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30457         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30458
30459 2007-01-27  Bruno Haible  <bruno@clisp.org>
30460
30461         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
30462         check_PROGRAMS into noinst_PROGRAMS.
30463         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
30464         check_PROGRAMS in this case.
30465         (func_import): Set for_test to false.
30466         (func_create_testdir): Set for_test to true.
30467
30468 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30469             Bruno Haible  <bruno@clisp.org>
30470
30471         * modules/strcasestr (Files): Remove lib/strcasestr.h.
30472         (Depends-on): Add string.
30473         (Includes): Use <string.h> instead of strcasestr.h.
30474         * modules/string (Makefile.am): Also substitute the value of
30475         REPLACE_STRCASESTR.
30476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
30477         assume strcasestr is declared in <string.h> not <strings.h>. Also
30478         set REPLACE_STRCASESTR.
30479         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
30480         REPLACE_STRCASESTR.
30481         * lib/strcasestr.h: Remove file.
30482         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
30483         * lib/string_.h (strcasestr): New declaration.
30484
30485 2007-01-27  Bruno Haible  <bruno@clisp.org>
30486
30487         * lib/string_.h: Use 'extern'.
30488
30489 2007-01-27  Jim Meyering  <jim@meyering.net>
30490
30491         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
30492         of set-but-not-used local, "q".
30493
30494         * lib/mempcpy.c: Include <config.h> before <string.h>.
30495         This fixes a compilation error on HP-UX, due to the system's
30496         "restrict"-using mempcpy prototype.
30497
30498 2007-01-26  Bruno Haible  <bruno@clisp.org>
30499
30500         Small optimization.
30501         * lib/javacomp.c: Include c-strstr.h.
30502          (is_envjavac_gcj): Use c_strstr instead of strstr.
30503         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
30504
30505 2007-01-26  Bruno Haible  <bruno@clisp.org>
30506
30507         * MODULES.html.sh (Unicode string functions): Add the new modules.
30508
30509         * modules/uniconv/u32-strconv-to-locale: New file.
30510         * lib/uniconv/u32-strconv-to-locale.c: New file.
30511
30512         * modules/uniconv/u16-strconv-to-locale: New file.
30513         * lib/uniconv/u16-strconv-to-locale.c: New file.
30514
30515         * modules/uniconv/u8-strconv-to-locale: New file.
30516         * lib/uniconv/u8-strconv-to-locale.c: New file.
30517
30518         * modules/uniconv/u32-strconv-from-locale: New file.
30519         * lib/uniconv/u32-strconv-from-locale.c: New file.
30520
30521         * modules/uniconv/u16-strconv-from-locale: New file.
30522         * lib/uniconv/u16-strconv-from-locale.c: New file.
30523
30524         * modules/uniconv/u8-strconv-from-locale: New file.
30525         * lib/uniconv/u8-strconv-from-locale.c: New file.
30526
30527         * modules/uniconv/u32-strconv-to-enc: New file.
30528         * lib/uniconv/u32-strconv-to-enc.c: New file.
30529         * modules/uniconv/u32-strconv-to-enc-tests: New file.
30530         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
30531
30532         * modules/uniconv/u16-strconv-to-enc: New file.
30533         * lib/uniconv/u16-strconv-to-enc.c: New file.
30534         * lib/uniconv/u-strconv-to-enc.h: New file.
30535         * modules/uniconv/u16-strconv-to-enc-tests: New file.
30536         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
30537
30538         * modules/uniconv/u8-strconv-to-enc: New file.
30539         * lib/uniconv/u8-strconv-to-enc.c: New file.
30540         * modules/uniconv/u8-strconv-to-enc-tests: New file.
30541         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
30542
30543         * modules/uniconv/u32-strconv-from-enc: New file.
30544         * lib/uniconv/u32-strconv-from-enc.c: New file.
30545         * modules/uniconv/u32-strconv-from-enc-tests: New file.
30546         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
30547
30548         * modules/uniconv/u16-strconv-from-enc: New file.
30549         * lib/uniconv/u16-strconv-from-enc.c: New file.
30550         * modules/uniconv/u16-strconv-from-enc-tests: New file.
30551         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
30552
30553         * modules/uniconv/u8-strconv-from-enc: New file.
30554         * lib/uniconv/u8-strconv-from-enc.c: New file.
30555         * lib/uniconv/u-strconv-from-enc.h: New file.
30556         * modules/uniconv/u8-strconv-from-enc-tests: New file.
30557         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
30558
30559         * modules/uniconv/u32-conv-from-enc: New file.
30560         * lib/uniconv/u32-conv-from-enc.c: New file.
30561         * modules/uniconv/u32-conv-from-enc-tests: New file.
30562         * tests/uniconv/test-u32-conv-from-enc.c: New file.
30563
30564         * modules/uniconv/u16-conv-from-enc: New file.
30565         * lib/uniconv/u16-conv-from-enc.c: New file.
30566         * lib/uniconv/u-conv-from-enc.h: New file.
30567         * modules/uniconv/u16-conv-from-enc-tests: New file.
30568         * tests/uniconv/test-u16-conv-from-enc.c: New file.
30569
30570         * modules/uniconv/u8-conv-from-enc: New file.
30571         * lib/uniconv/u8-conv-from-enc.c: New file.
30572         * modules/uniconv/u8-conv-from-enc-tests: New file.
30573         * tests/uniconv/test-u8-conv-from-enc.c: New file.
30574
30575         * modules/uniconv/base: New file.
30576         * lib/uniconv.h: New file.
30577
30578 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
30579
30580         * doc/gnulib-tool.texi (Initial import): Update to match current
30581         behavior with strdup module.
30582         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
30583         * lib/memmem.h: Remove; all uses removed.  This is now done
30584         by <string.h>.
30585         * lib/mempcpy.h: Likewise.
30586         * lib/memrchr.h: Likewise.
30587         * lib/stpcpy.h: Likewise.
30588         * lib/stpncpy.h: Likewise.
30589         * lib/strcase.h: Likewise.
30590         * lib/strchrnul.h: Likewise.
30591         * lib/strdup.h: Likewise.
30592         * lib/strndup.h: Likewise.
30593         * lib/strnlen.h: Likewise.
30594         * lib/strpbrk.h: Likewise.
30595         * lib/strsep.h: Likewise.
30596         * lib/strstr.h: Likewise.
30597         * lib/strtok_r.h: Likewise.
30598         * lib/string_.h: New file.
30599         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
30600         Rely on <string.h> instead.
30601         * lib/canon-host.c: Likewise.
30602         * lib/chdir-long.c: Likewise.
30603         * lib/concatpath.c: Likewise.
30604         * lib/exclude.c: Likewise.
30605         * lib/fchdir.c: Likewise.
30606         * lib/getaddrinfo.c: Likewise.
30607         * lib/getcwd.c: Likewise.
30608         * lib/getsubopt.c: Likewise.
30609         * lib/glob.c: Likewise.
30610         * lib/hard-locale.c: Likewise.
30611         * lib/iconvme.c: Likewise.
30612         * lib/javacomp.c: Likewise.
30613         * lib/mempcpy.c: Likewise.
30614         * lib/memrchr.c: Likewise.
30615         * lib/regex_internal.h: Likewise.
30616         * lib/stpncpy.c: Likewise.
30617         * lib/strcasecmp.c: Likewise.
30618         * lib/strchrnul.c: Likewise.
30619         * lib/strdup.c: Likewise.
30620         * lib/striconv.c: Likewise.
30621         * lib/striconveh.c: Likewise.
30622         * lib/striconveha.c: Likewise.
30623         * lib/strncasecmp.c: Likewise.
30624         * lib/strndup.c: Likewise.
30625         * lib/strnlen.c: Likewise.
30626         * lib/strsep.c: Likewise.
30627         * lib/strstr.c: Likewise.
30628         * lib/strtok_r.c: Likewise.
30629         * lib/userspec.c: Likewise.
30630         * lib/w32spawn.h: Likewise.
30631         * lib/xstrndup.c: Likewise.
30632         * lib/mountlist.c (strstr): Remove decl.
30633         * m4/string_h.m4: New file.
30634         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
30635         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
30636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
30637         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
30638         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
30639         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
30640         Set REPLACE_STRCASECMP if necessary.
30641         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
30642         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
30643         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
30644         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
30645         HAVE_DECL_STRDUP if necessary.
30646         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
30647         since gl_FUNC_STRNDUP does that now.
30648         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
30649         Check for decl here...
30650         (gl_PREREQ_STRNLEN): ... not here.
30651         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
30652         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
30653         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
30654         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
30655         necessary.
30656         * modules/string: New file.
30657         * modules/memmem (Files): Remove special-purpose include file.
30658         (Depends-on): Add string.
30659         (Include): Include <string.h>, not the removed file.
30660         * modules/mempcpy: Likewise.
30661         * modules/memrchr: Likewise.
30662         * modules/stpcpy: Likewise.
30663         * modules/stpncpy: Likewise.
30664         * modules/strcase: Likewise.
30665         * modules/strchrnul: Likewise.
30666         * modules/strdup: Likewise.
30667         * modules/strndup: Likewise.
30668         * modules/strnlen: Likewise.
30669         * modules/strpbrk: Likewise.
30670         * modules/strsep: Likewise.
30671         * modules/strstr: Likewise.
30672         * modules/strtok_r: Likewise.
30673         * tests/test-dirname.c: Don't include "strdup.h", since
30674         <string.h> now suffices.
30675         * tests/test-memmem.c: Don't include "memmem.h", since
30676         <string.h> now suffices.
30677
30678 2007-01-25  Bruno Haible  <bruno@clisp.org>
30679
30680         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
30681         *resultp is 0.
30682
30683         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
30684         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
30685         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
30686         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
30687
30688         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
30689         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
30690         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
30691         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
30692         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
30693         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
30694
30695 2007-01-24  Bruno Haible  <bruno@clisp.org>
30696
30697         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
30698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
30699         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
30700         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
30701         gl_FUNC_FTS_CORE.
30702         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
30703         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
30704         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30705         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
30706         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
30707         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
30708         gl_FUNC_FCHOWNAT.
30709         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
30710         gl_FUNC_STRFTIME.
30711         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
30712         Reported by Ralf Wildenhues.
30713
30714 2007-01-24  Bruno Haible  <bruno@clisp.org>
30715
30716         Drop AC_REQUIRE calls that are redundant with the module dependencies.
30717         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
30718         gl_GETADDRINFO.
30719         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
30720         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
30721         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
30722
30723 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
30724
30725         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
30726         Don't use 'exit'; just return from 'main'.
30727         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
30728
30729         * lib/fnmatch_.h: Readjust white space and comments to match
30730         glibc, to avoid spurious diffs.
30731
30732 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30733
30734         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
30735         2004-12-01 change by Jakub Jelinek, since this code won't compile
30736         if !LIBC.  Problem reported by Bob Proulx.
30737
30738 2007-01-23  Bruno Haible  <bruno@clisp.org>
30739
30740         * lib/striconveh.c: Include c-strcaseeq.h.
30741         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
30742         * modules/striconveh (Depends-on): Add c-strcaseeq.
30743
30744 2007-01-23  Bruno Haible  <bruno@clisp.org>
30745
30746         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
30747
30748         * modules/c-strcaseeq: New file.
30749         * lib/c-strcaseeq.h: New file.
30750
30751         * modules/streq: New file.
30752         * lib/streq.h: New file.
30753
30754 2007-01-23  Bruno Haible  <bruno@clisp.org>
30755
30756         * modules/striconveha-tests: New file.
30757         * tests/test-striconveha.c: New file.
30758
30759         * lib/striconveha.h: Include <stdbool.h>.
30760         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
30761         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
30762         (mem_iconveha_notranslit): Renamed from mem_iconveha.
30763         (mem_iconveha): New function.
30764         (str_iconveha_notranslit): Renamed from str_iconveha.
30765         (str_iconveha): New function.
30766         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
30767         c-strcase.
30768
30769 2007-01-23  Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
30772         encodings without forgiving before trying any encoding with handler.
30773         (str_iconveha): Try all encodings without forgiving before trying any
30774         encoding with handler.
30775
30776 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30777
30778         Import the following changes from libc.
30779
30780         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
30781
30782         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
30783
30784         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
30785
30786         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
30787         normal_bracket label.
30788
30789         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
30790
30791         [BZ #361]
30792         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
30793         to normal_bracket after fetching the next character.
30794
30795 2007-01-22  Bruno Haible  <bruno@clisp.org>
30796
30797         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
30798         argument.
30799         * lib/striconveh.c (iconv_carefully_1): New function.
30800         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
30801         argument.
30802         (str_cd_iconveh): Update.
30803         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
30804         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
30805         * tests/test-striconveh.c (MAGIC): New macro.
30806         (new_offsets): New function.
30807         (main): Test call with and without offsets.
30808
30809 2007-01-22  Bruno Haible  <bruno@clisp.org>
30810
30811         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
30812         * modules/sys_select (Makefile.am): Likewise.
30813         * modules/sys_socket (Makefile.am): Likewise.
30814         * modules/sys_time (Makefile.am): Likewise.
30815
30816 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30817
30818         * modules/gettimeofday (License): Change from GPL to LGPL, since
30819         gettimeofday is a library function.
30820
30821 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30822
30823         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
30824
30825 2007-01-21  Bruno Haible  <bruno@clisp.org>
30826
30827         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
30828
30829 2007-01-21  Bruno Haible  <bruno@clisp.org>
30830
30831         * modules/striconveha: New file.
30832         * lib/striconveha.h: New file.
30833         * lib/striconveha.c: New file.
30834         * MODULES.html.sh (Internationalization functions): Add striconveha.
30835         * lib/striconv.c (str_iconv): Optimize the case of an empty input
30836         string.
30837         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
30838
30839 2007-01-21  Bruno Haible  <bruno@clisp.org>
30840
30841         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
30842         * lib/striconveh.c (str_iconveh): Likewise.
30843
30844 2007-01-21  Bruno Haible  <bruno@clisp.org>
30845
30846         * lib/striconveh.h (mem_iconveh): New declaration.
30847         * lib/striconveh.c (mem_iconveh): New function.
30848         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
30849
30850 2007-01-21  Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
30853
30854         * lib/striconveh.h (mem_cd_iconveh): Change specification.
30855         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
30856         original result buffer.
30857         (str_cd_iconveh): Update.
30858         * tests/test-striconveh.c (main): Update.
30859
30860         * lib/striconv.h (mem_cd_iconv): Change specification.
30861         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
30862         result buffer.
30863         (str_cd_iconv): Update.
30864         * tests/test-striconv.c (main): Update.
30865
30866 2007-01-21  Bruno Haible  <bruno@clisp.org>
30867
30868         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
30869
30870 2007-01-20  Jim Meyering  <jim@meyering.net>
30871
30872         * lib/userspec.c (parse_with_separator): If a user or group string
30873         starts with "+", skip the corresponding name-to-ID look-up, since
30874         such a look-up must fail: user and group names may not include "+".
30875
30876 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
30877
30878         * lib/poll.c: Include sys/time.h and time.h unconditionally,
30879         since we now assume the sys_time module.
30880         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
30881         check for sys/time.h; no longer needed.
30882         * modules/poll (Depends-on): Depend on sys_time.
30883
30884 2007-01-18  Bruno Haible  <bruno@clisp.org>
30885
30886         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
30887         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30888
30889         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
30890         gettimeofday.
30891
30892         * tests/test-gettimeofday.c: Include <time.h>.
30893         (dummy): Remove variable.
30894
30895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
30896         gl_HEADER_SYS_TIME_H.
30897         (gl_HEADER_SYS_TIME_H): New macro.
30898
30899         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
30900         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30901         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
30902         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
30903         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30904         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
30905         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
30906         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30907         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
30908         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
30909         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30910
30911         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
30912         last change; it caused a compilation error when cross-compiling to
30913         Cygwin.
30914
30915 2007-01-18  Jim Meyering  <jim@meyering.net>
30916
30917         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
30918         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
30919         than the race-prone "test -d sys || mkdir sys".
30920         (configure.ac): Use AC_PROG_MKDIR_P.
30921         * modules/sys_select: Likewise.
30922         * modules/sys_socket: Likewise.
30923         * modules/sys_time: Likewise.
30924
30925 2007-01-18  Eric Blake  <ebb9@byu.net>
30926
30927         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
30928         replace gettimeofday.
30929         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
30930         name, to avoid infinite recursion.
30931
30932 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
30933
30934         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
30935         module sys_time.
30936         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
30937         assume timespec.h defines struct timeval.
30938         * lib/settime.c: Likewise.
30939         * lib/utimens.c: Likewise.
30940         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
30941         since we now assume the gettimeofday module.
30942         * lib/tempname.c (__gen_tempname): Likewise.
30943         * lib/gettimeofday.h: Remove.
30944         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
30945         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
30946         Include <time.h>, for 'time()'.
30947         (localtime_buffer_addr): Also use this workaround if
30948         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
30949         to simplify the uses.  All uses changed.
30950         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
30951         that #undef is inside {}, and 'const' follows type name consistently.
30952         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
30953         (gettimeofday): Do not use the maximum possible value for
30954         tv->tv_usec, since that might break usages other than ls.c.
30955         Instead, we'll leave ls.c alone.  This undoes today's patch
30956         by Bruno.  Add a compile-time warning for 1s-clock resolution;
30957         we've never observed the problem but might as well keep the
30958         canary.
30959         * lib/nanosleep.c: Include timespec.h first, for interface check.
30960         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
30961         now assume the sys_time module.
30962         * lib/tempname.c: Likewise.
30963         * lib/timespec.h: Likewise.
30964         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
30965         needed.
30966         * lib/strftime.c: Likewise.
30967         * lib/timespec.h: Likewise.
30968         * lib/posixtm.c: Include posixtm.h first, for interface check.
30969         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
30970         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
30971         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
30972         * lib/sys_time_.h: New file.
30973         * lib/timespec.h (struct timespec): Use long int, not long.
30974         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
30975         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
30976         Remove obsolescent call to AC_HEADER_TIME.
30977         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
30978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30979         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30980         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
30981         Likewise.
30982         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
30983         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
30984         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
30985         into the sys_time module.  Check for gettimeofday just once.
30986         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
30987         for gettimeofday signature to just check the signature.  Merely
30988         compile it, since linking doesn't test signature.  Improve test for
30989         whether gettimeofday.o is actually needed.
30990         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
30991         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
30992         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
30993         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30994         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
30995         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
30996         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
30997         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
30998         than worrying about sys/time.h.
30999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
31000         Don't bother worrying about TIME_WITH_SYS_TIME.
31001         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31002         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
31003         * m4/sys_time_h.m4: New file.
31004         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
31005         Don't include sys/time.h.  Return from main rather than exiting.
31006         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
31007         all uses changed.
31008         * modules/gethrxtime (Depends-on): Add sys_time.
31009         * modules/gettime (Depends-on): Likewise.
31010         * modules/gettimeofday (Depends-on): Likewise.
31011         * modules/nanosleep (Depends-on): Likewise.
31012         * modules/settime (Depends-on): Likewise.
31013         * modules/tempname (Depends-on): Likewise.
31014         * modules/utimens (Depends-on): Likewise.
31015         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
31016         (Include:) Change back to <sys/time.h>.
31017         (Maintainer:) Add self.
31018         * modules/sys_time: New file.
31019         * modules/tempname (Depends-on): Add gettimeofday.
31020         * tests/test-gettimeofday.c: Include <sys/time.h>
31021         rather than gettimeofday.h.
31022
31023 2007-01-17  Bruno Haible  <bruno@clisp.org>
31024
31025         * gnulib-tool (func_get_license): Revert last patch. Instead, let
31026         the license default to GPL.
31027         (func_create_testdir): Don't complain if a module is LGPL and its
31028         tests module depends on GPLed modules.
31029
31030 2007-01-17  Bruno Haible  <bruno@clisp.org>
31031
31032         * lib/gettimeofday.c (gettimeofday): Add code for the case
31033         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
31034         maximum possible value for tv->tv_usec, rather than the minimum one.
31035
31036 2005-10-08  Martin Lambers  <marlam@marlam.de>
31037 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31038 2007-01-16  Bruno Haible  <bruno@clisp.org>
31039
31040         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
31041         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
31042         gl_FUNC_GETTIMEOFDAY.
31043         (Include): Add gettimeofday.h.
31044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
31045         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
31046         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
31047         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
31048         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
31049         * lib/gettimeofday.h: New file.
31050         * lib/gettimeofday.c: Include <sys/timeb.h>.
31051         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
31052         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
31053         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
31054         fall back on time().
31055
31056         * tests/test-gettimeofday.c: New file.
31057         * modules/gettimeofday-tests: New file.
31058
31059 2007-01-16  Eric Blake  <ebb9@byu.net>
31060
31061         * modules/fnmatch (Depends-on): Depend on wchar.
31062         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
31063         * m4/fnmatch.m4: Likewise.
31064         * modules/mbchar (Makefile.am): Assume <wchar.h>.
31065         * m4/mbchar.m4: Likewise.
31066         * modules/mbswidth (Depends-on): Depend on wchar.
31067         * lib/mbswidth.c: Assume <wchar.h>.
31068         * m4/mbswidth.m4: Likewise.
31069         * modules/quotearg (Depends-on): Depend on wchar.
31070         * lib/quotearg.c: Assume <wchar.h>.
31071         * m4/quotearg.m4: Likewise.
31072         * modules/regex (Depends-on): Depend on wchar.
31073         * lib/regex_internal.h: Assume <wchar.h>.
31074         * m4/regex.m4: Likewise.
31075         * modules/stdint (Depends-on): Depend on wchar.
31076         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
31077         * m4/stdint.m4: Likewise.
31078         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
31079         * modules/strftime (Depends-on): Depend on wchar.
31080         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
31081         * modules/strtol (Depends-on): Depend on wchar.
31082         * lib/strtol.c: Assume <wchar.h>.
31083         * modules/wcwidth (Depends-on): Depend on wchar.
31084         * lib/wcwidth.h: Assume <wchar.h>.
31085         * m4/wcwidth.m4: Likewise.
31086
31087 2007-01-16  Bruno Haible  <bruno@clisp.org>
31088
31089         * modules/csharpexec-script: New, created from...
31090         * modules/csharpexec: ... this.
31091
31092 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31093
31094         * modules/javaexec-script: New, created from...
31095         * modules/javaexec: ... this.
31096
31097 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31098
31099         * modules/poll (Dependencies): Add sys_select.
31100
31101 2007-01-15  Jim Meyering  <jim@meyering.net>
31102
31103         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
31104         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
31105         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
31106         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
31107
31108 2007-01-15  Bruno Haible  <bruno@clisp.org>
31109
31110         * modules/striconveh: New file.
31111         * lib/striconveh.h: New file.
31112         * lib/striconveh.c: New file.
31113         * MODULES.html.sh (Internationalization functions): Add striconveh.
31114
31115         * modules/striconveh-tests: New file.
31116         * tests/test-striconveh.c: New file.
31117
31118 2007-01-15  Bruno Haible  <bruno@clisp.org>
31119
31120         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
31121         not from GNU libiconv or GNU libc.
31122
31123 2007-01-15  Bruno Haible  <bruno@clisp.org>
31124
31125         * doc/gnulib-intro.texi (Copyright): Explain the different license
31126         terms for module descriptions, autoconf macros, tests, documentation.
31127
31128 2007-01-14  Bruno Haible  <bruno@clisp.org>
31129
31130         * modules/striconv-tests: New file.
31131         * tests/test-striconv.c: New file.
31132
31133 2007-01-14  Bruno Haible  <bruno@clisp.org>
31134
31135         * modules/iconv-tests: New file.
31136         * tests/test-iconv.c: New file.
31137
31138 2007-01-14  Bruno Haible  <bruno@clisp.org>
31139
31140         * gnulib-tool (func_get_license): For test modules, use the license of
31141         the main module.
31142
31143 2007-01-14  Bruno Haible  <bruno@clisp.org>
31144
31145         * modules/iconv (Include): Clarify that <iconv.h> can only be included
31146         if iconv is found to exist.
31147
31148 2007-01-14  Bruno Haible  <bruno@clisp.org>
31149
31150         * modules/c-ctype-tests: New file.
31151         * tests/test-c-ctype.c: New file.
31152
31153 2007-01-14  Bruno Haible  <bruno@clisp.org>
31154
31155         * modules/binary-io-tests: New file.
31156         * tests/test-binary-io.sh: New file.
31157         * tests/test-binary-io.c: New file.
31158
31159 2007-01-14  Bruno Haible  <bruno@clisp.org>
31160
31161         * modules/array-oset-tests: New file.
31162         * tests/test-array_oset.c: New file.
31163
31164 2007-01-14  Bruno Haible  <bruno@clisp.org>
31165
31166         * modules/array-list-tests: New file.
31167         * tests/test-array_list.c: New file.
31168
31169 2007-01-14  Bruno Haible  <bruno@clisp.org>
31170
31171         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
31172         and make.
31173         Reported by Simon Josefsson in
31174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
31175
31176 2007-01-14  Bruno Haible  <bruno@clisp.org>
31177
31178         * modules/allocsa-tests: New file.
31179         * tests/test-allocsa.c: New file.
31180
31181 2007-01-14  Bruno Haible  <bruno@clisp.org>
31182
31183         * modules/fchdir (Depends-on): Add absolute-header.
31184         * modules/unistd (Depends-on): Likewise.
31185
31186 2006-12-30  Bruno Haible  <bruno@clisp.org>
31187
31188         * modules/fchdir: New file.
31189         * modules/unistd (Files): Add lib/unistd_.h.
31190         (Makefile.am): Generate unistd.h from unistd_.h.
31191         * lib/fchdir.c: New file.
31192         * lib/dirent_.h: New file.
31193         * lib/unistd_.h: New file.
31194         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
31195         * m4/fchdir.m4: New file.
31196         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
31197         (gl_HEADER_UNISTD): Invoke it.
31198         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
31199         function.
31200         * lib/backupfile.c (opendir, closedir): Undefine.
31201         * lib/chown.c (open, close): Undefine.
31202         * lib/clean-temp.c (open, close): Undefine.
31203         * lib/copy-file.c (open, close): Undefine.
31204         * lib/execute.c (open, close): Undefine.
31205         * lib/fsusage.c (open, close): Undefine.
31206         * lib/gc-gnulib.c (open, close): Undefine.
31207         * lib/getcwd.c (opendir, closedir): Undefine.
31208         * lib/glob.c (opendir, closedir): Undefine.
31209         * lib/javacomp.c (open, close): Undefine.
31210         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
31211         * lib/openat-proc.c (open, close): Undefine.
31212         * lib/pagealign_alloc.c (open, close): Undefine.
31213         * lib/pipe.c (open, close): Undefine.
31214         * lib/progreloc.c (open, close): Undefine.
31215         * lib/savedir.c (opendir, closedir): Undefine.
31216         * lib/utime.c (open, close): Undefine.
31217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
31218
31219 2007-01-10  Bruno Haible  <bruno@clisp.org>
31220
31221         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
31222
31223 2007-01-12  Eric Blake  <ebb9@byu.net>
31224
31225         Provide a robust <wchar.h>.  Further simplifications are now
31226         possible in other modules, but not included here.
31227         * modules/wchar: New module.
31228         * m4/wchar.m4: New file.
31229         * lib/wchar_.h: Likewise.
31230         * modules/mbchar (Depends-on): Depend on wchar, as the first use
31231         of the new module.
31232         * MODULES.html.sh (Extended multibyte and wide character utilities):
31233         New section.
31234
31235 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31236
31237         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
31238         to a reasonable default for memory allocation.
31239         (xreadlink): Don't allocate a huge buffer, to work around a buggy
31240         file system that reports garbage st_size values for symlinks.
31241         Problem reported by Liyang Hu.
31242
31243 2007-01-11  Simon Josefsson  <simon@josefsson.org>
31244
31245         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
31246         Emacs .#* auto-save files).
31247
31248 2007-01-11  Bruno Haible  <bruno@clisp.org>
31249
31250         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
31251         directory.
31252
31253 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
31254
31255         Use @...@ consistently in lib/wctype_.h.
31256         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
31257         on it being set to 1 or 0.
31258         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
31259         go back to AC_SUBSTing it.
31260         * modules/wctype (Makefile.am): Undo previous change.
31261
31262 2007-01-10  Eric Blake  <ebb9@byu.net>
31263
31264         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
31265         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
31266         * modules/wctype (Makefile.am): Likewise.
31267         Reported by Chris McGuire.
31268
31269 2007-01-10  Jim Meyering  <jim@meyering.net>
31270
31271         fts.c: a small readability/maintainability improvement
31272         * lib/fts.c (fts_read): Make this code slightly more readable and
31273         maintainable by hoisting the "sp->fts_cur = p" assignments to
31274         immediately follow the statements that set P.  Derived from
31275         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
31276
31277 2007-01-10  Eric Blake  <ebb9@byu.net>
31278
31279         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
31280         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
31281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31282         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31283         Reported by Chris McGuire.
31284
31285 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31286
31287         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
31288         in sed script.
31289
31290 2007-01-09  Bruno Haible  <bruno@clisp.org>
31291
31292         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
31293         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
31294         variables.
31295         (func_module): Use them.
31296
31297 2007-01-09  Bruno Haible  <bruno@clisp.org>
31298
31299         * modules/unistr/base: New file.
31300         * lib/unistr.h: New file.
31301
31302         * modules/unistr/u8-to-u16: New file.
31303         * lib/unistr/u8-to-u16.c: New file.
31304
31305         * modules/unistr/u8-to-u32: New file.
31306         * lib/unistr/u8-to-u32.c: New file.
31307
31308         * modules/unistr/u16-to-u8: New file.
31309         * lib/unistr/u16-to-u8.c: New file.
31310
31311         * modules/unistr/u16-to-u32: New file.
31312         * lib/unistr/u16-to-u32.c: New file.
31313
31314         * modules/unistr/u32-to-u8: New file.
31315         * lib/unistr/u32-to-u8.c: New file.
31316
31317         * modules/unistr/u32-to-u16: New file.
31318         * lib/unistr/u32-to-u16.c: New file.
31319
31320         * modules/unistr/u8-check: New file.
31321         * modules/unistr/u16-check: New file.
31322         * modules/unistr/u32-check: New file.
31323         * lib/unistr/u8-check.c: New file.
31324         * lib/unistr/u16-check.c: New file.
31325         * lib/unistr/u32-check.c: New file.
31326
31327         * modules/unistr/u8-chr: New file.
31328         * modules/unistr/u16-chr: New file.
31329         * modules/unistr/u32-chr: New file.
31330         * lib/unistr/u8-chr.c: New file.
31331         * lib/unistr/u16-chr.c: New file.
31332         * lib/unistr/u32-chr.c: New file.
31333
31334         * modules/unistr/u8-cmp: New file.
31335         * modules/unistr/u16-cmp: New file.
31336         * modules/unistr/u32-cmp: New file.
31337         * lib/unistr/u8-cmp.c: New file.
31338         * lib/unistr/u16-cmp.c: New file.
31339         * lib/unistr/u32-cmp.c: New file.
31340
31341         * modules/unistr/u8-cpy: New file.
31342         * modules/unistr/u16-cpy: New file.
31343         * modules/unistr/u32-cpy: New file.
31344         * lib/unistr/u8-cpy.c: New file.
31345         * lib/unistr/u16-cpy.c: New file.
31346         * lib/unistr/u32-cpy.c: New file.
31347         * lib/unistr/u-cpy.h: New file.
31348
31349         * modules/unistr/u8-cpy-alloc: New file.
31350         * modules/unistr/u16-cpy-alloc: New file.
31351         * modules/unistr/u32-cpy-alloc: New file.
31352         * lib/unistr/u8-cpy-alloc.c: New file.
31353         * lib/unistr/u16-cpy-alloc.c: New file.
31354         * lib/unistr/u32-cpy-alloc.c: New file.
31355         * lib/unistr/u-cpy-alloc.h: New file.
31356
31357         * modules/unistr/u8-endswith: New file.
31358         * modules/unistr/u16-endswith: New file.
31359         * modules/unistr/u32-endswith: New file.
31360         * lib/unistr/u8-endswith.c: New file.
31361         * lib/unistr/u16-endswith.c: New file.
31362         * lib/unistr/u32-endswith.c: New file.
31363         * lib/unistr/u-endswith.h: New file.
31364
31365         * modules/unistr/u8-mblen: New file.
31366         * modules/unistr/u16-mblen: New file.
31367         * modules/unistr/u32-mblen: New file.
31368         * lib/unistr/u8-mblen.c: New file.
31369         * lib/unistr/u16-mblen.c: New file.
31370         * lib/unistr/u32-mblen.c: New file.
31371
31372         * modules/unistr/u8-mbtouc: New file.
31373         * modules/unistr/u16-mbtouc: New file.
31374         * modules/unistr/u32-mbtouc: New file.
31375         * lib/unistr/u8-mbtouc.c: New file.
31376         * lib/unistr/u16-mbtouc.c: New file.
31377         * lib/unistr/u32-mbtouc.c: New file.
31378
31379         * modules/unistr/u8-mbtouc-safe: New file.
31380         * modules/unistr/u16-mbtouc-safe: New file.
31381         * modules/unistr/u32-mbtouc-safe: New file.
31382         * lib/unistr/u8-mbtouc-safe.c: New file.
31383         * lib/unistr/u16-mbtouc-safe.c: New file.
31384         * lib/unistr/u32-mbtouc-safe.c: New file.
31385
31386         * modules/unistr/u8-move: New file.
31387         * modules/unistr/u16-move: New file.
31388         * modules/unistr/u32-move: New file.
31389         * lib/unistr/u8-move.c: New file.
31390         * lib/unistr/u16-move.c: New file.
31391         * lib/unistr/u32-move.c: New file.
31392         * lib/unistr/u-move.h: New file.
31393
31394         * modules/unistr/u8-next: New file.
31395         * modules/unistr/u16-next: New file.
31396         * modules/unistr/u32-next: New file.
31397         * lib/unistr/u8-next.c: New file.
31398         * lib/unistr/u16-next.c: New file.
31399         * lib/unistr/u32-next.c: New file.
31400
31401         * modules/unistr/u8-prev: New file.
31402         * modules/unistr/u16-prev: New file.
31403         * modules/unistr/u32-prev: New file.
31404         * lib/unistr/u8-prev.c: New file.
31405         * lib/unistr/u16-prev.c: New file.
31406         * lib/unistr/u32-prev.c: New file.
31407
31408         * modules/unistr/u8-set: New file.
31409         * modules/unistr/u16-set: New file.
31410         * modules/unistr/u32-set: New file.
31411         * lib/unistr/u8-set.c: New file.
31412         * lib/unistr/u16-set.c: New file.
31413         * lib/unistr/u32-set.c: New file.
31414         * lib/unistr/u-set.h: New file.
31415
31416         * modules/unistr/u8-startswith: New file.
31417         * modules/unistr/u16-startswith: New file.
31418         * modules/unistr/u32-startswith: New file.
31419         * lib/unistr/u8-startswith.c: New file.
31420         * lib/unistr/u16-startswith.c: New file.
31421         * lib/unistr/u32-startswith.c: New file.
31422         * lib/unistr/u-startswith.h: New file.
31423
31424         * modules/unistr/u8-stpcpy: New file.
31425         * modules/unistr/u16-stpcpy: New file.
31426         * modules/unistr/u32-stpcpy: New file.
31427         * lib/unistr/u8-stpcpy.c: New file.
31428         * lib/unistr/u16-stpcpy.c: New file.
31429         * lib/unistr/u32-stpcpy.c: New file.
31430         * lib/unistr/u-stpcpy.h: New file.
31431
31432         * modules/unistr/u8-stpncpy: New file.
31433         * modules/unistr/u16-stpncpy: New file.
31434         * modules/unistr/u32-stpncpy: New file.
31435         * lib/unistr/u8-stpncpy.c: New file.
31436         * lib/unistr/u16-stpncpy.c: New file.
31437         * lib/unistr/u32-stpncpy.c: New file.
31438         * lib/unistr/u-stpncpy.h: New file.
31439
31440         * modules/unistr/u8-strcat: New file.
31441         * modules/unistr/u16-strcat: New file.
31442         * modules/unistr/u32-strcat: New file.
31443         * lib/unistr/u8-strcat.c: New file.
31444         * lib/unistr/u16-strcat.c: New file.
31445         * lib/unistr/u32-strcat.c: New file.
31446         * lib/unistr/u-strcat.h: New file.
31447
31448         * modules/unistr/u8-strchr: New file.
31449         * modules/unistr/u16-strchr: New file.
31450         * modules/unistr/u32-strchr: New file.
31451         * lib/unistr/u8-strchr.c: New file.
31452         * lib/unistr/u16-strchr.c: New file.
31453         * lib/unistr/u32-strchr.c: New file.
31454
31455         * modules/unistr/u8-strcmp: New file.
31456         * modules/unistr/u16-strcmp: New file.
31457         * modules/unistr/u32-strcmp: New file.
31458         * lib/unistr/u8-strcmp.c: New file.
31459         * lib/unistr/u16-strcmp.c: New file.
31460         * lib/unistr/u32-strcmp.c: New file.
31461
31462         * modules/unistr/u8-strcpy: New file.
31463         * modules/unistr/u16-strcpy: New file.
31464         * modules/unistr/u32-strcpy: New file.
31465         * lib/unistr/u8-strcpy.c: New file.
31466         * lib/unistr/u16-strcpy.c: New file.
31467         * lib/unistr/u32-strcpy.c: New file.
31468         * lib/unistr/u-strcpy.h: New file.
31469
31470         * modules/unistr/u8-strcspn: New file.
31471         * modules/unistr/u16-strcspn: New file.
31472         * modules/unistr/u32-strcspn: New file.
31473         * lib/unistr/u8-strcspn.c: New file.
31474         * lib/unistr/u16-strcspn.c: New file.
31475         * lib/unistr/u32-strcspn.c: New file.
31476         * lib/unistr/u-strcspn.h: New file.
31477
31478         * modules/unistr/u8-strdup: New file.
31479         * modules/unistr/u16-strdup: New file.
31480         * modules/unistr/u32-strdup: New file.
31481         * lib/unistr/u8-strdup.c: New file.
31482         * lib/unistr/u16-strdup.c: New file.
31483         * lib/unistr/u32-strdup.c: New file.
31484         * lib/unistr/u-strdup.h: New file.
31485
31486         * modules/unistr/u8-strlen: New file.
31487         * modules/unistr/u16-strlen: New file.
31488         * modules/unistr/u32-strlen: New file.
31489         * lib/unistr/u8-strlen.c: New file.
31490         * lib/unistr/u16-strlen.c: New file.
31491         * lib/unistr/u32-strlen.c: New file.
31492         * lib/unistr/u-strlen.h: New file.
31493
31494         * modules/unistr/u8-strmblen: New file.
31495         * modules/unistr/u16-strmblen: New file.
31496         * modules/unistr/u32-strmblen: New file.
31497         * lib/unistr/u8-strmblen.c: New file.
31498         * lib/unistr/u16-strmblen.c: New file.
31499         * lib/unistr/u32-strmblen.c: New file.
31500
31501         * modules/unistr/u8-strmbtouc: New file.
31502         * modules/unistr/u16-strmbtouc: New file.
31503         * modules/unistr/u32-strmbtouc: New file.
31504         * lib/unistr/u8-strmbtouc.c: New file.
31505         * lib/unistr/u16-strmbtouc.c: New file.
31506         * lib/unistr/u32-strmbtouc.c: New file.
31507
31508         * modules/unistr/u8-strncat: New file.
31509         * modules/unistr/u16-strncat: New file.
31510         * modules/unistr/u32-strncat: New file.
31511         * lib/unistr/u8-strncat.c: New file.
31512         * lib/unistr/u16-strncat.c: New file.
31513         * lib/unistr/u32-strncat.c: New file.
31514         * lib/unistr/u-strncat.h: New file.
31515
31516         * modules/unistr/u8-strncmp: New file.
31517         * modules/unistr/u16-strncmp: New file.
31518         * modules/unistr/u32-strncmp: New file.
31519         * lib/unistr/u8-strncmp.c: New file.
31520         * lib/unistr/u16-strncmp.c: New file.
31521         * lib/unistr/u32-strncmp.c: New file.
31522
31523         * modules/unistr/u8-strncpy: New file.
31524         * modules/unistr/u16-strncpy: New file.
31525         * modules/unistr/u32-strncpy: New file.
31526         * lib/unistr/u8-strncpy.c: New file.
31527         * lib/unistr/u16-strncpy.c: New file.
31528         * lib/unistr/u32-strncpy.c: New file.
31529         * lib/unistr/u-strncpy.h: New file.
31530
31531         * modules/unistr/u8-strnlen: New file.
31532         * modules/unistr/u16-strnlen: New file.
31533         * modules/unistr/u32-strnlen: New file.
31534         * lib/unistr/u8-strnlen.c: New file.
31535         * lib/unistr/u16-strnlen.c: New file.
31536         * lib/unistr/u32-strnlen.c: New file.
31537         * lib/unistr/u-strnlen.h: New file.
31538
31539         * modules/unistr/u8-strpbrk: New file.
31540         * modules/unistr/u16-strpbrk: New file.
31541         * modules/unistr/u32-strpbrk: New file.
31542         * lib/unistr/u8-strpbrk.c: New file.
31543         * lib/unistr/u16-strpbrk.c: New file.
31544         * lib/unistr/u32-strpbrk.c: New file.
31545         * lib/unistr/u-strpbrk.h: New file.
31546
31547         * modules/unistr/u8-strrchr: New file.
31548         * modules/unistr/u16-strrchr: New file.
31549         * modules/unistr/u32-strrchr: New file.
31550         * lib/unistr/u8-strrchr.c: New file.
31551         * lib/unistr/u16-strrchr.c: New file.
31552         * lib/unistr/u32-strrchr.c: New file.
31553
31554         * modules/unistr/u8-strspn: New file.
31555         * modules/unistr/u16-strspn: New file.
31556         * modules/unistr/u32-strspn: New file.
31557         * lib/unistr/u8-strspn.c: New file.
31558         * lib/unistr/u16-strspn.c: New file.
31559         * lib/unistr/u32-strspn.c: New file.
31560         * lib/unistr/u-strspn.h: New file.
31561
31562         * modules/unistr/u8-strstr: New file.
31563         * modules/unistr/u16-strstr: New file.
31564         * modules/unistr/u32-strstr: New file.
31565         * lib/unistr/u8-strstr.c: New file.
31566         * lib/unistr/u16-strstr.c: New file.
31567         * lib/unistr/u32-strstr.c: New file.
31568         * lib/unistr/u-strstr.h: New file.
31569
31570         * modules/unistr/u8-strtok: New file.
31571         * modules/unistr/u16-strtok: New file.
31572         * modules/unistr/u32-strtok: New file.
31573         * lib/unistr/u8-strtok.c: New file.
31574         * lib/unistr/u16-strtok.c: New file.
31575         * lib/unistr/u32-strtok.c: New file.
31576         * lib/unistr/u-strtok.h: New file.
31577
31578         * modules/unistr/u8-uctomb: New file.
31579         * modules/unistr/u16-uctomb: New file.
31580         * modules/unistr/u32-uctomb: New file.
31581         * lib/unistr/u8-uctomb.c: New file.
31582         * lib/unistr/u16-uctomb.c: New file.
31583         * lib/unistr/u32-uctomb.c: New file.
31584
31585         * MODULES.html.sh (Unicode string functions): Add the new modules.
31586
31587 2007-01-08  Bruno Haible  <bruno@clisp.org>
31588
31589         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
31590         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
31591         subdirectories.
31592
31593 2007-01-08  Karl Berry  <karl@gnu.org>
31594
31595         * doc/error.texi: mention that main() fns must set program_name
31596         when progname is used.
31597
31598 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
31599
31600         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
31601         WCTYPE_H is empty, for the benefit of builds from non-distclean
31602         directories.  Problem reported by Eric Blake in
31603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
31604
31605 2007-01-08  Bruno Haible  <bruno@clisp.org>
31606
31607         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
31608         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
31609         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
31610         PROVIDE_CANONICALIZE_FILENAME_MODE.
31611         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
31612
31613 2007-01-08  Bruno Haible  <bruno@clisp.org>
31614
31615         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
31616         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
31617         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
31618         * lib/fts.c: Likewise.
31619         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
31620
31621 2006-12-25  Bruno Haible  <bruno@clisp.org>
31622
31623         * modules/utf8-ucs4-safe: New file.
31624         * lib/utf8-ucs4-safe.h: New file.
31625         * lib/unistr/utf8-ucs4-safe.c: New file.
31626
31627         * modules/utf16-ucs4-safe: New file.
31628         * lib/utf16-ucs4-safe.h: New file.
31629         * lib/unistr/utf16-ucs4-safe.c: New file.
31630
31631         * MODULES.html.sh (Unicode string functions): Add the new modules.
31632
31633 2007-01-08  Bruno Haible  <bruno@clisp.org>
31634
31635         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
31636         (Depends-on): Add unitypes.
31637         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31638         (u8_mbtouc_aux): Move out to separate file.
31639         (u8_mbtouc): Use ucs4_t, uint8_t types.
31640         * lib/unistr/utf8-ucs4.c: New file.
31641
31642         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
31643         (Depends-on): Add unitypes.
31644         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31645         (u16_mbtouc_aux): Move out to separate file.
31646         (u16_mbtouc): Use ucs4_t, uint16_t types.
31647         * lib/unistr/utf16-ucs4.c: New file.
31648
31649         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
31650         (Depends-on): Add unitypes.
31651         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
31652         (u8_uctomb_aux): Move out to separate file.
31653         (u8_uctomb): Use ucs4_t, uint8_t types.
31654         * lib/unistr/ucs4-utf8.c: New file.
31655
31656         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
31657         (Depends-on): Add unitypes.
31658         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
31659         (u16_uctomb_aux): Move out to separate file.
31660         (u16_uctomb): Use ucs4_t, uint16_t types.
31661         * lib/unistr/ucs4-utf16.c: New file.
31662
31663 2006-12-25  Bruno Haible  <bruno@clisp.org>
31664
31665         * modules/unitypes: New file.
31666         * lib/unitypes.h: New file.
31667         * MODULES.html.sh (func_all_modules): New section "Unicode string
31668         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
31669         this section. Add unitypes.
31670
31671 2007-01-08  Bruno Haible  <bruno@clisp.org>
31672
31673         Avoid variable names that conflict with those from libtool.
31674         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
31675         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
31676         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
31677         library_names_spec to acl_library_names_spec, hardcode_* to
31678         acl_hardcode_*.
31679         Reported by Ralf Wildenhues.
31680
31681 2007-01-08  Bruno Haible  <bruno@clisp.org>
31682
31683         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
31684         definition.
31685         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
31686         definition.
31687         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
31688         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
31689         definition.
31690         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
31691         definition.
31692         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
31693         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
31694         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
31695         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
31696         definition.
31697         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
31698         definition.
31699         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
31700         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
31701         GC_USE_<algorithm>.
31702         * lib/gc-libgcrypt.c: Likewise.
31703         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
31704         * modules/gc-arctwo (configure.ac): Likewise.
31705         * modules/gc-des (configure.ac): Likewise.
31706         * modules/gc-hmac-md5 (configure.ac): Likewise.
31707         * modules/gc-hmac-sha1 (configure.ac): Likewise.
31708         * modules/gc-md2 (configure.ac): Likewise.
31709         * modules/gc-md4 (configure.ac): Likewise.
31710         * modules/gc-md5 (configure.ac): Likewise.
31711         * modules/gc-random (configure.ac): Likewise.
31712         * modules/gc-rijndael (configure.ac): Likewise.
31713         * modules/gc-sha1 (configure.ac): Likewise.
31714
31715 2007-01-08  Bruno Haible  <bruno@clisp.org>
31716
31717         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
31718         macro definition.
31719         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
31720         definition.
31721         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
31722         definition.
31723         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
31724         * modules/fcntl-safer (configure.ac): Likewise.
31725         * modules/fopen-safer (configure.ac): Likewise.
31726         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
31727         GNULIB_FWRITEERROR macro definition.
31728
31729 2007-01-08  Bruno Haible  <bruno@clisp.org>
31730
31731         * m4/gnulib-common.m4: New file.
31732         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
31733         (func_get_filelist): Add m4/gnulib-common.m4.
31734
31735 2007-01-08  Bruno Haible  <bruno@clisp.org>
31736
31737         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
31738         command.
31739
31740 2007-01-08  Jim Meyering  <jim@meyering.net>
31741
31742         Use a more robust test for a "can't happen" condition.
31743         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
31744         narrowed the st_size value.  Presuming the "can't happen" condition
31745         is true, that narrowing could conceivably convert an invalid st_size
31746         value into a valid one.  Instead, use a change based on Matthew
31747         Woehlke's original patch.
31748
31749         Slight readability improvement: use an assert-like macro
31750         in place of literal "abort ()" uses.
31751         * lib/fts.c (fts_assert): Define.
31752         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
31753         Use this macro instead of a bare 'abort'.
31754
31755 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31756
31757         Don't worry about using IRIX 5.3's wctype.h broken definitions;
31758         simply work around them.
31759         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
31760         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
31761         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
31762         declaring.
31763         Don't bother to define as macros, since the standard doesn't require it.
31764         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
31765         longer worry about IRIX 5.3.
31766         (HAVE_WCTYPE_CTMP_BUG): Remove.
31767
31768 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31769
31770         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
31771         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
31772         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31773         Problems reported by Georg Schwarz for IRIX 5.3.
31774
31775         * gnulib-tool (autoconf_minversion): Take the maximum version number
31776         found, not the minimum.  Problem reported by James Youngman.
31777
31778 2007-01-03  Karl Berry  <karl@gnu.org>
31779
31780         * doc/error.texi: new file, explaining interaction with progname.
31781         * doc/gnulib.texi: include it.  Update copyright.
31782
31783 2007-01-03  Simon Josefsson  <simon@josefsson.org>
31784
31785         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
31786         AC_CANONICAL_HOST, to improve autobuild outputs.
31787
31788 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
31789             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31790
31791         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
31792         sockets, server sockets, and other file descriptors.  Count errors
31793         to compute the return value.  Reorder the code a bit to be easier
31794         to follow.  Don't set event bits that were not requested (except
31795         POLLERR and POLLHUP).
31796
31797 2007-01-01  Bruno Haible  <bruno@clisp.org>
31798
31799         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
31800
31801 2007-01-03  Jim Meyering  <jim@meyering.net>
31802
31803         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
31804
31805 2007-01-02  Bruno Haible  <bruno@clisp.org>
31806
31807         * modules/settime (Include): Require timespec.h.
31808         * modules/nanosleep (Include): Likewise.
31809
31810 2007-01-01  Bruno Haible  <bruno@clisp.org>
31811
31812         * gnulib-tool (func_emit_copyright_notice): Bump year.
31813         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
31814
31815 2007-01-01  Bruno Haible  <bruno@clisp.org>
31816
31817         Improve support for OpenBSD.
31818         * build-aux/config.rpath (libname_spec): Export.
31819         (library_names_spec): New variable. Export.
31820         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
31821         library_names_spec from the config.rpath output. Locate shared library
31822         through the name pattern in library_names_spec.
31823
31824 2007-01-01  Eric Blake  <ebb9@byu.net>
31825
31826         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
31827
31828 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
31829
31830         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
31831         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
31832         assume the C locale, and avoid an "eval" that could cause trouble.
31833         Problem with SORT reported by Bob Proulx.
31834
31835         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
31836         Define.  Trivial patch from Henning Nielsen Lund, originally
31837         sent to bug-grep@gnu.org today.
31838
31839 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31840
31841         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
31842         struct stat.  Problem reported by Henning Nielsen Lund.
31843         * lib/acl.c: Include acl.h first, to check interface.  Don't
31844         bother to include sys/types.h and sys/stat.h again.
31845
31846 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31847
31848         Import the following change from libc; problem reported by
31849         Sven Verdoolaege.
31850
31851         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
31852
31853         [BZ #1373]
31854         * lib/argp.h: Remove __NTH for __argp_usage inline function.
31855
31856 2006-12-28  Jim Meyering  <jim@meyering.net>
31857
31858         * build-aux/announce-gen: Do not assume that the package
31859         builds any of tar.gz, tar.bz2, and .xdelta files.
31860         Suggestion from Simon Josefsson.
31861
31862 2006-12-28  Simon Josefsson  <simon@josefsson.org>
31863
31864         * modules/announce-gen: New file.
31865
31866 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
31867
31868         * lib/mbchar.h: Just include <wctype.h>; the wctype module
31869         handles its gotchas now.
31870         * lib/mbswidth.c: Likewise.
31871         * lib/wcwidth.h: Likewise.
31872         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
31873         and iswcntrl; the wctype module does this stuff now.
31874         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31876         * modules/mbchar (Depends-on): Add wctype.
31877         * modules/mbswidth (Depends-on): Likewise.
31878         * modules/wcwidth (Depends-on): Likewise.
31879
31880 2006-12-27  Eric Blake  <ebb9@byu.net>
31881
31882         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
31883         module uses more than what <wctype.h> is required to provide.
31884
31885 2006-12-26  Eric Blake  <ebb9@byu.net>
31886
31887         * gnulib-tool (sed_extract_prog): Avoid space-tab.
31888
31889 2006-12-26  Eric Blake  <ebb9@byu.net>
31890
31891         * modules/absolute-header: New module.
31892         * modules/fcntl (Depends-on): Depend on it.
31893         * modules/inttypes (Depends-on): Likewise.
31894         * modules/stdint (Depends-on): Likewise.
31895         * modules/sys_stat (Depends-on): Likewise.
31896         * modules/wctype (Depends-on): Likewise.
31897         * MODULES.html.sh (Support for building libraries and
31898         executables): Document it.
31899
31900 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31901
31902         * gnulib-tool (SED): Remove, undoing previous change.
31903         The problem was that it broke coreutils on Solaris, because
31904         "sed --posix" leaked into a makefile.
31905         (sed): New alias, if 'alias' and GNU sed.
31906
31907 2006-12-24  Jim Meyering  <jim@meyering.net>
31908
31909         Work around an fchownat bug in glibc-2.4:
31910         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
31911         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
31912         in spite of the -P option.
31913         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
31914         New macros.
31915         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
31916         * modules/openat (Files): Add lib/fchownat.c.
31917         * lib/openat.c (fchownat): Don't define here.  Move to...
31918         * lib/fchownat.c: ...this new file.
31919
31920 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31921
31922         Fix bug reported by Bruno Haible in
31923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
31924         where quotearg.c didn't compile on Mac OS X 10.2 because it
31925         lacks <wchar.h> and wint_t.
31926         * lib/wctype_.h (__wctype_wint_t): New type.
31927         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
31928         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
31929         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
31930         Arg is now of type __wctype_wint_t, not wint_t.
31931         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
31932         substitute HAVE_WINT_T.
31933         * modules/wctype (Files): Add m4/wint_t.m4.
31934         (wctype.h): Substitute HAVE_WINT_T.
31935
31936 2006-12-23  Bruno Haible  <bruno@clisp.org>
31937
31938         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
31939
31940 2006-12-23  Bruno Haible  <bruno@clisp.org>
31941
31942         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
31943         S_ISLNK.
31944         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
31945         mingw.
31946
31947 2006-12-22  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/copy-file.c: Include acl.h.
31950         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
31951         Close the file descriptors only after being done with copy_acl.
31952         * modules/copy-file (Depends-on): Add acl.
31953
31954 2006-12-22  Bruno Haible  <bruno@clisp.org>
31955
31956         * gnulib-tool (SED): New variable.
31957         Use $SED instead of sed everywhere.
31958
31959 2006-12-22  Bruno Haible  <bruno@clisp.org>
31960
31961         * modules/no-c++: New file.
31962         * m4/no-c++.m4: New file.
31963         * MODULES.html.sh (Support for building libraries and executables):
31964         Add no-c++.
31965
31966 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
31967
31968         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31969         Include <limits.h>, and use its INT_MAX to rewrite the
31970         j loop so that it does not overflow 'int'.  Problem reported by
31971         Ralf Wildenhues in
31972         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
31973         Play it safe by shifting left by 1 rather than multiplying by 2,
31974         as GCC is less likely to optimize this away when the value
31975         is signed (when it assumes overflow leads to undefined behavior).
31976         Also, don't assume time_t uses two's complement.
31977
31978 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
31979
31980         * MODULES.html.sh: New module wctype.
31981         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
31982         * lib/fnmatch.c: Don't bother to include <wchar.h> before
31983         <wctype.h>, since the new wctype module should fix this.
31984         * lib/quotearg.c: Include <wctype.h> unconditionally, since
31985         the wctype module should arrange for it.
31986         * lib/regex_internal.h: Likewise.
31987         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
31988         since the wctype module should handle this now.
31989         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
31990         * modules/fnmatch (Depends-on): Add wctype.
31991         * modules/quotearg (Depends-on): Likewise.
31992         * modules/regex (Depends-on): Likewise.
31993
31994 2006-12-19  Bruno Haible  <bruno@clisp.org>
31995
31996         * lib/strdup.h [C++]: Wrap definitions in extern "C".
31997         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
31998
31999 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32000
32001         * modules/savewd (Depends-on): Fix dependency on fcntl.
32002
32003 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32004
32005         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
32006         conforms to C99, rather than relying on the user's environment
32007         setting of STDINT_H.
32008
32009 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32010         and Eric Blake  <ebb9@byu.net>
32011
32012         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
32013         This is more consistent with the other defines here.
32014         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
32015         Port to z/OS.  Problem reported by Paul Gilmartin.
32016         Change local vars to use gl_ prefix rather than ac_.
32017         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
32018         with other defines.
32019         * modules/double-slash-root: New module.
32020         * modules/dirname (Files): Remove m4/double-slash-root.m4.
32021         (Depends-on): Add double-slash-root.
32022         * MODULES.html.sh (File system functions): Mention new module.
32023
32024 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
32025
32026         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
32027         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
32028         This is for the benefit of gzip, which doesn't do i18n.
32029
32030 2006-12-12  Jim Meyering  <jim@meyering.net>
32031
32032         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
32033         Reported by Andreas Schwab <schwab@suse.de>.
32034
32035 2006-12-12  Bruno Haible  <bruno@clisp.org>
32036
32037         Merge these changes.
32038         2006-09-05  Bruno Haible  <bruno@clisp.org>
32039         * lib/iconvme.c (iconv_string): No need to save and restore errno when
32040         iconv_alloc succeeded.
32041         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
32042         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
32043         test for " && dest " at the end - dest is always != NULL there. Call
32044         iconv with 4xNULL arguments initially, to reset the state. Call iconv
32045         with 2xNULL arguments, also to flush the state storage. Handle the
32046         IRIX iconv behaviour. Realloc the final result, to throw away unused
32047         memory.
32048
32049 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32050
32051         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
32052         and fchmodat unconditionally, since glibc 2.4 has them.
32053         Problem reported by Arkadiusz Miskiewicz.
32054
32055 2006-12-10  Bruno Haible  <bruno@clisp.org>
32056
32057         * gnulib-tool (func_import): Show the include files only for those
32058         modules that are copied and specified.
32059         Reported by Karl Berry.
32060
32061 2006-12-08  Jim Meyering  <jim@meyering.net>
32062
32063         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
32064         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
32065
32066         * build-aux/announce-gen: Add two new options, both optional:
32067         --bootstrap-tools=TOOL_LIST
32068               a comma-separated list of tools, e.g.,
32069               autoconf,automake,bison,gnulib
32070         --gnulib-snapshot-date=DATE
32071               if gnulib is in the bootstrap tool list,
32072               then report this as the snapshot date.
32073               If not specified, use the current date/time.
32074               If you specify a date here, be sure it's UTC.
32075
32076 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32077
32078         * tests/test-argp-2.sh: Fix test to match actual output.
32079         (func_compare): Fix sed script to be portable.
32080
32081 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32082
32083         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
32084         workaround for this case.  It is not autoconfigured now; offhand
32085         it's hard to see how to autoconfigure it.
32086
32087 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32088
32089         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
32090         a directory that is about to be chowned.  Such a directory's
32091         initial file permissions should permit the owner only and this
32092         should not be changed until after the chown, since the group and
32093         other bits would be incorrect if they granted permission before
32094         the chown.
32095
32096         Fix porting problem for iswctype reported by Georg Schwarz in:
32097         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
32098         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
32099         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
32100         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
32101         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32102
32103 2006-12-03  Jim Meyering  <jim@meyering.net>
32104
32105         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
32106         p->fts_statp may not yet be defined.
32107         (fts_read): Instead, set it in the caller, once p->fts_statp is
32108         sure to be defined, and corresponds to a top-level directory.
32109         This bug made du -x fail.  Here's the coreutils test case:
32110         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
32111         Reported by Mike Frysinger.
32112
32113 2006-12-01  Jim Meyering  <jim@meyering.net>
32114
32115         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
32116         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
32117         Reported by Simon Josefsson.
32118
32119 2006-11-30  Jim Meyering  <jim@meyering.net>
32120
32121         * m4/warning.m4: Use the all-permissive copyright notice
32122         recommended by RMS (rather than LGPL).
32123         * m4/vararrays.m4: Likewise.
32124         * m4/flexmember.m4: Likewise.
32125
32126 2006-11-29  Bruno Haible  <bruno@clisp.org>
32127
32128         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32129         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
32130         using +=.
32131         Reported by Simon Josefsson <simon@josefsson.org>.
32132
32133 2006-11-28  James Youngman <jay@gnu.org>
32134
32135         * README: Advise users that they might find the bug-gnulib@gnu.org
32136         and autotools-announce@gnu.org mailing lists useful.
32137
32138 2006-11-28  Bruno Haible  <bruno@clisp.org>
32139
32140         * m4/ptrdiff_max.m4: Remove file.
32141
32142 2006-11-21  Bruno Haible  <bruno@clisp.org>
32143
32144         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
32145         _AC_COMPUTE_INT.
32146         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32147         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
32148         _AC_COMPUTE_INT.
32149         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32150         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
32151         _AC_COMPUTE_INT.
32152         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32153
32154 2006-11-28  Jim Meyering  <jim@meyering.net>
32155
32156         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
32157         warning from "gcc -Wshadow" about shadowing the builtin.
32158
32159 2006-11-27  Bruno Haible  <bruno@clisp.org>
32160
32161         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
32162         _AC_COMPUTE_INT.
32163         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32164
32165 2006-11-27  Bruno Haible  <bruno@clisp.org>
32166             Paul Eggert  <eggert@cs.ucla.edu>
32167
32168         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
32169
32170 2006-11-26  Bruno Haible  <bruno@clisp.org>
32171
32172         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32173         noinst_LTLIBRARIES.
32174
32175 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32176             Bruno Haible  <bruno@clisp.org>
32177
32178         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
32179         if compiling with "gcc -ansi".
32180
32181 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32182
32183         Fix some incompatibilities with gcc -ansi -pedantic.
32184         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
32185         if compiling pedantically with GCC, unless it's C99 or later.
32186         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
32187         it mishandles gcc -ansi -pedantic as well.
32188         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
32189         if gcc -pedantic.
32190         * lib/regexec.c (check_node_accept_bytes): Don't use auto
32191         initializers for struct if -pedantic, unless it's C99 or later.
32192
32193 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
32194
32195         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
32196         Don't close an fd more than once. Identical atimes indicate
32197         success, not failure.
32198
32199 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
32200
32201         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
32202
32203 2006-11-23  Jim Meyering  <jim@meyering.net>
32204
32205         * build-aux/announce-gen: New file.  From coreutils.
32206
32207 2006-11-22  Jim Meyering  <jim@meyering.net>
32208
32209         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
32210         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
32211         (fts_read): Use a temporary to narrow the overused st_size member
32212         before using it in a switch statement.  Reported by Matthew Woehlke.
32213
32214         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
32215         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32216
32217 2006-11-20  Bruno Haible  <bruno@clisp.org>
32218
32219         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
32220         changequote instead of pairs of brackets.
32221         Reported by Andreas Schwab <schwab@suse.de>.
32222
32223 2006-11-21  Jim Meyering  <jim@meyering.net>
32224
32225         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
32226         so as to remain compatible with older compilers.
32227         Patch from Michael Deutschmann.
32228
32229 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32230
32231         * MODULES.html.sh (File system functions): Add openat.
32232
32233         * lib/openat.h (rpl_fstatat): New macro, if
32234         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
32235         (fstatat): Define to rpl_fstatat under the same conditions,
32236         unless COMPILING_FSTATAT.
32237         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
32238         seems to have the bug.
32239         * lib/fstatat.c: New file.
32240         * modules/openat (Files): Add it.
32241
32242 2006-11-20  Bruno Haible  <bruno@clisp.org>
32243
32244         * Makefile: New file.
32245
32246 2006-11-20  Jim Meyering  <jim@meyering.net>
32247
32248         The beginnings of syntax-related checks for gnulib.
32249         * lib/Makefile: New file.
32250         * lib/t-idcache: New script.  Ensure that the two halves of
32251         idcache.c stay in sync.
32252
32253         * lib/idcache.c: Adjust comments in user- and group- portions to
32254         be more accurate, and to be consistent with one another.
32255
32256 2006-11-20  Jim Meyering  <jim@meyering.net>
32257
32258         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
32259         continue using the flexible array member (thus, this module performs
32260         half as many malloc calls), with the addition that...
32261         (getgroup, getuser): Consistently record a non-match via an empty
32262         "name" string, and map an empty string match to a NULL return value.
32263         * modules/idcache (Depends-on): Re-add flexmember.
32264
32265         * lib/idcache.c (getuser): Remove all uses of the register keyword.
32266         (getuidbyname, getgroup, getgidbyname): Likewise.
32267
32268         Use cleaner syntax: NULL rather than 0.
32269         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
32270
32271 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32272
32273         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
32274         It mishandled the case where the group was missing.
32275         Problem reported by Greg Schafer.
32276         * modules/idcache: Likewise.
32277
32278 2006-11-18  Jim Meyering  <jim@meyering.net>
32279
32280         * check-module (%exempt_header): Add exception for some
32281         conditionally-included headers.
32282
32283         * modules/i-ring (Depends-on): Add verify.
32284         (License): Change to LGPL.
32285
32286 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32287
32288         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
32289         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
32290         and inttostr.h.  Use snprintf rather than uinttostr, so that
32291         LGPLed code doesn't depend on GPLed.
32292
32293 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32294
32295         * modules/inline (License): Change from GPL to LGPL.
32296
32297 2006-11-17  Jim Meyering  <jim@meyering.net>
32298
32299         * modules/d-type (License): Switch to LGPL.
32300
32301 2006-11-15  Bruno Haible  <bruno@clisp.org>
32302
32303         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
32304
32305 2006-11-15  Eric Blake  <ebb9@byu.net>
32306
32307         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
32308         the module dependency.
32309
32310 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32311             Bruno Haible  <bruno@clisp.org>
32312
32313         * gnulib-tool (func_create_testdir): Add license consistency check.
32314
32315 2006-11-15  Eric Blake  <ebb9@byu.net>
32316
32317         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
32318         random "(cached)" in configure output.
32319
32320 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32321
32322         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
32323         test for conforming inttypes.h is both announced and cached.
32324
32325         * MODULES.html.sh (seen_modules, seen_files): New variables.
32326         (func_module): Rewrite to use a few less gnulib-tool and sed
32327         invocations.  Avoid a couple of quadratic algorithms for ...
32328         (missed_modules, missed_files): ... these, with ...
32329         (func_append, func_tmpdir): ... these new functions, from
32330         gnulib-tool.  Analogously, install traps for cleanup.
32331
32332         * tests/test-gc.c (main): Remove unused variables.
32333         * tests/test-read-file.c: Include stdlib.h, for 'free'.
32334
32335 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32336
32337         * modules/inttostr (License): Change to LGPL.
32338
32339 2006-11-14  Eric Blake  <ebb9@byu.net>
32340
32341         * modules/tempname (License): Change to LGPL.
32342
32343 2006-11-14  Eric Blake  <ebb9@byu.net>
32344
32345         * doc/functions.texi (Function Portability): *printf functions on
32346         Cygwin now understand all POSIX size specifiers.
32347
32348 2006-11-14  Bruno Haible  <bruno@clisp.org>
32349
32350         * modules/c-ctype (License): Change to LGPL.
32351
32352 2006-11-12  Bruno Haible  <bruno@clisp.org>
32353
32354         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32355         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
32356         for GNOME libraries, for which the include files are installed in
32357         subdirectories of $prefix/include.
32358
32359 2006-11-12  Bruno Haible  <bruno@clisp.org>
32360
32361         * m4/lib-link.m4: Require at least autoconf-2.54.
32362         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
32363         name to underscores for the --with option.
32364
32365 2006-11-13  Bruno Haible  <bruno@clisp.org>
32366
32367         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
32368         the tests directory.
32369         Reported by Ralf Wildenhues.
32370
32371 2006-11-13  Bruno Haible  <bruno@clisp.org>
32372
32373         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
32374         (func_emit_initmacro_end): Undo the override here.
32375         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
32376         Works around the famous automake error in coreutils.
32377
32378 2006-11-13  Eric Blake  <ebb9@byu.net>
32379
32380         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
32381         element, not its node.
32382
32383 2006-11-12  Bruno Haible  <bruno@clisp.org>
32384
32385         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
32386         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
32387
32388 2006-11-12  Bruno Haible  <bruno@clisp.org>
32389
32390         * gnulib-tool: New option --local-symlink.
32391         (func_usage): Document it.
32392         (lsymbolic): New variable.
32393         (func_import, func_create_testdir): If --symlink was not specified,
32394         test whether --local-symlink was specified and the file comes from
32395         the local_gnulib_dir.
32396
32397 2006-11-12  Bruno Haible  <bruno@clisp.org>
32398
32399         * gnulib-tool (func_ln): New function.
32400         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
32401
32402 2006-11-12  Bruno Haible  <bruno@clisp.org>
32403
32404         Finish support for source files in subdirectories.
32405         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
32406         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
32407         AUTOMAKE_OPTIONS.
32408         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
32409
32410 2006-11-12  Bruno Haible  <bruno@clisp.org>
32411
32412         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32413         EXTRA_lib_SOURCES augmentation.
32414         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
32415
32416 2006-11-12  Jim Meyering  <jim@meyering.net>
32417
32418         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
32419         file descriptors.  This also averts a failure on systems with
32420         native openat support when a traversed directory lacks "x" access.
32421         * lib/fts_.h: Include "i-ring.h"
32422         (struct FTS) [fts_fd_ring]: New member.
32423         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
32424         (FCHDIR): Add parentheses.
32425         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
32426         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
32427         When descending, rather than simply closing the previous
32428         fts_cwd_fd value, push that file descriptor onto the ring.
32429         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
32430         (fts_open): Initialize the new fd_ring member.
32431         (fts_close): Clear the ring.
32432         (fts_safe_changedir): When possible, use our new fd_ring to skip
32433         the diropen and fstat and dev/ino comparison that would normally
32434         accompany a virtual `chdir ("..")'.
32435
32436         * modules/fts (Depends-on): Add i-ring.
32437         * modules/i-ring: New module.
32438         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
32439         * m4/i-ring.m4: New file.
32440
32441 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32442
32443         * gnulib-tool (func_create_testdir): Fix replacement of
32444         `build-aux' in configure.ac.  Run autotools in gltests
32445         subdirectory.
32446         (func_create_testdir, func_create_megatestdir, test): There is
32447         no need for '--force' in most autotool invocations in a new
32448         tree.  Actually fail the whole test if any of the tools, or the
32449         configure or make stages fail.
32450
32451         Sync from Automake.
32452         * build-aux/gnupload: Revert last change.  Add pointer to upload
32453         instructions of the GNU Maintenance Instructions.
32454         Suggestion by Karl Berry.
32455
32456 2006-11-10  Jim Meyering  <jim@meyering.net>
32457
32458         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
32459
32460 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32461
32462         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
32463         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
32464         (bind_textdomain_codeset) [! ENABLE_NLS]:
32465         Evaluate all the arguments.  That way, callers get compatible behavior
32466         if the arguments have side effects.  Also, it avoids some GCC
32467         diagnostics in some cases; Joel E. Denny reported problems when Bison
32468         was configured with --enable-gcc-warnigs.
32469
32470 2006-11-10  Jim Meyering  <jim@meyering.net>
32471
32472         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
32473         relevant options in CFLAGS (like -O, -fno-inline) are taken into
32474         account.
32475
32476 2006-11-10  Jim Meyering  <jim@meyering.net>
32477
32478         * modules/inline: New file/module.
32479         * modules/xalloc (Files): Remove m4/inline.m4.
32480         (Depends-on): Add inline, instead.
32481         * modules/oset: Likewise.
32482         * modules/list: Likewise.
32483
32484 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32485
32486         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
32487         Problem reported by Matthew Woehlke.
32488
32489 2006-11-09  Bruno Haible  <bruno@clisp.org>
32490
32491         * lib/tempname.c (gen_tempname): Remove variant that invokes
32492         __gen_tempname.
32493         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
32494         __gen_tempname.
32495
32496 2006-11-08  Bruno Haible  <bruno@clisp.org>
32497
32498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
32499         to 'yes' instead of 'cross-compiling'.
32500
32501 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32502
32503         * lib/quotearg.h (quotearg_free): New decl.
32504         * lib/quotearg.c (quotearg_free): New function.
32505         (slot0, nslots, slotvec0, slotvec):
32506         Now file-scope so that quotearg_free can get at them.
32507
32508 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32509
32510         Sync from Automake.
32511         * build-aux/gnupload: Add missing 'gnu' to example URL.
32512         Report by Karl Berry.
32513
32514 2006-11-08  Bruno Haible  <bruno@clisp.org>
32515
32516         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
32517         Suggested by Paul Eggert.
32518
32519 2006-11-08  Jim Meyering  <jim@meyering.net>
32520
32521         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
32522         It's already included if !_LIBC.
32523         (fts_safe_changedir): Add a comment.
32524
32525 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32526
32527         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
32528         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
32529         Matthew Woehlke.
32530
32531         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
32532         definitions up, to avoid colliding with change below.
32533         (static_inline) [HAVE_INLINE]: New macro.
32534         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32535         Provide extern decls when !HAVE_INLINE.  Do not define unless
32536         static_inline is defined, either by us or by xmalloc.c.  Use
32537         static_inline rather than static inline.
32538         (XCALLOC): Optimize sizeof(T) = 1 case.
32539         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
32540
32541 2006-11-07  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
32544         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
32545         AC_C_INLINE.
32546         * modules/xalloc (Files): Add m4/inline.m4.
32547
32548 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32549
32550         * README: Fix typo.
32551         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
32552         (Miscellanous Notes): ...from this.
32553
32554 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32555
32556         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
32557         Mention that offsetof should be used instead of sizeof.
32558         From Bruno Haible.
32559
32560 2006-11-07  Bruno Haible  <bruno@clisp.org>
32561
32562         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
32563
32564 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32565
32566         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32567         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
32568         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32569         (gl_tree_add_before, gl_tree_add_after):
32570         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
32571         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
32572         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
32573         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
32574         (gl_linked_add_after, gl_linked_add_at): Likewise.
32575         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
32576         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32577         (gl_tree_add_before, gl_tree_add_after): Likewise.
32578         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
32579         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
32580         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32581
32582 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32583
32584         * lib/gl_oset.h: Use C comment style, not C++ comment style.
32585
32586 2006-11-06  Bruno Haible  <bruno@clisp.org>
32587
32588         * m4/inline.m4: New file.
32589         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
32590         * modules/list (Files): Add m4/inline.m4.
32591         * modules/oset (Files): Likewise.
32592
32593 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32594
32595         * lib/idcache.c: Include <stddef.h>, for offsetof.
32596         (struct userid.name): Change from char * to a flexible array member.
32597         All uses changed.
32598         * modules/idcache (Depends-on): Add flexmember.
32599
32600         * MODULES.html.sh (Core language properties): New module flexmember.
32601         * modules/flexmember, m4/flexmember.m4: New files.
32602
32603         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
32604         inline functions that are identical with the old xnmalloc_inline,
32605         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
32606         that we can avoid some unnecessary integer multiplications and
32607         divisions in the common case where the element size is known at
32608         compile time.
32609         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
32610         needed.
32611         (xnboundedmalloc): Remove.
32612         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
32613         arguments, for consistency with rest of this header.
32614         (xcharalloc): Rewrite using XNMALLOC.
32615         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
32616         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
32617         versions have been moved to lib/xalloc.h and renamed to be the
32618         non-*_inline versions.
32619         (xmalloc, xrealloc): Implement without reference to the xnmalloc
32620         and xnrealloc functions, since those functions are now inline and
32621         now call us.
32622         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
32623         renaming described above.
32624         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
32625         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
32626         captures the dependency in AC_C_INLINE.
32627
32628         New module canonicalize-lgpl, proposed by Charles Wilson in
32629         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
32630         with a few small changes afterwards.
32631         * MODULES.html.sh (File system functions): New module
32632         canonicalize-lgpl.
32633         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
32634         and canonicalize_file_name.
32635         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
32636         * modules/canonicalize-lgpl: New files.
32637
32638 2006-11-05  Bruno Haible  <bruno@clisp.org>
32639
32640         * gnulib-tool (func_import, func_create_testdir): Create directories
32641         also for files in subdirectories of lib/.
32642
32643 2006-11-05  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
32646         ANSI C compliant.
32647
32648 2006-11-03  Bruno Haible  <bruno@clisp.org>
32649
32650         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32651         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
32652         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
32653         (xnboundedmalloc): New inline function.
32654         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
32655         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
32656         xmalloc.
32657         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
32658         xmalloc.
32659         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
32660         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
32661         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
32662         xmalloc.
32663         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32664         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
32665         xmalloc.
32666         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
32667         gl_tree_add_after): Use XMALLOC instead of xmalloc.
32668         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
32669         xmalloc.
32670         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32671         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
32672         gl_tree_add_after): Use XMALLOC instead of xmalloc.
32673         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
32674         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
32675         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
32676         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
32677
32678 2006-11-03  Bruno Haible  <bruno@clisp.org>
32679
32680         * lib/c-ctype.h [C++]: Define functions without name mangling.
32681         * lib/fwriteerror.h [C++]: Likewise.
32682         * lib/gcd.h [C++]: Likewise.
32683         * lib/linebreak.h [C++]: Likewise.
32684
32685 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32686
32687         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
32688         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
32689         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
32690         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32691         Check for functions and headers just once.
32692         Check for declaration of canonicalize_file_name.
32693         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
32694
32695 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
32696
32697         * gnulib-tool (func_import): Fix typo in actioncmd.
32698
32699 2006-11-02  Bruno Haible  <bruno@clisp.org>
32700
32701         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
32702         newline sequence in the Makefile.am snippet as a space, like "make"
32703         does.
32704         Reported by Roger Persson <perrog@gmail.com>.
32705
32706 2006-11-01  Bruno Haible  <bruno@clisp.org>
32707
32708         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
32709         already declared in <string.h>.
32710         * lib/strcase.h (strncasecmp): Don't declare it if yes.
32711
32712 2006-11-01  Bruno Haible  <bruno@clisp.org>
32713
32714         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
32715         * lib/strcase.h: Include <string.h>.
32716         (strcasecmp): Define to rpl_strcasecmp here.
32717
32718 2006-11-01  Bruno Haible  <bruno@clisp.org>
32719
32720         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
32721
32722 2006-11-01  Eric Blake  <ebb9@byu.net>
32723
32724         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
32725
32726         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
32727
32728 2006-10-29  Bruno Haible  <bruno@clisp.org>
32729
32730         Make it compile in C++ mode.
32731         * lib/full-write.c (full_rw): Add a cast.
32732
32733 2006-11-01  Bruno Haible  <bruno@clisp.org>
32734
32735         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
32736         be POSIX compliant.
32737         Reported by Roger Persson <perrog@gmail.com>.
32738
32739 2006-11-01  Eric Blake  <ebb9@byu.net>
32740
32741         * lib/getopt_.h: Fix comments.
32742
32743 2006-10-31  Eric Blake  <ebb9@byu.net>
32744
32745         * modules/tmpdir (Depends-on): Add sys_stat.
32746         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
32747         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
32748         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
32749         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
32750         tempname.
32751
32752 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32753
32754         Avoid some C++ diagnostics reported by Bruno Haible.
32755         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
32756         xmalloc.
32757         (quotearg_alloc): Use xcharalloc rather than xmalloc.
32758         (struct slotvec): Move to top level.
32759         (quotearg_n_options): Rewrite to avoid xmalloc.
32760         * lib/xalloc.h (xcharalloc): New function.
32761         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
32762         [defined __cplusplus]: Add function template that provides result
32763         type propagation.  This part of the change is from Bruno Haible.
32764
32765 2006-10-29  Bruno Haible  <bruno@clisp.org>
32766
32767         Make it compile in C++ mode.
32768         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
32769         * lib/strnlen1.c (strnlen1): Cast memchr result.
32770         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
32771         * lib/clean-temp.c (string_equals, string_hash): Add casts.
32772         (create_temp_dir): Rename local variable 'template'.
32773         (compile_csharp_using_sscli): Add cast.
32774         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
32775         * lib/findprog.c (find_in_path): Likewise.
32776         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
32777         * lib/wait-process.c (register_slave_subprocess): Likewise.
32778
32779 2006-10-22  Bruno Haible  <bruno@clisp.org>
32780
32781         * modules/tsearch: New file.
32782         * lib/tsearch.h: New file.
32783         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
32784         * m4/tsearch.m4: New file.
32785         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
32786
32787 2006-10-29  Eric Blake  <ebb9@byu.net>
32788
32789         * lib/arcfour.c: Assume config.h.
32790         * lib/arctwo.c: Likewise.
32791         * lib/base64.c: Likewise.
32792         * lib/check-version.c: Likewise.
32793         * lib/crc.c: Likewise.
32794         * lib/des.c: Likewise.
32795         * lib/gc-gnulib.c: Likewise.
32796         * lib/gc-libgcrypt.c: Likewise.
32797         * lib/gc-pbkdf2-sha1.c: Likewise.
32798         * lib/getaddrinfo.c: Likewise.
32799         * lib/getdelim.c: Likewise.
32800         * lib/getline.c: Likewise.
32801         * lib/hmac-md5.c: Likewise.
32802         * lib/hmac-sha1.c: Likewise.
32803         * lib/iconvme.c: Likewise.
32804         * lib/md2.c: Likewise.
32805         * lib/md4.c: Likewise.
32806         * lib/memxor.c: Likewise.
32807         * lib/read-file.c: Likewise.
32808         * lib/readline.c: Likewise.
32809         * lib/rijndael-alg-fst.c: Likewise.
32810         * lib/rijndael-api-fst.c: Likewise.
32811         * lib/xgetdomainname.c: Likewise.
32812
32813 2006-10-28  Eric Blake  <ebb9@byu.net>
32814
32815         * lib/xstrndup.c: Assume config.h.
32816
32817 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
32818
32819         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
32820         stat-macros.h is now for our own macros, whereas stat_h is for
32821         macros in the <sys/stat.h> name space.
32822         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
32823         (STAT_MACROS_H): Remove.
32824         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
32825         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
32826         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
32827         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
32828         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
32829         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
32830         Move these macros to ...
32831         * lib/stat_.h: here.  Don't include stat-macros.h.
32832         * lib/canonicalize.c: Don't include stat-macros.h.
32833         * lib/chown.c: Likewise.
32834         * lib/euidaccess.c: Likewise.
32835         * lib/file-type.c: Likewise.
32836         * lib/filemode.c: Likewise.
32837         * lib/glob.c: Likewise.
32838         * lib/isapipe.c: Likewise.
32839         * lib/lchown.c: Likewise.
32840         * lib/lstat.c: Likewise.
32841         * lib/mkdir-p.c: Likewise.
32842         * lib/rmdir.c: Likewise.
32843         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
32844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
32845         unless mkdir isn't declared, to speed up 'configure'.
32846         Always create sys/stat.h, since it's unlikely any real sys/stat.h
32847         would define all the S_* symbols.
32848         * modules/canonicalize (Depends-on):
32849         Depend on sys_stat, not stat-macros.
32850         * modules/chown: Likewise.
32851         * modules/euidaccess: Likewise.
32852         * modules/filemode: Likewise.
32853         * modules/file-type: Likewise.
32854         * modules/glob: Likewise.
32855         * modules/isapipe: Likewise.
32856         * modules/lchown: Likewise.
32857         * modules/lstat: Likewise.
32858         * modules/mkancesdirs: Likewise.
32859         * modules/rmdir: Likewise.
32860         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
32861         * modules/modechange: Likewise.
32862         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
32863         (configure.ac): Remove gl_STAT_MACROS.
32864         * modules/sys_stat (Depends-on): Remove stat-macros.
32865
32866 2006-10-27  Bruno Haible  <bruno@clisp.org>
32867
32868         * m4/signed.m4: Remove file.
32869         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
32870         invocation.
32871         * modules/vasnprintf (Files): Remove m4/signed.m4.
32872
32873 2006-10-27  Bruno Haible  <bruno@clisp.org>
32874
32875         Update to GNU gettext 0.16.
32876         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
32877         m4/inttypes-h.m4, m4/signed.m4.
32878         * m4/gettext.m4: Update to GNU gettext 0.16.
32879         * m4/intl.m4: New file, from GNU gettext.
32880         * m4/intldir.m4: New file, from GNU gettext.
32881         * config/srclist.txt: Update
32882
32883 2006-10-27  Eric Blake  <ebb9@byu.net>
32884
32885         * MODULES.html.sh: Document tempname.
32886         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
32887         dependencies.
32888         (Files): Move lib/tempname.c...
32889         * modules/tempname: ...to this new module.
32890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
32891         (gl_PREREQ_TEMPNAME): Move...
32892         * m4/tempname.m4: ...to this new file.
32893         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
32894         * modules/sys_stat (Depends-on): Add stat-macros.
32895         * lib/stat_.h (includes): Pick up stat macros.
32896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
32897         if stat macros are broken.
32898         * lib/tempname.c (includes): No need to include "stat-macros.h".
32899         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
32900         (direxists, __path_search) [!_LIBC]: Don't compile these in
32901         gnulib; the tmpdir module covers that.
32902         * lib/tempname.h: New file.
32903
32904 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
32905
32906         * COPYING: Explain how gnulib-tool converts licence headers.
32907         Almost all wording by Eric Blake.
32908
32909 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
32910
32911         * lib/mbchar.h (is_basic_table): Make read-only.
32912         * lib/mbchar.c (is_basic_table): Likewise.
32913         Reported by John Darrington.
32914
32915 2006-10-25  Bruno Haible  <bruno@clisp.org>
32916
32917         * lib/progname.h (set_program_name): Undefine before defining.
32918
32919 2006-10-25  Bruno Haible  <bruno@clisp.org>
32920
32921         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
32922         false for non-gcc C++ compilers.
32923         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32924
32925 2006-10-24  Bruno Haible  <bruno@clisp.org>
32926
32927         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
32928         iconv implementations like Irix iconv.
32929
32930 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32931
32932         * modules/vararrays: New file.
32933         * m4/vararrays.m4: New file, taken from diffutils.
32934         * MODULES.html.sh: New module vararrays.
32935
32936 2006-10-24  Karl Berry  <karl@gnu.org>
32937
32938         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
32939         Don't call GNU Unix.
32940
32941 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32942
32943         * users.txt: Add Libtool.
32944
32945         Sync from Libtool:
32946
32947         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32948
32949         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
32950         to gnulib's policy of including config.h unconditionally.
32951
32952 2006-10-24  Bruno Haible  <bruno@clisp.org>
32953
32954         * modules/wcwidth (Files): Add m4/wint_t.m4.
32955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
32956         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
32957
32958 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32959
32960         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
32961         to pacify GCC with some -W flags enabled.  Problem reported by
32962         Bruno Haible.
32963
32964 2006-10-24  Jim Meyering  <jim@meyering.net>
32965
32966         * MODULES.html.sh: Remove uinttostr.  It's not a module.
32967         Reported by Karl Berry.
32968
32969 2006-10-23  Bruno Haible  <bruno@clisp.org>
32970
32971         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
32972
32973 2006-10-24  Bruno Haible  <bruno@clisp.org>
32974
32975         * lib/gl_list.h: Use C comment style, not C++ comment style.
32976
32977 2006-10-23  Eric Blake  <ebb9@byu.net>
32978
32979         * lib/getaddrinfo.c (includes): Add missing include.
32980
32981 2006-10-23  Bruno Haible  <bruno@clisp.org>
32982             Paul Eggert  <eggert@cs.ucla.edu>
32983
32984         Ability to rename obstack_free.
32985         * lib/obstack.h (__obstack_free): New macro. Declare instead of
32986         obstack_free.
32987         (obstack_free): Invoke the __obstack_free macro.
32988         * lib/obstack.c (obstack_free): Use __obstack_free macro.
32989
32990 2006-10-23  Bruno Haible  <bruno@clisp.org>
32991             Paul Eggert  <eggert@cs.ucla.edu>
32992
32993         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
32994         __argc, __argv from the declaration. (They are defined as macros on
32995         mingw.)
32996
32997 2006-10-22  Bruno Haible  <bruno@clisp.org>
32998
32999         * doc/gnulib-intro.texi: New file.
33000         * doc/gnulib.texi: Include it.
33001
33002 2006-10-21  Bruno Haible  <bruno@clisp.org>
33003
33004         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
33005         "Introduction", "Miscellanous Notes", "Particular Modules".
33006
33007 2006-10-21  Bruno Haible  <bruno@clisp.org>
33008
33009         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33010         Change mostlyclean-local rule to avoid sh syntax error from bash
33011         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
33012
33013 2006-10-23  Jim Meyering  <jim@meyering.net>
33014
33015         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
33016         in place of snprintf.
33017
33018         * modules/inttostr (Files): Add lib/uinttostr.c.
33019         * lib/uinttostr.c (inttostr): New file/function.
33020         * lib/inttostr.h (uinttostr): Declare.
33021         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
33022         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33023         Add uinttostr.
33024         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
33025
33026 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
33027
33028         * lib/canonicalize.c (ELOOP): Define if not already defined.
33029         Problem reported by Bruno Haible in
33030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
33031
33032 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
33033
33034         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
33035         Problem reported by Perry Smith and Ville Laurikari.
33036
33037         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
33038         uses.
33039
33040 2006-10-19  Bruno Haible  <bruno@clisp.org>
33041
33042         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
33043         for mingw.
33044
33045 2006-10-19  Bruno Haible  <bruno@clisp.org>
33046
33047         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
33048         Needed for mingw.
33049
33050 2006-10-19  Bruno Haible  <bruno@clisp.org>
33051
33052         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
33053
33054 2006-10-19  Bruno Haible  <bruno@clisp.org>
33055
33056         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
33057         it.
33058
33059 2006-10-19  Bruno Haible  <bruno@clisp.org>
33060
33061         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
33062         invocation.
33063
33064 2006-10-19  Bruno Haible  <bruno@clisp.org>
33065
33066         * gnulib-tool (func_create_testdir): Don't include ftruncate and
33067         mountlist by default.
33068
33069 2006-10-16  Bruno Haible  <bruno@clisp.org>
33070
33071         * lib/c-strstr.c: Include c-strstr.h.
33072
33073 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
33074
33075         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
33076         in a slash.
33077
33078 2006-10-18  Bruno Haible  <bruno@clisp.org>
33079
33080         * lib/lock.h [C++]: Wrap definitions in extern "C".
33081
33082 2006-10-18  Bruno Haible  <bruno@clisp.org>
33083
33084         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
33085         gl_LIBOBJS list.
33086
33087 2006-10-18  Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
33090
33091 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
33092
33093         * lib/xstrtol.h: Include gettext.h.
33094         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
33095         Problem reported by Eric Blake.
33096         * modules/xstrtol (Depends-on): Add gettext-h.
33097
33098 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
33099
33100         * lib/strftime.c (advance): New macro.
33101         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
33102         incomplete type, so you can't add 0 to it.  Problem and patch
33103         reported by Eelco Dolstra for dietlibc.
33104
33105 2006-10-18  Jim Meyering  <jim@meyering.net>
33106
33107         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
33108         type for a local, and rename it: s/up/user_proc/.
33109
33110 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33111
33112         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
33113         READ_UTMP_USER_PROCESS.
33114         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
33115
33116 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33117
33118         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
33119         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
33120
33121 2006-10-17  Eric Blake  <ebb9@byu.net>
33122
33123         * lib/sigprocmask.c (sigprocmask): Fix typo.
33124
33125         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
33126
33127         * modules/clean-temp (Makefile.am): Don't add to make output...
33128         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
33129         config.h.
33130
33131 2006-10-17  Bruno Haible  <bruno@clisp.org>
33132
33133         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
33134         differently if DEFAULT_TEXT_DOMAIN is set.
33135
33136 2006-10-16  Bruno Haible  <bruno@clisp.org>
33137
33138         * lib/clean-temp.c: Include fwriteerror.h.
33139
33140 2006-10-16  Bruno Haible  <bruno@clisp.org>
33141
33142         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
33143
33144 2006-10-16  Bruno Haible  <bruno@clisp.org>
33145
33146         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
33147         * lib/sigprocmask.h: Include <sys/types.h>.
33148         (sigset_t): Use the system's definition if present.
33149
33150 2006-10-17  Eric Blake  <ebb9@byu.net>
33151
33152         * lib/xvasprintf.c (includes): Assume config.h.
33153         * lib/xasprintf.c (includes): Likewise.
33154
33155 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33156
33157         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
33158         at least as wide as intmax_t.
33159
33160 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
33161
33162         (Imported from Automake.)
33163         * build-aux/gnupload: Update to version 1.1 of directive file.
33164
33165 2006-10-16  Eric Blake  <ebb9@byu.net>
33166
33167         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
33168         match Automake 1.10a.
33169
33170 2006-10-14  Bruno Haible  <bruno@clisp.org>
33171
33172         * modules/sigprocmask: New file.
33173         * lib/sigprocmask.h: New file.
33174         * lib/sigprocmask.c: New file.
33175         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
33176         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
33177         request sigprocmask.o.
33178         (gl_PREREQ_SIGPROCMASK): New macro.
33179         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
33180         (Depends-on): Add sigprocmask.
33181         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
33182         gt_SIGNALBLOCKING. Test for 'raise' only once.
33183         * lib/fatal-signal.c: Include sigprocmask.h.
33184         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
33185         unblock_fatal_signals): Define always.
33186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33187         sigprocmask.
33188
33189 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33190
33191         Sync from Automake.
33192         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
33193         which incorrectly sets the mode of an existing destination
33194         directory.  In some cases the unpatched install-sh could do the
33195         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
33196         system.  We hope this is rare in practice, but it's clearly worth
33197         fixing.  Problem reported by Alex Unleashed in
33198         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
33199         Also, don't bother to check for -m bugs unless we're using -m;
33200         suggested by Stepan Kasal.
33201
33202 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33203
33204         Sync from Automake.
33205         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
33206         `-c' flag, so they appear at the same position as in %FASTDEP%
33207         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
33208         which ignores unknown options only after the first non-option.
33209         Bug report against M4 by Nelson H. F. Beebe.
33210
33211 2006-10-13  Jim Meyering  <jim@meyering.net>
33212
33213         Fix a bug in yesterday's change.
33214         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
33215         p->fts_statp->st_dev would be used uninitialized.
33216         Ensures that we always call fts_stat on the very first entry.
33217         Miklos Szeredi reported that find -xdev stopped working.
33218
33219 2006-10-12  Bruno Haible  <bruno@clisp.org>
33220
33221         * gnulib-tool (func_get_automake_snippet): Append an automatically
33222         computed EXTRA_DIST augmentation.
33223         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
33224         * modules/alloca-opt (Makefile.am): Likewise.
33225         * modules/allocsa (Makefile.am): Likewise.
33226         * modules/arcfour (Makefile.am): Likewise.
33227         * modules/arctwo (Makefile.am): Likewise.
33228         * modules/argmatch (Makefile.am): Likewise.
33229         * modules/argz (Makefile.am): Likewise.
33230         * modules/atexit (Makefile.am): Likewise.
33231         * modules/backupfile (Makefile.am): Likewise.
33232         * modules/byteswap (Makefile.am): Likewise.
33233         * modules/c-strtod (Makefile.am): Likewise.
33234         * modules/c-strtold (Makefile.am): Likewise.
33235         * modules/calloc (Makefile.am): Likewise.
33236         * modules/canon-host (Makefile.am): Likewise.
33237         * modules/canonicalize (Makefile.am): Likewise.
33238         * modules/chdir-long (Makefile.am): Likewise.
33239         * modules/chdir-safer (Makefile.am): Likewise.
33240         * modules/check-version (Makefile.am): Likewise.
33241         * modules/chown (Makefile.am): Likewise.
33242         * modules/cloexec (Makefile.am): Likewise.
33243         * modules/close-stream (Makefile.am): Likewise.
33244         * modules/closeout (Makefile.am): Likewise.
33245         * modules/crc (Makefile.am): Likewise.
33246         * modules/csharpexec (Makefile.am): Likewise.
33247         * modules/cycle-check (Makefile.am): Likewise.
33248         * modules/des (Makefile.am): Likewise.
33249         * modules/dev-ino (Makefile.am): Likewise.
33250         * modules/dirfd (Makefile.am): Likewise.
33251         * modules/dirname (Makefile.am): Likewise.
33252         * modules/dup2 (Makefile.am): Likewise.
33253         * modules/eealloc (Makefile.am): Likewise.
33254         * modules/error (Makefile.am): Likewise.
33255         * modules/euidaccess (Makefile.am): Likewise.
33256         * modules/exclude (Makefile.am): Likewise.
33257         * modules/exitfail (Makefile.am): Likewise.
33258         * modules/fcntl-safer (Makefile.am): Likewise.
33259         * modules/fcntl (Makefile.am): Likewise.
33260         * modules/file-type (Makefile.am): Likewise.
33261         * modules/fileblocks (Makefile.am): Likewise.
33262         * modules/filemode (Makefile.am): Likewise.
33263         * modules/filenamecat (Makefile.am): Likewise.
33264         * modules/fnmatch (Makefile.am): Likewise.
33265         * modules/fopen-safer (Makefile.am): Likewise.
33266         * modules/fpending (Makefile.am): Likewise.
33267         * modules/fprintftime (Makefile.am): Likewise.
33268         * modules/free (Makefile.am): Likewise.
33269         * modules/fsusage (Makefile.am): Likewise.
33270         * modules/ftruncate (Makefile.am): Likewise.
33271         * modules/fts (Makefile.am): Likewise.
33272         * modules/gc-arcfour (Makefile.am): Likewise.
33273         * modules/gc-des (Makefile.am): Likewise.
33274         * modules/gc-hmac-md5 (Makefile.am): Likewise.
33275         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
33276         * modules/gc-md4 (Makefile.am): Likewise.
33277         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
33278         * modules/gc-sha1 (Makefile.am): Likewise.
33279         * modules/gc (Makefile.am): Likewise.
33280         * modules/getaddrinfo (Makefile.am): Likewise.
33281         * modules/getcwd (Makefile.am): Likewise.
33282         * modules/getdelim (Makefile.am): Likewise.
33283         * modules/getdomainname (Makefile.am): Likewise.
33284         * modules/getgroups (Makefile.am): Likewise.
33285         * modules/gethostname (Makefile.am): Likewise.
33286         * modules/gethrxtime (Makefile.am): Likewise.
33287         * modules/getline (Makefile.am): Likewise.
33288         * modules/getloadavg (Makefile.am): Likewise.
33289         * modules/getlogin_r (Makefile.am): Likewise.
33290         * modules/getndelim2 (Makefile.am): Likewise.
33291         * modules/getopt (Makefile.am): Likewise.
33292         * modules/getpagesize (Makefile.am): Likewise.
33293         * modules/getpass-gnu (Makefile.am): Likewise.
33294         * modules/getpass (Makefile.am): Likewise.
33295         * modules/getsubopt (Makefile.am): Likewise.
33296         * modules/gettime (Makefile.am): Likewise.
33297         * modules/gettimeofday (Makefile.am): Likewise.
33298         * modules/getugroups (Makefile.am): Likewise.
33299         * modules/getusershell (Makefile.am): Likewise.
33300         * modules/glob (Makefile.am): Likewise.
33301         * modules/group-member (Makefile.am): Likewise.
33302         * modules/hard-locale (Makefile.am): Likewise.
33303         * modules/hash (Makefile.am): Likewise.
33304         * modules/hmac-md5 (Makefile.am): Likewise.
33305         * modules/hmac-sha1 (Makefile.am): Likewise.
33306         * modules/human (Makefile.am): Likewise.
33307         * modules/idcache (Makefile.am): Likewise.
33308         * modules/imaxabs (Makefile.am): Likewise.
33309         * modules/imaxdiv (Makefile.am): Likewise.
33310         * modules/inet_ntop (Makefile.am): Likewise.
33311         * modules/inet_pton (Makefile.am): Likewise.
33312         * modules/intprops (Makefile.am): Likewise.
33313         * modules/inttostr (Makefile.am): Likewise.
33314         * modules/inttypes (Makefile.am): Likewise.
33315         * modules/isapipe (Makefile.am): Likewise.
33316         * modules/javaversion (Makefile.am): Likewise.
33317         * modules/lchmod (Makefile.am): Likewise.
33318         * modules/lchown (Makefile.am): Likewise.
33319         * modules/localcharset (Makefile.am): Likewise.
33320         * modules/long-options (Makefile.am): Likewise.
33321         * modules/lstat (Makefile.am): Likewise.
33322         * modules/malloc (Makefile.am): Likewise.
33323         * modules/mathl (Makefile.am): Likewise.
33324         * modules/mbchar (Makefile.am): Likewise.
33325         * modules/md2 (Makefile.am): Likewise.
33326         * modules/md4 (Makefile.am): Likewise.
33327         * modules/md5 (Makefile.am): Likewise.
33328         * modules/memcasecmp (Makefile.am): Likewise.
33329         * modules/memchr (Makefile.am): Likewise.
33330         * modules/memcmp (Makefile.am): Likewise.
33331         * modules/memcoll (Makefile.am): Likewise.
33332         * modules/memcpy (Makefile.am): Likewise.
33333         * modules/memmem (Makefile.am): Likewise.
33334         * modules/memmove (Makefile.am): Likewise.
33335         * modules/mempcpy (Makefile.am): Likewise.
33336         * modules/memrchr (Makefile.am): Likewise.
33337         * modules/memset (Makefile.am): Likewise.
33338         * modules/memxor (Makefile.am): Likewise.
33339         * modules/mkancesdirs (Makefile.am): Likewise.
33340         * modules/mkdir-p (Makefile.am): Likewise.
33341         * modules/mkdir (Makefile.am): Likewise.
33342         * modules/mkdtemp (Makefile.am): Likewise.
33343         * modules/mkstemp (Makefile.am): Likewise.
33344         * modules/mktime (Makefile.am): Likewise.
33345         * modules/modechange (Makefile.am): Likewise.
33346         * modules/mountlist (Makefile.am): Likewise.
33347         * modules/nanosleep (Makefile.am): Likewise.
33348         * modules/obstack (Makefile.am): Likewise.
33349         * modules/openat (Makefile.am): Likewise.
33350         * modules/pagealign_alloc (Makefile.am): Likewise.
33351         * modules/pathmax (Makefile.am): Likewise.
33352         * modules/physmem (Makefile.am): Likewise.
33353         * modules/poll (Makefile.am): Likewise.
33354         * modules/posixtm (Makefile.am): Likewise.
33355         * modules/posixver (Makefile.am): Likewise.
33356         * modules/putenv (Makefile.am): Likewise.
33357         * modules/quote (Makefile.am): Likewise.
33358         * modules/quotearg (Makefile.am): Likewise.
33359         * modules/raise (Makefile.am): Likewise.
33360         * modules/read-file (Makefile.am): Likewise.
33361         * modules/readline (Makefile.am): Likewise.
33362         * modules/readlink (Makefile.am): Likewise.
33363         * modules/readtokens (Makefile.am): Likewise.
33364         * modules/readutmp (Makefile.am): Likewise.
33365         * modules/realloc (Makefile.am): Likewise.
33366         * modules/regex (Makefile.am): Likewise.
33367         * modules/rename-dest-slash (Makefile.am): Likewise.
33368         * modules/rename (Makefile.am): Likewise.
33369         * modules/rijndael (Makefile.am): Likewise.
33370         * modules/rmdir (Makefile.am): Likewise.
33371         * modules/rpmatch (Makefile.am): Likewise.
33372         * modules/safe-read (Makefile.am): Likewise.
33373         * modules/safe-write (Makefile.am): Likewise.
33374         * modules/same-inode (Makefile.am): Likewise.
33375         * modules/same (Makefile.am): Likewise.
33376         * modules/save-cwd (Makefile.am): Likewise.
33377         * modules/savedir (Makefile.am): Likewise.
33378         * modules/setenv (Makefile.am): Likewise.
33379         * modules/settime (Makefile.am): Likewise.
33380         * modules/sha1 (Makefile.am): Likewise.
33381         * modules/sig2str (Makefile.am): Likewise.
33382         * modules/snprintf (Makefile.am): Likewise.
33383         * modules/stat-macros (Makefile.am): Likewise.
33384         * modules/stat-time (Makefile.am): Likewise.
33385         * modules/stdbool (Makefile.am): Likewise.
33386         * modules/stdint (Makefile.am): Likewise.
33387         * modules/stdlib-safer (Makefile.am): Likewise.
33388         * modules/stpcpy (Makefile.am): Likewise.
33389         * modules/stpncpy (Makefile.am): Likewise.
33390         * modules/strcase (Makefile.am): Likewise.
33391         * modules/strcasestr (Makefile.am): Likewise.
33392         * modules/strchrnul (Makefile.am): Likewise.
33393         * modules/strcspn (Makefile.am): Likewise.
33394         * modules/strdup (Makefile.am): Likewise.
33395         * modules/strerror (Makefile.am): Likewise.
33396         * modules/strftime (Makefile.am): Likewise.
33397         * modules/strndup (Makefile.am): Likewise.
33398         * modules/strnlen (Makefile.am): Likewise.
33399         * modules/strpbrk (Makefile.am): Likewise.
33400         * modules/strsep (Makefile.am): Likewise.
33401         * modules/strstr (Makefile.am): Likewise.
33402         * modules/strtod (Makefile.am): Likewise.
33403         * modules/strtoimax (Makefile.am): Likewise.
33404         * modules/strtok_r (Makefile.am): Likewise.
33405         * modules/strtol (Makefile.am): Likewise.
33406         * modules/strtoll (Makefile.am): Likewise.
33407         * modules/strtoul (Makefile.am): Likewise.
33408         * modules/strtoull (Makefile.am): Likewise.
33409         * modules/strtoumax (Makefile.am): Likewise.
33410         * modules/strverscmp (Makefile.am): Likewise.
33411         * modules/sys_socket (Makefile.am): Likewise.
33412         * modules/sys_stat (Makefile.am): Likewise.
33413         * modules/sysexits (Makefile.am): Likewise.
33414         * modules/time_r (Makefile.am): Likewise.
33415         * modules/timegm (Makefile.am): Likewise.
33416         * modules/timespec (Makefile.am): Likewise.
33417         * modules/tmpfile-safer (Makefile.am): Likewise.
33418         * modules/trim (Makefile.am): Likewise.
33419         * modules/unistd-safer (Makefile.am): Likewise.
33420         * modules/unlinkdir (Makefile.am): Likewise.
33421         * modules/unlocked-io (Makefile.am): Likewise.
33422         * modules/userspec (Makefile.am): Likewise.
33423         * modules/utime (Makefile.am): Likewise.
33424         * modules/utimecmp (Makefile.am): Likewise.
33425         * modules/utimens (Makefile.am): Likewise.
33426         * modules/vasnprintf (Makefile.am): Likewise.
33427         * modules/vasprintf (Makefile.am): Likewise.
33428         * modules/vsnprintf (Makefile.am): Likewise.
33429         * modules/xalloc (Makefile.am): Likewise.
33430         * modules/xgetcwd (Makefile.am): Likewise.
33431         * modules/xnanosleep (Makefile.am): Likewise.
33432         * modules/xreadlink (Makefile.am): Likewise.
33433         * modules/xstrtod (Makefile.am): Likewise.
33434         * modules/xstrtol (Makefile.am): Likewise.
33435         * modules/xstrtold (Makefile.am): Likewise.
33436         * modules/yesno (Makefile.am): Likewise.
33437         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
33438
33439 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33440
33441         * modules/error (Makefile.am): Distribute files through
33442         EXTRA_DIST, not lib_SOURCES.
33443
33444 2006-10-12  Eric Blake  <ebb9@byu.net>
33445
33446         * modules/error (Makefile.am): Distribute files in /lib.
33447         * modules/obstack (Makefile.am): Likewise.
33448
33449 2006-10-12  Bruno Haible  <bruno@clisp.org>
33450
33451         * modules/acl (Makefile.am): Distribute all files in lib/ through
33452         EXTRA_DIST.
33453         * modules/arcfour (Makefile.am): Likewise.
33454         * modules/arctwo (Makefile.am): Likewise.
33455         * modules/argmatch (Makefile.am): Likewise.
33456         * modules/argz (Makefile.am): Likewise.
33457         * modules/atexit (Makefile.am): Likewise.
33458         * modules/backupfile (Makefile.am): Likewise.
33459         * modules/c-strtod (Makefile.am): Likewise.
33460         * modules/c-strtold (Makefile.am): Likewise.
33461         * modules/calloc (Makefile.am): Likewise.
33462         * modules/canon-host (Makefile.am): Likewise.
33463         * modules/canonicalize (Makefile.am): Likewise.
33464         * modules/chdir-long (Makefile.am): Likewise.
33465         * modules/chdir-safer (Makefile.am): Likewise.
33466         * modules/check-version (Makefile.am): Likewise.
33467         * modules/chown (Makefile.am): Likewise.
33468         * modules/cloexec (Makefile.am): Likewise.
33469         * modules/close-stream (Makefile.am): Likewise.
33470         * modules/closeout (Makefile.am): Likewise.
33471         * modules/crc (Makefile.am): Likewise.
33472         * modules/cycle-check (Makefile.am): Likewise.
33473         * modules/des (Makefile.am): Likewise.
33474         * modules/dirfd (Makefile.am): Likewise.
33475         * modules/dirname (Makefile.am): Likewise.
33476         * modules/dup2 (Makefile.am): Likewise.
33477         * modules/euidaccess (Makefile.am): Likewise.
33478         * modules/exclude (Makefile.am): Likewise.
33479         * modules/exitfail (Makefile.am): Likewise.
33480         * modules/fcntl-safer (Makefile.am): Likewise.
33481         * modules/file-type (Makefile.am): Likewise.
33482         * modules/fileblocks (Makefile.am): Likewise.
33483         * modules/filemode (Makefile.am): Likewise.
33484         * modules/filenamecat (Makefile.am): Likewise.
33485         * modules/fnmatch (Makefile.am): Likewise.
33486         * modules/fopen-safer (Makefile.am): Likewise.
33487         * modules/fpending (Makefile.am): Likewise.
33488         * modules/fprintftime (Makefile.am): Likewise.
33489         * modules/free (Makefile.am): Likewise.
33490         * modules/fsusage (Makefile.am): Likewise.
33491         * modules/ftruncate (Makefile.am): Likewise.
33492         * modules/fts (Makefile.am): Likewise.
33493         * modules/gc (Makefile.am): Likewise.
33494         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
33495         * modules/getaddrinfo (Makefile.am): Likewise.
33496         * modules/getcwd (Makefile.am): Likewise.
33497         * modules/getdelim (Makefile.am): Likewise.
33498         * modules/getdomainname (Makefile.am): Likewise.
33499         * modules/getgroups (Makefile.am): Likewise.
33500         * modules/gethostname (Makefile.am): Likewise.
33501         * modules/gethrxtime (Makefile.am): Likewise.
33502         * modules/getline (Makefile.am): Likewise.
33503         * modules/getloadavg (Makefile.am): Likewise.
33504         * modules/getlogin_r (Makefile.am): Likewise.
33505         * modules/getopt (Makefile.am): Likewise.
33506         * modules/getpass (Makefile.am): Likewise.
33507         * modules/getpass-gnu (Makefile.am): Likewise.
33508         * modules/getsubopt (Makefile.am): Likewise.
33509         * modules/gettime (Makefile.am): Likewise.
33510         * modules/gettimeofday (Makefile.am): Likewise.
33511         * modules/getugroups (Makefile.am): Likewise.
33512         * modules/getusershell (Makefile.am): Likewise.
33513         * modules/glob (Makefile.am): Likewise.
33514         * modules/group-member (Makefile.am): Likewise.
33515         * modules/hard-locale (Makefile.am): Likewise.
33516         * modules/hash (Makefile.am): Likewise.
33517         * modules/hmac-md5 (Makefile.am): Likewise.
33518         * modules/hmac-sha1 (Makefile.am): Likewise.
33519         * modules/human (Makefile.am): Likewise.
33520         * modules/idcache (Makefile.am): Likewise.
33521         * modules/imaxabs (Makefile.am): Likewise.
33522         * modules/imaxdiv (Makefile.am): Likewise.
33523         * modules/inet_ntop (Makefile.am): Likewise.
33524         * modules/inet_pton (Makefile.am): Likewise.
33525         * modules/inttostr (Makefile.am): Likewise.
33526         * modules/isapipe (Makefile.am): Likewise.
33527         * modules/lchown (Makefile.am): Likewise.
33528         * modules/long-options (Makefile.am): Likewise.
33529         * modules/lstat (Makefile.am): Likewise.
33530         * modules/malloc (Makefile.am): Likewise.
33531         * modules/mathl (Makefile.am): Likewise.
33532         * modules/mbchar (Makefile.am): Likewise.
33533         * modules/md2 (Makefile.am): Likewise.
33534         * modules/md4 (Makefile.am): Likewise.
33535         * modules/md5 (Makefile.am): Likewise.
33536         * modules/memcasecmp (Makefile.am): Likewise.
33537         * modules/memchr (Makefile.am): Likewise.
33538         * modules/memcmp (Makefile.am): Likewise.
33539         * modules/memcoll (Makefile.am): Likewise.
33540         * modules/memcpy (Makefile.am): Likewise.
33541         * modules/memmem (Makefile.am): Likewise.
33542         * modules/memmove (Makefile.am): Likewise.
33543         * modules/mempcpy (Makefile.am): Likewise.
33544         * modules/memrchr (Makefile.am): Likewise.
33545         * modules/memset (Makefile.am): Likewise.
33546         * modules/memxor (Makefile.am): Likewise.
33547         * modules/mkancesdirs (Makefile.am): Likewise.
33548         * modules/mkdir (Makefile.am): Likewise.
33549         * modules/mkdir-p (Makefile.am): Likewise.
33550         * modules/mkdtemp (Makefile.am): Likewise.
33551         * modules/mkstemp (Makefile.am): Likewise.
33552         * modules/mktime (Makefile.am): Likewise.
33553         * modules/modechange (Makefile.am): Likewise.
33554         * modules/mountlist (Makefile.am): Likewise.
33555         * modules/nanosleep (Makefile.am): Likewise.
33556         * modules/openat (Makefile.am): Likewise.
33557         * modules/pagealign_alloc (Makefile.am): Likewise.
33558         * modules/physmem (Makefile.am): Likewise.
33559         * modules/poll (Makefile.am): Likewise.
33560         * modules/posixtm (Makefile.am): Likewise.
33561         * modules/posixver (Makefile.am): Likewise.
33562         * modules/putenv (Makefile.am): Likewise.
33563         * modules/quote (Makefile.am): Likewise.
33564         * modules/quotearg (Makefile.am): Likewise.
33565         * modules/raise (Makefile.am): Likewise.
33566         * modules/read-file (Makefile.am): Likewise.
33567         * modules/readline (Makefile.am): Likewise.
33568         * modules/readlink (Makefile.am): Likewise.
33569         * modules/readtokens (Makefile.am): Likewise.
33570         * modules/readutmp (Makefile.am): Likewise.
33571         * modules/realloc (Makefile.am): Likewise.
33572         * modules/regex (Makefile.am): Likewise.
33573         * modules/rename (Makefile.am): Likewise.
33574         * modules/rename-dest-slash (Makefile.am): Likewise.
33575         * modules/rijndael (Makefile.am): Likewise.
33576         * modules/rmdir (Makefile.am): Likewise.
33577         * modules/rpmatch (Makefile.am): Likewise.
33578         * modules/safe-read (Makefile.am): Likewise.
33579         * modules/safe-write (Makefile.am): Likewise.
33580         * modules/same (Makefile.am): Likewise.
33581         * modules/save-cwd (Makefile.am): Likewise.
33582         * modules/savedir (Makefile.am): Likewise.
33583         * modules/setenv (Makefile.am): Likewise.
33584         * modules/settime (Makefile.am): Likewise.
33585         * modules/sha1 (Makefile.am): Likewise.
33586         * modules/sig2str (Makefile.am): Likewise.
33587         * modules/snprintf (Makefile.am): Likewise.
33588         * modules/stdlib-safer (Makefile.am): Likewise.
33589         * modules/stpcpy (Makefile.am): Likewise.
33590         * modules/stpncpy (Makefile.am): Likewise.
33591         * modules/strcase (Makefile.am): Likewise.
33592         * modules/strcasestr (Makefile.am): Likewise.
33593         * modules/strchrnul (Makefile.am): Likewise.
33594         * modules/strcspn (Makefile.am): Likewise.
33595         * modules/strdup (Makefile.am): Likewise.
33596         * modules/strerror (Makefile.am): Likewise.
33597         * modules/strftime (Makefile.am): Likewise.
33598         * modules/strndup (Makefile.am): Likewise.
33599         * modules/strnlen (Makefile.am): Likewise.
33600         * modules/strpbrk (Makefile.am): Likewise.
33601         * modules/strsep (Makefile.am): Likewise.
33602         * modules/strstr (Makefile.am): Likewise.
33603         * modules/strtod (Makefile.am): Likewise.
33604         * modules/strtoimax (Makefile.am): Likewise.
33605         * modules/strtok_r (Makefile.am): Likewise.
33606         * modules/strtol (Makefile.am): Likewise.
33607         * modules/strtoll (Makefile.am): Likewise.
33608         * modules/strtoul (Makefile.am): Likewise.
33609         * modules/strtoull (Makefile.am): Likewise.
33610         * modules/strtoumax (Makefile.am): Likewise.
33611         * modules/strverscmp (Makefile.am): Likewise.
33612         * modules/time_r (Makefile.am): Likewise.
33613         * modules/timegm (Makefile.am): Likewise.
33614         * modules/tmpfile-safer (Makefile.am): Likewise.
33615         * modules/unistd-safer (Makefile.am): Likewise.
33616         * modules/unlinkdir (Makefile.am): Likewise.
33617         * modules/userspec (Makefile.am): Likewise.
33618         * modules/utime (Makefile.am): Likewise.
33619         * modules/utimecmp (Makefile.am): Likewise.
33620         * modules/utimens (Makefile.am): Likewise.
33621         * modules/vasnprintf (Makefile.am): Likewise.
33622         * modules/vasprintf (Makefile.am): Likewise.
33623         * modules/vsnprintf (Makefile.am): Likewise.
33624         * modules/xalloc (Makefile.am): Likewise.
33625         * modules/xgetcwd (Makefile.am): Likewise.
33626         * modules/xnanosleep (Makefile.am): Likewise.
33627         * modules/xreadlink (Makefile.am): Likewise.
33628         * modules/xstrtod (Makefile.am): Likewise.
33629         * modules/xstrtol (Makefile.am): Likewise.
33630         * modules/xstrtold (Makefile.am): Likewise.
33631         * modules/yesno (Makefile.am): Likewise.
33632
33633 2006-10-12  Jim Meyering  <jim@meyering.net>
33634
33635         * m4/getloadavg.m4: Revert the change below.
33636
33637         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
33638         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
33639         fail with a symlink, which is what coreutils' ./bootstrap now
33640         creates by default.
33641
33642 2006-10-12  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
33645         mingw.
33646         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
33647         MSVC and mingw explicitly.
33648
33649 2006-10-11  Simon Josefsson  <jas@extundo.com>
33650             Bruno Haible  <bruno@clisp.org>
33651
33652         Add support for multiple gnulib-tool invocations in the scope of a
33653         single configure.ac file.
33654         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
33655         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
33656         with the same contents as the _LIBADD variable.
33657         (func_emit_initmacro_start, func_emit_initmacro_end,
33658         func_emit_initmacro_done): New functions.
33659         (func_import, func_create_testdir): Invoke them. Allow the identifiers
33660         gl_LIBOBJS and gl_LTLIBOBJS.
33661
33662 2006-10-11  Bruno Haible  <bruno@clisp.org>
33663
33664         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
33665         (func_create_testdir): Don't create po/Makefile.am, don't invoke
33666         autoreconf. Instead, invoke autopoint explicitly but move back the
33667         *.m4 files from gnulib.
33668
33669 2006-10-11  Bruno Haible  <bruno@clisp.org>
33670
33671         * gnulib-tool (func_usage): Make module names after --create-testdir
33672         optional.
33673         (func_create_testdir): If no module was specified, use nearly all
33674         modules.
33675
33676 2006-10-12  Jim Meyering  <jim@meyering.net>
33677
33678         Big performance improvement for fts-based tools that use FTS_NOSTAT.
33679         Avoid spurious inode-mismatch problems on non-POSIX file systems.
33680         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
33681         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
33682         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
33683         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
33684         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
33685         (fts_set_stat_required): New function.
33686         (fts_open): Defer the calls to fts_stat, if possible or requested.
33687         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
33688         into fts_stat itself.
33689         (fts_read): Perform any required (deferred) fts_stat call.
33690         (fts_build): Likewise, for the directory we're about to open and read.
33691         In the readdir loop, carefully decide whether each entry will require
33692         an eventual call to fts_stat, using dirent.d_type info if available.
33693         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
33694         a command line argument into this function.  Update all callers.
33695         Map a return value of FTS_DOT to FTS_D for a command line argument.
33696         * modules/fts (Depends-on): Add d-type.  Alphabetize.
33697         Thanks to Miklos Szeredi for his tenacity and for the initial
33698         bug report about "find" failing on a FUSE-based file system.
33699
33700         * lib/fts.c (fts_open): Use consistent indentation.
33701
33702 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33703
33704         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
33705         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
33706         reported by Jim Meyering.  All uses of cache variables renamed
33707         to match Autoconf's.
33708         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
33709         the other one.
33710
33711         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33712         Fix misspelling in diagnostic.
33713
33714 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33715
33716         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
33717         defined.  Problem reported by Matthew Woehlke.
33718
33719         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
33720         Add support for Tandem NonStop R series.
33721         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
33722         Use new macro.
33723
33724         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
33725         (has_trailing_slash): Omit size arg; all callers changed.
33726         Omit 'inline', since it doesn't help performance and we'd
33727         need to configure it.
33728         Don't count //, ///, etc. as having a trailing slash.
33729         As a side effect, this removes a C99ism reported by Matthew Woehlke.
33730         (rpl_rename_dest_slash): On failure, use rename's errno rather
33731         than (in some cases) an incorrect or junk errno.
33732         Simplify code by removing need to compute length; this does
33733         cause it to make two passes instead of one over the file name,
33734         but it's worth it.
33735
33736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
33737         change, since Autoconf's version may no longer be appropriate now
33738         that we are using CVS Autoconf's version.  Add support for Tandem.
33739
33740 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33741             Bruno Haible  <bruno@clisp.org>
33742
33743         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
33744         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
33745         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
33746         gl_AC_TYPE_LONG_LONG.
33747
33748         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
33749         instead of HAVE_LONG_LONG.
33750         * lib/printf-args.c (printf_fetchargs): Likewise.
33751         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
33752         * lib/vasnprintf.c (VASNPRINTF): Likewise.
33753         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
33754         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
33755         gl_AC_TYPE_LONG_LONG.
33756
33757 2006-10-11  Bruno Haible  <bruno@clisp.org>
33758
33759         * m4/longlong.m4: Add comments.
33760         * m4/ulonglong.m4: Likewise.
33761
33762 2006-10-10  Bruno Haible  <bruno@clisp.org>
33763
33764         Make it possible to #define stpcpy, strdup to aliases.
33765         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
33766         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
33767
33768 2006-10-10  Bruno Haible  <bruno@clisp.org>
33769
33770         Make it possible to #define gcd to an alias.
33771         * lib/gcd.c: Include config.h.
33772
33773 2006-10-10  Bruno Haible  <bruno@clisp.org>
33774
33775         Make it possible to #define c_isascii to an alias.
33776         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
33777         defined. Undefine the macros before defining them, to avoid gcc
33778         warnings.
33779         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
33780         define NO_C_CTYPE_MACROS early.
33781
33782 2006-10-10  Bruno Haible  <bruno@clisp.org>
33783
33784         Make it possible to #define set_program_name to an alias.
33785         * lib/progname.c: Don't undefine set_program_name; instead, undefine
33786         ENABLE_RELOCATABLE early.
33787
33788 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33789
33790         Port to Tandem NSK OSS, which has 64-bit signed int but at most
33791         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
33792         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
33793         More generally, don't assume that 64-bit signed int is available
33794         if unsigned int is, and vice versa.
33795         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
33796         unsigned symbols, not on their signed counterparts.
33797         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
33798         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
33799         (UINT64_C, UINTMAX_C):
33800         Likewise.
33801         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
33802         unsigned counterparts.
33803         (Have_long_long, Unsigned): New macros.
33804         (Int): Renamed from INT.
33805         (strtoimax): Use the new macros.
33806         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
33807         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
33808         * modules/inttypes (inttypes.h): Substitute
33809         HAVE_UNSIGNED_LONG_LONG_INT.
33810         * modules/stdint (stdint.h): Likewise.
33811         (Files): Add m4/ulonglong.m4.
33812
33813 2006-10-10  Bruno Haible  <bruno@clisp.org>
33814
33815         Fix a gcc -Wshadow warning.
33816         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
33817         to 'bucket'.
33818         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
33819         gl_linked_indexof_from_to): Likewise.
33820         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
33821         Likewise.
33822         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
33823         Likewise.
33824         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
33825         Reported by Eric Blake.
33826
33827 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33828
33829         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
33830         for NetBSD.  Problem reported by Bruno Haible.
33831
33832 2006-10-09  Jim Meyering  <jim@meyering.net>
33833
33834         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
33835         Patch from Bruno Haible.
33836
33837 2006-10-09  Jim Meyering  <jim@meyering.net>
33838
33839         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
33840         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
33841         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
33842
33843 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33844
33845         Don't include <config.h> twice; this doesn't work in some cases,
33846         e.g., when config.h has "#define intmax_t long long int" and
33847         we include <config.h>, <inttypes.h>, <config.h> in that order.
33848         Problem reported by Matthew Woehlke in:
33849         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
33850         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
33851         * lib/fts-cycle.c: Don't include config.h.
33852         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
33853         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
33854         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
33855         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
33856         inttypes.h.
33857         * lib/xstrtoumax.c: Likewise.
33858         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
33859         __strtol and the like, so that this module is more like its siblings.
33860         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
33861         Remove; no longer needed now that we assume gnulib inttypes.h.
33862
33863 2006-10-08  Bruno Haible  <bruno@clisp.org>
33864
33865         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
33866         option.
33867
33868 2006-10-07  Jim Meyering  <jim@meyering.net>
33869
33870         * modules/inttypes (inttypes.h): Revert what seems to have been
33871         an inadvertent part of today's change: use "|", not "/" in the
33872         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
33873
33874 2006-10-07  Bruno Haible  <bruno@clisp.org>
33875
33876         * modules/sublist: New file.
33877
33878 2006-10-07  Bruno Haible  <bruno@clisp.org>
33879
33880         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
33881         * modules/argz (argz.h): Likewise.
33882         * modules/arpa_inet (arpa/inet.h): Likewise.
33883         * modules/byteswap (byteswap.h): Likewise.
33884         * modules/configmake (configmake.h): Likewise.
33885         * modules/fcntl (fcntl.h): Likewise.
33886         * modules/fnmatch (fnmatch.h): Likewise.
33887         * modules/getopt (getopt.h): Likewise.
33888         * modules/glob (glob.h): Likewise.
33889         * modules/inttypes (inttypes.h): Likewise.
33890         * modules/netinet_in (netinet/in.h): Likewise.
33891         * modules/poll (poll.h): Likewise.
33892         * modules/stdbool (stdbool.h): Likewise.
33893         * modules/stdint (stdint.h): Likewise.
33894         * modules/sys_select (sys/select.h): Likewise.
33895         * modules/sys_socket (sys/socket.h): Likewise.
33896         * modules/sys_stat (sys/stat.h): Likewise.
33897         * modules/sysexits (sysexits.h): Likewise.
33898         * modules/unistd (unistd.h): Likewise.
33899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33900         Add a "DO NOT EDIT" comment to the generated file.
33901         (func_import): Likewise for gnulib-comp.m4.
33902
33903 2006-10-07  Bruno Haible  <bruno@clisp.org>
33904
33905         * lib/gl_sublist.h: New file.
33906         * lib/gl_sublist.c: New file.
33907
33908 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33909
33910         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
33911         name (relative to the original working directory) and the file
33912         name component (relative to the temporary working directory).  All
33913         callers changed.
33914         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
33915         * lib/mkdir-p.c (make_dir_parents): Likewise.
33916         * lib/mkdir-p.h (make_dir_parents): Likewise.
33917
33918 2006-10-06  Eric Blake  <ebb9@byu.net>
33919
33920         Define several macros for use by the clean-temp module.
33921         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
33922         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
33923         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
33924
33925         * lib/clean-temp.h (close_stream_temp): New declaration.
33926         * lib/clean-temp.c (includes): Pull in headers according to what
33927         other modules are in use.
33928         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
33929
33930 2006-10-06  Bruno Haible  <bruno@clisp.org>
33931
33932         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
33933         instead of fopen, fwriteerror.
33934
33935 2006-10-06  Bruno Haible  <bruno@clisp.org>
33936
33937         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
33938         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
33939         int.
33940         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
33941         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
33942         Return an error indicator.
33943         Suggested by Eric Blake.
33944
33945 2006-10-06  Bruno Haible  <bruno@clisp.org>
33946
33947         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
33948         Reported by Eric Blake.
33949
33950 2006-10-06  Bruno Haible  <bruno@clisp.org>
33951
33952         * modules/closeout (Description): Mention stderr too.
33953
33954 2006-10-06  Bruno Haible  <bruno@clisp.org>
33955         and Paul Eggert  <eggert@cs.ucla.edu>
33956
33957         * lib/closeout.c (close_stdout): Also close stderr.
33958         * lib/closeout.h: Update comment.
33959
33960 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
33961
33962         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
33963         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
33964         * lib/dirchownmod.c: Include lchown.h.
33965         * lib/lchown.c: Don't include files that lchown.h now includes.
33966         Don't declare chown, since lchown.h now does that.
33967         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
33968         (lchown): Define to rpl_chown if lchown is declared but
33969         does not exist.  Declare using a prototype if lchown is not
33970         declared.  Add a copyright notice.
33971         * lib/mkstemp.h: Include <unistd.h>.
33972         * lib/openat.c: Include lchown.h.
33973
33974         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
33975         we now test for that separately.
33976         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
33977         rather than O_NOFOLLOW, when testing whether it's possible to
33978         avoid a race condition reliably.
33979         * lib/savewd.c (savewd_chdir): Likewise.
33980
33981         Remove macros that are no longer needed now that stdint.h is
33982         reliable.
33983         * lib/fsusage.c (UINTMAX_MAX): Remove.
33984         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
33985         * lib/utimecmp.c (SIZE_MAX): Remove.
33986
33987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
33988
33989         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
33990         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
33991         O_NOATIME works.
33992
33993 2006-10-05  Bruno Haible  <bruno@clisp.org>
33994
33995         * lib/gl_list.h (gl_sortedlist_search_from_to,
33996         gl_sortedlist_indexof_from_to): New declarations.
33997         (gl_list_implementation): New fields sortedlist_search_from_to,
33998         sortedlist_indexof_from_to.
33999         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
34000         inline functions.
34001         * lib/gl_list.c (gl_sortedlist_search_from_to,
34002         gl_sortedlist_indexof_from_to): New functions.
34003         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
34004         function.
34005         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
34006         (gl_array_sortedlist_search_from_to): New function.
34007         (gl_array_list_implementation): Update.
34008         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
34009         function.
34010         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
34011         (gl_carray_sortedlist_search_from_to): New function.
34012         (gl_carray_list_implementation): Update.
34013         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
34014         gl_linked_sortedlist_indexof_from_to): New functions.
34015         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34016         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34017         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
34018         gl_tree_sortedlist_indexof_from_to): New functions.
34019         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34020         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34021         Update.
34022         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34023         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
34024         Update.
34025
34026 2006-10-05  Bruno Haible  <bruno@clisp.org>
34027
34028         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
34029         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
34030         (struct gl_list_implementation): Add fields search_from_to,
34031         indexof_from_to. Remove fields search, indexof.
34032         (gl_list_search): Use the search_from_to method.
34033         (gl_list_search_from, gl_list_search_from_to): New functions.
34034         (gl_list_indexof): Use the indexof_from_to method.
34035         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
34036         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
34037         (gl_list_search_from, gl_list_search_from_to): New functions.
34038         (gl_list_indexof): Use the indexof_from_to method.
34039         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
34040         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
34041         gl_array_indexof. Add start_index, end_index arguments.
34042         (gl_array_search_from_to): Renamed from gl_array_search. Add
34043         start_index, end_index arguments.
34044         (gl_array_remove, gl_array_list_implementation): Update.
34045         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
34046         gl_carray_indexof. Add start_index, end_index arguments.
34047         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
34048         start_index, end_index arguments.
34049         (gl_carray_remove, gl_carray_list_implementation): Update.
34050         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
34051         gl_linked_search. Add start_index, end_index arguments.
34052         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
34053         start_index, end_index arguments.
34054         (gl_linked_remove): Update.
34055         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34056         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34057         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
34058         field to 'size_t'.
34059         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
34060         gl_tree_search. Add start_index, end_index arguments.
34061         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
34062         start_index, end_index arguments.
34063         (gl_tree_remove): Update.
34064         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34065         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34066         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
34067         function.
34068         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
34069         gl_tree_search. Add start_index, end_index arguments.
34070         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
34071         start_index, end_index arguments.
34072         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34073         Update.
34074         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34075
34076 2006-10-05  Bruno Haible  <bruno@clisp.org>
34077
34078         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
34079
34080         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
34081         fwriteerror_temp): New declarations.
34082         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
34083         (descriptors): New variable.
34084         (cleanup): First, close the descriptors.
34085         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
34086         fclose_temp, fwriteerror_temp): New functions.
34087
34088 2006-10-04  Jim Meyering  <jim@meyering.net>
34089
34090         * lib/fts.c (fts_open): Tiny comment change.
34091
34092 2006-10-04  Bruno Haible  <bruno@clisp.org>
34093
34094         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
34095         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
34096         gl_LOCK_BODY.
34097         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
34098         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
34099         gl_LOCK_EARLY_BODY.
34100         (gl_LOCK): Require gl_LOCK_BODY.
34101
34102 2006-10-04  Bruno Haible  <bruno@clisp.org>
34103
34104         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
34105         (gl_oset_search_atleast): New declaration.
34106         (struct gl_oset_implementation): Add field 'search_atleast'.
34107         (gl_oset_search_atleast): New inline function.
34108         * lib/gl_oset.c (gl_oset_search_atleast): New function.
34109         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
34110         (gl_array_oset_implementation): Update.
34111         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
34112         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
34113         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
34114
34115 2006-10-04  Bruno Haible  <bruno@clisp.org>
34116
34117         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
34118
34119 2006-10-03  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
34122         from gl_avltreehash_list_implementation.
34123
34124 2006-10-03  Bruno Haible  <bruno@clisp.org>
34125
34126         * lib/gl_oset.c (gl_oset_add): Fix return type.
34127
34128 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
34129
34130         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
34131
34132 2006-10-02  Eric Blake  <ebb9@byu.net>
34133
34134         * modules/strnlen (Depends-on): Add extensions.
34135
34136 2006-10-02  Eric Blake  <ebb9@byu.net>
34137
34138         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
34139         definition in 2.60+.
34140
34141 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
34142
34143         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
34144         checks.
34145
34146 2006-10-02  Bruno Haible  <bruno@clisp.org>
34147
34148         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
34149         to the AUTOMAKE_OPTIONS.
34150         Reported by Jim Meyering.
34151
34152 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
34153
34154         Work around bug in Solaris 10 /proc file system:
34155         /proc/self/fd/NNN/.. isn't the parent directory of
34156         the directory whose file descriptor is NNN.  This needs to
34157         be worked around at run time, not compile time, since a
34158         program might be built on Solaris 8, where things work, and
34159         run on Solaris 10.
34160         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
34161         to use the following interface instead:
34162         (OPENAT_BUFFER_SIZE): New macro.
34163         (openat_proc_name): New function.
34164         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
34165         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
34166         Likewise.
34167         * lib/openat-proc.c: New file.
34168         * modules/openat (Files): Add lib/openat-proc.c.
34169         (Depends-on): Add same-inode, stdbool.
34170         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
34171
34172 2006-09-29  Bruno Haible  <bruno@clisp.org>
34173
34174         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
34175         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
34176         argument. Set stdout_closed before testing for ferror, not after.
34177         (fwriteerror, fwriteerror_no_ebadf): New functions.
34178
34179 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34180
34181         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
34182
34183 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
34184
34185         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
34186         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
34187
34188 2006-09-28  Jim Meyering  <jim@meyering.net>
34189
34190         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
34191         Include <unistd.h>.
34192
34193 2006-09-28  Bruno Haible  <bruno@clisp.org>
34194
34195         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
34196         * modules/linkedhash-list (Depends-on): Likewise.
34197         * modules/rbtreehash-list (Depends-on): Likewise.
34198
34199 2006-09-28  Bruno Haible  <bruno@clisp.org>
34200
34201         * lib/strndup.h: Simplify the redefinition of strndup.
34202         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
34203         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
34204
34205 2006-09-28  Bruno Haible  <bruno@clisp.org>
34206
34207         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
34208         * lib/gl_linkedhash_list.c: Likewise.
34209         * lib/gl_rbtreehash_list.c: Likewise.
34210
34211 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
34212
34213         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
34214         getaddrinfo.
34215
34216         * lib/__fpending.h: Don't include <stdio_ext.h> unless
34217         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
34218         it causes <stdio_ext.h> to cause a compile-time error.
34219         Problem reported by Nelson H. F. Beebe.
34220         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
34221         of HAVE_DECL___PENDING.
34222
34223         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
34224         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
34225         declaration.
34226
34227 2006-09-27  Jim Meyering  <jim@meyering.net>
34228
34229         This file could end up with a definition for a function
34230         named __strndup, rather than rpl_strndup on a system with
34231         incomplete weak_alias support.
34232         * lib/strndup.c (strndup): Rename from __strndup.
34233         Remove #defines that used to map __strndup to strndup.
34234         Don't use K&R prototypes.
34235         Remove LIBC-related code, since this file is not sync'd with glibc.
34236         * lib/strndup.h: Revamp, accordingly.
34237         * m4/strndup.m4: Modernize.
34238
34239 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34240
34241         * modules/savewd (Depends-on): Add 'raise'.
34242         * lib/savewd.c: Include <signal.h>, for 'raise'.
34243
34244 2006-09-26  Jim Meyering  <jim@meyering.net>
34245
34246         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
34247         when we detect Darwin 8.7.0's acl_get_file bug.
34248         Rearrange to perform the new (below) run-test while $LIBS
34249         contains any acl-related library.  Set USE_ACL at the end.
34250         (gl_ACL_GET_FILE): New function.
34251
34252 2006-09-26  Eric Blake  <ebb9@byu.net>
34253
34254         * lib/verror.c: Include <config.h> unconditionally.
34255
34256 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
34257
34258         * modules/clock-time (Maintainer): Add self.
34259         * modules/getlogin_r (Depends-on): Add extensions.
34260
34261 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34262
34263         * modules/clock-time: New module.
34264         * modules/nanosleep (Depends-on): Add clock-time.
34265         * modules/gethrxtime (Depends-on): Likewise.
34266         * modules/gettime (Depends-on): Likewise.
34267         * modules/settime (Depends-on): Likewise.
34268
34269         * modules/fts-lgpl: Depend on openat.
34270         * modules/mkancesdirs: Depend on savewd.
34271         * modules/mkdir-p: Likewise.
34272
34273 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34274
34275         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
34276
34277         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
34278         `gl_have_arbitrary_file_name_length_limit' to
34279         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
34280         actually works between configure runs.
34281
34282 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34283             Bruno Haible  <bruno@clisp.org>
34284
34285         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
34286
34287 2006-09-25  Jim Meyering  <jim@meyering.net>
34288
34289         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
34290         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
34291
34292 2006-09-25  Eric Blake  <ebb9@byu.net>
34293
34294         * gnulib-tool (func_import, func_create_testdir): Fix typos in
34295         exec's in 2006-09-18 patch when shuffling fds.
34296
34297 2006-09-25  Bruno Haible  <bruno@clisp.org>
34298
34299         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
34300         Reported by Jim Meyering.
34301
34302 2006-09-24  Jim Meyering  <jim@meyering.net>
34303
34304         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
34305         compare a pointer against a literal "0".  That caused failures with
34306         at least HP-UX's hpcc.
34307
34308 2006-09-22  Simon Josefsson  <jas@extundo.com>
34309
34310         * modules/gc-sha1:
34311         * modules/gc-md4:
34312         * modules/gc-hmac-sha1:
34313         * modules/gc-hmac-md5:
34314         * modules/gc-des:
34315         * modules/gc-arcfour: Distribute more files.
34316
34317 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34318
34319         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
34320         (gl_linked_iterator_from_to): Initialize struct completely.
34321         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
34322         (gl_tree_iterator_from_to): Likewise
34323         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
34324         * lib/gl_array_list.c [lint] (gl_array_iterator)
34325         (gl_array_iterator_from_to): Likewise.
34326         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
34327         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
34328         (gl_carray_iterator_from_to): Likewise.
34329
34330         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
34331         * lib/md4.c (md4_process_block): Remove unused variable.
34332         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
34333         parentheses for clarity.
34334
34335 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34336
34337         * modules/bison-i18n (Depends-on): Add gettext.
34338
34339 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34340
34341         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
34342         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34343         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
34344         also add missing comma that caused broken test.
34345         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
34346         stdlib.h, for `abort'.
34347         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
34348         variables.
34349         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
34350         include unistd.h if present, for `rmdir'.
34351         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
34352         variables.
34353         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
34354         in the process include standard headers for prototypes.
34355         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
34356         gets declared on GNU/Linux.
34357         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
34358         unistd.h, for `rmdir'.
34359         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
34360
34361         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
34362         always true.
34363         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
34364
34365         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
34366
34367 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34368
34369         * gnulib-tool (func_version): Create output all at once.  This
34370         may help avoid triggering unnecessary SIGPIPEs, and at any
34371         rate it doesn't hurt.
34372
34373 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34374             Bruno Haible  <bruno@clisp.org>
34375
34376         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
34377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34378         * m4/signed.m4 (bh_C_SIGNED): Likewise.
34379
34380         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
34381         (gl_FUNC_VASPRINTF): Invoke it.
34382
34383 2006-09-22  Bruno Haible  <bruno@clisp.org>
34384
34385         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
34386         getloadavg.c as first argument.
34387
34388 2006-09-22  Bruno Haible  <bruno@clisp.org>
34389
34390         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
34391         at the beginning of the gl_INIT macro.
34392         * modules/getloadavg (configure.ac): Pass $gl_source_base to
34393         gl_GETLOADAVG.
34394
34395 2006-09-22  Bruno Haible  <bruno@clisp.org>
34396
34397         * gnulib-tool (func_create_megatestdir): Don't include the config-h
34398         module.
34399         Suggested by Ralf Wildenhues.
34400
34401 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
34402
34403         Import this patch from libc:
34404
34405         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
34406
34407         * lib/regex_internal.c (re_string_reconstruct): Handle
34408         offset < pstr->valid_raw_len && pstr->offsets_needed case.
34409         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
34410         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
34411         re_string_context_at.
34412
34413         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
34414         now requires it.
34415         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
34416         gl_REGEX now does it for us.
34417         (gl_REGEX): Add test taken from
34418         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
34419
34420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
34421         Check that large offsets work.  Modernize Autoconf usages.
34422         Prefer "yes" to mean a good thing rather than a bad.
34423         Don't put "#define mkstemp" in config.h, as this might interfere
34424         with standard system headers that "#define mkstemp mkstemp64".
34425
34426         * modules/mkstemp (Depends-on): Add extensions, so that
34427         mkstemp is visible on some platforms.
34428         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
34429         (Include): Change to "mkstemp.h" from <stdlib.h>.
34430         (Files): Add mkstemp.h.
34431
34432         * lib/mkstemp.h: New file, since some standard headers
34433         #define mkstemp.
34434         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
34435         Include "mkstemp.h".
34436         Make the _LIBC code resemble glibc original more,
34437         e.g., use K&R style.
34438         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
34439         (mkstemp): Remove, since mkstemp.h does this for us.
34440         * lib/stdlib--.h: Include mkstemp.h.
34441
34442         Import this patch from libc:
34443
34444         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
34445
34446         * lib/tempname.c (__gen_tempname): Change attempts_min
34447         into a macro.  Use preprocessor to decide how to initialize
34448         attempts [Coverity CID 67].
34449
34450 2006-09-20  Bruno Haible  <bruno@clisp.org>
34451
34452         * lib/mkdtemp.c: Import from libc.
34453         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
34454                 * sysdeps/posix/tempname.c (__gen_tempname): Change
34455                 attempts_min into a macro.  Use preprocessor to decide how to
34456                 initialize attempts [Coverity CID 67].
34457         2001-11-27  Paul Eggert  <eggert@twinsun.com>
34458                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
34459                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
34460
34461 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34462
34463         * gnulib-tool (func_exit): New function, to allow to pass the
34464         exit status portably through the trap.  Use everywhere.
34465         (--help, --version): Signal a write error.
34466         (trap): catch SIGPIPE, for write errors.
34467         Exit at the end of the trap, with the correct exit status.
34468
34469 2006-09-19  Karl Berry  <karl@gnu.org>
34470
34471         * doc/gnulib.texi: note about the license texinfo files.
34472
34473 2006-09-19  Eric Blake  <ebb9@byu.net>
34474
34475         * gnulib-tool: Avoid space-tab.
34476
34477 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
34478
34479         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
34480         that prevented coreutils 6.1 from building.  Problem reported
34481         by Petter Reinholdtsen.
34482
34483 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
34484
34485         * gnulib-tool (avoidlist): Fix typo that broke options like
34486         --avoid=lock that are used by coreutils bootstrap.
34487
34488 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
34489
34490         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
34491         more systematically.
34492
34493 2006-09-18  Jim Meyering  <jim@meyering.net>
34494
34495         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
34496
34497 2006-09-18  Bruno Haible  <bruno@clisp.org>
34498
34499         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
34500
34501 2006-09-18  Bruno Haible  <bruno@clisp.org>
34502
34503         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
34504         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
34505         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
34506         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
34507         * m4/gettext.m4: Require autoconf >= 2.52.
34508         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
34509         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
34510         of gl_cv_header_inttypes_h.
34511
34512 2006-09-18  Bruno Haible  <bruno@clisp.org>
34513
34514         * lib/javaversion.c: Include configmake.h.
34515
34516 2006-09-18  Bruno Haible  <bruno@clisp.org>
34517
34518         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
34519         avoid that the while loops be executed in a subshell.
34520
34521 2006-09-18  Bruno Haible  <bruno@clisp.org>
34522
34523         * MODULES.html.sh (func_module): Break long lines.
34524         Suggested by Bruce Korb <bkorb@gnu.org>.
34525
34526 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34527
34528         Speed up by a factor of 1.12.
34529         * gnulib-tool (nl): New variable.
34530         (func_import): Rewrite include directive extraction to only read each
34531         directive once.
34532
34533 2006-09-17  Bruno Haible  <bruno@clisp.org>
34534
34535         * modules/javaversion (Makefile.am): Remove DEFS setting.
34536         (Depends-on): Add configmake, for PKGDATADIR definition.
34537
34538 2006-09-17  Bruno Haible  <bruno@clisp.org>
34539
34540         * gnulib-tool (func_create_testdir): Rewrite all files at once.
34541
34542 2006-09-17  Bruno Haible  <bruno@clisp.org>
34543
34544         * gnulib-tool (func_append): New function, stolen from libtool.m4.
34545         (func_modules_transitive_closure, func_modules_add_dummy,
34546         func_modules_to_filelist, func_import, func_create_testdir,
34547         func_create_megatestdir, ...): Use it wherever possible.
34548         Suggested by Ralf Wildenhues.
34549
34550 2006-09-16  Karl Berry  <karl@gnu.org>
34551
34552         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
34553         to avoid sectioning errors.
34554         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
34555         [ifinfo]: blank line after @center-ed titles.
34556         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
34557         Spell FSF address consistently with others.
34558         (These changes approved by rms.)
34559
34560 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34561
34562         Speed up by a factor of 1.61.
34563         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
34564         already checked module names again.
34565
34566 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34567
34568         Speed up by a factor of 1.13.
34569         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
34570         for new_files, and the input to func_add_or_update.
34571
34572 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34573
34574         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
34575         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
34576
34577 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34578
34579         * modules/mkancesdirs (Depends-on): Add fcntl.
34580         * modules/savewd: New file.
34581         * MODULES.html.sh (File system functions): Add savewd.
34582
34583         * modules/configmake (Makefile.am): Add support for the
34584         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
34585
34586 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34587
34588         * m4/savewd.m4: New file.
34589
34590 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34591
34592         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
34593         (dirchownmod): New arg FD.  All callers changed.
34594         Use FD rather than opening the directory ourself, as opening is
34595         now the caller's responsibility.
34596         * lib/dirchownmod.h: Likewise.
34597         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
34598         hosts that require <sys/types.h> before <sys/stat.h>.  Include
34599         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
34600         (test_dir): Remove.
34601         (mkancesdirs): Return length of prefix of FILE that has already
34602         been made, or -2 if there is a child doing the work.  Redo
34603         algorithm so that it is O(N) rather than O(N**2).  Optimize away
34604         ".", and treat ".." specially since it might stray back into
34605         already-created areas.  Use a subprocess if necessary.  New arg
34606         WD; all users changed.  MAKE_DIR function should now return 1
34607         if it creates a directory that is not readable.  Return -2 if
34608         a child process is spun off.
34609         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
34610         Adjust signature to match code.
34611         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
34612         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
34613         all users changed.
34614         * lib/savewd.c, lib/savewd.h: New files.
34615
34616 2006-09-15  Jim Meyering  <jim@meyering.net>
34617
34618         * modules/rename-dest-slash: New module.
34619         * MODULES.html.sh (posix_compat): Add it here.
34620
34621         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
34622
34623 2006-09-15  Jim Meyering  <jim@meyering.net>
34624
34625         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
34626         file.
34627
34628         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
34629
34630 2006-09-15  Jim Meyering  <jim@meyering.net>
34631
34632         * lib/rename-dest-slash.c (has_trailing_slash): Use
34633         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
34634         (rpl_rename_dest_slash): Perform the cheaper trailing slash
34635         test before testing whether SRC is a directory.
34636         Suggestions from Bruno Haible.
34637
34638         Avoid a warning about an unused variable.
34639         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
34640         into the #ifdef block where it's used.
34641
34642         * lib/rename-dest-slash.c: New file.
34643
34644 2006-09-14  Bruno Haible  <bruno@clisp.org>
34645
34646         * lib/allocsa.c: Include <config.h> unconditionally.
34647         * lib/asnprintf.c: Likewise.
34648         * lib/asprintf.c: Likewise.
34649         * lib/c-strcasecmp.c: Likewise.
34650         * lib/c-strcasestr.c: Likewise.
34651         * lib/c-strncasecmp.c: Likewise.
34652         * lib/c-strstr.c: Likewise.
34653         * lib/classpath.c: Likewise.
34654         * lib/clean-temp.c: Likewise.
34655         * lib/concatpath.c: Likewise.
34656         * lib/copy-file.c: Likewise.
34657         * lib/csharpcomp.c: Likewise.
34658         * lib/csharpexec.c: Likewise.
34659         * lib/execute.c: Likewise.
34660         * lib/fatal-signal.c: Likewise.
34661         * lib/findprog.c: Likewise.
34662         * lib/fwriteerror.c: Likewise.
34663         * lib/gl_array_list.c: Likewise.
34664         * lib/gl_array_oset.c: Likewise.
34665         * lib/gl_avltree_list.c: Likewise.
34666         * lib/gl_avltree_oset.c: Likewise.
34667         * lib/gl_avltreehash_list.c: Likewise.
34668         * lib/gl_carray_list.c: Likewise.
34669         * lib/gl_linked_list.c: Likewise.
34670         * lib/gl_linkedhash_list.c: Likewise.
34671         * lib/gl_list.c: Likewise.
34672         * lib/gl_oset.c: Likewise.
34673         * lib/gl_rbtree_list.c: Likewise.
34674         * lib/gl_rbtree_oset.c: Likewise.
34675         * lib/gl_rbtreehash_list.c: Likewise.
34676         * lib/imaxabs.c: Likewise.
34677         * lib/imaxdiv.c: Likewise.
34678         * lib/javacomp.c: Likewise.
34679         * lib/javaexec.c: Likewise.
34680         * lib/javaversion.c: Likewise.
34681         * lib/linebreak.c: Likewise.
34682         * lib/localcharset.c: Likewise.
34683         * lib/lock.c: Likewise.
34684         * lib/mbchar.c: Likewise.
34685         * lib/mbswidth.c: Likewise.
34686         * lib/mkdtemp.c: Likewise.
34687         * lib/pipe.c: Likewise.
34688         * lib/printf-args.c: Likewise.
34689         * lib/printf-parse.c: Likewise.
34690         * lib/progname.c: Likewise.
34691         * lib/progreloc.c: Likewise.
34692         * lib/readlink.c: Likewise.
34693         * lib/sh-quote.c: Likewise.
34694         * lib/stpcpy.c: Likewise.
34695         * lib/stpncpy.c: Likewise.
34696         * lib/strcasecmp.c: Likewise.
34697         * lib/strcasestr.c: Likewise.
34698         * lib/strcspn.c: Likewise.
34699         * lib/striconv.c: Likewise.
34700         * lib/strncasecmp.c: Likewise.
34701         * lib/strnlen1.c: Likewise.
34702         * lib/strstr.c: Likewise.
34703         * lib/strtok_r.c: Likewise.
34704         * lib/tls.c: Likewise.
34705         * lib/tmpdir.c: Likewise.
34706         * lib/unicodeio.c: Likewise.
34707         * lib/unsetenv.c: Likewise.
34708         * lib/vasnprintf.c: Likewise.
34709         * lib/vasprintf.c: Likewise.
34710         * lib/wait-process.c: Likewise.
34711         * lib/xallocsa.c: Likewise.
34712         * lib/xsetenv.c: Likewise.
34713         * lib/xstriconv.c: Likewise.
34714
34715 2006-09-13  Simon Josefsson  <jas@extundo.com>
34716
34717         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
34718         that internally, suggested by Ralf Wildenhues
34719         <Ralf.Wildenhues@gmx.de>.
34720
34721 2006-09-13  Simon Josefsson  <jas@extundo.com>
34722
34723         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
34724         @LIBOBJS@.
34725         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34726
34727 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34728
34729         * lib/_fpending.c: Include <config.h> unconditionally, since we no
34730         longer worry about uses that don't define HAVE_CONFIG_H.
34731         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
34732         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
34733         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
34734         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
34735         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
34736         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
34737         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
34738         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
34739         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
34740         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
34741         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
34742         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
34743         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
34744         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
34745         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
34746         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
34747         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
34748         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
34749         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
34750         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
34751         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
34752         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
34753         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
34754         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
34755         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
34756         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
34757         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
34758         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
34759         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
34760         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
34761         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
34762         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
34763         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
34764         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
34765         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
34766         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
34767         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
34768         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
34769         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
34770         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
34771         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
34772         Likewise.
34773
34774 2006-09-13  Eric Blake  <ebb9@byu.net>
34775
34776         * lib/getopt.c: Fix typo in last commit.
34777
34778 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34779
34780         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
34781         dgettext.
34782
34783 2006-09-12  Jim Meyering  <jim@meyering.net>
34784
34785         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
34786         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
34787         Reported by Nelson H. F. Beebe.
34788
34789 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34790
34791         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
34792         program_invocation_name and program_invocation_short_name are
34793         initialized.
34794         * lib/argp-namefrob.h: Move declarations of program_invocation_name
34795         and program_invocation_short_name to argp.h, so they are visible
34796         to user programs.
34797         * lib/argp.h: Likewise
34798
34799 2006-09-10  Bruno Haible  <bruno@clisp.org>
34800
34801         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34802         m4/inttypes_h.m4, m4/uintmax_t.m4.
34803
34804 2006-09-10  Bruno Haible  <bruno@clisp.org>
34805
34806         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
34807         gl_AC_TYPE_UINTMAX_T.
34808
34809 2006-09-10  Bruno Haible  <bruno@clisp.org>
34810
34811         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
34812
34813 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34814
34815         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
34816         convention.  Text proposed by Bruno Haible.
34817         (struct argp_option): Document the use of N_() wrappers.
34818
34819         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
34820         '\v', and translate the two parts separately, instead of feeding
34821         the whole string to gettext.  This allows to exclude
34822         '\v' from the strings visible to the translator by writing doc
34823         strings as N_("..") "\v" N_("..").
34824
34825 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
34826
34827         * config/srclist.txt: Undo latest change; the bug was fixed.
34828
34829 2006-09-09  Bruno Haible  <bruno@clisp.org>
34830
34831         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
34832         assignments if building a library without libtool.
34833         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
34834         in func_emit_lib_Makefile_am.
34835         (func_import): When building a static library libfoo.a, arrange to
34836         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
34837         (func_create_testdir): Likewise.
34838         * modules/gc (configure.ac, Makefile.am): If building statically,
34839         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
34840         * modules/iconvme (configure.ac, Makefile.am): Likewise.
34841         * modules/striconv (configure.ac, Makefile.am): Likewise.
34842         Based on a suggestion by Ralf Wildenhues.
34843
34844 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34845
34846         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34847         Check for unistd.h too, since Autoconf doesn't assume POSIX.
34848         Also:
34849
34850         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34851         Add year_2050_test to catch glibc bug 2821
34852         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34853
34854         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34855         Prefer #ifdef to #if.
34856
34857         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
34858         Return from 'main' instead of calling 'exit'.
34859
34860 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34861
34862         * lib/mktime.c (guess_time_tm): Fix bug where mktime
34863         returned the maximum time_t value rather than (time_t) -1.
34864         Problem originally reported by William Bardwell
34865         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34866
34867         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34868         Moved to here ...
34869         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34870         ... from here.
34871
34872 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34873
34874         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
34875         2821 is fixed.
34876
34877 2006-09-08  Jim Meyering  <jim@meyering.net>
34878
34879         Don't make generated files read-only.  That would bother too many
34880         people.  However, do retain the ability to work when targets are
34881         read-only: remove the destination and temporary files before writing
34882         them (when generated via sed or echo), or by using the -f option for
34883         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
34884         * modules/alloca-opt, modules/argz, modules/arpa_inet:
34885         * modules/byteswap, modules/configmake, modules/fcntl:
34886         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34887         * modules/localcharset, modules/netinet_in, modules/poll:
34888         * modules/stdbool, modules/stdint, modules/sys_select:
34889         * modules/sys_socket, modules/sys_stat, modules/sysexits:
34890
34891 2006-09-08  Jim Meyering  <jim@meyering.net>
34892
34893         Avoid new build failure on FreeBSD 6.0.
34894         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
34895         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
34896         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
34897
34898 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34899
34900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
34901
34902 2006-09-07  Jim Meyering  <jim@meyering.net>
34903
34904         Fix global typo in last change: use chmod u-w, not chmod u-x.
34905         Spotted by Paul Eggert and Bruce Korb.
34906         * modules/alloca-opt, modules/argz, modules/arpa_inet:
34907         * modules/byteswap, modules/configmake, modules/fcntl:
34908         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34909         * modules/localcharset, modules/netinet_in, modules/poll:
34910         * modules/stdbool, modules/stdint, modules/sys_select:
34911         * modules/sys_socket, modules/sys_stat, modules/sysexits:
34912
34913 2006-09-06  Jim Meyering  <jim@meyering.net>
34914
34915         Make generated files be read-only.
34916         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
34917         Ensure that each generated file is now read-only.
34918         * modules/argz: Likewise.
34919         * modules/arpa_inet: Likewise.
34920         * modules/byteswap: Likewise.
34921         * modules/configmake: Likewise.
34922         * modules/fcntl: Likewise.
34923         * modules/fnmatch: Likewise.
34924         * modules/getopt: Likewise.
34925         * modules/glob: Likewise.
34926         * modules/inttypes: Likewise.
34927         * modules/netinet_in: Likewise.
34928         * modules/poll: Likewise.
34929         * modules/stdbool: Likewise.
34930         * modules/stdint: Likewise.
34931         * modules/sys_select: Likewise.
34932         * modules/sys_socket: Likewise.
34933         * modules/sys_stat: Likewise.
34934         * modules/sysexits: Likewise.
34935         * modules/localcharset: Same as above, but continue using temporary
34936         file named "t-$@" (why different?) rather than the "$@-t" used
34937         everywhere else.
34938
34939         * modules/sysexits (Makefile.am): Replace literal occurrences
34940         of "sysexit.h" more readable, and more consistent, "$@".
34941
34942 2006-09-06  Bruno Haible  <bruno@clisp.org>
34943
34944         * modules/striconv: New file.
34945         * modules/xstriconv: New file.
34946         * MODULES.html.sh (Internationalization functions): Add striconv,
34947         xstriconv.
34948
34949 2006-09-06  Bruno Haible  <bruno@clisp.org>
34950
34951         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
34952         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
34953         not using libtool correctly.
34954
34955 2006-09-06  Bruno Haible  <bruno@clisp.org>
34956
34957         * lib/striconv.h: New file.
34958         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
34959         iconvstring.c.
34960         * lib/xstriconv.h: New file.
34961         * lib/xstriconv.c: New file.
34962
34963 2006-09-06  Bruno Haible  <bruno@clisp.org>
34964
34965         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34966         lib_..._LDFLAGS.
34967
34968 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34969
34970         * lib/argz_.h: Sync from Libtool.
34971
34972         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
34973                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34974
34975         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
34976
34977 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
34978
34979         * modules/trim: New file.
34980
34981 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
34982
34983         * lib/trim.h: New file.
34984         * lib/trim.c: New file.
34985
34986 2006-09-05  Bruno Haible  <bruno@clisp.org>
34987
34988         * MODULES.html.sh (String handling): Add trim.
34989
34990 2006-09-04  Karl Berry  <karl@gnu.org>
34991
34992         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
34993         until next release.
34994
34995 2006-09-03  Bruno Haible  <bruno@clisp.org>
34996
34997         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
34998         correctly.
34999
35000 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35001
35002         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
35003         not gl_GETLOADAVG.  Omit unneeded semicolons.
35004         Problems reported by Ralf Wildenhues in
35005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
35006         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
35007         at the end, which is the usual gnulib style.
35008
35009         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
35010         of doing all the work ourselves.
35011         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
35012         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
35013
35014 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35015
35016         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
35017         Problem reported by Ralf Wildenhues in
35018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
35019
35020         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
35021         HAVE_STRUCT_STATFS_F_FSTYPENAME.
35022
35023 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35024
35025         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
35026         yesterday's patch by changing test -n to test -z.
35027
35028 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35029
35030         * modules/getloadavg (Files): Add m4/getloadavg.m4.
35031         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
35032         the former is now obsolescent.
35033
35034         * modules/chdir-long (Depends-on): Add fcntl.
35035
35036 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35037
35038         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
35039         obsolescent, and programs should use gnulib instead.
35040         * m4/getloadavg.m4: New file, with contents taken from Autoconf
35041         but with prefixes changed.
35042
35043 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35044
35045         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
35046         or stdbool.h, because they might not exist while configuring.
35047
35048         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
35049         Don't include unistd.h or limits.h; not needed, since chdir-long.h
35050         does that for us.
35051         (O_DIRECTORY): Remove.
35052
35053 2006-08-31  Eric Blake  <ebb9@byu.net>
35054
35055         * gnulib-tool: Don't let emacs change spaces to TAB.
35056
35057 2006-08-31  Bruno Haible  <bruno@clisp.org>
35058
35059         * gnulib-tool: When calling func_import more than once, do it in a
35060         subshell.
35061         Reported by Eric Blake <ebb9@byu.net>.
35062
35063 2006-08-31  Bruno Haible  <bruno@clisp.org>
35064
35065         * gnulib-tool (nl): Remove variable.
35066         (sed_transform_lib_file): Use more robust test for config-h module.
35067         (func_import): Fix typo in 2006-08-25 patch.
35068
35069 2006-08-31  Bruno Haible  <bruno@clisp.org>
35070
35071         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
35072         specified, augment Makefile.am variables instead of assigning them.
35073
35074 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
35075
35076         Work around a bug in both the Linux and SunOS 64-bit kernels:
35077         nanosleep mishandles sleeps for longer than 2**31 seconds.
35078         Problem reported by Frank v Waveren in
35079         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
35080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
35081         Check for nanosleep bug.
35082         (LIB_NANOSLEEP): Append clock_gettime library if needed.
35083
35084 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
35085
35086         Work around a bug in both the Linux and SunOS 64-bit kernels:
35087         nanosleep mishandles sleeps for longer than 2**31 seconds.
35088         Problem reported by Frank v Waveren in
35089         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
35090         * lib/nanosleep.c (BILLION): New constant.
35091         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
35092         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
35093         implementation.
35094
35095 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
35096
35097         * modules/nanosleep (Depends-on): Add gettime.
35098
35099 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
35100         and Simon Josefsson  <jas@extundo.com>
35101         and Oskar Liljeblad  <oskar@osk.mine.nu>
35102
35103         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
35104         * gnulib-tool (func_import): New license type 'unmodifiable license
35105         text'.
35106         * modules/fdl: Use it.  Longer description.
35107         * module/gpl, module/lgpl: New files.
35108
35109 2006-08-30  Jim Meyering  <jim@meyering.net>
35110
35111         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
35112         shadowing the parameter.
35113
35114 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35115
35116         Sync from Libtool:
35117
35118         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35119
35120         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
35121         sharing with gnulib.  Report by Eric Blake.
35122
35123 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35124
35125         * modules/isapipe: New file.
35126         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
35127
35128 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35129
35130         * modules/configmake (Makefile.am): Add a comment, and omit
35131         the CONFIGMAKE_ prefix from generated macro names.  Suggested
35132         by Bruno Haible.
35133
35134 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35135
35136         * m4/isapipe.m4: New file.
35137
35138 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35139
35140         * lib/isapipe.c, lib/isapipe.h: New files.
35141
35142 2006-08-29  Jim Meyering  <jim@meyering.net>
35143
35144         * modules/configmake (Makefile.am): Make configmake.h depend on
35145         Makefile.  Otherwise, a stale configmake.h could hang around.
35146
35147 2006-08-29  Eric Blake  <ebb9@byu.net>
35148
35149         * lib/error.c (error_at_line, print_errno_message): Match libc, after
35150         resolution of upstream bug 3044.
35151
35152 2006-08-29  Bruno Haible  <bruno@clisp.org>
35153
35154         * modules/localcharset (Depends-on): Add configmake.
35155         (Makefile.am): Remove setting of LIBDIR through DEFS.
35156
35157 2006-08-29  Bruno Haible  <bruno@clisp.org>
35158
35159         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
35160         defined.
35161
35162 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35163
35164         * modules/fcntl: New file.
35165         * modules/chdir-safer (Depends-on): Add fcntl.
35166         * modules/fts: Likewise.
35167         * modules/mkdir-p: Likewise.
35168
35169         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
35170         This undoes the most recent change, since we're now addressing the
35171         problem in a different way.
35172
35173         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
35174         into output, since the output might be called Makefile.am even
35175         if $makefile_name is something different.
35176         (func_import): Use $makefile_am rather than
35177         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
35178         empty.
35179
35180         * modules/inttypes (Files): Add m4/inttypes-h.m4.
35181
35182 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35183
35184         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
35185         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
35186         recent change to stdint.m4, since we're now addressing the problem in a
35187         different way.
35188
35189 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35190
35191         * m4/fcntl_h.m4: New file.
35192
35193 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35194
35195         * lib/fcntl_.h: New file.
35196         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
35197         the fcntl module.
35198         * lib/dirchownmod.c: Likewise.
35199         * lib/fts.c: Likewise.
35200
35201         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
35202         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
35203         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
35204         just before including <inttypes.h>, to avoid circular inclusion.
35205
35206 2006-08-28  Jim Meyering  <jim@meyering.net>
35207
35208         * doc/visibility.texi: Actually read and correct the grammar of the
35209         sentence affected by yesterday's change.
35210
35211 2006-08-28  Eric Blake  <ebb9@byu.net>
35212
35213         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
35214         needs wrapper.
35215
35216 2006-08-28  Eric Blake  <ebb9@byu.net>
35217
35218         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
35219
35220 2006-08-28  Eric Blake  <ebb9@byu.net>
35221
35222         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
35223
35224 2006-08-28  Bruno Haible  <bruno@clisp.org>
35225
35226         * modules/c-strstr: New file, from GNU gettext.
35227         * MODULES.html.sh (String handling): Add c-strstr.
35228
35229 2006-08-28  Bruno Haible  <bruno@clisp.org>
35230
35231         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
35232         macros.
35233         Reported by Eric Blake.
35234
35235 2006-08-28  Bruno Haible  <bruno@clisp.org>
35236
35237         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
35238         (VASNPRINTF): Return a string of length > INT_MAX without failing.
35239         * lib/vasprintf.c: Include errno.h, limits.h.
35240         (EOVERFLOW): New fallback definition.
35241         (vasprintf): Test here whether the string length is > INT_MAX.
35242         * lib/vsnprintf.c: Include errno.h, limits.h.
35243         (EOVERFLOW): New fallback definition.
35244         (vsnprintf): Fix bug when generated string was too long for the buffer.
35245         Test here whether the string length is > INT_MAX.
35246
35247 2006-08-28  Bruno Haible  <bruno@clisp.org>
35248
35249         * lib/inttypes_.h (SCNX*): Remove definitions.
35250         Reported by Eric Blake.
35251
35252 2006-08-28  Bruno Haible  <bruno@clisp.org>
35253
35254         * lib/c-strstr.h: New file, from GNU gettext.
35255         * lib/c-strstr.c: New file, from GNU gettext.
35256
35257 2006-08-28  Bruno Haible  <bruno@clisp.org>
35258
35259         * gnulib-tool: Reorder some statements.
35260
35261 2006-08-28  Bruno Haible  <bruno@clisp.org>
35262
35263         * gnulib-tool: New option --makefile-name.
35264         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
35265         $makefile_name.
35266         (func_import): Write $makefile_name to the cache file, and read it from
35267         there unless explicitly specified. Use $makefile_name as file name
35268         instead of Makefile.am. Adjust the recommendations accordingly.
35269
35270 2006-08-28  Bruno Haible  <bruno@clisp.org>
35271
35272         * gnulib-tool (func_verify_module): Check against misapplying patch.
35273
35274 2006-08-28  Bruno Haible  <bruno@clisp.org>
35275
35276         * gnulib-tool (func_relativize, func_relconcat): New functions.
35277         Give an error if --local-dir is given with --update.
35278         Remove trailing slashes from $local_gnulib_dir.
35279         (func_import): Store the relativized $local_gnulib_dir in
35280         gnulib-cache.m4, and read it from there if not specified explicitly.
35281
35282 2006-08-28  Bruno Haible  <bruno@clisp.org>
35283
35284         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
35285         is the current directory. Respect also $local_gnulib_dir.
35286
35287 2006-08-28  Bruno Haible  <bruno@clisp.org>
35288             Simon Josefsson  <jas@extundo.com>
35289
35290         BeOS portability.
35291         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
35292
35293 2006-08-27  Jim Meyering  <jim@meyering.net>
35294
35295         * doc/visibility.texi: Remove duplicate word: "pointer".
35296
35297 2006-08-26  Bruno Haible  <bruno@clisp.org>
35298
35299         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
35300         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
35301         (Makefile.am): Create inttypes.h from inttypes_.h.
35302         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
35303
35304         * modules/imaxabs: New file.
35305
35306         * modules/imaxdiv: New file.
35307
35308 2006-08-26  Bruno Haible  <bruno@clisp.org>
35309
35310         * m4/inttypes.m4: New file.
35311         * m4/_inttypes_h.m4: Remove file.
35312         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
35313         PRI_MACROS_BROKEN.
35314         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
35315
35316         * m4/imaxabs.m4: New file.
35317
35318         * m4/imaxdiv.m4: New file.
35319
35320 2006-08-26  Bruno Haible  <bruno@clisp.org>
35321
35322         * lib/inttypes_.h: New file.
35323         * lib/inttypes.h: Remove file.
35324         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
35325
35326         * lib/imaxabs.c: New file.
35327
35328         * lib/imaxdiv.c: New file.
35329
35330 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35331
35332         New config-h module, so that "make" output needn't be cluttered
35333         by -DHAVE_CONFIG_H.
35334         * MODULES.html.sh (Support for building libraries and executables):
35335         Add config-h.
35336         * modules/config-h: New file.
35337         * gnulib-tool (nl, sed_transform_lib_file): New vars.
35338         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
35339         the config-h module is used.
35340
35341         New configmake module, so that "make" output needn't be cluttered
35342         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
35343         * MODULES.html.sh (Support for building libraries and executables):
35344         Add configmake.
35345         * modules/configmake: New file.
35346
35347 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35348
35349         * m4/config-h.m4: New file.
35350
35351 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35352
35353         * config/srclist.txt: Add elisp-comp.
35354
35355 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35356
35357         * MODULES.html.sh (Support for building libraries and executables):
35358         Add elisp-comp.
35359         * build-aux/elisp-comp: New file.
35360         * modules/elisp-comp: New file.
35361
35362 2006-08-24  Bruno Haible  <bruno@clisp.org>
35363
35364         * gnulib-tool (func_create_testdir): Use non-default values of
35365         sourcebase and m4base.
35366
35367 2006-08-24  Bruno Haible  <bruno@clisp.org>
35368
35369         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
35370         HTML structure.
35371
35372 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35373
35374         * modules/openat (Depends-on): Add lchown.
35375
35376 2006-08-23  Bruno Haible  <bruno@clisp.org>
35377
35378         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
35379         of gl_LOCK_EARLY instead of gl_LOCK.
35380
35381 2006-08-23  Bruno Haible  <bruno@clisp.org>
35382
35383         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
35384         on OSF/1 to no.
35385         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
35386
35387 2006-08-23  Bruno Haible  <bruno@clisp.org>
35388
35389         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
35390         as unusable.
35391
35392         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
35393         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
35394         (gl_LOCK): New macro.
35395
35396 2006-08-22  Simon Josefsson  <jas@extundo.com>
35397
35398         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
35399         to md5 module.
35400
35401 2006-08-22  Simon Josefsson  <jas@extundo.com>
35402
35403         * MODULES.html.sh: Add "Support for maintaining and release
35404         projects".
35405
35406         * build-aux/gnupload: New file, from coreutils.
35407
35408 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35409
35410         Avoid the need for AC_LIBSOURCES in m4 macros.
35411         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
35412         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
35413         * modules/check-version (EXTRA_DIST): Add check-version.h.
35414         * modules/crc (EXTRA_DIST): Add crc.h.
35415         * modules/des (EXTRA_DIST): Add des.h.
35416         * modules/gc (EXTRA_DIST): Add gc.h.
35417         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
35418         * modules/getline (EXTRA_DIST): Add getline.h.
35419         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
35420         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
35421         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
35422         * modules/md2 (EXTRA_DIST): Add md2.h.
35423         * modules/md4 (EXTRA_DIST): Add md4.h.
35424         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
35425         * modules/read-file (EXTRA_DIST): Add read-file.h.
35426         * modules/readline (EXTRA_DIST): Add readline.h.
35427         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
35428         rijndael-api-fst.h.
35429
35430 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35431
35432         * m4/rijndael.m4 (gl_ARCFOUR):
35433         * m4/arctwo.m4 (gl_ARCTWO):
35434         * m4/check-version.m4 (gl_CHECK_VERSION):
35435         * m4/crc.m4 (gl_CRC):
35436         * m4/des.m4 (gl_DES):
35437         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
35438         * m4/gc.m4 (gl_GC):
35439         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
35440         * m4/getline.m4 (gl_FUNC_GETLINE):
35441         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
35442         * m4/hmac-md5.m4 (gl_HMAC_MD5):
35443         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
35444         * m4/md2.m4 (gl_MD2):
35445         * m4/md4.m4 (gl_MD4):
35446         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
35447         * m4/read-file.m4 (gl_FUNC_READ_FILE):
35448         * m4/readline.m4 (gl_FUNC_READLINE):
35449         * m4/rijndael.m4 (gl_RIJNDAEL):
35450         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
35451         to get the necessary .h files and whatnot.
35452
35453 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35454
35455         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
35456         gnulib rather than the other way around.
35457         * config/srclistvars.sh (COREUTILS): Remove.
35458
35459 2006-08-22  Jim Meyering  <jim@meyering.net>
35460
35461         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
35462
35463         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
35464
35465 2006-08-22  Eric Blake  <ebb9@byu.net>
35466
35467         * modules/regexprops-generic: New file.
35468         * MODULES.html.sh (Support for building documentation): List it.
35469
35470 2006-08-22  Eric Blake  <ebb9@byu.net>
35471
35472         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
35473         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35474         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
35475         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
35476
35477 2006-08-22  Bruno Haible  <bruno@clisp.org>
35478
35479         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
35480         and lib_LTLIBRARIES like the other lib_* variables.
35481
35482 2006-08-22  Bruno Haible  <bruno@clisp.org>
35483
35484         * build-aux/x-to-1.in: New file, from GNU gettext.
35485
35486 2006-08-22  Bruno Haible  <bruno@clisp.org>
35487
35488         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
35489         <utmpx.h> exists.
35490
35491 2006-08-22  Bruno Haible  <bruno@clisp.org>
35492
35493         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
35494         <utmpx.h> exists.
35495
35496 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35497
35498         BeOS portability.
35499         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
35500         exist.
35501         Problem reported by Bruno Haible.
35502
35503 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35504
35505         Avoid the need for AC_LIBSOURCES in m4 macros.
35506         * modules/acl (EXTRA_DIST): Add acl.h.
35507         * modules/argmatch (Files): Add m4/argmatch.m4.
35508         (configure.ac): Add gl_ARGMATCH.
35509         (EXTRA_DIST): Renamed from lib_SOURCES, for
35510         consistency with the other modules.  Remove argmatch.c.
35511         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
35512         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
35513         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
35514         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
35515         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
35516         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
35517         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
35518         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
35519         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
35520         * modules/closeout (EXTRA_DIST): Add closeout.h.
35521         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
35522         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
35523         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
35524         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
35525         dirname.h; remove basename.c and stripslash.c.
35526         * modules/exclude (EXTRA_DIST): Add exclude.h.
35527         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
35528         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
35529         * modules/file-type (EXTRA_DIST): Add file-type.h.
35530         * modules/filemode (EXTRA_DIST): Add filemode.h.
35531         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
35532         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35533         * modules/fpending (EXTRA_DIST): Add __fpending.h.
35534         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
35535         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
35536         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
35537         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
35538         * modules/getdate (EXTRA_DIST): Add getdate.c.
35539         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
35540         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
35541         * modules/getpass (EXTRA_DIST): Add getpass.h.
35542         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
35543         * modules/group-member (EXTRA_DIST): Add group-member.h.
35544         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
35545         * modules/hash (EXTRA_DIST): Add hash.h.
35546         * modules/human (EXTRA_DIST): Add human.h.
35547         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
35548         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
35549         * modules/lchown (EXTRA_DIST): Add lchown.h.
35550         * modules/long-options (EXTRA_DIST): Add long-options.h.
35551         * modules/lstat (EXTRA_DIST): Add lstat.h.
35552         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
35553         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
35554         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
35555         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
35556         * modules/memxor (EXTRA_DIST): Add memxor.h.
35557         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
35558         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
35559         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
35560         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
35561         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
35562         * modules/physmem (EXTRA_DIST): Add physmem.h.
35563         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
35564         * modules/posixver (EXTRA_DIST): Add posixver.h.
35565         * modules/quote (EXTRA_DIST): Add quote.h.
35566         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
35567         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
35568         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
35569         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
35570         regex_internal.h regexec.c.
35571         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
35572         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
35573         * modules/same (EXTRA_DIST): Add same.h.
35574         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
35575         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
35576         * modules/savedir (EXTRA_DIST): Add savedir.h.
35577         * modules/sha1 (EXTRA_DIST): Add sha1.h.
35578         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
35579         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
35580         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
35581         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
35582         * modules/strdup (EXTRA_DIST): Add strdup.h.
35583         * modules/strftime (EXTRA_DIST): Add strftime.h.
35584         * modules/strndup (EXTRA_DIST): Add strndup.h.
35585         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
35586         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
35587         * modules/time_r (EXTRA_DIST): Add time_r.h.
35588         * modules/timespec (EXTRA_DIST): Add timespec.h.
35589         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35590         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
35591         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
35592         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
35593         * modules/userspec (EXTRA_DIST): Add userspec.h.
35594         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
35595         * modules/utimens (EXTRA_DIST): Add utimens.h.
35596         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
35597         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
35598         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
35599         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
35600         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
35601         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
35602         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
35603         * modules/yesno (EXTRA_DIST): Add yesno.h.
35604
35605 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35606
35607         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
35608
35609         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
35610         * m4/dev-ino.m4, same-inode.m4: Remove.
35611
35612         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
35613         * m4/acl.m4 (AC_FUNC_ACL):
35614         * m4/backupfile.m4 (gl_BACKUPFILE):
35615         * m4/c-strtod.m4 (gl_C99_STRTOLD):
35616         * m4/canon-host.m4 (gl_CANON_HOST):
35617         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35618         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
35619         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
35620         * m4/cloexec.m4 (gl_CLOEXEC):
35621         * m4/close-stream.m4 (gl_CLOSE_STREAM):
35622         * m4/closeout.m4 (gl_CLOSEOUT):
35623         * m4/dirfd.m4 (gl_FUNC_DIRFD):
35624         * m4/dirname.m4 (gl_DIRNAME):
35625         * m4/exclude.m4 (gl_EXCLUDE):
35626         * m4/exitfail.m4 (gl_EXITFAIL):
35627         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
35628         * m4/file-type.m4 (gl_FILE_TYPE):
35629         * m4/filemode.m4 (gl_FILEMODE):
35630         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
35631         * m4/fpending.m4 (gl_FUNC_FPENDING):
35632         * m4/fprintftime.m4 (gl_FPRINTFTIME):
35633         * m4/fts.m4 (gl_FUNC_FTS):
35634         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
35635         * m4/getdate.m4 (gl_GETDATE):
35636         * m4/gethrxtime.m4 (gl_GETHRXTIME):
35637         * m4/getpagesize.m4 (gl_GETPAGESIZE):
35638         * m4/getpass.m4 (gl_FUNC_GETPASS):
35639         * m4/gettime.m4 (gl_GETTIME):
35640         * m4/getugroups.m4 (gl_GETUGROUPS):
35641         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
35642         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
35643         * m4/hard-locale.m4 (gl_HARD_LOCALE):
35644         * m4/hash.m4 (gl_HASH):
35645         * m4/idcache.m4 (gl_IDCACHE):
35646         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
35647         * m4/lchown.m4 (gl_FUNC_LCHOWN):
35648         * m4/long-options.m4 (gl_LONG_OPTIONS):
35649         * m4/lstat.m4 (gl_FUNC_LSTAT):
35650         * m4/md5.m4 (gl_MD5):
35651         * m4/memcasecmp.m4 (gl_MEMCASECMP):
35652         * m4/memcoll.m4 (gl_MEMCOLL):
35653         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
35654         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
35655         * m4/memxor.m4 (gl_MEMXOR):
35656         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
35657         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
35658         * m4/modechange.m4 (gl_MODECHANGE):
35659         * m4/mountlist.m4 (gl_MOUNTLIST):
35660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35661         * m4/openat.m4 (gl_FUNC_OPENAT):
35662         * m4/pathmax.m4 (gl_PATHMAX):
35663         * m4/physmem.m4 (gl_PHYSMEM):
35664         * m4/posixtm.m4 (gl_POSIXTM):
35665         * m4/posixver.m4 (gl_POSIXVER):
35666         * m4/quote.m4 (gl_QUOTE):
35667         * m4/quotearg.m4 (gl_QUOTEARG):
35668         * m4/readtokens.m4 (gl_READTOKENS):
35669         * m4/readutmp.m4 (gl_READUTMP):
35670         * m4/regex.m4 (gl_REGEX):
35671         * m4/safe-read.m4 (gl_SAFE_READ):
35672         * m4/safe-write.m4 (gl_SAFE_WRITE):
35673         * m4/same.m4 (gl_SAME):
35674         * m4/save-cwd.m4 (gl_SAVE_CWD):
35675         * m4/savedir.m4 (gl_SAVEDIR):
35676         * m4/settime.m4 (gl_SETTIME):
35677         * m4/sha1.m4 (gl_SHA1):
35678         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
35679         * m4/stat-macros.m4 (gl_STAT_MACROS):
35680         * m4/stat-time.m4 (gl_STAT_TIME):
35681         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
35682         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
35683         * m4/strdup.m4 (gl_FUNC_STRDUP):
35684         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
35685         * m4/strndup.m4 (gl_FUNC_STRNDUP):
35686         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
35687         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
35688         * m4/time_r.m4 (gl_TIME_R):
35689         * m4/timespec.m4 (gl_TIMESPEC):
35690         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
35691         * m4/unlinkdir.m4 (gl_UNLINKDIR):
35692         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
35693         * m4/userspec.m4 (gl_USERSPEC):
35694         * m4/utimecmp.m4 (gl_UTIMECMP):
35695         * m4/utimens.m4 (gl_UTIMENS):
35696         * m4/xalloc.m4 (gl_XALLOC):
35697         * m4/xgetcwd.m4 (gl_XGETCWD):
35698         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
35699         * m4/xreadlink.m4 (gl_XREADLINK):
35700         * m4/xstrtod.m4 (gl_XSTRTOD):
35701         * m4/yesno.m4 (gl_YESNO):
35702         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
35703         to get the necessary .h files and whatnot.
35704
35705 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
35706             Bruno Haible  <bruno@clisp.org>
35707
35708         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
35709         /bin/sh understanding of '!' conditional negation.
35710
35711 2006-08-21  Jim Meyering  <jim@meyering.net>
35712
35713         * modules/openat (Depends-on): Really alphabetize.
35714
35715         * modules/acl (Depends-on): Add error and quote.
35716
35717         * check-module (find_included_lib_files): Add at-func.c to the
35718         ok-to-include-more-than-once white list.
35719
35720         * modules/openat (Depends-on): Add lstat.  Alphabetize.
35721
35722 2006-08-21  Bruno Haible  <bruno@clisp.org>
35723
35724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35725         Emit a pkgdata_DATA variable only if some snippets add contents to it.
35726         Reported by Martin Lambers <marlam@marlam.de>.
35727
35728 2006-08-21  Bruno Haible  <bruno@clisp.org>
35729
35730         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
35731         specify an installation location, don't emit a noinst_LIBRARIES or
35732         noinst_LTLIBRARIES assignment.
35733
35734 2006-08-21  Bruno Haible  <bruno@clisp.org>
35735
35736         BeOS portability.
35737         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
35738         BeOS has mbrtowc() but no <wctype.h>.
35739
35740 2006-08-21  Bruno Haible  <bruno@clisp.org>
35741
35742         BeOS portability.
35743         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
35744         exist.
35745
35746 2006-08-21  Bruno Haible  <bruno@clisp.org>
35747
35748         BeOS portability.
35749         * lib/mbchar.h: Include <wctype.h> only if it exists.
35750
35751 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35752
35753         Remove files that are no longer needed by their respective modules.
35754         * m4/obstack.m4: Remove.
35755         * m4/strerror_r.m4: Remove.
35756         * m4/uint32_t.m4: Remove.
35757         * m4/uintptr_t.m4: Remove.
35758         * m4/ullong_max.m4: Remove.
35759         * m4/xstrtoimax.m4: Remove.
35760         * m4/xstrtoumax.m4: Remove.
35761
35762         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
35763         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
35764         dependencies now capture this.
35765
35766         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35767         Do not use AC_LIBSOURCES, since gnulib modules now do this.
35768         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
35769         * m4/human.m4 (gl_HUMAN): Likewise.
35770         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
35771         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
35772
35773         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
35774
35775         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
35776         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
35777         stdint.
35778         * m4/human.m4 (gl_HUMAN): Likewise.
35779         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
35780         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
35781         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35782         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35783         * m4/xstrtol (gl_XSTRTOL): Likewise.
35784
35785         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
35786         AC_TYPE_LONG_LONG_INT.
35787         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35788         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
35789         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
35790         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35791
35792         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
35793         on stdbool.
35794
35795         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
35796         (gl_PREREQ_XSTRTOUL): Remove.
35797
35798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
35799
35800         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
35801         mode.
35802
35803 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35804
35805         Add and change modules to make it easier for coreutils to use
35806         gnulib-tool.
35807         * modules/backupfile (Files): Remove m4/d-ino.m4.
35808         (Depends-on): Add d-ino.
35809         * modules/cycle-check (Depends-on): Add stdint.
35810         (lib_SOURCES): Add cycle-check.h.
35811         * modules/d-ino: New module.
35812         * modules/d-type: New module.
35813         * modules/error (Files): Remove m4/strerror_r.m4.
35814         * modules/filemode (Files): Add m4/st_dm_mode.m4.
35815         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
35816         m4/inttypes_h.m4, m4/uintmax_t.m4.
35817         (Depends-on): Add stdint.
35818         (lib_SOURCES): Add fsusage.h.
35819         * modules/getcwd (Files): Remove d-ino.m4.
35820         (Depends-on): Add d-ino.
35821         * modules/getndelim2 (Depends-on): Add stdint.
35822         * modules/glob (Files): Remove m4/d-type.m4.
35823         (Depends-on): Add d-type.
35824         * modules/host-os: New module.
35825         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
35826         m4/inttypes_h.m4, m4/uintmax_t.m4.
35827         * Depends-on: Add stdint.
35828         (lib_SOURCES): Add human.h.
35829         * modules/inttostr (Files): Remove m4/intmax_t.m4,
35830         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
35831         m4/uintmax_t.m4, m4/ulonglong.m4.
35832         (Depends-on): Add stdint.
35833         (EXTRA_DIST): Add inttostr.h.
35834         * modules/lchmod: New module.
35835         * modules/link-follow: New module.
35836         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
35837         (Depends-on): Add lchmod.
35838         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
35839         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
35840         (Depends-on): Add stdint.
35841         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
35842         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
35843         (Depends-on): Add stdint.
35844         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
35845         * modules/perl: New module.
35846         * modules/regex (Depends-on): Add stdint.
35847         * modules/rmdir-errno: New module.
35848         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35849         m4/intmax_t.m4.
35850         (Depends-on): Add stdint.
35851         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35852         m4/uintmax_t.m4.
35853         (Depends-on): Add stdint.
35854         * modules/unlink-busy: New module.
35855         * modules/utimecmp (Depends-on): Add stdint.
35856         * modules/uptime: New module.
35857         * modules/winsz-ioctl: New module.
35858         * modules/winsz-termios: New module.
35859         * modules/xnanosleep (Depends-on): Add nanosleep.
35860         * modules/ullong_max: Remove.
35861         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
35862         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
35863         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
35864         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
35865         (Depends-on): Add inttypes.
35866         (lib_SOURCES): Add xstrtol.h.
35867         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
35868         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
35869         * MODULES.html.sh: Move 'assert' into the assert section.
35870         Move 'dummy' into the linking section.
35871         Remove ullong_max.
35872         Add section for compatibility checks for POSIX:2001 functions,
35873         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
35874         winsz-ioctl, and winsz-termios into it.
35875         Add lchmod.
35876         Add top-level Misc section and put host-os, perl, and uptime
35877         into it.
35878
35879 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35880
35881         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
35882         now assume the stdint module.  Do not include inttypes.h.
35883         * lib/fsusage.h: Likewise.
35884         * lib/getndelim2.c: Likewise.
35885         * lib/human.h: Likewise.
35886         * lib/inttostr.h: Likewise.
35887         * lib/obstack.c: Likewise.
35888         * lib/regex_internal.h: Likewise.
35889         * lib/tempname.c: Likewise.
35890         * lib/utimecmp.c: Likewise.
35891         * lib/xstrtol.h: Likewise.
35892
35893         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
35894
35895         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
35896         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
35897         * lib/xtime.h: Likewise.
35898
35899 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35900
35901         * modules/openat (Files): Add lib/fchmodat.c.
35902         Fixes problem reported by Jay Youngman.
35903
35904 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35905
35906         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
35907         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
35908
35909 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
35910             Bruno Haible  <bruno@clisp.org>
35911
35912         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
35913         and is a script that invokes bison. Tighten the code. Add comments.
35914
35915 2006-08-18  Jim Meyering  <jim@meyering.net>
35916
35917         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
35918         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
35919         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
35920         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
35921
35922 2006-08-18  Bruno Haible  <bruno@clisp.org>
35923
35924         * modules/bison-i18n: New file.
35925         * MODULES.html.sh (Internationalization functions): Add it.
35926
35927 2006-08-18  Bruno Haible  <bruno@clisp.org>
35928
35929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
35930         sys/statvfs.h. When getmntinfo was found, check its declaration and
35931         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
35932
35933 2006-08-18  Bruno Haible  <bruno@clisp.org>
35934
35935         * m4/bison-i18n.m4: New file, from bison.
35936
35937 2006-08-18  Bruno Haible  <bruno@clisp.org>
35938
35939         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
35940         (ME_DUMMY): Treat "kernfs" as a dummy.
35941         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
35942
35943 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35944
35945         Update from coreutils.
35946
35947         2006-08-15  Jim Meyering  <jim@meyering.net>
35948
35949         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
35950
35951         2006-01-17  Jim Meyering  <jim@meyering.net>
35952
35953         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
35954
35955         2006-01-11  Jim Meyering  <jim@meyering.net>
35956
35957         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
35958         Check for the lchmod function.
35959
35960 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35961
35962         Update from coreutils.
35963
35964         * lib/__fpending.h: Add copyright notice.
35965         * lib/fprintftime.h: Likewise.
35966         * lib/savedir.c: Use (C) in copyright notice.
35967         * lib/savedir.h: Likewise.
35968
35969         2006-08-15  Jim Meyering  <jim@meyering.net>
35970
35971         * lib/at-func.c: New file, with the logic of all emulated at-functions.
35972         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
35973         in support of the EXPECTED_ERRNO macro.
35974         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
35975         definitions.  Instead, define the appropriate symbols and include
35976         "at-func.c".
35977         * lib/mkdirat.c (mkdirat): Likewise.
35978         * lib/fchmodat.c (fchmodat): Likewise.
35979         (ENOSYS): Remove definition.
35980         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
35981         it.  Don't include "unistd--.h" -- it wasn't ever used.
35982
35983         2006-01-17  Jim Meyering  <jim@meyering.net>
35984
35985         Rewrite fts.c not to change the current working directory,
35986         by using openat, fstatat, fdopendir, etc..
35987
35988         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
35989         (HAVE_OPENAT_SUPPORT): Define.
35990         [_LIBC] (fchdir): Don't undef or define; no longer used.
35991         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
35992         Now, this `function' always succeeds, and consumes its file descriptor
35993         parameter -- so callers must not close such FDs.  Update callers.
35994         (diropen_fd, opendirat, cwd_advance_fd): New functions.
35995         (diropen): Add parameter, SP.  Adjust all callers.
35996         Implement using diropen_fd, rather than open.
35997         (fts_open): Initialize new member, fts_cwd_fd.
35998         Remove fts_rft-setting code.
35999         (fts_close): Close fts_cwd_fd, if necessary.
36000         (__opendir2): Define in terms of opendir or opendirat,
36001         depending on whether the FST_NOCHDIR flag is set.
36002         (fts_build): Since fts_safe_changedir consumes its FD, and since
36003         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
36004         and close the dup'd file descriptor upon failure.
36005         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
36006         (fts_safe_changedir): Tweak semantics to reflect that this function
36007         now calls cwd_advance_fd and hence consumes its FD argument.
36008         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
36009         [struct FTS] (fts_rft): Remove now-unused member.
36010         [struct FTS] (fts_cycle.state): Improve comment.
36011
36012         * lib/openat.c (openat_needs_fchdir): New function.
36013         * lib/openat.h (openat_needs_fchdir): Declare it.
36014
36015 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
36016
36017         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
36018         Problem and fix reported by Pádraig Brady in
36019         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
36020
36021 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36022
36023         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
36024
36025 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36026
36027         * lib/memcoll.c (memcoll): Optimize for the common case where the
36028         arguments are bytewise equal.
36029
36030 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36031
36032         * doc/regexprops-generic.texi: Add a copyright notice.
36033
36034 2006-08-15  Bruno Haible  <bruno@clisp.org>
36035
36036         * modules/tmpdir (License): Change to LGPL.
36037
36038 2006-08-15  Bruno Haible  <bruno@clisp.org>
36039
36040         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
36041         module.
36042
36043 2006-08-14  Simon Josefsson  <jas@extundo.com>
36044
36045         * config/srclist.txt: Add gnupload.
36046
36047 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36048
36049         Change copyright notice from LGPL 2 to GPL 2, since that's the
36050         standard form used in the gnulib repository.
36051         * tests/test-lock.c: Likewise.
36052         * tests/test-stdint.c: Likewise.
36053         * tests/test-tls.c: Likewise.
36054
36055         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
36056         prelude-manager.  User shorter URLs for GNU projects, without '?'.
36057         Add copyright notice.
36058
36059         * check-module: Add copyright notice.  Output a copyright
36060         notice if "--version" is specified.
36061         * modules/COPYING: New file.
36062         * tests/test-getaddrinfo.c: Add copyright notice.
36063         * tests/test-verify.c: Likewise.
36064
36065 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36066
36067         Change copyright notice from LGPL 2 to GPL 2, since that's the
36068         standard form used in the gnulib repository.
36069         * lib/lock.c: LGPL -> GPL.
36070         * lib/lock.h: Likewise.
36071         * lib/strnlen1.c: Likewise.
36072         * lib/strnlen1.h: Likewise.
36073         * lib/tls.c: Likewise.
36074         * lib/tls.h: Likewise.
36075         * lib/tmpdir.c: Likewise.
36076
36077         * lib/TODO: Remove; this belongs only in coreutils.
36078
36079 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36080
36081         Add copyright notices to long-enough files that lack them, since
36082         otherwise the files aren't clearly free.  Use the same notice that
36083         getdate.texi already uses.
36084         * doc/alloca-opt.texi: Add copyright notice.
36085         * doc/alloca.texi: Likewise.
36086         * doc/ctime.texi: Likewise.
36087         * doc/functions.texi: Likewise.
36088         * doc/gcd.texi: Likewise.
36089         * doc/gnulib-tool.texi: Likewise.
36090         * doc/inet_ntoa.texi: Likewise.
36091         * doc/visibility.texi: Likewise.
36092
36093         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
36094         * doc/quote.texi: Add copyright notice.
36095
36096         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
36097         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
36098         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
36099         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
36100         is now obsolete, and give a pointer to the Sun list.
36101         Add copyright notice.
36102
36103 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36104
36105         * config/srclistvars.sh: Add copyright notice.
36106
36107 2006-08-14  Eric Blake  <ebb9@byu.net>
36108
36109         Import the following change from libc:
36110
36111         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
36112
36113         Upstream bug 2997.
36114         * lib/misc/error.c: Add space between program name and message if file
36115         name is missing.
36116
36117 2006-08-12  Karl Berry  <karl@gnu.org>
36118
36119         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
36120         remove, these originate in gnulib now.
36121
36122 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36123
36124         * doc/Makefile (standards.info standards.html standards.dvi):
36125         Also depend on make-stds.texi.
36126
36127 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
36128
36129         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
36130         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
36131
36132         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
36133         in wchar_t.  Problem reported by Eric Blake.
36134
36135         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
36136         LEN is smaller than SIZE.  Suggested by Bruno Haible.
36137         Also, help the compiler to keep LEN in a register.
36138
36139 2006-08-11  Eric Blake  <ebb9@byu.net>
36140
36141         * users.txt: Sort.  Add tar.
36142
36143 2006-08-11  Bruno Haible  <bruno@clisp.org>
36144
36145         * users.txt: New file.
36146
36147 2006-08-11  Bruno Haible  <bruno@clisp.org>
36148
36149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
36150         before <wchar.h>. Needed for OSF/1 and BSD/OS.
36151
36152 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36153
36154         * modules/snprintf (Depends-on): Remove minmax.
36155         (Maintainer): Add self and Bruno.
36156
36157 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36158
36159         * lib/.cppi-disable: Add snprintf.h, socket_.h.
36160         * lib/snprintf.c: Include <errno.h> and <limits.h>.
36161         (EOVERFLOW): Define if the system does not.
36162         Do not include "minmax.h"; it wasn't used.
36163         (snprintf): Don't assume size_t promotes to an unsigned type.
36164         Fix bug when generated string was too long for the buffer: the
36165         buffer's contents are supposed to be the initial prefix of the
36166         output.  Don't assume vasnprintf returns EOVERFLOW if the size
36167         exceeds INT_MAX; do the check ourselves.
36168
36169         Import the following changes from libc:
36170
36171         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
36172
36173         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
36174         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
36175         set wc to the byte which couldn't be converted.
36176         (re_string_reconstruct): Don't clear valid_raw_len before calling
36177         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
36178         tip_context using re_string_context_at.
36179
36180         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
36181
36182         * lib/posix/regex.h: g++ still cannot handled [restrict].
36183
36184         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
36185
36186         * lib/posix/regex.h: Remove special handling for VMS.
36187
36188 2006-08-10  Jim Meyering  <jim@meyering.net>
36189
36190         * modules/same-inode: New module.
36191         * modules/dev-ino: New module.
36192         * modules/cycle-check: Depend on these modules, rather than simply
36193         including their .h files.
36194         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
36195         required via m4/cycle-check.m4.
36196         * modules/same: Depend on new same-inode module, rather than
36197         including same-inode.h.
36198         * modules/chdir-safer: New file.
36199
36200         * modules/chown (Depends-on): Add stat-macros.
36201
36202 2006-08-10  Jim Meyering  <jim@meyering.net>
36203
36204         * m4/cycle-check.m4: New file.
36205         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
36206         * m4/dev-ino.m4, m4/same-inode.m4: New files.
36207
36208 2006-08-10  Eric Blake  <ebb9@byu.net>
36209
36210         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
36211         in from original proposal.
36212
36213 2006-08-10  Eric Blake  <ebb9@byu.net>
36214         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36215
36216         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
36217         namespace.
36218
36219 2006-08-10  Bruno Haible  <bruno@clisp.org>
36220
36221         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
36222         as well.
36223
36224 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
36225
36226         Sync from coreutils.
36227
36228         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
36229
36230         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
36231         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
36232
36233 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
36234
36235         * modules/restrict: Remove; no longer needed now that we assume
36236         Autoconf 2.59 or later.
36237         * MODULES.html.sh: Remove 'restrict'.
36238         * modules/argp (Depends-on): Remove 'restrict'.
36239         * modules/base64 (Depends-on): Likewise.
36240         * modules/gc (Depends-on): Likewise.
36241         * modules/getaddrinfo (Depends-on): Likewise.
36242         * modules/glob (Depends-on): Likewise.
36243         * modules/inet_ntop (Depends-on): Likewise.
36244         * modules/inet_pton (Depends-on): Likewise.
36245         * modules/memxor (Depends-on): Likewise.
36246         * modules/regex (Depends-on): Likewise.
36247         * modules/strtok_r (Depends-on): Likewise.
36248         * modules/time_r (Depends-on): Likewise.
36249
36250 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
36251
36252         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
36253         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
36254         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36255         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
36256         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
36257         * m4/memxor.m4 (gl_MEMXOR): Likewise.
36258         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
36259         gl_C_RESTRICT replaced by AC_C_RESTRICT.
36260
36261         Merge from coreutils.
36262         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
36263         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
36264         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
36265         * m4/time_r.m4 (gl_TIME_R): Likewise.
36266
36267 2006-08-09  Karl Berry  <karl@gnu.org>
36268
36269         * config/srclist.txt: no more gettext-tools, per Bruno.
36270
36271 2006-08-08  Eric Blake  <ebb9@byu.net>
36272
36273         * modules/verror: New module.
36274         * MODULES.html.sh: Document it.
36275
36276 2006-08-08  Eric Blake  <ebb9@byu.net>
36277
36278         * lib/verror.h, lib/verror.c: New files.
36279
36280 2006-08-08  Eric Blake  <ebb9@byu.net>
36281
36282         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
36283         verror_at_line output complies with GNU Coding Standards even when
36284         file is NULL.
36285
36286 2006-08-07  Bruno Haible  <bruno@clisp.org>
36287
36288         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
36289         versions of AIX.
36290         Reported by Ralf Wildenhues.
36291
36292 2006-08-07  Bruno Haible  <bruno@clisp.org>
36293
36294         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
36295         in an AC_DEFUN. Needed so that the autoconf snippets can use
36296         AC_REQUIRE.
36297
36298 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36299
36300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36301         Initialize pkgdata_DATA.
36302         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
36303         overriding it.
36304
36305 2006-08-06  Eric Blake  <ebb9@byu.net>
36306
36307         * lib/error.h: Fold in some upstream changes from glibc.
36308         * lib/error.c: Likewise.
36309
36310 2006-08-04  Bruno Haible  <bruno@clisp.org>
36311
36312         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36313         Make the mostlyclean-local rule depend on mostlyclean-generic.
36314         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
36315
36316 2006-07-31  Bruno Haible  <bruno@clisp.org>
36317
36318         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
36319         <stdlib.h>, <string.h>.
36320
36321 2006-07-30  Bruno Haible  <bruno@clisp.org>
36322
36323         * modules/readlink (License): Change to LGPL.
36324
36325 2006-07-30  Bruno Haible  <bruno@clisp.org>
36326
36327         * modules/javaversion (Makefile.am): Distribute javaversion.java and
36328         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
36329         set PKGDATADIR to point to it.
36330
36331 2006-07-30  Bruno Haible  <bruno@clisp.org>
36332
36333         * modules/csharpexec (configure.ac): Comment out macro invocation.
36334         * modules/javaexec (configure.ac): Likewise.
36335         * modules/javacomp-script (configure.ac): Likewise.
36336
36337         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
36338
36339 2006-07-30  Bruno Haible  <bruno@clisp.org>
36340
36341         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
36342         linked-list.
36343
36344 2006-07-30  Bruno Haible  <bruno@clisp.org>
36345
36346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
36347
36348 2006-07-30  Bruno Haible  <bruno@clisp.org>
36349
36350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36351         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
36352         get removed.
36353
36354 2006-07-29  Bruno Haible  <bruno@clisp.org>
36355
36356         Make it possible for gnulib-tool to work with locally modified or
36357         augmented gnulib repositories.
36358         * gnulib-tool (func_usage): Document --local-dir option.
36359         (local_gnulib_dir): New variable.
36360         Handle --local-dir option.
36361         (func_lookup_file): New function.
36362         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
36363         (func_get_description, func_get_filelist, func_get_description,
36364         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
36365         func_get_automake_snippet, func_get_include_directive,
36366         func_get_license, func_get_maintainer): Use func_lookup_file.
36367         (func_import, func_create_testdir): Use func_lookup_file.
36368
36369 2006-07-29  Bruno Haible  <bruno@clisp.org>
36370
36371         * modules/setenv (Depends-on): Add unistd.
36372
36373 2006-07-29  Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
36376
36377 2006-07-29  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
36380
36381 2006-07-29  Bruno Haible  <bruno@clisp.org>
36382
36383         * gnulib-tool (import, update): If there is no Makefile.am, look at
36384         aclocal.m4, instead of bailing out.
36385
36386 2006-07-29  Bruno Haible  <bruno@clisp.org>
36387
36388         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
36389         Categorize the options by when they are useful.
36390
36391 2006-07-29  Bruno Haible  <bruno@clisp.org>
36392
36393         * gnulib-tool (func_usage): Document option --no-libtool.
36394         Handle option --no-libtool.
36395         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
36396         for changed semantics of $libtool variable.
36397         (func_import): Likewise. If libtool is not used, show this through
36398         an option --no-libtool.
36399         (func_create_testdir): Update.
36400
36401 2006-07-29  Bruno Haible  <bruno@clisp.org>
36402
36403         * gnulib-tool (func_import): Extend error message about missing
36404         --doc-base.
36405
36406 2006-07-29  Bruno Haible  <bruno@clisp.org>
36407
36408         * gnulib-tool (func_import): Don't create the $docbase directory if
36409         there is no file to store there.
36410
36411 2006-07-29  Bruno Haible  <bruno@clisp.org>
36412
36413         * gnulib-tool (autoconf_minversion): If a --dir option is given and
36414         relevant, look for configure.ac there, not in the current directory.
36415         Also use a simple search for AC_PREREQ, not "autoconf --trace".
36416
36417 2006-07-29  Bruno Haible  <bruno@clisp.org>
36418
36419         * gnulib-tool (SORT): New variable.
36420         (func_usage): Undocument --assume-autoconf option.
36421         Remove --assume-autoconf option handling.
36422         (autoconf_minversion): Determine from the contents of configure.ac.
36423         (func_import): Remove autoconf_minversion handling.
36424         Suggested by Eric Blake.
36425
36426 2006-07-29  Bruno Haible  <bruno@clisp.org>
36427
36428         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
36429
36430 2006-07-29  Bruno Haible  <bruno@clisp.org>
36431
36432         * config/srclist.txt (*setenv.[ch]): Remove rules.
36433
36434 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36435
36436         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
36437
36438 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36439
36440         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
36441         arpa/inet.h.
36442
36443 2006-07-28  Simon Josefsson  <jas@extundo.com>
36444
36445         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
36446         * modules/inet_pton (Depends-on): Likewise.
36447
36448 2006-07-28  Simon Josefsson  <jas@extundo.com>
36449
36450         * m4/netinet_in_h.m4: New file.
36451
36452 2006-07-28  Simon Josefsson  <jas@extundo.com>
36453
36454         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
36455         #include's.
36456
36457 2006-07-28  Simon Josefsson  <jas@extundo.com>
36458
36459         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
36460         #include's.
36461
36462 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
36463
36464         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
36465         setgid on directories only if they set these bits.
36466         * lib/modechange.h: Remove obsolete comment about masks.
36467
36468 2006-07-28  Eric Blake  <ebb9@byu.net>
36469
36470         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
36471         macro expansion.
36472
36473 2006-07-28  Bruno Haible  <bruno@clisp.org>
36474
36475         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
36476
36477 2006-07-28  Bruno Haible  <bruno@clisp.org>
36478
36479         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
36480
36481 2006-07-28  Bruno Haible  <bruno@clisp.org>
36482
36483         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36484         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36485         Define fallbacks.
36486         Avoids link error on FreeBSD 4.x.
36487         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36488
36489         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
36490         encoding.
36491         * lib/mbswidth.c (iswcntrl): Likewise.
36492
36493 2006-07-27  Bruno Haible  <bruno@clisp.org>
36494
36495         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
36496         test.
36497
36498 2006-07-27  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
36501         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
36502         defined.
36503
36504 2006-07-26  Eric Blake  <ebb9@byu.net>
36505
36506         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
36507
36508 2006-07-26  Eric Blake  <ebb9@byu.net>
36509
36510         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
36511         like mingw that lack mkstemp.
36512         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
36513         avoid compilation warning on mingw.
36514
36515 2006-07-26  Bruno Haible  <bruno@clisp.org>
36516
36517         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
36518         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
36519         INT_FAST*_MIN, INTPTR_MIN.
36520
36521 2006-07-25  Bruno Haible  <bruno@clisp.org>
36522
36523         * modules/version-etc (Depends-on): Add stdarg.
36524
36525 2006-07-25  Bruno Haible  <bruno@clisp.org>
36526
36527         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
36528         complex commands.
36529
36530 2006-07-25  Bruno Haible  <bruno@clisp.org>
36531
36532         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
36533         defined in <stdarg.h> or config.h.
36534
36535 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
36536
36537         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
36538         (gl_STDIO_SAFER): Remove.
36539
36540 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
36541
36542         * MODULES.html.sh (File stream based Input/Output):
36543         Add fopen-safer, tmpfile-safer; remove stdio-safer.
36544         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
36545         * modules/fopen-safer, modules/tmpfile-safer: New files.
36546         * modules/stdio-safer: Remove.
36547
36548 2006-07-24  Bruno Haible  <bruno@clisp.org>
36549
36550         * modules/tmpdir: New file.
36551         * MODULES.html.sh (File system functions): Add it.
36552
36553 2006-07-24  Bruno Haible  <bruno@clisp.org>
36554
36555         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
36556         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
36557
36558 2006-07-24  Bruno Haible  <bruno@clisp.org>
36559
36560         * modules/clean-temp: New file.
36561
36562 2006-07-24  Bruno Haible  <bruno@clisp.org>
36563
36564         * m4/tmpdir.m4: New file, from GNU gettext.
36565
36566 2006-07-24  Bruno Haible  <bruno@clisp.org>
36567
36568         * lib/tmpdir.h: New file, from GNU gettext.
36569         * lib/tmpdir.c: New file, from GNU gettext.
36570
36571 2006-07-24  Bruno Haible  <bruno@clisp.org>
36572
36573         * lib/clean-temp.h: New file, from GNU gettext.
36574         * lib/clean-temp.c: New file, from GNU gettext.
36575
36576 2006-07-23  Eric Blake  <ebb9@byu.net>
36577
36578         * modules/stdio-safer (Files): Add tmpfile-safer.c.
36579         (Depends-on): Add binary-io.
36580
36581 2006-07-23  Eric Blake  <ebb9@byu.net>
36582
36583         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
36584
36585 2006-07-23  Eric Blake  <ebb9@byu.net>
36586
36587         * lib/tmpfile-safer.c: New file.
36588         * lib/stdio-safer.h (fopen_safer): Add prototype.
36589         * lib/stdio--.h (tmpfile): Make safer.
36590
36591 2006-07-23  Bruno Haible  <bruno@clisp.org>
36592
36593         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
36594         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
36595         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
36596         gl_linked_remove_at): Use it.
36597
36598 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36599         and Simon Josefsson <jas@extundo.com>
36600
36601         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
36602
36603         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
36604
36605 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36606
36607         * modules/close-stream: New file.
36608         * modules/closeout (Description): Make it clear that it exits
36609         with a diagnostic on error.
36610         (Depends-on): Add close-stream.  Remove fpending, stdbool.
36611         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
36612
36613 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36614
36615         * m4/close-stream.m4: New file.
36616
36617 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36618
36619         * lib/close-stream.c, lib/close-stream.h: New files.
36620
36621 2006-07-22  Bruno Haible  <bruno@clisp.org>
36622
36623         Merge from GNU gettext 0.15.
36624
36625         2006-05-01  Bruno Haible  <bruno@clisp.org>
36626
36627                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
36628
36629         2006-07-22  Bruno Haible  <bruno@clisp.org>
36630
36631                 * modules/javaversion: New file.
36632                 * MODULES.html.sh (Java): Add javaversion.
36633
36634         2006-03-12  Bruno Haible  <bruno@clisp.org>
36635
36636                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
36637
36638         2005-12-04  Bruno Haible  <bruno@clisp.org>
36639
36640                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
36641                 (untested).
36642
36643         2006-06-21  Bruno Haible  <bruno@clisp.org>
36644
36645                 Avoid warnings from recent versions of mcs.
36646                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
36647                 -o, -L, -r any more. Use options documented since mcs-1.0
36648                 instead. Similarly for -g.
36649
36650         2005-12-04  Bruno Haible  <bruno@clisp.org>
36651
36652                 * build-aux/csharpcomp.sh.in: Suffix for resources is
36653                 .resources, not .resource.
36654
36655         2005-07-09  Bruno Haible  <bruno@clisp.org>
36656
36657                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
36658                 add a .dll suffix.
36659                 Reported by Mark Junker <mjscod@gmx.de>.
36660
36661         2006-07-22  Bruno Haible  <bruno@clisp.org>
36662
36663                 * modules/gettext: Upgrade to gettext-0.15.
36664                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
36665                 m4/visibility.m4.
36666                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
36667
36668 2006-07-22  Bruno Haible  <bruno@clisp.org>
36669
36670         Merge from GNU gettext 0.15.
36671
36672         2006-03-25  Bruno Haible  <bruno@clisp.org>
36673
36674                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
36675
36676         2006-07-21  Bruno Haible  <bruno@clisp.org>
36677
36678                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
36679                 "1.1".
36680
36681         2006-05-09  Bruno Haible  <bruno@clisp.org>
36682
36683                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
36684                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
36685                 for the conftestver execution.
36686
36687         2006-05-01  Bruno Haible  <bruno@clisp.org>
36688
36689                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
36690                 optional target-version argument. Verify that the compiler
36691                 groks source of the specified source-version, or add -source
36692                 option as necessary. Verify that the compiler produces
36693                 bytecode in the specified target-version, or add -target and
36694                 -source options as necessary. Make the result of the test
36695                 available as variable CONF_JAVAC. Also log error output in
36696                 config.log.
36697
36698         2006-03-11  Bruno Haible  <bruno@clisp.org>
36699
36700                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
36701
36702         2006-05-09  Bruno Haible  <bruno@clisp.org>
36703
36704                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
36705                 CLASSPATH_SEPARATOR to a semicolon.
36706
36707         2006-03-12  Bruno Haible  <bruno@clisp.org>
36708
36709                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
36710                 available as variable CONF_JAVA, for subsequent autoconf
36711                 tests. Also log error output in config.log.
36712
36713         2006-07-19  Bruno Haible  <bruno@clisp.org>
36714
36715                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
36716                 that getline works on glibc2 systems. Needed to avoid trouble
36717                 in relocatable.c.
36718                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
36719
36720         2005-12-04  Bruno Haible  <bruno@clisp.org>
36721
36722                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
36723                 launcher (untested).
36724
36725         2005-12-04  Bruno Haible  <bruno@clisp.org>
36726
36727                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
36728
36729         2006-07-22  Bruno Haible  <bruno@clisp.org>
36730
36731                 * gettext.m4: Update from GNU gettext-0.15.
36732                 * nls.m4: Likewise.
36733                 * po.m4: Likewise.
36734                 * inttypes-pri.m4: Likewise.
36735                 * inttypes-h.m4: Renamed from inttypes.m4.
36736                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
36737
36738 2006-07-22  Bruno Haible  <bruno@clisp.org>
36739
36740         Merge from GNU gettext 0.15.
36741
36742         2005-07-05  Bruno Haible  <bruno@clisp.org>
36743
36744                 * printf-args.c (printf_fetchargs): Work around broken
36745                 definition of wint_t on mingw.
36746
36747         2005-02-12  Bruno Haible  <bruno@clisp.org>
36748
36749                 * xallocsa.h: Add extern "C" for C++.
36750
36751         2006-05-17  Bruno Haible  <bruno@clisp.org>
36752
36753                 Cygwin portability.
36754                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
36755
36756         2006-04-30  Bruno Haible  <bruno@clisp.org>
36757
36758                 * progreloc.c: Include <mach-o/dyld.h> if available.
36759                 (find_executable): Use _NSGetExecutablePath when possible.
36760
36761         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
36762
36763                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
36764                 function.
36765
36766         2005-12-29  Bruno Haible  <bruno@clisp.org>
36767
36768                 * progreloc.c (set_program_name_and_installdir): Fix
36769                 compilation error.
36770
36771         2005-12-04  Bruno Haible  <bruno@clisp.org>
36772
36773                 Cygwin portability.
36774                 * progreloc.c: Include <windows.h> also on Cygwin.
36775                 (find_executable): Add support for Cygwin.
36776                 (set_program_name_and_installdir): Handle also platforms with
36777                 nonempty EXEEXT.
36778
36779         2006-07-11  Bruno Haible  <bruno@clisp.org>
36780
36781                 * javacomp.c: Fix a comment.
36782                 Reported by Jim Meyering.
36783
36784         2006-04-30  Bruno Haible  <bruno@clisp.org>
36785
36786                 * javacomp.h (compile_java_class): Add source_version,
36787                 target_version arguments.
36788                 * javacomp.c: Rewritten to choose only a compiler that
36789                 respects the specified source_version and target_version.
36790
36791         2006-06-27  Bruno Haible  <bruno@clisp.org>
36792
36793                 Assume correct S_ISDIR macro.
36794                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
36795
36796         2006-07-22  Bruno Haible  <bruno@clisp.org>
36797
36798                 * javaversion.h: New file, from GNU gettext.
36799                 * javaversion.c: New file, from GNU gettext.
36800                 * javaversion.java: New file, from GNU gettext.
36801                 * javaversion.class: New file, from GNU gettext.
36802
36803         2006-05-17  Bruno Haible  <bruno@clisp.org>
36804
36805                 Cygwin portability.
36806                 * javaexec.c (execute_java_class): Test for jview program
36807                 also on Cygwin.
36808
36809         2006-04-09  Bruno Haible  <bruno@clisp.org>
36810
36811                 * fatal-signal.c: Don't include string.h.
36812                 (at_fatal_signal): Use a copying loop instead of memcpy.
36813
36814         2005-12-04  Bruno Haible  <bruno@clisp.org>
36815
36816                 * csharpexec.c: Add support for 'clix' launcher (untested).
36817                 (execute_csharp_using_sscli): New function.
36818                 (execute_csharp_program): Call it.
36819
36820         2006-06-21  Bruno Haible  <bruno@clisp.org>
36821
36822                 Avoid warnings from recent versions of mcs.
36823                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
36824                 -o, -L, -r any more. Use options documented since mcs-1.0
36825                 instead. Similarly for -g.
36826
36827         2005-07-09  Bruno Haible  <bruno@clisp.org>
36828
36829                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
36830                 add a .dll suffix.
36831                 Reported by Mark Junker <mjscod@gmx.de>.
36832
36833         2006-06-17  Bruno Haible  <bruno@clisp.org>
36834
36835                 * config.charset: Update for NetBSD 3.0.
36836
36837         2006-05-17  Bruno Haible  <bruno@clisp.org>
36838
36839                 Cygwin portability.
36840                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
36841
36842         2006-05-16  Bruno Haible  <bruno@clisp.org>
36843
36844                 * localcharset.c [CYGWIN]: Include <windows.h>.
36845                 (get_charset_aliases): For Cygwin, return the same CPxxx
36846                 aliases list as under WIN32.
36847                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
36848                 the environment variables. Fall back to GetACP().
36849
36850         2006-04-05  Bruno Haible  <bruno@clisp.org>
36851
36852                 * config.charset: Update Juan Manuel Guerrero's address.
36853
36854         2005-02-12  Bruno Haible  <bruno@clisp.org>
36855
36856                 * allocsa.h: Add extern "C" for C++.
36857
36858         2005-02-10  Bruno Haible  <bruno@clisp.org>
36859
36860                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
36861                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
36862
36863         2006-07-22  Bruno Haible  <bruno@clisp.org>
36864
36865                 * gettext.h: Update to GNU gettext-0.15.
36866
36867 2006-07-22  Bruno Haible  <bruno@clisp.org>
36868
36869         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
36870         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
36871         lib-prefix.m4, longdouble.m4, ssize_t.m4.
36872
36873 2006-07-21  Eric Blake  <ebb9@byu.net>
36874
36875         * modules/stdlib-safer: New file.
36876         * MODULES.html.sh (File stream based Input/Output): Add
36877         stdlib-safer.
36878
36879 2006-07-21  Eric Blake  <ebb9@byu.net>
36880
36881         * lib/stdlib-safer.h: New file from coreutils, required by
36882         stdlib--.h.
36883
36884 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36885
36886         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
36887
36888 2006-07-20  Bruno Haible  <bruno@clisp.org>
36889
36890         * gnulib-tool: Recognize new option --assume-autoconf.
36891         (autoconf_minversion): New variable.
36892         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
36893
36894 2006-07-20  Bruno Haible  <bruno@clisp.org>
36895
36896         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
36897
36898 2006-07-19  Derek R. Price  <derek@ximbiot.com>
36899
36900         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
36901         Reindent and repaginate.
36902
36903 2006-07-19  Derek Price  <derek@ximbiot.com>
36904
36905         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
36906         Correct grammar.
36907
36908 2006-07-17  Bruno Haible  <bruno@clisp.org>
36909
36910         * modules/list: New file.
36911         * modules/array-list: New file.
36912         * modules/carray-list, modules/carray-list-tests: New files.
36913         * modules/linked-list, modules/linked-list-tests: New files.
36914         * modules/avltree-list, modules/avltree-list-tests: New files.
36915         * modules/rbtree-list, modules/rbtree-list-tests: New files.
36916         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
36917         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
36918         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
36919         * modules/oset: New file.
36920         * modules/array-oset: New file.
36921         * modules/avltree-oset, modules/avltree-oset-tests: New files.
36922         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
36923         * tests/test-carray_list.c: New file.
36924         * tests/test-linked_list.c: New file.
36925         * tests/test-avltree_list.c: New file.
36926         * tests/test-rbtree_list.c: New file.
36927         * tests/test-linkedhash_list.c: New file.
36928         * tests/test-avltreehash_list.c: New file.
36929         * tests/test-rbtreehash_list.c: New file.
36930         * tests/test-avltree_oset.c: New file.
36931         * tests/test-rbtree_oset.c: New file.
36932         * MODULES.html.sh (Container data structures): New section.
36933
36934 2006-07-17  Bruno Haible  <bruno@clisp.org>
36935
36936         * m4/gl_list.m4: New file.
36937
36938 2006-07-17  Bruno Haible  <bruno@clisp.org>
36939
36940         * lib/gl_list.h: New file.
36941         * lib/gl_list.c: New file.
36942         * lib/gl_array_list.h: New file.
36943         * lib/gl_array_list.c: New file.
36944         * lib/gl_carray_list.h: New file.
36945         * lib/gl_carray_list.c: New file.
36946         * lib/gl_linked_list.h: New file.
36947         * lib/gl_linked_list.c: New file.
36948         * lib/gl_anylinked_list1.h: New file.
36949         * lib/gl_anylinked_list2.h: New file.
36950         * lib/gl_avltree_list.h: New file.
36951         * lib/gl_avltree_list.c: New file.
36952         * lib/gl_anyavltree_list1.h: New file.
36953         * lib/gl_anyavltree_list2.h: New file.
36954         * lib/gl_rbtree_list.h: New file.
36955         * lib/gl_rbtree_list.c: New file.
36956         * lib/gl_anyrbtree_list1.h: New file.
36957         * lib/gl_anyrbtree_list2.h: New file.
36958         * lib/gl_anytree_list1.h: New file.
36959         * lib/gl_anytree_list2.h: New file.
36960         * lib/gl_linkedhash_list.h: New file.
36961         * lib/gl_linkedhash_list.c: New file.
36962         * lib/gl_anyhash_list1.h: New file.
36963         * lib/gl_anyhash_list2.h: New file.
36964         * lib/gl_avltreehash_list.h: New file.
36965         * lib/gl_avltreehash_list.c: New file.
36966         * lib/gl_rbtreehash_list.h: New file.
36967         * lib/gl_rbtreehash_list.c: New file.
36968         * lib/gl_anytreehash_list1.h: New file.
36969         * lib/gl_anytreehash_list2.h: New file.
36970
36971         * lib/gl_oset.h: New file.
36972         * lib/gl_oset.c: New file.
36973         * lib/gl_array_oset.h: New file.
36974         * lib/gl_array_oset.c: New file.
36975         * lib/gl_avltree_oset.h: New file.
36976         * lib/gl_avltree_oset.c: New file.
36977         * lib/gl_rbtree_oset.h: New file.
36978         * lib/gl_rbtree_oset.c: New file.
36979         * lib/gl_anytree_oset.h: New file.
36980
36981 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36982
36983         * m4/mkancesdirs.m4: New file.
36984         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
36985         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
36986         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
36987         it.
36988
36989 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36990
36991         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
36992         * lib/mkancesdirs.h: New files.
36993         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
36994         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
36995         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
36996         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
36997         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
36998         callers changed.  Revamp internals significantly, by not
36999         attempting to create directories that are temporarily more
37000         permissive than the final results.  Do not attempt to use
37001         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
37002         This removes some race conditions, fixes some bugs, and simplifies
37003         things.  Use new dirchownmod function to do owner and mode changes.
37004         * lib/mkdir-p.h: Likewise.
37005         * lib/modechange.c (octal_to_mode): New function.
37006         (struct mode_change): New member mentioned.
37007         (make_node_op_equals): New arg mentioned.  All callers changed.
37008         (mode_compile): Keep track of which mode bits the user has explicitly
37009         mentioned.
37010         (mode_adjust): New arg DIR, so that we implement the X op correctly.
37011         New arg PMODE_BITS, to keep track of which mode bits the user
37012         mentioned; it treats S_ISUID and S_ISGID speciall.
37013         All callers changed.
37014         * lib/modechange.h: Likewise.
37015
37016 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
37017
37018         * MODULES.html.sh: Add mkancestors.
37019         * modules/mkancesdirs: New module.
37020         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
37021         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
37022         The chdir-safer and afs files are now orphans; I'll remove them
37023         unless someone speaks up.
37024         Add lib/dirchownmod.c, lib/dirchownmod.h.
37025         (Depends-on): Remove alloca, chown, save-cwd, dirname.
37026         Add lchown, mkancesdirs.
37027         (Maintainer): Add self.
37028
37029 2006-07-15  Karl Berry  <karl@gnu.org>
37030
37031         * gnulib-tool: help message wording/arrangement.
37032
37033 2006-07-14  Simon Josefsson  <jas@extundo.com>
37034
37035         * doc/gnulib.texi (Libtool and Windows): New section.
37036
37037 2006-07-12  Simon Josefsson  <jas@extundo.com>
37038
37039         * modules/gendocs (License): Fix license, approved by Karl.
37040
37041 2006-07-12  Eric Blake  <ebb9@byu.net>
37042
37043         * MODULES.html.sh: Add gendocs.
37044
37045 2006-07-11  Eric Blake  <ebb9@byu.net>
37046
37047         * modules/fdl: New module, to install doc/fdl.texi.
37048         * MODULES.html.sh: Add new section for documentation modules.
37049         * gnulib-tool: Avoid space-tab.
37050         (--doc-base): New option, to manage files from doc.
37051
37052 2006-07-11  Eric Blake  <ebb9@byu.net>
37053
37054         * m4/absolute-header.m4: Fix comments to match recent change.
37055
37056 2006-07-11  Eric Blake  <ebb9@byu.net>
37057
37058         * gnulib-tool: List --doc-base before --tests-base.
37059
37060 2006-07-11  Derek R. Price  <derek@ximbiot.com>
37061
37062         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
37063
37064 2006-07-11  Bruno Haible  <bruno@clisp.org>
37065
37066         * README: Mention where to put documentation.
37067
37068 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37069
37070         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
37071
37072 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37073
37074         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
37075         to stdint.m4.
37076
37077 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37078
37079         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
37080         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
37081         "no/such/file/stdint.h" when there is no such file, so that
37082         the resulting C code can be parsed by dodgy compilers.
37083         Problems reported by Bob Proulx.
37084
37085 2006-07-10  Derek R. Price  <derek@ximbiot.com>
37086
37087         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
37088         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
37089         macros into the GNU _D_EXACT_NAMLEN.
37090         * lib/savedir.c:  Likewise.
37091         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
37092
37093 2006-07-10  Derek R. Price  <derek@ximbiot.com>
37094         and Paul Eggert  <eggert@cs.ucla.edu>
37095
37096         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
37097         * m4/savedir.m4:
37098         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
37099         macros into the GNU _D_EXACT_NAMLEN.
37100
37101 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37102
37103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
37104         around the absolute name, to work around a problem with the HP-UX
37105         11.23 native C compiler, reported by Bob Proulx.
37106
37107 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37108
37109         * doc/maintain.texi, make-stds.texi: Sync from
37110         <http://savannah.gnu.org/projects/gnustandards>.
37111
37112 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37113
37114         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
37115
37116 2006-07-09  Jim Meyering  <jim@meyering.net>
37117
37118         * m4/glob.m4: Remove a doubled word in a comment.
37119
37120 2006-07-09  Jim Meyering  <jim@meyering.net>
37121
37122         * lib/argp-pv.c: Remove a doubled word in a comment.
37123         * lib/check-version.c (check_version): Likewise.
37124         * lib/javacomp.c (compile_java_class): Likewise.
37125
37126 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37127
37128         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
37129         for the benefit of people using Autoconf 2.60.  If you want to
37130         support older Autoconf versions you can copy m4/onceonly_2_57.m4
37131         (or m4/onceonly.m4, if pre-2.57) manually.
37132
37133 2006-07-08  Jim Meyering  <jim@meyering.net>
37134
37135         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
37136         comment.
37137         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
37138         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
37139         comment.
37140
37141 2006-07-08  Jim Meyering  <jim@meyering.net>
37142
37143         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
37144
37145 2006-07-07  Simon Josefsson  <jas@extundo.com>
37146
37147         * tests/test-crc.c: Change expected crc value, the test vector
37148         were probably computed using the old broken crc.c?
37149
37150 2006-07-06  Simon Josefsson  <jas@extundo.com>
37151
37152         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
37153         now the canonical place for the M4 file).
37154
37155         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
37156         from the sys_socket dependency now.
37157
37158         * modules/inet_pton (Files): Ditto.
37159
37160         * modules/inet_ntop (Files): Ditto.
37161
37162 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37163
37164         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
37165         not gl_PREREQ_GETUSERSHELL.
37166
37167 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37168
37169         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
37170         with only one argument, for Autoconf 2.60.
37171         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
37172         expand to nothing, so add a shell command to avoid syntax error.
37173         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37174
37175 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37176
37177         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
37178
37179 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37180
37181         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
37182         no longer needed.  Check for isblank decl.
37183         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
37184         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
37185         of existence.
37186
37187 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37188
37189         * lib/getloadavg.c: Use __VMS, not VMS.
37190         * lib/getopt.c: Likewise.
37191         * lib/getpagesize.h: Likewise.
37192         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
37193         and probably does not work.
37194
37195 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37196
37197         * lib/.cppi-disable: Add wcwidth.
37198         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
37199         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
37200         (ISGRAPH): Remove.  All uses changed to isgraph.
37201         (FOLD) [!defined _LIBC]: Remove special case.
37202         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
37203         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
37204         HAVE_ISBLANK.
37205         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
37206         case.
37207
37208 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
37209
37210         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
37211         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
37212         brackets.  Other minor changes to suppress some compiler
37213         warnings.
37214
37215 2006-07-06  Derek R. Price  <derek@ximbiot.com>
37216         and Paul Eggert  <eggert@cs.ucla.edu>
37217
37218         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
37219         of invoking obsolescent AC_HEADER_DIRENT macro.
37220         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
37221         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
37222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37224         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
37225         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37226         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
37227         * m4/readdir.m4: Remove; no longer needed.
37228
37229 2006-07-06  Derek R. Price  <derek@ximbiot.com>
37230         and Paul Eggert  <eggert@cs.ucla.edu>
37231
37232         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
37233         Don't worry about this obsolete case any more.
37234         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
37235         directories.
37236         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
37237         worry about this obsolete case any more.
37238         * lib/fts.c: Likewise.
37239         * lib/getcwd.c: Likewise.
37240         * lib/glob.h: Likewise.
37241         * lib/savedir.c: Likewise.
37242
37243 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37244
37245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
37246         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
37247         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
37248         needed.
37249         All uses removed.
37250         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
37251         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
37252         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
37253         needed.
37254         * m4/getdate.m4 (gl_GETDATE): Likewise.
37255         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
37256         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
37257         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
37258         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
37259         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
37260         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37261         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
37262         needed.
37263
37264 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37265
37266         * lib/memcasecmp.c: Include <limits.h>.
37267         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
37268         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
37269         Don't assume isdigit succeeds only on '0' through '9'.
37270
37271 2006-07-05  Eric Blake  <ebb9@byu.net>
37272
37273         * modules/getaddrinfo (Depends-on): Add snprintf.
37274
37275 2006-07-05  Eric Blake  <ebb9@byu.net>
37276
37277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
37278         to avoid 'header present but could not be compiled' on cygwin.
37279
37280 2006-07-05  Eric Blake  <ebb9@byu.net>
37281
37282         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
37283         missing from netdb.h.
37284         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
37285
37286 2006-07-05  Derek R. Price  <derek@ximbiot.com>
37287
37288         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
37289         no longer needed.
37290         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
37291         * m4/getdate.m4 (gl_GETDATE): Likewise.
37292         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
37293         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
37294         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
37295         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
37296         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37297
37298 2006-07-05  Derek R. Price  <derek@ximbiot.com>
37299
37300         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
37301         All uses of is_space replaced by isspace.
37302         * lib/exit.h: Don't talk about STDC_HEADERS.
37303         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
37304         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
37305         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
37306         replaced by isprint etc.
37307         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
37308         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
37309         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
37310         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
37311         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
37312         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
37313
37314 2006-07-05  Bruno Haible  <bruno@clisp.org>
37315
37316         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
37317         the function exists, before testing against AIX.
37318         Reported by Martin Lambers <marlam@marlam.de>.
37319
37320 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37321
37322         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
37323         From Mark D. Baushke.
37324
37325 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37326
37327         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
37328         to the absolute name, not just one, to bypass Sun C 5.8's
37329         "warning: #include of /usr/include/... may be non-portable".
37330
37331 2006-07-04  Eric Blake  <ebb9@byu.net>
37332
37333         * modules/dirname-tests: New test module.
37334         * tests/test-dirname.c: New file, replacing dirname.c
37335         TEST_DIRNAME section that was recently deleted.
37336
37337 2006-07-04  Bruno Haible  <bruno@clisp.org>
37338
37339         Assume ANSI C header files and <ctype.h> functions.
37340         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
37341         (mbsnwidth): Use isprint, iscntrl instead.
37342
37343 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37344
37345         Merge from coreutils.
37346         * MODULES.html.sh: Add xstrtold.
37347         * modules/xstrtold: New file.
37348         * modules/cycle-check (Files): Add lib/same-inode.h.
37349         * modules/dirname (Files): Add m4/double-slash-root.m4.
37350         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
37351         * modules/mkdir-p (Files): Add lib/same-inode.h.
37352         * modules/same (Files): Add lib/same-inode.h.
37353
37354 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37355
37356         * m4/absolute-header.m4: Renamed from full-header-path.m4.
37357         This is to keep the terminology clean; POSIX talks about
37358         "absolute pathnames", not "full pathnames", but the GNU
37359         Coding Standards say to use "path" for something else;
37360         so use "absolute" to keep both sides happy.
37361         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
37362         Set gl_absolute_header, not gl_full_header_path.
37363         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
37364         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
37365         All uses changed.
37366
37367         Merge from coreutils.
37368
37369         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
37370
37371         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
37372         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
37373         want to require the building of c-strtod.o.
37374         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
37375         needs -lm directly.
37376         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
37377
37378         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
37379
37380         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
37381         --as-needed option if available.  Problem reported by Albert Chin in
37382         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
37383         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
37384         cc merely issues a bunch of annoying warnings for --as-needed
37385         (this problem was reported by Bob Proulx).  Also, try linking with
37386         -lm to detect a bug in binutils 2.16 (this problem was reported
37387         by Ralf Wildenhues).
37388
37389         2006-06-18  Jim Meyering  <jim@meyering.net>
37390
37391         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
37392         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
37393         macro.
37394         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
37395         also check for glibc-2.4's abort-inducing bug.
37396
37397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
37398         Low-probability clean-up should be to use rmdir to get rid of
37399         the just-created directory, not unlink.
37400
37401         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
37402         configure fail, and request a bug report to inform us about it.
37403         Add a comment that, barring reports to the contrary, in 2007 we'll
37404         assume ftruncate is universally available.
37405
37406         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
37407
37408         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
37409
37410         2006-03-12  Jim Meyering  <jim@meyering.net>
37411
37412         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
37413         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
37414         * m4/same.m4 (gl_SAME): Likewise.
37415         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
37416
37417         2006-03-11  Eric Blake  <ebb9@byu.net>
37418
37419         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
37420         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
37421         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
37422         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
37423
37424 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37425
37426         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
37427         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
37428         reported by Mark D. Baushke, one in
37429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
37430
37431         Merge from coreutils.
37432
37433         * lib/.cppi-disable: Add stdint_.h.
37434         * lib/.cvsignore: Add stdint.h.
37435
37436         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
37437
37438         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
37439         both double and long double versions.
37440         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
37441         * lib/xstrtold.c: New file.
37442         * lib/xstrtod.h (xstrtold): New decl.
37443
37444         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37445
37446         * lib/filemode.c (setst): Remove.
37447         (strmode): Rewrite to avoid setst.  This makes the code shorter,
37448         (arguably) clearer, and the generated code is a bit smaller on my
37449         Debian GNU/Linux stable x86 host.
37450
37451         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
37452
37453         * lib/filemode.c: Include "filemode.h" first, to test the interface.
37454         Assume that filemode.h includes sys/types.h and sys/stat.h.
37455         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
37456         (ftypelet): Reorder to put common cases first, for efficiency.
37457         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
37458         to do 'M'.
37459         (strmode): Renamed from mode_string, and now stores 12 bytes instead
37460         of 10, for compatibility with FreeBSD.  All callers changed.
37461         (filemodestring): Now stores 12 bytes instead of 10, and sets file
37462         types that can't be deduced solely from st_mode.  First arg is now a
37463         const pointer.
37464         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
37465         (strmode): Renamed from mode_string.
37466         (filemodestring): New decl.
37467         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
37468         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
37469         needed.
37470         (S_ISPORT, S_ISWHT): New macros, if not already defined.
37471
37472         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
37473
37474         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
37475         fsusage.h now does that.  Include fsusage.h first, to test interface.
37476         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
37477         at most one method (the old code could have generated decls that
37478         didn't conform to C89, not that this was ever exercised).
37479         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
37480
37481         2006-03-19  Jim Meyering  <jim@meyering.net>
37482
37483         Work even in a chroot where d_ino values for entries in "/"
37484         don't match the stat.st_ino values for the same names.
37485         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
37486         number, iterate through all entries again, using lstat instead.
37487         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
37488         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
37489
37490         * lib/getcwd.c (__getcwd): Clarify a comment.
37491         Use memcpy in place of a call to strcpy.
37492
37493         2006-03-12  Jim Meyering  <jim@meyering.net>
37494
37495         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
37496         matches that of the current directory (which we're about to chdir ".."
37497         out of), then save the dev-ino of the parent, instead.
37498
37499         * lib/same-inode.h (SAME_INODE): New file/macro.
37500         * lib/chdir-safer.c (SAME_INODE): Remove definition.
37501         Include "same-inode.h", instead.
37502         * lib/same.c: Likewise.
37503         * lib/cycle-check.h: Include "same-inode.h".
37504         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
37505         * lib/cycle-check.c (SAME_INODE): Remove definition.
37506         * lib/root-dev-ino.h: Include "same-inode.h".
37507
37508         2006-03-11  Eric Blake  <ebb9@byu.net>
37509
37510         * lib/same.c (same_name): s/base_name/last_component/
37511         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
37512         * lib/filenamecat.c (file_name_concat): Likewise.
37513
37514         2006-03-11  Eric Blake  <ebb9@byu.net>,
37515                     Paul Eggert  <eggert@cs.ucla.edu>
37516
37517         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
37518         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
37519         drive prefix.
37520         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
37521         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
37522         (last_component): New method.
37523         * lib/dirname.c (dir_len): Determine when drive letters need a
37524         subsequent slash.  Preserve // when it is special.
37525         (dir_name): Don't append dot when drive letter is absolute.
37526         [TEST_DIRNAME]: Move into a full-blown gnulib test.
37527         * lib/basename.c (base_name): New semantics - malloc the result.
37528         Preserve // when it is special.  Preserve relative files that look
37529         like drive letters.
37530         (base_len): Preserve // when it is special.
37531         (last_component): New method, similar to old base_name semantics.
37532         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
37533         base_name.  Strip redundant slashes from ///.
37534
37535 2006-07-03  Jim Meyering  <jim@meyering.net>
37536
37537         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
37538         macro is used before the first cycle_check call.
37539
37540 2006-07-03  Eric Blake  <ebb9@byu.net>
37541
37542         * modules/dirname (Depends-on): Add xstrndup.
37543
37544 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37545
37546         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
37547         test cases, so that config.log is a bit easier to follow.
37548
37549 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37550
37551         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
37552         both are 64 bits, since this seems to be the tradition, and this
37553         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
37554         we ever run into a host that prefers long long to long in this
37555         case, we'll need another configure-time test.  Problem reported by
37556         Jim Meyering.
37557
37558 2006-07-02  Eric Blake  <ebb9@byu.net>
37559
37560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
37561
37562 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37563
37564         * modules/inttypes (Depends-on): No longer depends on stdint.
37565         * modules/stdint (Description): Say more about assumptions.
37566         Say that the fast types might differ.  Say macros are used.
37567         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
37568         (Makefile.am): Revise list of substituted symbols to match
37569         new stdint.m4.
37570         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
37571         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
37572         * tests/test-stdint.c (verify_same_types)
37573         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
37574         the code conforms to C99/C89.
37575         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
37576         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
37577
37578 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37579
37580         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
37581         but fix a bug, by requiring at least 64 bits.
37582         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37583         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
37584         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
37585         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
37586
37587         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
37588         changes.  Make 2.59 a prerequisite.  Check and substitute for
37589         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
37590         inttypes.h.  Do not use special include files; just use the
37591         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
37592         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
37593         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
37594         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
37595         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
37596         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
37597         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
37598         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
37599         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
37600         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
37601         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
37602         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
37603         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
37604         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
37605         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
37606         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
37607         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
37608         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
37609         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
37610         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
37611         WINT_MAX.  Check for C99 conformance more strictly, by detecting
37612         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
37613         not check for things that C99 does not require, e.g., int8_t.  If
37614         a test isn't needed unless <stdint.h> isn't working, and is
37615         unlikely to be needed for any other reason, then don't do it
37616         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
37617         size_t, since we assume C89 freestanding at least.  Do not check
37618         for sig_atomic_t, wchar_t, or wint_t, since the code now does
37619         the right thing even if the types are not defined.  Instead use:
37620         (gl_STDINT_TYPE_PROPERTIES): New macro.
37621         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
37622         testing whether <sys/types.h> clashes, as Autoconf does this for
37623         us now.  All uses removed.
37624         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
37625         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
37626         (gl_CHECK_TYPE_SAME):
37627         Remove; no longer needed.
37628         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
37629         exists, since we'll return 0 anyway in that case.
37630         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
37631
37632 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37633
37634         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
37635         possible collision with system files.
37636         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
37637         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
37638         WCHAR_MIN and WCHAR_MAX in this case.
37639         (<stddef.h>): Do not include; no longer needed.
37640         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
37641         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
37642         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
37643         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
37644         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
37645         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
37646         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
37647         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
37648         !defined(__c99))]: Include in this case too, since it's harmless
37649         now.
37650         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
37651         dangerous to do so.
37652         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
37653         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
37654         (_STDINT_MIN, _STDINT_MAX): New macros.
37655         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
37656         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
37657         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
37658         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
37659         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
37660         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
37661         macros, not typedefs; this simplifies things quite a bit.
37662         Use long int for all types narrower than int64_t.
37663         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
37664         Define in terms of long long int or int64_t or long int,
37665         not int64_t or int32_t.  This saves some compile-time testing.
37666         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
37667         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
37668         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
37669         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
37670         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
37671         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
37672         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
37673         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
37674         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
37675         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
37676         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37677         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37678         undef any previous version and define our own version, for
37679         simplicity and consistency with the new macros for types.
37680         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37681         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37682         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
37683         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
37684         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
37685         @WINT_T_SUFFIX@ to keep things simple here.
37686         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
37687         Simplify by assuming typical 8/16/32/64 host, since we're
37688         already doing that elsewhere anyway.
37689         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
37690         and assume long long int is 64 bits if available.  This
37691         speeds up 'configure'.
37692
37693 2006-07-01  Eric Blake  <ebb9@byu.net>
37694
37695         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
37696         Reported by Andreas Buening.
37697
37698 2006-07-01  Eric Blake  <ebb9@byu.net>
37699
37700         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
37701
37702 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
37703
37704         * lib/getaddrinfo.c: fixed typo
37705
37706 2006-06-29  Jim Meyering  <jim@meyering.net>
37707
37708         * modules/strftime (Maintainer): Add my name, since with the
37709         FPRINTFTIME changes strftime.c has forked from glibc.
37710
37711 2006-06-29  Eric Blake  <ebb9@byu.net>
37712
37713         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
37714
37715 2006-06-29  Eric Blake  <ebb9@byu.net>
37716
37717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
37718
37719 2006-06-29  Eric Blake  <ebb9@byu.net>
37720
37721         * lib/stat_.h: New file.
37722
37723 2006-06-29  Eric Blake  <ebb9@byu.net>
37724
37725         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
37726         unused static function.
37727
37728 2006-06-29  Eric Blake  <ebb9@byu.net>
37729
37730         * doc/functions.texi (Function Portability): Document missing lstat
37731         on mingw.
37732
37733 2006-06-29  Eric Blake  <ebb9@byu.net>
37734
37735         * MODULES.html.sh: Add sys_stat.
37736         * modules/sys_stat: New module.
37737         * modules/mkstemp (Depends-on): Add sys_stat.
37738
37739 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37740
37741         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
37742
37743 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37744
37745         * m4/c-bs-a.m4: Removed.
37746
37747 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37748
37749         * lib/strftime.c: Assume strftime() exists.
37750
37751 2006-06-29  Derek Price  <derek@ximbiot.com>
37752
37753         * modules/c-bs-a: Removed - \a is C89.
37754         * MODULES.html.sh: Remove c-bs-a.
37755
37756 2006-06-29  Bruno Haible  <bruno@clisp.org>
37757
37758         * modules/wcwidth (License): Change to LGPL.
37759
37760 2006-06-28  Simon Josefsson  <jas@extundo.com>
37761
37762         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
37763         on _WIN32.
37764
37765         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
37766         getnameinfo.
37767
37768 2006-06-28  Simon Josefsson  <jas@extundo.com>
37769
37770         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
37771
37772 2006-06-28  Simon Josefsson  <jas@extundo.com>
37773
37774         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
37775         functions there.  It will succeed on Windows XP, but on Windows
37776         2000 and (presumably) earlier, it will fail, and use the internal
37777         re-implementation.
37778         (use_win32_p): New function.
37779         (getaddrinfo): Use strtoul on servname, to support numeric ports.
37780         Support AI_NUMERICSERV to disable getservbyname.
37781         (getnameinfo): New function, only supports
37782         NI_NUMERICHOST|NI_NUMERICSERV for now.
37783
37784         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
37785         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
37786         getnameinfo.
37787
37788 2006-06-28  Eric Blake  <ebb9@byu.net>
37789
37790         * modules/wcwidth: New file.
37791         * modules/mbchar (Depends-on): Add wcwidth.
37792         * modules/mbswidth (Depends-on): Add wcwidth.
37793         * MODULES.html.sh: Add wcwidth.
37794
37795 2006-06-28  Eric Blake  <ebb9@byu.net>
37796
37797         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
37798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
37799
37800 2006-06-28  Eric Blake  <ebb9@byu.net>
37801
37802         * lib/xvasprintf.h: Fix comments.
37803
37804 2006-06-28  Eric Blake  <ebb9@byu.net>
37805
37806         * lib/mbchar.h (wcwidth): Include wcwidth.h.
37807         * lib/mbswidth.c (wcwidth): Move from here...
37808         * lib/wcwidth.h: ...to this new file.
37809
37810 2006-06-28  Derek R. Price  <derek@ximbiot.com>
37811
37812         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
37813
37814         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
37815         it's obsolete.
37816         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
37817
37818 2006-06-28  Derek R. Price  <derek@ximbiot.com>
37819
37820         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
37821         Autoconf 2.60 says this stuff was obsolete.
37822
37823 2006-06-28  Bruno Haible  <bruno@clisp.org>
37824
37825         * modules/wcwidth (Files): Add m4/wchar_t.m4.
37826
37827 2006-06-28  Bruno Haible  <bruno@clisp.org>
37828
37829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
37830         gt_TYPE_WCHAR_T.
37831
37832 2006-06-28  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
37835         declaration for wcwidth.
37836         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
37837
37838 2006-06-28  Bruno Haible  <bruno@clisp.org>
37839
37840         * lib/mkdtemp.c [MINGW]: Include <io.h>.
37841         (mkdir): Define using _mkdir.
37842
37843 2006-06-28  Bruno Haible  <bruno@clisp.org>
37844
37845         * lib/getaddrinfo.h: Fix POSIX URL.
37846         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
37847         _WIN32.
37848         (use_win32_p): Make static.
37849         (getaddrinfo): Reject service name if it is empty or does not consist
37850         solely of decimal digits, or if its value is > 65535.
37851         (getnameinfo): Remove useless casts.
37852
37853 2006-06-27  Simon Josefsson  <jas@extundo.com>
37854
37855         * modules/sys_select: New file, suggested by Bruno Haible, Paul
37856         Eggert and Martin Lambers.
37857
37858 2006-06-27  Simon Josefsson  <jas@extundo.com>
37859
37860         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
37861         Eggert and Martin Lambers.
37862
37863 2006-06-27  Bruno Haible  <bruno@clisp.org>
37864
37865         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
37866         result to 0, not to empty.
37867         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
37868
37869 2006-06-27  Bruno Haible  <bruno@clisp.org>
37870
37871         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
37872
37873 2006-06-26  Simon Josefsson  <jas@extundo.com>
37874
37875         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
37876         present.
37877
37878 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37879
37880         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
37881         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
37882         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
37883
37884 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
37885
37886         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
37887
37888 2006-06-26  Bruno Haible  <bruno@clisp.org>
37889
37890         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
37891
37892 2006-06-26  Bruno Haible  <bruno@clisp.org>
37893
37894         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
37895
37896 2006-06-26  Bruno Haible  <bruno@clisp.org>
37897
37898         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
37899         SGI C compiler in pre-C99 mode.
37900         Suggested by Mark D. Baushke and Larry Jones.
37901
37902 2006-06-26  Bruno Haible  <bruno@clisp.org>
37903
37904         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
37905         WCHAR_MAX.
37906         Reported by Mark D. Baushke and Larry Jones.
37907
37908 2006-06-26  Bruno Haible  <bruno@clisp.org>
37909
37910         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
37911         in pre-C99 mode.
37912         Suggested by Mark D. Baushke and Larry Jones.
37913
37914 2006-06-23  Simon Josefsson  <jas@extundo.com>
37915             Bruno Haible  <bruno@clisp.org>
37916
37917         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
37918         Emit mostlyclean-local rule.
37919         (func_emit_tests_Makefile_am): Likewise.
37920         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
37921
37922 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
37923
37924         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
37925
37926 2006-06-23  Bruno Haible  <bruno@clisp.org>
37927
37928         * tests/test-stdint.c: Update to match ISO C 99 Technical
37929         Corrigendum 1.
37930
37931 2006-06-23  Bruno Haible  <bruno@clisp.org>
37932
37933         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
37934
37935 2006-06-23  Bruno Haible  <bruno@clisp.org>
37936
37937         * lib/stdint_.h: Treat IRIX like OpenBSD.
37938
37939 2006-06-23  Bruno Haible  <bruno@clisp.org>
37940
37941         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
37942         ISO C 99 Technical Corrigendum 1.
37943
37944 2006-06-22  Simon Josefsson  <jas@extundo.com>
37945
37946         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
37947         MinGW.
37948
37949 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37950
37951         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
37952         needed.  Some compiler complained about some of them.  Problem reported
37953         by Larry Jones in
37954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
37955
37956 2006-06-21  Simon Josefsson  <jas@extundo.com>
37957
37958         * tests/test-getaddrinfo.c: New file.
37959
37960         * modules/getaddrinfo-tests: New file.
37961
37962         * MODULES.html.sh: Add inet_pton.
37963
37964         * modules/inet_pton: New file.
37965
37966 2006-06-21  Simon Josefsson  <jas@extundo.com>
37967
37968         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
37969         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
37970         of using the (limited) gnulib implementation on Windows XP.
37971
37972         * m4/inet_pton.m4: New file.
37973
37974 2006-06-21  Simon Josefsson  <jas@extundo.com>
37975
37976         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
37977         variable.
37978
37979         * lib/socket_.h: Don't define WINVER.
37980
37981         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
37982         slightly modified to work in gnulib.
37983
37984 2006-06-21  Simon Josefsson  <jas@extundo.com>
37985
37986         * doc/gnulib.texi (Windows sockets): Add.
37987
37988 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37989
37990         * lib/read-file.c (fread_file): Start with buffer allocation of
37991         0 bytes rather than 1 byte; this simplifies the code.
37992         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
37993         code to free buffer and save/restore errno.
37994         (internal_read_file): Remove unused local.
37995
37996 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37997
37998         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
37999         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
38000         Problem reported by Denis Excoffier in
38001         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
38002
38003 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38004
38005         * modules/sys_socket, modules/socklen: Include sys/types since
38006         FreeBSD 4.x's sys/socket.h needs it.
38007
38008 2006-06-19  Simon Josefsson  <jas@extundo.com>
38009
38010         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
38011
38012 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
38013
38014         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
38015
38016 2006-06-19  Bruno Haible  <bruno@clisp.org>
38017
38018         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
38019         and FULL_PATH_INTTYPES_H in angle brackets.
38020         Reported by Mark D. Baushke <mdb@gnu.org>.
38021
38022 2006-06-17  Eric Blake  <ebb9@byu.net>
38023
38024         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
38025         errno.
38026
38027 2006-06-17  Bruno Haible  <bruno@clisp.org>
38028
38029         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
38030         <sys/inttypes.h>.
38031
38032 2006-06-17  Bruno Haible  <bruno@clisp.org>
38033
38034         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
38035         whether errno is declared. Assume <errno.h> declares errno.
38036
38037 2006-06-17  Bruno Haible  <bruno@clisp.org>
38038
38039         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
38040
38041 2006-06-17  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
38044         problem on Solaris 2.5.1.
38045
38046 2006-06-16  Eric Blake  <ebb9@byu.net>
38047
38048         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
38049         * lib/unicodeio.c [!defined errno]: Likewise.
38050         * lib/strtol.c [!defined errno]: Likewise.
38051         * lib/strtod.c [!defined errno]: Likewise.
38052
38053 2006-06-15  Eric Blake  <ebb9@byu.net>
38054
38055         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
38056
38057 2006-06-15  Eric Blake  <ebb9@byu.net>
38058
38059         * config/srclist.txt (ssize_t.m4): Lose sync.
38060
38061 2006-06-15  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/stdint (Files): Include m4/full-header-path.m4,
38064         m4/size_max.m4, m4/wchar_t.m4.
38065         (Makefile.am): Many more substitutions.
38066         * modules/stdint-tests: New file.
38067         * tests/test-stdint.c: New file.
38068
38069 2006-06-15  Bruno Haible  <bruno@clisp.org>
38070
38071         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
38072         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
38073         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
38074         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
38075         gl_CHECK_TYPE_SAME): New macros.
38076
38077 2006-06-15  Bruno Haible  <bruno@clisp.org>
38078
38079         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
38080
38081 2006-06-15  Bruno Haible  <bruno@clisp.org>
38082
38083         * lib/stdint_.h: Rewritten to be fully auto-configured.
38084         Fixes bug on HP-UX/IA64.
38085
38086 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
38087
38088         * lib/getdate.y (__attribute__): Don't define if already defined.
38089         Problem reported by Larry Jones.
38090         * lib/utimens.c (__attribute__): Likewise.
38091
38092 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
38093
38094         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
38095         reported by Andreas Schwab.
38096
38097 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38098             Bruno Haible  <bruno@clisp.org>
38099
38100         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
38101         check for the declaration of strnlen and a run test that exposes the
38102         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
38103         rpl_strndup.
38104
38105 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38106             Bruno Haible  <bruno@clisp.org>
38107
38108         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
38109
38110 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38111
38112         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
38113         compile test, for Tru64 4.0D.
38114
38115 2006-05-28  Karl Berry  <karl@gnu.org>
38116
38117         * config/srclist.txt (printf-args.c): lose sync.
38118
38119 2006-05-26  Martin Lambers  <marlam@marlam.de>
38120
38121         * lib/getpass.c: Updates the test for the native W32 API, and adds
38122         missing includes, thus fixing compilation warnings.
38123
38124 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38125
38126         * lib/exclude.c (exclude_fnmatch): New function.
38127         (excluded_file_name): Call exclude_fnmatch.
38128         * lib/exclude.h (excluded_file_name): New prototype
38129
38130 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
38131
38132         * lib/tempname.c (small_open, large_open): New macros.
38133         (__open, __open64) [!_LIBC]: Remove.
38134         (__gen_tempname): Use small_open and large_open instead of __open
38135         and __open64.  This fixes a portability bug on HP-UX 11.11i
38136         reported by Simon Wing-Tang in
38137         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
38138
38139 2006-05-24  Bruno Haible  <bruno@clisp.org>
38140
38141         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
38142         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
38143         Reported by Thorsten Maerz <torte@netztorte.de> via
38144         Aaron Stone <aaron@serendipity.cx>.
38145
38146 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
38147
38148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
38149         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
38150         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
38151         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
38152         not really conditional on the cache.
38153         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
38154
38155 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
38156
38157         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
38158         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
38159         (my_usleep): Don't mishandle maximum value.
38160
38161 2006-05-19  Jim Meyering  <jim@meyering.net>
38162
38163         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
38164
38165 2006-05-17  Bruno Haible  <bruno@clisp.org>
38166
38167         Cygwin portability.
38168         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
38169
38170 2006-05-17  Bruno Haible  <bruno@clisp.org>
38171
38172         * lib/stdint_.h: Fix recognition of Cygwin.
38173
38174 2006-05-15  Bruno Haible  <bruno@clisp.org>
38175
38176         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
38177         on libtool patch by Ralf Wildenhues.
38178
38179 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38180
38181         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
38182         test for C99 conformance; (bool) 0.5 is an integer constant
38183         expression, but (bool) -0.5 is not.  Problem reported by Fedor
38184         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
38185
38186 2006-05-11  Simon Josefsson  <jas@extundo.com>
38187
38188         * m4/xvasprintf.m4: Fix obvious typo.
38189
38190 2006-05-11  Jim Meyering  <jim@meyering.net>
38191
38192         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
38193         James Lemley.
38194
38195 2006-05-10  Simon Josefsson  <jas@extundo.com>
38196
38197         * lib/md4.c: Typo fix, update copyright years.
38198         (K1, K2): Don't use L because it turn computations into 64-bit on
38199         64-bit platforms.
38200
38201 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38202
38203         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
38204         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
38205         unwanted sign propagation, e.g., on hosts with 64-bit int.
38206         There still are some problems with reeelly weird theoretical hosts
38207         (e.g., 33-bit int) but it's not worth worrying about now.
38208         * lib/sha1.c (rol): Likewise.
38209         (K1, K2, K3, K4): Remove unnecessary L suffix.
38210
38211 2006-05-10  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/des.c: Cast to avoid warnings.
38214
38215 2006-05-09  Bruno Haible  <bruno@clisp.org>
38216
38217         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
38218         (Depends-on): Depend also on xsize, stdarg.
38219         (configure.ac): Add gl_XVASPRINTF.
38220
38221 2006-05-09  Bruno Haible  <bruno@clisp.org>
38222
38223         * m4/xvasprintf.m4: New file.
38224
38225 2006-05-09  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
38228         (EOVERFLOW): Define fallback value.
38229         (xstrcat): New function.
38230         (xvasprintf): Recognize the special case of a string concatenation.
38231
38232 2006-05-08  Eric Blake  <ebb9@byu.net>
38233
38234         * gnulib-tool (func_version): Base copyright year on CVS date.
38235         (func_emit_copyright_notice): New function.
38236         (func_emit_lib_Makefile_am): Use it.
38237         (func_emit_tests_Makefile_am): Likewise.
38238         (func_import): Likewise.
38239
38240 2006-05-08  Bruno Haible  <bruno@clisp.org>
38241
38242         * modules/stdarg: New file.
38243         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
38244
38245 2006-05-08  Bruno Haible  <bruno@clisp.org>
38246
38247         * m4/stdarg.m4: New file, from GNU gettext.
38248
38249 2006-05-08  Bruno Haible  <bruno@clisp.org>
38250
38251         * config/srclist.txt (build-aux/config.rpath): different from latest
38252         release.
38253
38254 2006-05-08  Bruno Haible  <bruno@clisp.org>
38255
38256         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
38257
38258 2006-05-05  Jim Meyering  <jim@meyering.net>
38259
38260         * m4/warning.m4: New file, derived from bison's file by the same name.
38261
38262 2006-05-03  Bruno Haible  <bruno@clisp.org>
38263
38264         * lib/stdint_.h: Shorter URL.
38265         * lib/inttypes.h: Likewise.
38266
38267 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38268
38269         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
38270
38271 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38272
38273         * lib/verify.h: Document the internals better.  Most of this change
38274         was written by Bruno Haible.
38275
38276 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38277
38278         * doc/verify.texi: New file, partly based on a proposal by
38279         Bruno Haible.
38280
38281 2006-05-02  Bruno Haible  <bruno@clisp.org>
38282
38283         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
38284         test from here...
38285         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
38286
38287 2006-04-29  Bruno Haible  <bruno@clisp.org>
38288
38289         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
38290         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
38291
38292 2006-04-29  Bruno Haible  <bruno@clisp.org>
38293
38294         * gnulib-tool: Make --update option actually work.
38295
38296 2006-04-29  Bruno Haible  <bruno@clisp.org>
38297
38298         * doc/gcd.texi: New file.
38299         * doc/gnulib.texi: Include it.
38300
38301 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
38302
38303         * lib/getdate.y (get_date): When adding relative date, start with the
38304         initial time, not with the result of the first mktime call.
38305
38306 2006-04-25  Bruno Haible  <bruno@clisp.org>
38307
38308         * gnulib-tool (func_import): Output the include directives in three
38309         blocks, sorted separately.
38310         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38311
38312 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38313
38314         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
38315         to define main with arguments, for C++.  Reported by Eric Blake.
38316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
38317         Prefer 'int main ()' to 'int main (void)', for C++.
38318         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38319         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
38320         for 'main', for C99 and C++.
38321
38322 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38323
38324         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
38325         Don't assume that exit status -1 is valid.
38326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38327         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38328         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38329         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
38330         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
38331         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
38332         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
38333         functions can be used without declaring them, or that you can
38334         exit with status -1.
38335         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38336
38337 2006-04-24  Karl Berry  <karl@gnu.org>
38338
38339         * config/srclist.txt (longdouble.m4): sync lost.
38340
38341 2006-04-24  Eric Blake  <ebb9@byu.net>
38342
38343         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
38344
38345 2006-04-24  Bruno Haible  <bruno@clisp.org>
38346
38347         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
38348         poll() implementation in AIX.
38349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38350
38351 2006-04-24  Bruno Haible  <bruno@clisp.org>
38352
38353         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
38354         assigned exactly once.
38355
38356 2006-04-23  Claudio Fontana  <claudio@gnu.org>
38357             Bruno Haible  <bruno@clisp.org>
38358
38359         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
38360         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
38361         for AM_CPPFLAGS.
38362
38363 2006-04-23  Bruno Haible  <bruno@clisp.org>
38364
38365         * modules/copy-file: Depend on unistd.
38366         * modules/execute: Likewise.
38367         * modules/fatal-signal: Likewise.
38368         * modules/findprog: Likewise.
38369         * modules/mkdtemp : Likewise.
38370         * modules/pipe: Likewise.
38371         * modules/wait-process: Likewise.
38372
38373 2006-04-23  Bruno Haible  <bruno@clisp.org>
38374
38375         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
38376         condition was already detected.
38377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38378
38379 2006-04-23  Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/copy-file.c: Include <unistd.h> unconditionally.
38382         * lib/execute.c: Likewise.
38383         * lib/fatal-signal.c: Likewise.
38384         * lib/findprog.c: Likewise.
38385         * lib/mkdtemp.c: Likewise.
38386         * lib/pipe.h: Likewise.
38387         * lib/pipe.c: Likewise.
38388         * lib/wait-process.h: Likewise.
38389
38390 2006-04-23  Bruno Haible  <bruno@clisp.org>
38391
38392         * gnulib-tool (func_usage): Fix --import description. Document
38393         --update.
38394         (func_import): Create temporary file in a temporary directory, if
38395         --dry-run is specified. Silence errors from 'grep' when there are no
38396         m4 files in $m4dir.
38397         (func_create_testdir): Silence errors from 'grep' when there are no
38398         m4 files in $m4dir.
38399         Reported by Karl Berry <karl@freefriends.org>.
38400
38401 2006-04-20  Bruno Haible  <bruno@clisp.org>
38402
38403         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
38404         one argument, so that the code will be portable to Autoconf 2.60.
38405         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
38406         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
38407         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
38408
38409 2006-04-19  Derek Price  <derek@ximbiot.com>
38410             Eric Blake  <ebb9@byu.net>
38411
38412         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
38413         rather than "/full/path.h".  Update comment to match.  Shorten &
38414         generalize m4_translit call via AS_TR_CPP.
38415
38416 2006-04-19  Derek Price  <derek@ximbiot.com>
38417             Eric Blake  <ebb9@byu.net>
38418
38419         * lib/inttypes.h: Correct grammar in comment.
38420
38421 2006-04-18  Derek Price  <derek@ximbiot.com>
38422             Paul Eggert  <eggert@cs.ucla.edu>
38423
38424         * modules/inttypes: New file.
38425         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
38426
38427 2006-04-18  Derek Price  <derek@ximbiot.com>
38428             Paul Eggert  <eggert@cs.ucla.edu>
38429
38430         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
38431         New files.
38432
38433 2006-04-18  Derek Price  <derek@ximbiot.com>
38434             Paul Eggert  <eggert@cs.ucla.edu>
38435
38436         * lib/inttypes.h: New file.
38437         * lib/strtoimax.c: Assume <inttypes.h>.
38438
38439 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
38440
38441         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
38442         isn't mounted.  Problem reported by Kir Kolyshkin.
38443
38444 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38445
38446         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
38447         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
38448         Derek R. Price.
38449         * lib/regex.h (RE_DUP_MAX): Update comment to match current
38450         implementation.
38451
38452 2006-04-12  Eric Blake  <ebb9@byu.net>
38453
38454         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
38455         is now done automatically by the corresponding Autoconf macro.
38456
38457 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
38458
38459         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
38460         time_r.h.
38461
38462 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38463
38464         Merge regex changes from libc, removing some of our
38465         POSIX-conformance changes that were rejected and redoing them in a
38466         less-intrusive way.
38467
38468         * lib/regcomp.c (re_compile_internal, init_dfa):
38469         Length arg is now size_t, not Idx.  All uses changed.
38470         (peek_token): Forward decl now says internal_function.
38471         (__re_error_msgid, __re_error_msgid_idx):
38472         Now static rather than extern with attribute_hidden.
38473         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
38474         For some reason libc prefers K&R style defns for external functions.
38475         (regerror) [!defined _LIBC]: Likewise.
38476         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
38477         (seek_collating_symbol_entry, lookup_collation_sequence_value):
38478         (build_range_exp, build_collating_symbol):
38479         Use K&R-style defn.
38480         (re_compile_fastmap): Use '\0' to memset, not 0.
38481         (utf8_sb_map): Make the calculations more obvious.
38482         (init_dfa, parse_bracket_exp, build_charclass_op):
38483         Call calloc and cast result, as glibc does.
38484         (init_word_char, fetch_token, peek_token, peek_token_bracket):
38485         (build_range_exp, build_collating_symbol):
38486         Now internal functions.
38487
38488         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
38489
38490         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
38491         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
38492         Don't depend on VMS; depend on __VMS instead, for POSIX
38493         namespace cleanness.
38494         (regoff_t): Define to ssize_t, not long int.
38495
38496         Remove the REG_ macros named below.  Instead, make the old names
38497         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
38498         __USE_GNU_REGEX.
38499         (REG_BACKSLASH_ESCAPE_IN_LISTS):
38500         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
38501         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
38502         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
38503         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
38504         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
38505         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
38506         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
38507         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
38508         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
38509         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
38510         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
38511         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
38512         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
38513         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
38514         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
38515         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
38516         (REG_NREGS):
38517         Remove.  All uses replaced by the old RE_* names.
38518         (RE_BACKSLASH_ESCAPE_IN_LISTS):
38519         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
38520         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
38521         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
38522         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
38523         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
38524         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
38525         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
38526         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
38527         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
38528         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
38529         Don't bother having these macros be independent of each others'
38530         values, since they no longer exist in the POSIX name space.
38531
38532         Rename the following member names back to their old names,
38533         unless !__USE_GNU_REGEX.  All uses changed back.
38534         (buffer): Renamed from re_buffer.
38535         (allocated): Renamed from re_allocated.
38536         (used): Renamed from re_used.
38537         (syntax): Renamed from re_syntax.
38538         (fastmap): Renamed from re_fastmap.
38539         (translate): Renamed from re_translate.
38540         (can_be_null): Renamed from re_can_be_null.
38541         (regs_allocated): Renamed from re_regs_allocated.
38542         (fastmap_accurate): Renamed from re_fastmap_accurate.
38543         (no_sub): Renamed from re_no_sub.
38544         (not_bol): Renamed from re_not_bol.
38545         (not_eol): Renamed from re_not_eol.
38546         (newline_anchor): Renamed from re_newline_anchor.
38547         (num_regs): Renamed from rm_num_regs.
38548         (start): Renamed from rm_start.
38549         (end): Renamed from rm_end.
38550
38551         (free_state): Move up a bit.
38552
38553         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
38554         #define to be empty.
38555         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
38556         when that is what is intended.
38557         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
38558         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
38559         (MAX): New macro.
38560         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
38561         All uses changed back to re_malloc, etc.  It's now the caller's
38562         responsibility to check for overflow; all callers changed.
38563         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
38564         (re_x2nrealloc): Remove.
38565         (free_state): Remove decl.
38566
38567         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
38568         (re_set_registers, re_exec):
38569         Use K&R-style defn.
38570
38571         2006-01-31  Roland McGrath  <roland@redhat.com>
38572
38573         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
38574         Reported by Mike Frysinger <vapier@gentoo.org>.
38575
38576         2006-01-15  Andreas Jaeger  <aj@suse.de>
38577
38578         [BZ #1950]
38579         * lib/regex_internal.c (re_string_reconstruct): Adjust for
38580         build_wcs_upper_buffer change.
38581         (build_wcs_upper_buffer): Change return type.
38582
38583         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
38584
38585         * lib/regex_internal.h: Include <stdint.h> if available.
38586
38587         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
38588
38589         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
38590
38591         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38592
38593         * lib/regcomp.c: Adjust for changed secondary hash function.
38594
38595         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
38596
38597         * lib/regex.h: Pretty printing.
38598         Clean up namespace a bit.
38599
38600         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
38601
38602         * lib/regexec.c (update_cur_sifted_state, check_arrival,
38603         check_arrival_add_next_nodes): Avoid using uninitialized variable.
38604
38605         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38606                     Ulrich Drepper  <drepper@redhat.com>
38607
38608         [BZ #1302]
38609         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
38610         changed.
38611         (bitset_word_t): Renamed from bitset_word.  All uses changed.
38612
38613         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
38614
38615         [BZ #281]
38616         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
38617         * lib/regcomp.c: Remove unnecessary uses of
38618         unsigned RE_TRANSLATE_TYPE.
38619         * lib/regex_internal.h: Likewise.
38620         * lib/regex_internal.c: Likewise.
38621         * lib/regexec.c: Likewise.
38622         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
38623
38624         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
38625
38626         * lib/regexec.c (find_recover_state): Remove unnecessary
38627         initialization.
38628         (transit_state_bkref): Make DFA a const pointer.
38629         (get_subexp): Likewise.
38630         (check_arrival): Likewise.
38631         (update_cur_sifted_state): Likewise.
38632         (re_search_internal): Likewise.
38633         (prune_impossible_nodes): Likewise.
38634         (acquire_init_state_context): Likewise.
38635         (proceed_next_node): Likewise.
38636         (set_regs): Likewise.
38637         (free_fail_stack_return): Likewise.
38638         (check_arrival_expand_ecl): Mark DFA parameter as const.
38639         (check_arrival_expand_ecl_sub): Likewise.
38640         (check_subexp_limits): Likewise.
38641         (sub_epsilon_src_nodes):  Likewise.
38642         (add_epsilon_src_nodes):  Likewise.
38643         (merge_state_array): Likewise.
38644         (update_regs): Likewise.
38645         (build_trtable): Likewise.
38646         (sift_states_backward): Mark MCTX parameter as const.
38647         (build_sifted_states): Likewise.
38648         (update_cur_sifted_state): Likewise.
38649         (sift_states_mkref): Likewise.
38650         (check_arrival_expand_ecl): Mark eclosure as const.
38651         (check_dst_limits_calc_pos_1): Likewise.
38652         * lib/regex_internal.h (re_match_context_t): Make dfa a const
38653         pointer.
38654
38655         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
38656
38657         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
38658         (transit_state_sb): Likewise.
38659         (transit_state_mb): Likewise.
38660         (sift_states_iter_mb): Likewise.
38661         (check_arrival_add_next_nodes): Likewise.
38662         (check_node_accept_bytes): Change first parameter to pointer-to-const.
38663         [_LIBC] (re_search_2_stub): Use mempcpy.
38664
38665         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
38666         mbrtowc for very simple UTF-8 case.
38667
38668         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
38669         a pointer-to-const.
38670         (re_acquire_state_context): Likewise.
38671         * lib/regex_internal.h: Adjust prototypes.
38672
38673         * lib/regex.c: Prevent using C++ compilers.
38674
38675         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
38676         (re_acquire_state_context): Likewise.
38677
38678 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38679
38680         * modules/regex (Depends-on): Add ssize_t.
38681
38682 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38683
38684         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
38685         translation table.
38686
38687 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38688
38689         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
38690
38691 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
38692             Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
38695         <sys/types.h> and <inttypes.h>.
38696
38697 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38698
38699         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
38700         `__error_t_defined', so argp.h will not typedef the former.
38701
38702 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38703
38704         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
38705         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
38706         glibc names.  Even if glibc is changed to conform to POSIX, the
38707         traditional names will be available anyway, since regex depends on
38708         the extensions module.  Also, fix a longstanding typo in the
38709         implementation of Spencer ERE test #75 from grep 2.3.  Problems
38710         reported by Emanuele Giaquinta.  Also, change sense of cached
38711         variable, so that the message makes sense.
38712
38713 2006-03-24  Simon Josefsson  <jas@extundo.com>
38714
38715         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
38716         including some doc fixes.
38717         (base64_encode_alloc): Fix +1 bug on allocation failures.
38718
38719 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38720
38721         * lib/base64.c (base64_encode): Do not read past end of array with
38722         unsanitized input on systems with CHAR_BIT > 8.
38723
38724 2006-03-24  Eric Blake  <ebb9@byu.net>
38725
38726         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
38727
38728 2006-03-22  Karl Berry  <karl@gnu.org>
38729
38730         * config/srclist.txt (*setenv.[ch]): get from coreutils.
38731         * config/srclistvars.sh (COREUTILS): new var.
38732
38733 2006-03-17  Jim Meyering  <jim@meyering.net>
38734
38735         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
38736         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
38737
38738 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38739
38740         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
38741         no longer needs it.  Instead, check that regoff_t is as least
38742         as wide as ptrdiff_t.
38743
38744         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
38745         so that our regex.h stays compatible with the installed regex.
38746         This is helpful for installers who configure --without-included-regex.
38747         Problem reported by Emanuele Giaquinta.
38748
38749 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38750
38751         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
38752         Typedef to long int, not to off_, as POSIX will likely change
38753         in that direction.
38754
38755 2006-03-15  Eric Blake  <ebb9@byu.net>
38756
38757         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
38758
38759 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
38760
38761         * lib/argp-help.c (validate_uparams): Fix typo
38762         * lib/argp-parse.c (argp_default_options): Consistently begin help
38763         messages with a lowercase letter.
38764
38765 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
38766
38767         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
38768         overrun buffers and shouldn't be used (much as gets shouldn't be
38769         used).
38770         * lib/time_r.c (asctime_r, ctime_r): Likewise.
38771
38772 2006-03-08  Simon Josefsson  <jas@extundo.com>
38773
38774         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
38775         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38776
38777 2006-03-08  Simon Josefsson  <jas@extundo.com>
38778
38779         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
38780         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38781
38782 2006-03-08  Simon Josefsson  <jas@extundo.com>
38783
38784         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
38785         signal that configure disabled the device.
38786
38787 2006-03-08  Simon Josefsson  <jas@extundo.com>
38788
38789         * build-aux/maint.mk: Fix refresh-po, to handle no translated
38790         languages.
38791
38792 2006-03-07  Simon Josefsson  <jas@extundo.com>
38793
38794         * modules/getopt (Depends-on): Add unistd.
38795
38796         * modules/unistd: New file.
38797
38798 2006-03-07  Simon Josefsson  <jas@extundo.com>
38799
38800         * modules/gc-random: New file.
38801
38802 2006-03-07  Simon Josefsson  <jas@extundo.com>
38803
38804         * m4/unistd_h.m4: New file.
38805
38806 2006-03-07  Simon Josefsson  <jas@extundo.com>
38807
38808         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
38809         test to be side-effect free by storing the result in the cache
38810         variable gl_cv_lib_readline, and moving the assignment of
38811         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
38812         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38813
38814 2006-03-07  Simon Josefsson  <jas@extundo.com>
38815
38816         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
38817         error on missing devices (the functions will return an error).
38818
38819         * m4/gc.m4: Move random stuff to gc-random.m4
38820
38821 2006-03-07  Simon Josefsson  <jas@extundo.com>
38822
38823         * lib/unistd_.h: New file.
38824
38825 2006-03-07  Simon Josefsson  <jas@extundo.com>
38826
38827         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
38828
38829 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38830
38831         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
38832         Problem reported by Juan Manuel Guerrero.
38833
38834 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38835
38836         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
38837         the unistd module.
38838         * lib/getlogin_r.c: Likewise.
38839         * lib/getlogin_r.h: Likewise.
38840         * lib/glob.c: Likewise.
38841         * lib/pagealign_alloc.c: Likewise.
38842         * lib/unistd_.h: Remove; no longer needed.
38843
38844 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38845
38846         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38847         Add unistd.
38848         * modules/c-stack (Depends-on): Add unistd.
38849         * modules/getlogin_r: Likewise.
38850         * modules/glob: Likewise.
38851         * modules/pagealign_alloc: Likewise.
38852         * modules/unistd (Files): Remove lib/unistd_.h.
38853         (EXTRA_DIST): Remove.
38854         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
38855         need unistd_.h.
38856         (MOSTLYCLEANFILES): Remove unistd.h-t.
38857
38858 2006-03-03  Simon Josefsson  <jas@extundo.com>
38859
38860         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
38861
38862 2006-03-03  Simon Josefsson  <jas@extundo.com>
38863
38864         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
38865         libidn and bison.
38866
38867 2006-03-03  Simon Josefsson  <jas@extundo.com>
38868
38869         * build-aux/maint.mk: Add indent target.
38870
38871 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
38872
38873         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
38874         our replacement poll.h in any case, to avoid a differing
38875         declaration from a system header.  Seen on AIX.
38876
38877 2006-03-01  Simon Josefsson  <jas@extundo.com>
38878
38879         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
38880         <kasal@ucw.cz>.
38881
38882 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38883
38884         * modules/gettime (Depends-on): Add extensions module.
38885         * modules/nanosleep (Depends-on): Likewise.
38886         * modules/settime (Depends-on): Likewise.
38887
38888 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38889
38890         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
38891         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
38892         pedantically.
38893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38894         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
38895
38896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
38897         not "==".  Reported by Ralf Wildenhues.
38898
38899 2006-03-01  Karl Berry  <karl@gnu.org>
38900
38901         * doc/Copyright/request-*: new files, synced from gnuorg.
38902
38903 2006-03-01  Karl Berry  <karl@gnu.org>
38904
38905         * config/srclist.txt (Copyright/*): new entries.
38906
38907 2006-02-28  Simon Josefsson  <jas@extundo.com>
38908
38909         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
38910
38911 2006-02-27  Simon Josefsson  <jas@extundo.com>
38912
38913         * lib/base64.h: Indent #define's.  From Jim Meyering
38914         <jim@meyering.net>.
38915
38916 2006-02-27  Jim Meyering  <jim@meyering.net>
38917
38918         Revert the change of 2006-02-24, so these files can continue
38919         to be sync'd from gettext.
38920         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
38921         of `config.h'.
38922
38923 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38924
38925         * modules/intprops: New file.
38926         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38927         Add intprops.
38928         * modules/getloadavg (Files): Remove lib/intprops.h.
38929         (Depends-on): Add intprops.
38930         * modules/human: Likewise.
38931         * modules/inttostr: Likewise.
38932         * modules/openat: Likewise.
38933         * modules/sig2str: Likewise.
38934         * modules/userspec: Likewise.
38935         * modules/utimecmp: Likewise.
38936         * modules/xnanosleep: Likewise.
38937         * modules/xstrtol: Likewise.
38938
38939 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
38940
38941         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
38942         * modules/lock-tests (TESTS): Use $(EXEEXT).
38943         * modules/tls-tests: Likewise.
38944         * modules/argp-tests: Likewise.
38945         (check_PROGRAMS): New var, replacing...
38946         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
38947
38948 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38949
38950         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
38951         `config.h'.
38952
38953 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38954
38955         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
38956
38957 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38958
38959         Sync from coreutils.
38960         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
38961         gl_CHDIR_SAFER.
38962
38963 2006-02-22  Jim Meyering  <jim@meyering.net>
38964
38965         Sync from coreutils.
38966         * m4/chdir-safer.m4: New file.
38967
38968 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38969
38970         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
38971         AT_FDCWD exceeds INT_MAX.
38972         * lib/openat.h (AT_FDCWD): Likewise.
38973
38974 2006-02-17  Eric Blake  <address@hidden>
38975
38976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
38977
38978 2006-02-16  Simon Josefsson  <jas@extundo.com>
38979
38980         * modules/getaddrinfo (Depends-on): Add sys_socket.
38981
38982 2006-02-15  Simon Josefsson  <jas@extundo.com>
38983
38984         * build-aux/maint.mk: Add dsyntax-check rule.
38985
38986 2006-02-15  Eric Blake  <ebb9@byu.net>
38987
38988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
38989         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
38990         'present but cannot compile' warnings on cygwin.
38991         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
38992         use ws2tcpip.h if sys/socket.h works.
38993         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
38994         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
38995
38996 2006-02-14  Simon Josefsson  <jas@extundo.com>
38997
38998         * modules/maintainer-makefile (Files): Rename.
38999
39000         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
39001         and (the local) Makefile.cfg to maint-cfg.mk.
39002
39003         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
39004         to the latter.
39005
39006         * modules/maintainer-makefile: New module.
39007
39008         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
39009         severaly stripped to make it possible to build it up from scratch
39010         with reliable tests.
39011
39012         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
39013         fixes to permit overriding the default actions when configure and
39014         makefile are not available.
39015
39016 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
39017
39018         Sync from coreutils.
39019         * modules/lstat (Depends-on): Don't depend on xalloc.
39020         (License): Change from GPL to LGPL, since this is now simply a
39021         replacement for a libc function.
39022
39023 2006-02-14  Jim Meyering  <jim@meyering.net>
39024
39025         Sync from coreutils.
39026
39027         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
39028         failure on deficient systems, and simplify gnulib lgpl dependencies.
39029         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
39030         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
39031
39032         * lib/xalloc-die.c: Remove unused definition of N_.
39033
39034 2006-02-14  Jim Meyering  <jim@meyering.net>
39035
39036         Sync from coreutils.
39037         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
39038         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
39039         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
39040         double-quote uses of that variable, to accommodate the rare case in
39041         which getmntent is available in none of the libraries checked.  This
39042         happens at least on FreeBSD 5.0.
39043
39044 2006-02-13  Simon Josefsson  <jas@extundo.com>
39045
39046         * gnulib-tool (Usage): Fix --import, from
39047         karl@freefriends.org (Karl Berry).
39048
39049 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
39050
39051         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
39052
39053 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
39054
39055         * lib/argp-namefrob.h: Restore changes accidentally lost during the
39056         "autoupdate" on 2005-12-12.
39057
39058 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39059
39060         * modules/closeout (Depends-on): Remove atexit.
39061
39062 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39063
39064         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
39065         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
39066
39067 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39068
39069         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
39070         __EXTENSIONS__ if this causes compilation to fail.  Problem
39071         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
39072         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
39073
39074 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39075
39076         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
39077         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
39078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
39079         All uses changed.
39080
39081 2006-01-26  Simon Josefsson  <jas@extundo.com>
39082
39083         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
39084         prototype is visible on mingw32.
39085
39086         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
39087         for mingw32.
39088
39089         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
39090         mingw32).
39091
39092 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39093
39094         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
39095         attempt to open for write; this always fails, at least on POSIX
39096         hosts.  This reinstates the 2006-01-09 change, which was
39097         inadvertently removed.
39098
39099 2006-01-26  Bruno Haible  <bruno@clisp.org>
39100
39101         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
39102         Reported by Paul Eggert.
39103
39104 2006-01-26  Bruno Haible  <bruno@clisp.org>
39105             Paul Eggert  <eggert@cs.ucla.edu>
39106
39107         * lib/stdbool_.h (_Bool)
39108         [(! (defined __cplusplus || defined __BEOS__)
39109           && !defined __GNUC__
39110           && !(defined __HP_cc || defined __xlc__
39111                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
39112                || defined __sgi))]:
39113         #define to signed char in these cases too; this simplifies
39114         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
39115         etc., separately) and makes it more conservative.
39116
39117 2006-01-25  Simon Josefsson  <jas@extundo.com>
39118
39119         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
39120         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
39121         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
39122
39123 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39124
39125         * lib/argp-namefrob.h: Bugfix. Remove stray #
39126
39127 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39128
39129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
39130         so that we test the test.
39131         Check for yet another HP-UX cc bug involving *bool |= bool.
39132
39133 2006-01-25  Karl Berry  <karl@gnu.org>
39134
39135         * config/srclist.txt (vasnprintf.c): sync lost.
39136
39137 2006-01-25  Jim Meyering  <jim@meyering.net>
39138
39139         Sync from the stable (b5) branch of coreutils:
39140
39141         * lib/fts.c (fts_children): Don't let close() clobber errno from
39142         failed fchdir().
39143
39144         * lib/fts.c (fts_stat): When following a symlink-to-directory,
39145         don't necessarily interpret stat-fails+lstat-succeeds as indicating
39146         a dangling symlink.  That can also happen at least for ELOOP.
39147         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
39148         FYI, this bug predates the inclusion of fts.c in coreutils.
39149
39150         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
39151         in their own block, so pre-c99 compilers don't object.
39152
39153         Avoid the double-free (first in fts_read, second in fts_close) that
39154         would occur when an `active' directory is made inaccessible (e.g.,
39155         via chmod a-x) during a traversal.
39156         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
39157         before returning.  Reproduce this failure by
39158         mkdir -p a/b; cd a; chmod a-x . b
39159         Reported by Stavros Passas.
39160
39161 2006-01-25  Jim Meyering  <jim@meyering.net>
39162
39163         * lib/fileblocks.c: Remove more useless parentheses.
39164         * lib/readutmp.h: Likewise.
39165
39166 2006-01-25  Bruno Haible  <bruno@clisp.org>
39167
39168         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
39169         warnings.
39170         Reported by Paul Eggert.
39171
39172 2006-01-25  Bruno Haible  <bruno@clisp.org>
39173
39174         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
39175         rid of a trap command. For Solaris sh.
39176         Reported by Mark D. Baushke <mdb@gnu.org>.
39177
39178 2006-01-24  Simon Josefsson  <jas@extundo.com>
39179
39180         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
39181         Bruno.
39182
39183 2006-01-24  Karl Berry  <karl@gnu.org>
39184
39185         * config/srclist.txt (argp-namefrob.h): sync lost.
39186
39187 2006-01-24  Jim Meyering  <jim@meyering.net>
39188
39189         * modules/openat (Files): Add lib/intprops.h.
39190         From Mark D. Baushke.
39191
39192 2006-01-24  Jim Meyering  <jim@meyering.net>
39193
39194         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
39195         Reported by Mark D. Baushke.
39196
39197 2006-01-24  Jim Meyering  <jim@meyering.net>
39198
39199         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
39200
39201 2006-01-24  Bruno Haible  <bruno@clisp.org>
39202
39203         * modules/strnlen (Maintainer): Change from glibc to all.
39204
39205 2006-01-24  Bruno Haible  <bruno@clisp.org>
39206
39207         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
39208         Patch by Paul Eggert.
39209
39210 2006-01-24  Bruno Haible  <bruno@clisp.org>
39211
39212         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
39213         already has it.
39214         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
39215         2005-11-26.
39216
39217         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
39218         'signed char' to avoid problems with the built-in _Bool type.
39219         Reported by Paul Eggert on 2005-11-26.
39220
39221 2006-01-24  Bruno Haible  <bruno@clisp.org>
39222
39223         * gnulib-tool (func_import): Avoid constructing complicated sed
39224         expressions inside backquote.
39225         Report and solution by Mark D. Baushke <mdb@gnu.org>.
39226
39227 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
39228
39229         These changes imported from libc.
39230         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
39231         test and two separate function calls.
39232         * lib/strndup.c (__strndup): Add libc_hidden_def.
39233
39234 2006-01-23  Simon Josefsson  <jas@extundo.com>
39235
39236         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
39237         Remove the test_*_SOURCES variable: automake infers it by default.
39238         * modules/tls-tests: Likewise.
39239
39240 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39241
39242         Work around porting bugs reported by Dieter in
39243         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
39244         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
39245         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
39246         Include "getopt.h" first, to check interface.
39247         (getenv): Declare only if defined HAVE_DECL_GETENV &&
39248         !HAVE_DECL_GETENV.
39249         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
39250         (__strndup): Revert to K&R-style function dfns, the glibc style.
39251         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
39252         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
39253         Include strnlen.h first, to get prototype properly.
39254         (strnlen): Renamed from __strnlen.
39255         Remove weak alias.
39256
39257 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39258
39259         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
39260
39261 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39262
39263         * config/srclist.txt: Adjust to reflect glibc reorganization.
39264         This affects only comments.
39265
39266 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39267
39268          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
39269          Reported by Bruce Korb <bkorb@gnu.org>.
39270
39271 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39272
39273         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
39274         to pacify gcc -Wswitch-default.
39275
39276 2006-01-22  Bruno Haible  <bruno@clisp.org>
39277
39278         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
39279         temporary buffer for sprintf, take into account the precision also
39280         for 'd', 'i', 'u', 'o', 'x', 'X'.
39281
39282 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
39283
39284         * modules/argp-tests: New module
39285         * tests/test-argp.c: New file
39286         * tests/test-argp-2.sh: New file
39287
39288 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
39289
39290         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
39291         (__argp_base_name): Removed
39292         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
39293         typo.
39294         (__argp_base_name): Provide macro definition or extern declaration
39295         depending on the configuration
39296
39297 2006-01-20  Simon Josefsson  <jas@extundo.com>
39298
39299         * modules/inet_ntop (Depends-on): Depend on sys_socket.
39300
39301 2006-01-20  Simon Josefsson  <jas@extundo.com>
39302
39303         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
39304
39305 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39306
39307         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
39308         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
39309         Suggested by Bruno Haible.
39310
39311 2006-01-20  Karl Berry  <karl@gnu.org>
39312
39313         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
39314         until changes propagate, I guess.
39315
39316 2006-01-19  Simon Josefsson  <jas@extundo.com>
39317
39318         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
39319
39320 2006-01-19  Simon Josefsson  <jas@extundo.com>
39321
39322         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
39323
39324 2006-01-19  Simon Josefsson  <jas@extundo.com>
39325
39326         * gnulib-tool: Set check_PROGRAMS.
39327
39328         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
39329         modules/des-tests, modules/gc-arcfour-tests,
39330         modules/gc-arctwo-tests, modules/gc-des-tests,
39331         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
39332         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
39333         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
39334         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
39335         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
39336         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
39337         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
39338         test_*_SOURCES.
39339
39340 2006-01-18  Simon Josefsson  <jas@extundo.com>
39341
39342         * modules/socklen (Depends-on): Depend on sys_socket.
39343
39344 2006-01-18  Simon Josefsson  <jas@extundo.com>
39345
39346         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
39347         modules/des-tests, modules/gc-arcfour-tests,
39348         modules/gc-arctwo-tests, modules/gc-des-tests,
39349         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
39350         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
39351         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
39352         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
39353         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
39354         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
39355         $(EXEEXT) to automake TESTS variable, for mingw32.
39356
39357 2006-01-17  Simon Josefsson  <jas@extundo.com>
39358
39359         * modules/socklen (Include): Need sys/socket.h.
39360
39361 2006-01-17  Bruno Haible  <bruno@clisp.org>
39362
39363         * modules/ssize_t (Include): Add <sys/types.h>.
39364
39365 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
39366
39367         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
39368         it's not portable and it doesn't work with cross-compiles.
39369         Problem reported by Bruno Haible.  Fix missing-$ typo in
39370         'test "gl_cv_ignore_unused_libraries" ...' that prevented
39371         -zignore from being used with Sun's C compiler.
39372
39373 2006-01-12  Simon Josefsson  <jas@extundo.com>
39374
39375         * lib/base64.c: Fix warning, reported by Bruno Haible
39376         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
39377
39378 2006-01-12  Bruno Haible  <bruno@clisp.org>
39379
39380         * modules/ldd: New file.
39381         * build-aux/ldd.sh.in: New file.
39382         * MODULES.html.sh (Support for building libraries and executables): Add
39383         ldd.
39384
39385 2006-01-12  Bruno Haible  <bruno@clisp.org>
39386
39387         * m4/ldd.m4: New file.
39388
39389 2006-01-12  Bruno Haible  <bruno@clisp.org>
39390
39391         * gnulib-tool (func_import, func_create_testdir): Don't go into an
39392         endless loop while replacing $auxdir with build-aux.
39393
39394 2006-01-11  Simon Josefsson  <jas@extundo.com>
39395
39396         * lib/stdint_.h (SIZE_MAX): Add missing (.
39397
39398 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
39399
39400         Sync from coreutils.
39401         * lib/md5.c: Fix commentary typos.
39402         (alignof, UNALIGNED_P): No need for a GCC-specific version.
39403         * lib/md5.h (__attribute__): Remove; unused.
39404         * lib/sha1.c: Fix commentary to match md5 better.
39405         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
39406         so that we don't need to worry about alignment.  All uses changed.
39407         This merges the 2005-10-28 md5 change into sha1.
39408
39409 2006-01-11  Jim Meyering  <jim@meyering.net>
39410
39411         Sync from coreutils.
39412         * lib/md5.c (OP): Fix spacing.
39413
39414 2006-01-11  Bruno Haible  <bruno@clisp.org>
39415
39416         Ensure automatic ordering between gl_LOCK and gl_ARGP.
39417         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
39418         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
39419
39420 2006-01-11  Bruno Haible  <bruno@clisp.org>
39421
39422         Ensure automatic ordering between gl_LOCK and gl_ARGP.
39423         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
39424         the "early" section as well.
39425
39426 2006-01-11  Bruno Haible  <bruno@clisp.org>
39427
39428         Avoid "ar: no archive members specified" error on MacOS X.
39429         * gnulib-tool (func_modules_add_dummy): New function.
39430         (func_import, func_create_testdir): Invoke it.
39431
39432 2006-01-11  Bruno Haible  <bruno@clisp.org>
39433
39434         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
39435         with $auxdir in AC_CONFIG_FILES statements.
39436
39437 2006-01-11  Bruno Haible  <bruno@clisp.org>
39438
39439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39440         Initialize also noinst_HEADERS to empty.
39441
39442 2006-01-11  Bruno Haible  <bruno@clisp.org>
39443
39444         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
39445         variables.
39446         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
39447         autoreconf.
39448
39449 2006-01-11  Bruno Haible  <bruno@clisp.org>
39450
39451         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
39452         overridable by the user.
39453         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39454
39455 2006-01-10  Simon Josefsson  <jas@extundo.com>
39456
39457         * modules/sys_socket: New file.
39458
39459 2006-01-10  Simon Josefsson  <jas@extundo.com>
39460
39461         * m4/sys_socket_h.m4: New file.
39462
39463 2006-01-10  Simon Josefsson  <jas@extundo.com>
39464
39465         * lib/socket_.h: New file.
39466
39467 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39468
39469         * modules/readutmp (Maintainer): Add myself.
39470
39471 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39472
39473         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
39474         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
39475         People who are still concerned with buggy memcmp implementations
39476         can invoke gl_FUNC_MEMCMP themselves.
39477
39478 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39479
39480         * lib/regex_internal.h (BITSET_WORD_BITS):
39481         Work around a bug in 64-bit PGC (before version 6.1-2), where the
39482         preprocessor mishandles large unsigned values as if they were signed.
39483         Problem reported by Claudio Fontana in
39484         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
39485
39486 2006-01-10  Jim Meyering  <jim@meyering.net>
39487
39488         Avoid the double-free (first in fts_read, second in fts_close) that
39489         would occur when an `active' directory is made inaccessible (e.g.,
39490         via chmod a-x) during a traversal.
39491         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
39492         before returning.  Reproduce this failure by
39493         mkdir -p a/b; cd a; chmod a-x . b
39494         Reported by Stavros Passas.
39495
39496         Sync from coreutils.
39497         * lib/sha1.c: Tweak grammar in a comment.
39498
39499 2006-01-10  Jim Meyering  <jim@meyering.net>
39500
39501         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
39502         Patch by Joerg Sonnenberger.
39503
39504 2006-01-10  Bruno Haible  <bruno@clisp.org>
39505
39506         * modules/readutmp: Depend on module free.
39507         * modules/strtok_r: Depend on module restrict.
39508
39509 2006-01-10  Bruno Haible  <bruno@clisp.org>
39510
39511         * modules/gettext (configure.ac): Add an invocation of
39512         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
39513
39514 2006-01-10  Bruno Haible  <bruno@clisp.org>
39515
39516         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
39517         Reported by Werner Lemberg <wl@gnu.org>.
39518
39519 2006-01-10  Bruno Haible  <bruno@clisp.org>
39520
39521         * lib/localcharset.c: Update from GNU gettext.
39522
39523 2006-01-10  Bruno Haible  <bruno@clisp.org>
39524
39525         * lib/argp.h (__const): Remove macro. Use const instead.
39526         * lib/argp-fmtstream.h (__const): Likewise.
39527         * lib/glob_.h (__const): Remove macro.
39528         * lib/glob-libc.h: Use const instead of __const.
39529
39530 2006-01-10  Bruno Haible  <bruno@clisp.org>
39531
39532         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
39533         variable.
39534         Needed to avoid an automake error regarding the 'gettext' module.
39535
39536 2006-01-09  Simon Josefsson  <jas@extundo.com>
39537
39538         * modules/inet_ntop (Depends-on): Add restrict.
39539
39540 2006-01-09  Simon Josefsson  <jas@extundo.com>
39541
39542         * modules/gc-rijndael-tests (License): Put under LGPL.
39543
39544         * modules/gc-des-tests (License): Likewise.
39545
39546         * modules/gc-arcfour-tests (License): Likewise.
39547
39548         * modules/gc-arctwo-tests (License): Likewise.
39549
39550         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
39551
39552         * modules/gc-hmac-sha1-tests (Files): Likewise.
39553
39554         * modules/gc-hmac-md5-tests (License): Likewise.
39555
39556         * modules/gc-sha1-tests (License): Likewise.
39557
39558         * modules/gc-md5-tests (License): Likewise.
39559
39560         * modules/gc-md4-tests (License): Likewise.
39561
39562         * modules/gc-md2-tests (License): Likewise.
39563
39564         * modules/gc-tests (License): Likewise.
39565
39566         * modules/des-tests (License): Likewise.
39567
39568         * modules/md4-tests (License): Likewise.
39569
39570         * modules/md2-tests (License): Likewise.
39571
39572 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39573
39574         Sync from coreutils:
39575
39576         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
39577         * modules/lib-ignore: New file.
39578         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
39579         chdir-safer.m4, lchmod.m4.
39580         * modules/openat: Add mkdirat.c, openat-priv.h.
39581
39582 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39583
39584         Sync from coreutils.
39585         * m4/lib-ignore.m4: New file.
39586         * m4/lchmod.m4: New file.
39587
39588 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39589
39590         Sync from coreutils.
39591         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
39592         for write access: POSIX says that must fail.
39593         * lib/fts.c (diropen): Likewise.
39594         * lib/save-cwd.c (save_cwd): Likewise.
39595         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
39596         well, for minor improvements on hosts that lack O_DIRECTORY.
39597         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
39598         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
39599         Fall back on chown if open failed with EACCES.
39600
39601         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
39602         Report an error at compile-time if only a 1-second nominal clock
39603         resolution is found.
39604
39605         * lib/lchmod.h: New file.
39606         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
39607         (make_dir_parents): Use lchown rather than chown, and
39608         lchmod rather than chmod.
39609
39610         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
39611         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
39612         "proc" reported by n0dalus.
39613
39614         * lib/mountlist.c: Include <limits.h>.
39615         (dev_from_mount_options)
39616         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
39617         New function.  It no longer assumes "dev=" has the System V meaning
39618         on Linux (since it doesn't).  It also parses "dev=" more carefully.
39619         (read_file_system_list)
39620         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
39621         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
39622         dev= in that case.
39623
39624         * lib/posixtm.h (PDS_PRE_2000): New macro.
39625         * lib/posixtm.c (year): Arg is now syntax_bits rather than
39626         allow_century.  All usages changed.  Reject dates outside the range
39627         1969-1999 if PDS_PRE_2000 is used.
39628
39629 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39630
39631         Sync from coreutils.
39632         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
39633         (Time of day items): Mention the possibility of leap seconds.
39634         Problem reported by Dr. David Alan Gilbert.
39635
39636 2006-01-09  Jim Meyering  <jim@meyering.net>
39637
39638         Sync from coreutils.
39639
39640         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
39641
39642         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
39643
39644         * lib/modechange.c (mode_compile): Reject an invalid mode string
39645         that starts with an octal digit.  From Andreas Gruenbacher.
39646
39647         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
39648         and dup to open_safer and dup_safer, respectively.
39649         (openat_permissive): Fix typo in comment.
39650
39651         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
39652         "gettext.h"; either no longer needed or are guaranteed by openat.h.
39653         (_): Remove; no longer needed.
39654         (openat): Renamed from rpl_openat; no need for rpl_openat
39655         since openat.h renames openat for us.
39656         Replace most of the body with a call to openat_permissive,
39657         to avoid duplicate code.
39658         Port to (probably hypothetical) environments were mode_t is
39659         wider than int.
39660         (openat_permissive): Require mode arg, so that we can check
39661         types better.  Put it just after flags.  Change cwd failure
39662         indicator from pointer-to-bool to pointer-to-errno-value.
39663         All callers changed.
39664         Invoke openat_save_fail and/or openat_restore_fail if
39665         cwd_errno is null, so that openat can call us.
39666         (openat_permissive, fdopendir, fstatat, unlinkat):
39667         Simplify errno handling to avoid some duplicate code,
39668         as it's OK to set errno on success.
39669         * lib/openat.h: Revamp code so that function macros depend on
39670         __OPENAT_PREFIX only, not also on AT_FDCWD.
39671         (openat_ro): Remove.  Caller changed to use openat_permissive.
39672         (openat_permissive): Now a macro, if not a function.
39673         (openat_restore_fail, openat_save_fail): Now always functions,
39674         since mkdirat needs them even if __OPENAT_PREFIX is defined.
39675
39676         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
39677         and openat.c.
39678         * lib/mkdirat.c: Include openat-priv.h.
39679         Remove definitions of macros defined therein.
39680         * lib/openat.c: Likewise.
39681
39682         * lib/mkdirat.c (mkdirat): New file and function.
39683         * lib/openat.h (mkdirat): Declare.
39684
39685         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
39686
39687         * lib/openat.h (openat_permissive): Declare.
39688         (openat_ro): Define.
39689
39690         * lib/openat.c (EXPECTED_ERRNO): New macro.
39691         (openat_permissive): New function -- used in remove.c rewrite.
39692         (all functions): Set errno just before returning, only if there
39693         was an actual failure.
39694         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
39695
39696         Emulate openat-family functions using Linux's procfs, if possible.
39697         Idea and some code based on Ulrich Drepper's glibc changes.
39698
39699         * lib/openat.c: (BUILD_PROC_NAME): New macro.
39700         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
39701         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
39702         before falling back on save_cwd and restore_cwd.
39703         (fdopendir, fstatat, unlinkat): Likewise.
39704
39705         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
39706         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
39707
39708         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
39709         as second argument to va_arg.  Otherwise, some versions of gcc
39710         warn that `if this code is reached, the program will abort'.
39711
39712 2006-01-09  Jim Meyering  <jim@meyering.net>
39713
39714         Sync from coreutils.
39715         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
39716         Require openat-priv.h.
39717
39718 2006-01-09  Bruno Haible  <bruno@clisp.org>
39719
39720         * modules/strnlen (Include): Use strnlen.h.
39721
39722 2006-01-09  Bruno Haible  <bruno@clisp.org>
39723
39724         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
39725
39726 2006-01-09  Bruno Haible  <bruno@clisp.org>
39727
39728         * lib/sysexit_.h (EX_OK): New macro.
39729         Suggested by Martin Lambers <marlam@marlam.de>.
39730
39731 2006-01-09  Bruno Haible  <bruno@clisp.org>
39732
39733         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
39734         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
39735
39736 2006-01-09  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
39739         numbers.
39740
39741 2006-01-09  Bruno Haible  <bruno@clisp.org>
39742
39743         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
39744         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
39745         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
39746         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
39747
39748 2006-01-09  Bruno Haible  <bruno@clisp.org>
39749
39750         * build-aux/javacomp.sh.in: New file, moved from lib/.
39751         * modules/javacomp-script (Files): Update.
39752         (configure.ac): Add AC_CONFIG_FILES invocation.
39753         (EXTRA_DIST): Remove variable.
39754
39755         * build-aux/javaexec.sh.in: New file, moved from lib/.
39756         * modules/javaexec (Files): Update.
39757         (configure.ac): Add AC_CONFIG_FILES invocation.
39758         (EXTRA_DIST): Remove javaexec.sh.in.
39759
39760         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
39761         * modules/csharpcomp-script (Files): Update.
39762         (configure.ac): Add AC_CONFIG_FILES invocation.
39763         (EXTRA_DIST): Remove variable.
39764
39765         * build-aux/csharpexec.sh.in: New file, moved from lib/.
39766         * modules/csharpexec (Files): Update.
39767         (configure.ac): Add AC_CONFIG_FILES invocation.
39768         (EXTRA_DIST): Remove csharpexec.sh.in.
39769
39770 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
39771
39772         Sync from coreutils.
39773
39774         Add POSIX ACL support
39775         * lib/acl.h (copy_acl, set_acl): Add declarations.
39776         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
39777         systems other than Linux.
39778         (chmod_or_fchmod): New function: use fchmod when possible,
39779         and chmod otherwise.
39780         (file_has_acl): Add a POSIX ACL implementation, with a
39781         Linux-specific subcase.
39782         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
39783         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
39784         acls are unsupported.
39785         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
39786         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
39787         are unsupported.
39788
39789 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
39790
39791         Sync from coreutils.
39792         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
39793
39794 2006-01-07  Bruno Haible  <bruno@clisp.org>
39795
39796         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
39797         gl_EARLY.
39798
39799 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39800
39801         * lib/strftime.c (tzname): Don't declare if it is already #defined.
39802         Problem reported for Mingw by Mark Junker.
39803
39804 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39805
39806         * README: Gnulib normally doesn't generate a tarball.
39807
39808 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
39809
39810         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
39811         long int, not int, for nanosecond counts, so that people who are
39812         used to POSIX struct timespec won't be surprised.  Reported by Jim
39813         Meyering.
39814
39815 2005-12-28  Bruno Haible  <bruno@clisp.org>
39816
39817         * build-aux/config.rpath: Update from GNU gettext.
39818
39819 2005-12-16  Jim Meyering  <jim@meyering.net>
39820
39821         * modules/fprintftime: New module.
39822         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
39823
39824 2005-12-16  Jim Meyering  <jim@meyering.net>
39825
39826         * m4/fprintftime.m4: New file.
39827
39828 2005-12-16  Jim Meyering  <jim@meyering.net>
39829
39830         * lib/fprintftime.c, lib/fprintftime.h: New files.
39831
39832 2005-12-15  Simon Josefsson  <jas@extundo.com>
39833
39834         * modules/socklen (configure.ac): Fix M4 macro name, to align with
39835         new m4/socklen.m4.
39836
39837 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39838
39839         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
39840         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
39841
39842 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39843
39844         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
39845         * lib/argp-help.c (fill_in_uparams): Check if the constructed
39846         struct uparams is valid. Fall back to the default values if it is
39847         not.
39848
39849 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39850
39851         * modules/argp (Files): Add argp-pin.c
39852         (Depends-on): dirname
39853         (lib_SOURCES): Add argp-pin.c
39854
39855 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39856
39857         * m4/argp.m4:  Check if program_invocation_name and
39858         program_invocation_short_name are declared and define appropriate
39859         macros if they are not.
39860
39861 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39862
39863         * lib/argp-help.c (__argp_base_name): New function
39864         (__argp_short_program_name): Rewrite using __argp_base_name
39865         * lib/argp-namefrob.h: Define program_invocation_name and
39866         program_invocation_short_name if requested
39867         (__argp_base_name): Add prototype
39868         * lib/argp-parse.c (argp_def): Use gettext wrappers
39869         (argp_default_parser): Use __argp_base_name
39870         * lib/argp-pin.c: New file. Defines program_invocation_name and
39871         program_invocation_short_name on systems that lack them.
39872
39873 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39874
39875         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
39876         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39877         porting problem reported by Georg Schwarz in
39878         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39879
39880 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39881
39882         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
39883         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39884         porting problem reported by Georg Schwarz in
39885         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39886
39887 2005-12-05  Bruno Haible  <bruno@clisp.org>
39888
39889         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
39890         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
39891         Reported by Mark Junker <mjscod@gmx.de>.
39892
39893 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
39894
39895         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
39896         Use implementation from Albert Chin, with some
39897         comments/corrections by Stepan Kasal and myself.
39898
39899 2005-12-02  Bruno Haible  <bruno@clisp.org>
39900
39901         * gnulib-tool (func_import): Accept GPLed build tool modules when
39902         --lgpl is given.
39903         * modules/csharpcomp-script: New file.
39904         * modules/csharpcomp: Depend on it.
39905         * modules/javacomp-script: New file.
39906         * modules/javacomp: Depend on it.
39907         Suggested by Simon Josefsson.
39908
39909 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
39910
39911         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
39912         statement, to work around an HP-UX 10.20 compiler bug reported by
39913         Peter O'Gorman.
39914
39915 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
39916
39917         * modules/savedir (Depends-on): Add openat.
39918
39919 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
39920
39921         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
39922         (uintmax_t) [defined uintmax_t]: Do not declare.
39923         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
39924         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
39925         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
39926         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
39927         sake of portability to weird hosts that C allows (though we don't
39928         know of any practical examples).
39929
39930         * lib/savedir.h (fdsavedir): New decl.
39931         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
39932         contains most of the former guts of savedir.
39933         (savedir): Use savedirstream.
39934         Include "openat.h".
39935
39936 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39937
39938         * modules/obstack (Files): Add m4/ulonglong.m4.
39939         Problem reported by Davide Angelocola.
39940
39941 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39942
39943         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
39944         coreutils no longer futzes with rounding modes.
39945
39946 2005-11-14  Jim Meyering  <jim@meyering.net>
39947
39948         * lib/mkstemp-safer.c: Include <config.h>, required for possible
39949         replacement of mkstemp.
39950
39951 2005-11-10  Simon Josefsson  <jas@extundo.com>
39952
39953         * lib/readline.c: Remove EOL.
39954
39955 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39956
39957         * modules/gethrxtime (Depends-on): Add gettime.
39958
39959 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39960
39961         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
39962         or gettimeofday; no longer needed.
39963
39964 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39965
39966         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
39967         time business.
39968         (gethrxtime) [! (HAVE_NANOUPTIME
39969         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
39970         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
39971         our own approximation.
39972
39973 2005-11-08  Eric Blake  <ebb9@byu.net>
39974
39975         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39976
39977 2005-11-08  Eric Blake  <ebb9@byu.net>
39978
39979         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39980
39981 2005-11-04  Bruno Haible  <bruno@clisp.org>
39982
39983         * gnulib-tool: Implement --update mode.
39984
39985 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
39986
39987         Fix porting problem reported by Theodoros V. Kalamatianos.
39988         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
39989         Don't assume that futimes failing means we must fail.
39990
39991 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
39992
39993         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
39994         variables to suggest the intended function of the PATH_MAX check.
39995
39996 2005-10-30  Kean Johnston  <jkj@sco.com>
39997
39998         Trivial changes to support SCO systems.
39999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
40000         as PATH_MAX.
40001         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
40002         where __ptr is null when no I/O is pending.
40003
40004 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
40005
40006         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
40007         leave errno alone.  Problem reported by Dmitry V. Levin.
40008
40009 2005-10-28  Simon Josefsson  <jas@extundo.com>
40010
40011         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
40012         Test more.
40013
40014         * tests/test-gc-md2.c, tests/test-md2.c: New files.
40015
40016         * modules/md2, modules/md2-tests: New files.
40017
40018 2005-10-28  Simon Josefsson  <jas@extundo.com>
40019
40020         * m4/inet_ntop.m4: More tests.
40021
40022         * m4/gc-md2.m4, md2.m4: New file.
40023
40024 2005-10-28  Simon Josefsson  <jas@extundo.com>
40025
40026         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
40027         "restrict" keywords, as per POSIX.  Protect the function
40028         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
40029         Don't use K&R prototypes.  Check the sprintf return values.
40030         Re-define EAFNOSUPPORT if not present.  Indent.
40031
40032         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
40033         suggested by Bruno Haible <bruno@clisp.org>.
40034
40035         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
40036
40037         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
40038
40039         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
40040         libgcrypt).
40041
40042         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
40043
40044         * lib/md2.h, lib/md2.c: New files.
40045
40046 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
40047
40048         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
40049         errno alone.  Problem reported by Frederic Jolliton.
40050
40051 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40052
40053         * modules/verify (License): Change from GPL to LGPL.  This is a
40054         tiny module and there are apparently near-equivalents that are
40055         under the BSD license.
40056
40057 2005-10-24  Simon Josefsson  <jas@extundo.com>
40058
40059         * modules/sha1: Relicense to LGPL.
40060
40061 2005-10-24  Simon Josefsson  <jas@extundo.com>
40062
40063         * lib/md4.h: Shrink buffer size, now that we changed the type.
40064
40065 2005-10-23  Simon Josefsson  <jas@extundo.com>
40066
40067         * gnulib-tool (func_import): Fix --tests-base.
40068
40069 2005-10-22  Simon Josefsson  <jas@extundo.com>
40070
40071         * modules/arcfour (Depends-on): Need stdint.
40072
40073 2005-10-22  Simon Josefsson  <jas@extundo.com>
40074
40075         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
40076         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
40077
40078 2005-10-22  Simon Josefsson  <jas@extundo.com>
40079
40080         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
40081         suggested by Bruno Haible <bruno@clisp.org>.
40082
40083 2005-10-22  Simon Josefsson  <jas@extundo.com>
40084
40085         * lib/crc.h: Include stddef.h, for size_t.
40086
40087 2005-10-22  Simon Josefsson  <jas@extundo.com>
40088
40089         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
40090         arcfour_context struct (simplify test vector testing in GNU
40091         Shishi).
40092
40093 2005-10-21  Simon Josefsson  <jas@extundo.com>
40094
40095         * modules/des, modules/des-tests: New files.
40096
40097         * modules/gc-des, modules/gc-des-tests: New files.
40098
40099         * tests/test-des.c, tests/test-gc-des.c: New file.
40100
40101 2005-10-21  Simon Josefsson  <jas@extundo.com>
40102
40103         * modules/arctwo, modules/arctwo-tests: New files.
40104
40105         * tests/test-arctwo.c: New file.
40106
40107         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
40108
40109         * tests/test-gc-arctwo.c: New file.
40110
40111 2005-10-21  Simon Josefsson  <jas@extundo.com>
40112
40113         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
40114         Bruno Haible <bruno@clisp.org>.
40115
40116         * m4/gc-des.m4: New file.
40117
40118 2005-10-21  Simon Josefsson  <jas@extundo.com>
40119
40120         * m4/arctwo.m4: New file.
40121
40122         * m4/gc-arctwo.m4: New file.
40123
40124 2005-10-21  Simon Josefsson  <jas@extundo.com>
40125
40126         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
40127         block.
40128
40129 2005-10-21  Simon Josefsson  <jas@extundo.com>
40130
40131         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
40132         <bruno@clisp.org>.
40133
40134         * lib/hmac-sha1.c (hmac_sha1): Likewise.
40135
40136         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
40137         Bruno Haible <bruno@clisp.org>.
40138
40139         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
40140         <bruno@clisp.org>.
40141
40142 2005-10-21  Simon Josefsson  <jas@extundo.com>
40143
40144         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
40145
40146 2005-10-21  Simon Josefsson  <jas@extundo.com>
40147
40148         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
40149
40150 2005-10-21  Simon Josefsson  <jas@extundo.com>
40151
40152         * lib/des.h, lib/des.c: New files.
40153
40154         * lib/gc-gnulib.c: Support DES.c
40155
40156 2005-10-21  Simon Josefsson  <jas@extundo.com>
40157
40158         * lib/arctwo.h, lib/arctwo.c: New files.
40159
40160         * lib/gc-gnulib.c: Support ARCTWO.
40161
40162 2005-10-21  Simon Josefsson  <jas@extundo.com>
40163
40164         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
40165         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40166
40167 2005-10-21  Simon Josefsson  <jas@extundo.com>
40168
40169         * gnulib-tool (func_import, func_create_testdir): Define automake
40170         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
40171         Makefile.am snippet),
40172         suggested by Bruno Haible <bruno@clisp.org>.
40173
40174         * modules/gc (Makefile.am): Use it.
40175
40176 2005-10-21  Bruno Haible  <bruno@clisp.org>
40177
40178         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
40179         patch.
40180
40181 2005-10-19  Simon Josefsson  <jas@extundo.com>
40182
40183         * tests/test-gc-rijndael.c: New file.
40184
40185         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
40186
40187 2005-10-19  Simon Josefsson  <jas@extundo.com>
40188
40189         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
40190         interface too.
40191
40192 2005-10-19  Simon Josefsson  <jas@extundo.com>
40193
40194         * tests/test-gc-arcfour.c: New file.
40195
40196         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
40197
40198 2005-10-19  Simon Josefsson  <jas@extundo.com>
40199
40200         * modules/gc-md4, modules/gc-md4-tests: New file.
40201
40202         * tests/test-gc-md4.c: New file.
40203
40204 2005-10-19  Simon Josefsson  <jas@extundo.com>
40205
40206         * m4/gc-md4.m4: New file.
40207
40208 2005-10-19  Simon Josefsson  <jas@extundo.com>
40209
40210         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
40211         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
40212         <kasal@ucw.cz>.
40213
40214 2005-10-19  Simon Josefsson  <jas@extundo.com>
40215
40216         * m4/gc-arcfour.m4: New file.
40217
40218         * m4/gc-rijndael.m4: New file.
40219
40220 2005-10-19  Simon Josefsson  <jas@extundo.com>
40221
40222         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
40223
40224 2005-10-19  Simon Josefsson  <jas@extundo.com>
40225
40226         * lib/gc-gnulib.c: Support ARCFOUR.
40227
40228 2005-10-19  Simon Josefsson  <jas@extundo.com>
40229
40230         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
40231         support.
40232
40233         * lib/gc.h: Add ECB enum type.
40234
40235         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
40236
40237 2005-10-18  Simon Josefsson  <jas@extundo.com>
40238
40239         * tests/test-md5.c: New file.
40240
40241         * modules/md5-tests: New file.
40242
40243 2005-10-18  Simon Josefsson  <jas@extundo.com>
40244
40245         * tests/test-md4.c: New file.
40246
40247         * modules/md4, modules/md4-tests: New files.
40248
40249 2005-10-18  Simon Josefsson  <jas@extundo.com>
40250
40251         * m4/md4.m4: New file.
40252
40253 2005-10-18  Simon Josefsson  <jas@extundo.com>
40254
40255         * lib/md4.h, lib/md4.c: New files, based on md5.?.
40256
40257 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
40258
40259         * gnulib-tool (func_create_testdir): Omit the second check whether
40260         BUILT_SOURCES in nonempty.
40261
40262 2005-10-17  Simon Josefsson  <jas@extundo.com>
40263
40264         * tests/test-rijndael.c: New file.
40265
40266 2005-10-17  Simon Josefsson  <jas@extundo.com>
40267
40268         * modules/sha1: Depend on stdint instead of md5.
40269
40270         * modules/md5: Depend on stdint, remove uint32_t.
40271
40272 2005-10-17  Simon Josefsson  <jas@extundo.com>
40273
40274         * modules/gc-sha1-tests: New file.
40275
40276         * tests/test-gc-sha1.c: New file.
40277
40278 2005-10-17  Simon Josefsson  <jas@extundo.com>
40279
40280         * m4/md5.m4: Remove call to uint32_t.m4.
40281
40282 2005-10-17  Simon Josefsson  <jas@extundo.com>
40283
40284         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
40285
40286         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
40287         md5.h.
40288
40289         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
40290
40291         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
40292
40293 2005-10-17  Simon Josefsson  <jas@extundo.com>
40294
40295         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
40296
40297 2005-10-17  Simon Josefsson  <jas@extundo.com>
40298
40299         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
40300
40301 2005-10-17  Simon Josefsson  <jas@extundo.com>
40302
40303         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
40304
40305         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
40306
40307 2005-10-17  Bruno Haible  <bruno@clisp.org>
40308
40309         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
40310         that it can also be used in a test.
40311
40312 2005-10-16  Bruno Haible  <bruno@clisp.org>
40313
40314         * gnulib-tool (func_emit_tests_Makefile_am): Also define
40315         TESTS_ENVIRONMENT, so that individual tests can augment it.
40316
40317         * gnulib-tool (func_create_testdir): Use an intermediate target for
40318         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
40319         macros, like $(ALLOCA_H), which cannot be passed through the command
40320         line.
40321
40322 2005-10-15  Simon Josefsson  <jas@extundo.com>
40323
40324         * modules/rijndael-tests: New file.
40325
40326         * modules/rijndael: New file.
40327
40328 2005-10-15  Simon Josefsson  <jas@extundo.com>
40329
40330         * m4/rijndael.m4: New file.
40331
40332 2005-10-15  Simon Josefsson  <jas@extundo.com>
40333
40334         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
40335
40336         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
40337
40338 2005-10-14  Simon Josefsson  <jas@extundo.com>
40339
40340         * tests/test-arcfour.c: New file.
40341
40342         * modules/arcfour, modules/arcfour-tests: New files.
40343
40344 2005-10-14  Simon Josefsson  <jas@extundo.com>
40345
40346         * m4/arcfour.m4: New file.
40347
40348 2005-10-14  Simon Josefsson  <jas@extundo.com>
40349
40350         * lib/arcfour.h, lib/arcfour.c: New files.
40351
40352 2005-10-14  Roland McGrath  <roland@redhat.com>
40353
40354         Import from libc.  [BZ #1331]
40355         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
40356         macro argument.
40357         Reported by Matej Vela <vela@debian.org>.
40358
40359 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40360
40361         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
40362         include <wchar.h>; no longer needed.
40363
40364 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40365
40366         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
40367
40368 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
40369         and  Ulrich Drepper  <drepper@redhat.com>
40370
40371         Import from libc.
40372         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
40373         instead of inline stream orientation test and two separate
40374         function calls.  Pay no attention to USE_IN_LIBIO.
40375
40376 2005-10-13  Simon Josefsson  <jas@extundo.com>
40377
40378         * modules/gc-hmac-md5-tests: New file.
40379
40380         * tests/test-gc-hmac-sha1.c: New file.
40381
40382         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
40383
40384         * modules/gc-hmac-md5-tests: New file.
40385
40386         * tests/test-gc-md5.c: New file.
40387
40388         * modules/gc-md5-tests: New file.
40389
40390 2005-10-13  Simon Josefsson  <jas@extundo.com>
40391
40392         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
40393         Move memory allocation outside of loop.
40394
40395 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
40398         intermediate directory is in a read-only file system.  Problem
40399         reported by Eric Blake.
40400
40401 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
40402
40403         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
40404
40405 2005-10-12  Simon Josefsson  <jas@extundo.com>
40406
40407         * tests/test-hmac-sha1.c: New file.
40408
40409         * modules/hmac-sha1-tests: New file.
40410
40411         * modules/hmac-sha1: New file.
40412
40413 2005-10-12  Simon Josefsson  <jas@extundo.com>
40414
40415         * modules/gc-sha1: New file.
40416
40417 2005-10-12  Simon Josefsson  <jas@extundo.com>
40418
40419         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
40420
40421         * tests/test-gc-pbkdf2-sha1.c: New file.
40422
40423 2005-10-12  Simon Josefsson  <jas@extundo.com>
40424
40425         * modules/gc-md5, modules/gc-hmac-md5: New files.
40426
40427         * modules/gc (Files): Remove md5, memxor and hmac files.
40428
40429 2005-10-12  Simon Josefsson  <jas@extundo.com>
40430
40431         * m4/gc-pbkdf2-sha1.m4: New file.
40432
40433         * m4/gc-hmac-sha1.m4: New file.
40434
40435         * m4/gc-sha1: New file.
40436
40437         * m4/hmac-sha1.m4: New file.
40438
40439 2005-10-12  Simon Josefsson  <jas@extundo.com>
40440
40441         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
40442
40443         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
40444
40445 2005-10-12  Simon Josefsson  <jas@extundo.com>
40446
40447         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
40448         suggested by Bruno Haible <bruno@clisp.org>.
40449
40450 2005-10-12  Simon Josefsson  <jas@extundo.com>
40451
40452         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
40453
40454 2005-10-12  Simon Josefsson  <jas@extundo.com>
40455
40456         * lib/gc-pbkdf2-sha1.c: New file.
40457
40458         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
40459
40460 2005-10-12  Simon Josefsson  <jas@extundo.com>
40461
40462         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
40463
40464         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
40465
40466 2005-10-12  Simon Josefsson  <jas@extundo.com>
40467
40468         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
40469         GC_USE_HMAC_MD5, respectively.
40470
40471         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
40472         (gc_md5): Fix typo.
40473
40474         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
40475
40476         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
40477
40478         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
40479
40480 2005-10-12  Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
40483         Reported by Stepan Kasal <kasal@ucw.cz>.
40484
40485 2005-10-11  Simon Josefsson  <jas@extundo.com>
40486
40487         * tests/test-crc.c: New file.
40488
40489         * modules/crc, modules/crc-tests: New files.
40490
40491 2005-10-11  Simon Josefsson  <jas@extundo.com>
40492
40493         * m4/crc.m4: New file.
40494
40495 2005-10-11  Simon Josefsson  <jas@extundo.com>
40496
40497         * lib/gc.h: Add gc_hash and gc_hash_buffer.
40498
40499         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
40500
40501         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
40502
40503 2005-10-11  Simon Josefsson  <jas@extundo.com>
40504
40505         * lib/crc.h, lib/crc.c: New files.
40506
40507         * lib/gc.h (gc_hash_buffer): Add doc.
40508
40509 2005-10-11  Bruno Haible  <bruno@clisp.org>
40510
40511         * modules/c-strcasestr: New file.
40512         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
40513
40514 2005-10-11  Bruno Haible  <bruno@clisp.org>
40515
40516         * modules/c-strcase: New file.
40517         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
40518
40519 2005-10-11  Bruno Haible  <bruno@clisp.org>
40520
40521         * lib/strcasecmp.c: Include limits.h.
40522         (strcasecmp): Avoid integer overflow on exotic platforms.
40523         * lib/strncasecmp.c: Include limits.h.
40524         (strncasecmp): Avoid integer overflow on exotic platforms.
40525         Reported by Paul Eggert.
40526
40527 2005-10-11  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/c-strcasestr.h: New file, from GNU gettext.
40530         * lib/c-strcasestr.c: New file, from GNU gettext.
40531
40532 2005-10-11  Bruno Haible  <bruno@clisp.org>
40533
40534         * lib/c-strcase.h: New file, from GNU gettext.
40535         * lib/c-strcasecmp.c: New file, from GNU gettext.
40536         * lib/c-strncasecmp.c: New file, from GNU gettext.
40537
40538 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40539
40540         * modules/mempcpy (License): GPL -> LGPL.
40541         * modules/strchrnul (License): Likewise.
40542         * modules/sysexits (License): Likewise.
40543
40544 2005-10-08  Simon Josefsson  <jas@extundo.com>
40545
40546         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
40547
40548 2005-10-07  Simon Josefsson  <jas@extundo.com>
40549
40550         * m4/memxor.m4: Remove gl_C_RESTRICT call.
40551
40552 2005-10-06  Simon Josefsson  <jas@extundo.com>
40553
40554         * tests/test-hmac-md5.c: New file.
40555
40556         * modules/hmac-md5-tests: New file.
40557
40558         * modules/hmac-md5: New file.
40559
40560 2005-10-06  Simon Josefsson  <jas@extundo.com>
40561
40562         * m4/hmac-md5.m4: New file.
40563
40564         * m4/memxor.m4: Require gl_C_RESTRICT.
40565
40566 2005-10-06  Simon Josefsson  <jas@extundo.com>
40567
40568         * lib/memxor.c (memxor): Avoid casts and warnings.
40569
40570 2005-10-06  Simon Josefsson  <jas@extundo.com>
40571
40572         * lib/hmac-md5.c: New file.
40573
40574         * lib/hmac.h: New file.
40575
40576 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40577
40578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
40579         promotes to int, not unsigned int, to catch the AIX 5.3
40580         compiler bug.
40581
40582 2005-10-05  Simon Josefsson  <jas@extundo.com>
40583
40584         * modules/memxor: New file.
40585
40586         * modules/iconv (Files): Move config.rpath to havelib, it is used
40587         there.
40588
40589         * modules/havelib (Files): Add config.rpath.
40590
40591 2005-10-05  Simon Josefsson  <jas@extundo.com>
40592
40593         * m4/memxor.m4: New file.
40594
40595 2005-10-05  Simon Josefsson  <jas@extundo.com>
40596
40597         * lib/memxor.c (memxor): Fix compiler error.
40598
40599         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
40600         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
40601
40602         * lib/memxor.h, lib/memxor.c: New files.
40603
40604         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
40605         we assume all systems have it, suggested by Jim Meyering
40606         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
40607         any systems lack sys/socket.h; mingw32 is known to lack it, but we
40608         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
40609         same reasons.
40610
40611 2005-10-05  Simon Josefsson  <jas@extundo.com>
40612
40613         * config/srclist.txt: Add glibc bug 1423 for md5.h.
40614
40615 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40616
40617         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
40618         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
40619         needed, since the source code now assumes these .h files.
40620
40621 2005-10-05  Derek Price  <derek@ximbiot.com>
40622
40623         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
40624
40625 2005-10-05  Bruno Haible  <bruno@clisp.org>
40626
40627         * modules/stdint (License): Change to LGPL.
40628
40629 2005-10-04  Simon Josefsson  <jas@extundo.com>
40630
40631         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
40632         D. Baushke" <mdb@gnu.org>.
40633
40634 2005-10-04  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/verify.h (verify_true): Provide alternative definition for C++.
40637
40638 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
40639
40640         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
40641         (SSIZE_MAX): New macro, if not already defined.
40642         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
40643         than 2 GiB.
40644
40645 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40646
40647         Sync from coreutils.
40648         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
40649         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
40650         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
40651         ULLONG_MAX doesn't work with 2.7.2.1.
40652
40653 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40654
40655         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
40656         From Ben Pfaff.
40657
40658         * modules/exclude (Depends-on): Depend on verify.
40659         * modules/strtoimax (Depends-on): Likewise.
40660         * modules/utimecmp (Depends-on): Likewise.
40661
40662 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40663
40664         * lib/exclude.c: Include verify.h.
40665         (verify): Remove.  All callers changed to use verify.h's version.
40666         * lib/strtoimax.c: Likewise.
40667         * lib/utimecmp.c: Likewis.e
40668
40669         Sync from coreutils.
40670         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
40671         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
40672         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
40673         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
40674         bother returning ENOSYS if settimeofday or stime fails; just let
40675         them return whatever errno they want to return.
40676         * lib/utimens.c: Include unistd.h, for dup2.
40677         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
40678         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
40679
40680 2005-10-02  Jim Meyering  <jim@meyering.net>
40681
40682         Sync from coreutils.
40683         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
40684         from glibc-2.2.5 that fails for read-only files.
40685
40686 2005-10-02  Jim Meyering  <jim@meyering.net>
40687
40688         Sync from coreutils.
40689         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
40690         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
40691         `#if HAVE_CONFIG_H'.
40692         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
40693         Remove AT_FDCWD test.
40694         Do not consume the fd unless successful.
40695         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
40696         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
40697         block, so that we don't even try to compile it if settimeofday is
40698         available.  This works around a compilation failure on OSF1 V5.1,
40699         due to stime requiring a `long int*' while tv_sec is `int'.
40700
40701 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
40702
40703         Sync from coreutils.
40704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
40705         against `yes', rather than just testing for nonempty.
40706
40707 2005-10-01  Simon Josefsson  <jas@extundo.com>
40708
40709         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
40710         and Darwin.
40711
40712         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
40713         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
40714         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
40715         freeaddrinfo and gai_strerror are declared by the POSIX headers.
40716         Check if struct addrinfo is declared.
40717
40718 2005-10-01  Simon Josefsson  <jas@extundo.com>
40719
40720         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
40721         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
40722         AI_* and EAI_* definitions.  Protect function declarations.
40723
40724 2005-10-01  Jim Meyering  <jim@meyering.net>
40725
40726         Sync from coreutils.
40727
40728         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
40729         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
40730         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
40731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40732         in the inet and nsl libraries.  Required on Solaris 5.7.
40733
40734 2005-10-01  Jim Meyering  <jim@meyering.net>
40735
40736         Sync from coreutils.
40737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40738         in the inet and nsl libraries.  Required on Solaris 5.7.
40739
40740 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
40741
40742         * lib/getdelim.c (getdelim): Remove unused variables.
40743
40744 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40745
40746         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
40747         so that the code works even with ancient cpp.  Portability problem
40748         with GCC 2.7.2.1 reported by Thomas M.Ott.
40749
40750 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40751
40752         * modules/regex (Depends-on): Add strcase.
40753
40754         * modules/gethostname (Licence): Change from GPL to LGPL, since
40755         gethostname.c is a trivial implementation of a standard library
40756         function.
40757         * modules/poll (License): Change from GPL to LGPL, since it's
40758         derived from LGPL code.
40759
40760 2005-09-27  Jim Meyering  <jim@meyering.net>
40761
40762         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
40763         HAVE_CONFIG_H.
40764
40765         * lib/intprops.h (signed_type_or_expr__): Define.
40766         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
40767         for unsigned types.
40768
40769 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40770
40771         * lib/verify.h (verify_expr): Remove, replacing with:
40772         (verify_true): New macro that returns true instead of void.
40773         (verify_type__): Remove.
40774         (verify): Use verify_true rather than verify_type__.
40775
40776 2005-09-26  Bruno Haible  <bruno@clisp.org>
40777
40778         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
40779         is necessary.
40780         (lib_SOURCES): Remove mbchar.c.
40781         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
40782         (Files): Add m4/mbrtowc.m4.
40783         * modules/mbiter: Likewise.
40784         * modules/mbuiter: Likewise.
40785
40786 2005-09-26  Bruno Haible  <bruno@clisp.org>
40787
40788         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
40789         compile mbchar.c if they are not both present.
40790         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
40791         * m4/mbiter.m4 (gl_MBITER): Likewise.
40792         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
40793         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
40794         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
40795
40796 2005-09-25  Jim Meyering  <jim@meyering.net>
40797
40798         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
40799         also uses socklen_t.
40800
40801 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
40802
40803         * lib/utimens.c (ENOSYS): Define if not already defined.
40804         (futimens): Support having a null PATH if the file descriptor
40805         is nonnegative.
40806
40807         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
40808         Remove.
40809         (__attribute): Define to empty unless GCC 3.1 or later.
40810         This works around a core dump on OpenBSD 3.4, which has GCC
40811         2.95.3, which dumps core when given __attribute__(()).  It also
40812         simplifies other tests, since we really don't want to bother with
40813         worrying about which ancient version of GCC supported what.
40814         Original problem reported by Yoann Vandoorselaere, with part of
40815         the fix suggested by Derek Price.
40816
40817 2005-09-24  Jim Meyering  <jim@meyering.net>
40818
40819         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
40820         so we can once again use a positive bitfield width of 1 -- now we
40821         don't have to explain why we were using a bitfield width of 2.
40822
40823 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
40824
40825         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
40826         and similarly for the other external symbols.  Problem reported
40827         by James Gallager.
40828
40829         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
40830         bug reported by Jim Meyering.
40831
40832         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
40833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
40834         not needed, since socklen is a prerequisite module.
40835
40836 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
40837
40838         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
40839         Problem reported by Eric Blake.
40840         (getaddrinfo): Initialize se so that it's not garbage.
40841         Redo internal storage allocation so that it doesn't make unportable
40842         assumptions about alignment.
40843         Fix a memory leak.
40844
40845         * lib/utimens.c (futimens): Use futimesat if available.
40846         Prefer it to futimes since it doesn't have the futimes bug.
40847
40848         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
40849         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
40850         Instead, declare a function that returns a pointer to an array,
40851         and use verify_type__ to declare the size of the array.
40852         Problem and germ of a solution reported by Bruno Haible.
40853         (verify_type__): Use 2, not 1, for bitfield size, to avoid
40854         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
40855
40856 2005-09-23  Jim Meyering  <jim@meyering.net>
40857
40858         Sync from coreutils.
40859         Correct build failure (socklen_t not defined) on at least
40860         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
40861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
40862
40863 2005-09-23  Jim Meyering  <jim@meyering.net>
40864
40865         * modules/getaddrinfo (Depends-on): Add socklen.
40866
40867 2005-09-23  Bruno Haible  <bruno@clisp.org>
40868
40869         * tests/test-verify.c: New file.
40870
40871 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40872
40873         Sync from coreutils.
40874
40875         * modules/argmatch (Depends-on): Add verify.
40876         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
40877         unistd-safer.
40878         * modules/save-cwd (Depends-on): Likewise.
40879
40880         * modules/openat (Files): Add lib/openat-die.c.
40881         (Depends-on): Remove error, exitfail.
40882         Add dirname.
40883
40884         * modules/verify: New file.
40885         * MODULES.html.sh (Diagnostics <assert.h>): New section,
40886         with "verify" module.
40887
40888 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40889
40890         Sync from coreutils.
40891
40892         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
40893         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
40894         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
40895         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
40896         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
40897         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
40898         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
40899         Don't bother checking for string.h, stdlib.h, unistd.h.
40900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
40901         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
40902         module's job.
40903         * m4/jm-macros.m4 (gl_MACROS): Likewise.
40904         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
40905
40906         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
40907         (gl_GETDATE): Use it.
40908
40909         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
40910
40911 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40912
40913         Sync from coreutils.
40914
40915         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
40916         stat-time.h.
40917         * lib/argmatch.h: Include verify.h
40918         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
40919         (ARGMATCH_ASSERT): Remove; unused.
40920         * lib/canonicalize.c: Assume STDC_HEADERS.
40921         * lib/exclude.c: Include "strcase.h".
40922         * lib/regex_internal.h [!defined _LIBC]: Likewise.
40923         * lib/getusershell.c: Include stdio--.h rather than stdio.h
40924         and stdio-safer.h.
40925         (getusershell): Call fopen, not fopen_safer.
40926         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
40927         Do not include unistd-safer.h.
40928         (save_cwd): Don't call fd_safer; no longer needed
40929         now that we include fcntl--.h.
40930
40931         * lib/getdate.y (relative_time): New type.
40932         (RELATIVE_TIME_0): New constant.
40933         (parser_control): Use relative_time instead of doing it ourselves.
40934         (%union): Add new relative_time rel member.
40935         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
40936         Now typeless.
40937         (relunit, relunit_snumber): Now of type rel.
40938         (zone, rel, relunit, get_date): Adjust to above changes.
40939
40940         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
40941         Do not include unistd-safer.h.
40942         (getloadavg): Don't call fd_safer; no longer needed
40943         now that we include fcntl--.h.
40944
40945         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
40946         (make_dir_parents): Treat ENOSYS like EEXIST.
40947
40948         Improve quality of diagnostics on restore_cwd failure.
40949         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
40950         (make_dir_parents): Last arg is now int * (for errno), not bool *.
40951         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
40952         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
40953         each time through the loop.  Do not diagnose restore_cwd failure;
40954         that is the caller's job (and perhaps the caller does not care).
40955
40956         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
40957         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
40958         If the file already exists but is not a directory, don't bother
40959         to try to make its parents.
40960         Close potential file descriptor leak if we can't chdir("/") (!).
40961         Don't always return true if chdir($PWD) fails; return true only
40962         if the requested action was done successfully (except for the
40963         chdir($PWD)).
40964         Don't log final directory unless we actually made it.
40965         Refactor to avoid duplicate code to fix up permissions.
40966         Don't attempt to fix up parent permissions if chdir($PWD) fails.
40967
40968         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
40969         to make it a bit faster and (I hope) clearer.
40970         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
40971         Fix bug in formats like %2N.
40972
40973         * lib/verify.h: New file.
40974
40975 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40976
40977         Sync from coreutils.
40978         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
40979
40980 2005-09-22  Jim Meyering  <jim@meyering.net>
40981
40982         Sync from coreutils.
40983
40984         * m4/lstat.m4 (gl_FUNC_LSTAT):
40985         Use AC_LIBSOURCES to require lstat.c and lstat.h.
40986         Remove obsolete comment.
40987         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
40988         * m4/xstrtod.m4: Likewise.
40989
40990         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
40991
40992 2005-09-22  Jim Meyering  <jim@meyering.net>
40993
40994         Sync from coreutils.
40995
40996         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
40997
40998         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
40999         the .tm_year member, since otherwise gcc-4.0 would now warn about
41000         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
41001
41002         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
41003         order to avoid an unsuppressible warning from gcc on 64-bit systems.
41004
41005         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
41006         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
41007         when run in a time zone for which daylight savings time is in effect
41008         for the starting date.
41009
41010         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
41011         stop us from restricting permissions of just-created absolute-named
41012         directories.
41013         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
41014         to restore initial working directory.
41015         * lib/mkdir-p.c (make_dir_parents): New parameter:
41016         different_working_dir, to tell caller if/when we change the working
41017         directory and are unable to return to the initial one.
41018         * lib/mkdir-p.h (make_dir_parents): Update prototype.
41019         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
41020         `return false'.  This fixes a bug introduced on 2004-07-30.
41021
41022         * lib/openat.c (fdopendir): Be sure to close the supplied
41023         file descriptor before returning.  This makes our replacement
41024         implementation a little closer to Solaris's, where fdopendir
41025         ties the file descriptor to the returned DIR* pointer.
41026         * lib/openat.c (unlinkat): New function.
41027         * lib/openat.h (unlinkat): Add prototype.
41028         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
41029         (openat_restore_fail): Rename from openat_restore_die.
41030         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
41031
41032         Provide an alternative to exiting immediately upon save_cwd or
41033         restore_cwd failure.  Now, an application can arrange e.g.,
41034         to perform a longjump in that case.
41035         * lib/openat.c: Include dirname.h.
41036         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
41037         (rpl_openat, fdopendir, fstatat): Call openat_save_die
41038         and openat_restore_die rather than calling error directly.
41039         Don't include "error.h" or "exitfail.h"; they're no longer needed.
41040
41041         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
41042         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
41043         define.
41044
41045         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
41046         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
41047                             int utc, int nanoseconds);
41048         Background:
41049         date should not have to allocate a megabyte of virtual memory to
41050         handle a format argument like +%1048575T.  When implemented with
41051         strftime, it must allocate such a buffer, use strftime to fill it
41052         in, print it, then free it.
41053         With fprintftime, it simply prints everything and exits.
41054         With no need for memory allocation, that's one fewer way to fail.
41055         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
41056         optional field width, not before, so we accept %9:z, not %:9z.
41057         (my_strftime): Be sure to use L_('x') for literals.
41058
41059         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
41060         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
41061         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
41062         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
41063         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
41064         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
41065         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
41066         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
41067         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
41068         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
41069         * lib/xgethostname.c, lib/xreadlink.c:
41070         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
41071
41072         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
41073         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
41074         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
41075         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
41076         and don't include <sys/file.h>).
41077
41078 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
41079
41080         Sync from coreutils.
41081
41082         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
41083         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
41084         [!LDAV_DONE]: Avoid unused variable warning.
41085
41086 2005-09-21  Bruno Haible  <bruno@clisp.org>
41087
41088         * lib/unicodeio.h (unicode_to_mb): New declaration.
41089
41090 2005-09-20  Derek Price  <derek@ximbiot.com>
41091
41092         * lib/getaddrinfo.c: Don't include <netdb.h> included from
41093         getaddrinfo.h.
41094
41095 2005-09-20  Bruno Haible  <bruno@clisp.org>
41096
41097         * gnulib-tool: Remove trailing slashes from the values specified for
41098         --source-base, --m4-base, --tests-base, --aux-dir.
41099         Suggested by Simon Josefsson <jas@extundo.com>.
41100
41101 2005-09-20  Bruno Haible  <bruno@clisp.org>
41102
41103         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
41104         func_modules_to_filelist, func_import, func_create_testdir): Make all
41105         sorting results locale-independent, so that gnulib-cache.m4 doesn't
41106         change when gnulib-tool is invoked in a different locale.
41107
41108 2005-09-19  Simon Josefsson  <jas@extundo.com>
41109
41110         * m4/socklen.m4: Fix typo.
41111
41112 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41113
41114         Use a consistent style for including <config.h>.
41115         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
41116         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
41117         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
41118         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
41119         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
41120         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
41121         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
41122         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
41123         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
41124         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
41125         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
41126         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
41127         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
41128         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
41129         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
41130         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
41131         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
41132         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
41133         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
41134         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
41135         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
41136         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
41137         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
41138         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
41139         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
41140         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
41141         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
41142         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
41143         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
41144         lib/xstrtoumax.c, lib/yesno.c:
41145         Standardize inclusion of config.h.
41146         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
41147         lib/inttostr.h:  Removed inclusion of config.h from header files.
41148         * lib/inttostr.c:  Adjusted in-tree users.
41149         * lib/timespec.h: Remove superfluous warning to include config.h.
41150         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
41151         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
41152         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
41153         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
41154         config.h with HAVE_CONFIG_H.
41155
41156 2005-09-19  Jim Meyering  <jim@meyering.net>
41157
41158         * modules/pathmax (License): Change to LGPL.
41159
41160 2005-09-19  Derek Price  <derek@ximbiot.com>
41161
41162         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
41163
41164 2005-09-19  Bruno Haible  <bruno@clisp.org>
41165
41166         * gnulib-tool (import): Provide default for --tests-base.
41167
41168 2005-09-19  Bruno Haible  <bruno@clisp.org>
41169
41170         * doc/quote.texi: New file, extracted from gnulib.texi.
41171         * doc/ctime.texi: New file, extracted from gnulib.texi.
41172         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
41173         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
41174         * doc/gnulib.texi: Include them.
41175
41176 2005-09-18  Bruno Haible  <bruno@clisp.org>
41177
41178         Portability fix.
41179         * gnulib-tool (func_readlink): New function.
41180         (func_ln_if_changed): Use it.
41181
41182 2005-09-18  Bruno Haible  <bruno@clisp.org>
41183
41184         * gnulib-tool: Support --with-tests also with --import.
41185         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
41186         (func_import): Use variables $testsbase and $inctests. Emit a
41187         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
41188         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
41189         SUBDIRS += $testsdir.
41190         (func_create_testdir): Update.
41191
41192 2005-09-18  Bruno Haible  <bruno@clisp.org>
41193
41194         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
41195         instead of $dry_run.
41196         (func_cp_if_changed, func_mv_if_changed): Remove functions.
41197         (func_ln_if_changed): Don't handle dry-run here.
41198         (func_import): In dry-run mode, detect more precisely which actions
41199         would be performed, and don't use "...ing" verbs.
41200
41201 2005-09-18  Bruno Haible  <bruno@clisp.org>
41202
41203         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
41204         (func_import): Use join on two temporary files instead of three nested
41205         loops, in order to determine which files are new or old.
41206
41207 2005-09-18  Bruno Haible  <bruno@clisp.org>
41208
41209         * gnulib-tool (func_import): Comment out code that spits out the
41210         new files with --dry-run.
41211
41212 2005-09-18  Bruno Haible  <bruno@clisp.org>
41213
41214         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
41215
41216 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
41217
41218         * lib/stat-time.h: New file.
41219         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
41220         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
41221         in a different way.
41222         (timespec_cmp): New function.
41223         * lib/utimecmp.c: Include stat-time.h.
41224         (SYSCALL_RESOLUTION): Depend on whether various struct stat
41225         members exist, not on the obsolescent ST_MTIM_NSEC.
41226         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
41227
41228 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
41229
41230         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
41231
41232 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
41233
41234         * MODULES.html.sh (File system functions): Add stat-time.
41235         * modules/stat-time: New file.
41236         * modules/timespec (Files): Remove m4/st_mtim.m4; this
41237         is now done in a different way, by the stat-time module.
41238         * modules/utimecmp (Depends-on): Add stat-time.
41239
41240 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41241
41242         * m4/st_mtim.m4: Remove.  Superseded by...
41243         * m4/stat-time.m4: New file.
41244         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
41245         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
41246
41247 2005-09-15  Derek Price  <derek@ximbiot.com>
41248
41249         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
41250
41251 2005-09-15  Derek Price  <derek@ximbiot.com>
41252
41253         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
41254         * lib/regex_internal.c: Ditto, using this...
41255         (__GNUC_PREREQ): ...new macro.
41256         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
41257         using...
41258         (__GNUC_PREREQ): ...this new macro.
41259
41260         * lib/strstr.h: Include string.h. Define strstr as a macro here.
41261
41262 2005-09-15  Derek Price  <derek@ximbiot.com>
41263             Paul Eggert  <eggert@cs.ucla.edu>
41264
41265         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
41266         changes, consolidating in...
41267         * lib/regex_internal.h: ...this file.
41268
41269 2005-09-13  Jim Meyering  <jim@meyering.net>
41270
41271         * lib/canon-host.c: Filter through gnu indent and reword comments
41272         slightly.
41273         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
41274
41275 2005-09-13  Derek Price  <derek@ximbiot.com>
41276
41277         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
41278         failure.
41279         Reported by Jim Meyering  <jim@meyering.net>.
41280
41281 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
41282
41283         * lib/base64.c: Typo.
41284         (base64_encode): Put b64str in initialized data section.
41285
41286 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
41287
41288         Merge glibc and coreutils changes into gnulib, plus a few
41289         extra fixes.
41290         * lib/md5.c: Use #error rather than a string.
41291         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
41292         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
41293         (__attribute__): Define to empty for non recent-GCC.
41294         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
41295         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
41296         Renamed from their non-__ counterparts, with new macros replacing
41297         them if not _LIBC.  Add __THROW attribute.
41298         (rol): Remove.
41299         (struct md5_ctx): Align buffer if using GCC.
41300         * lib/sha1.h (struct sha1_ctx): Likewise.
41301         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
41302         The old name was backwards.
41303         (NOTSWAP): Remove; not used.
41304         (rol): New macro, moved here from md5.h.
41305         (sha1_process_block): Remove a FIXME that doesn't make sense.
41306
41307 2005-09-12  Derek Price  <derek@ximbiot.com>
41308
41309         Return usable errors from canon-host.
41310         * lib/canon-host.h: New file.
41311         * lib/canon-host.c (canon_host): Wrap...
41312         (canon_host_r): ...this new function, which now relies exclusively on
41313         getaddrinfo.
41314         (ch_strerror): New function.
41315         (last_cherror): New global.
41316         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
41317         interface.
41318         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
41319         void *.
41320         (freeaddrinfo): Free ai->ai_canonname when set.
41321
41322 2005-09-12  Derek Price  <derek@ximbiot.com>
41323
41324         Make canon-host require getaddrinfo.
41325         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
41326         AC_LIBSOURCE canon-host.h.  Call...
41327         (gl_PREREQ_CANON_HOST): ...this new function, which requires
41328         gl_GETADDRINFO.
41329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
41330
41331 2005-09-12  Derek Price  <derek@ximbiot.com>
41332
41333         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
41334         LGPL.
41335         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
41336
41337 2005-09-12  Derek Price  <derek@ximbiot.com>
41338
41339         * lib/gai_strerror.c: Include config.h when available.  Include
41340         getaddrinfo.h before other headers to test interface.
41341         Reported by Larry Jones <lawrence.jones@ugs.com>.
41342
41343 2005-09-12  Derek Price  <derek@ximbiot.com>
41344             Paul Eggert  <eggert@cs.ucla.edu>
41345
41346         * modules/glob (Files): Add glob-libc.h.
41347
41348 2005-09-12  Derek Price  <derek@ximbiot.com>
41349             Paul Eggert  <eggert@cs.ucla.edu>
41350
41351         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
41352         glob_.h, glob-libc.h.
41353         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
41354
41355 2005-09-12  Derek Price  <derek@ximbiot.com>
41356             Paul Eggert  <eggert@cs.ucla.edu>
41357
41358         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
41359         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
41360         protecting things that should be done only in gnulib contexts.
41361         * lib/glob_.h: New file, containing only the glob things needed for
41362         gnulib.
41363         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
41364         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
41365         (glob, globfree, glob_pattern_p): Now defined simply in terms of
41366         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
41367         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
41368         and to respect the namespace rules better.
41369
41370 2005-09-08  Simon Josefsson  <jas@extundo.com>
41371
41372         * modules/socklen: New file.
41373
41374 2005-09-08  Simon Josefsson  <jas@extundo.com>
41375
41376         * m4/socklen.m4: New file.
41377
41378 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41379
41380         * modules/utimens (Files): Add m4/utimbuf.m4, since
41381         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
41382         Reported by Sergey Poznyakoff.
41383
41384 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41385
41386         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
41387         definitions, since that's the preferred style in glibc.
41388         Fix a minor spacing issue, and update copyright notice to match
41389         glibc's.
41390
41391 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41392
41393         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
41394
41395 2005-09-06  Simon Josefsson  <jas@extundo.com>
41396
41397         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
41398         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
41399
41400 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41401
41402         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
41403         warning.
41404
41405 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41406
41407         * config/srclist.txt: Add glibc bug 1302.
41408
41409 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
41410
41411         Change bitset word type from unsigned int to unsigned long int,
41412         as this has better performance on typical 64-bit hosts.
41413         Port bitset code to hosts with unusual word sizes.
41414         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
41415         (build_collating_symbol):
41416         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
41417         argument is a bitset.  This is merely a style issue, but it makes
41418         it clearer that an entire array is expected.
41419         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
41420         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
41421         Port to the case where bitset_word is not the same as unsigned int.
41422         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
41423         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
41424         Likewise.
41425         * lib/regexec.c (check_dst_limits_calc_pos_1,
41426         check_subexp_matching_top):
41427         (build_trtable, group_nodes_into_DFAstates):
41428         Likewise.
41429         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
41430         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
41431         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
41432         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
41433         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
41434         * lib/regcomp.c (optimize_subexps, lower_subexp):
41435         Work even if bitset_word has holes in its bitwise representation.
41436         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
41437         * lib/regexec.c (check_dst_limits_calc_pos_1,
41438         check_subexp_matching_top):
41439         Likewise.
41440         * lib/regex_internal.c (re_string_reconstruct):
41441         Don't assume UCHAR_MAX == 255.
41442         * lib/regex_internal.h (bitset_set_all): Likewise.
41443         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
41444         All uses changed.
41445         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
41446         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
41447         All uses changed.
41448         (BITSET_WORD_MAX): New macro.
41449         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
41450         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
41451         (bitset_empty, bitset_copy):
41452         Prefer sizeof (bitset) to multiplying it out ourselves.
41453         (bitset_not_merge): Remove; unused.
41454         (bitset_contain): Return bool, not unsigned int with one bit on.
41455         All callers changed.
41456         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
41457         alignment than re_node_set; do this by defining a new internal
41458         type struct dests_alloc and using it to allocate memory.
41459
41460 2005-09-05  Bruno Haible  <bruno@clisp.org>
41461
41462         * gnulib-tool (func_import): Fix comparison in handling of symbolic
41463         links.
41464
41465 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
41466
41467         * modules/size_max (Makefile.am): Add size_max.h
41468
41469 2005-09-04  Derek Price  <derek@ximbiot.com>
41470
41471         * gnulib-tool (func_import): Fix reversed $symbolic logic.
41472
41473 2005-09-03  Simon Josefsson  <jas@extundo.com>
41474
41475         * gnulib-tool: Fix typo.
41476
41477 2005-09-03  Simon Josefsson  <jas@extundo.com>
41478
41479         * config/srclist.txt: Add glibc bug 1293.
41480
41481 2005-09-03  Derek Price  <derek@ximbiot.com>
41482
41483         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
41484         From Larry Jones <lawrence.jones@ugs.com>.
41485
41486 2005-09-02  Simon Josefsson  <jas@extundo.com>
41487
41488         * modules/socklen: New file.
41489
41490 2005-09-02  Simon Josefsson  <jas@extundo.com>
41491
41492         * modules/havelib: New module.
41493
41494         * modules/gettext, modules/iconv, modules/lock, modules/readline:
41495         Use havelib.
41496
41497 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
41498
41499         Check for arithmetic overflow when calculating sizes, to prevent
41500         some buffer-overflow issues.  These patches are conservative, in the
41501         sense that when I couldn't determine whether an overflow was possible,
41502         I inserted a run-time check.
41503         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
41504         macros.
41505         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
41506         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
41507         (re_xnrealloc, re_x2nrealloc): New inline functions.
41508         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
41509         parse_bracket_exp):
41510         (build_equiv_class, build_charclass): Check for arithmetic overflow
41511         in size expression calculations.
41512         * lib/regex_internal.c (re_string_realloc_buffers):
41513         (build_wcs_upper_buffer, re_node_set_add_intersect):
41514         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
41515         (re_dfa_add_node, register_state): Likewise.
41516         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
41517         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
41518         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
41519         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
41520
41521 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
41522
41523         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
41524         m4/ulonglong.m4.  Problem reported by Martin Lambers.
41525
41526 2005-09-02  Bruno Haible  <bruno@clisp.org>
41527
41528         Support for lib vs. lib64 distinction on biarch platforms.
41529         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
41530         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
41531         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
41532
41533 2005-09-02  Bruno Haible  <bruno@clisp.org>
41534
41535         * gnulib-tool (import): In the other first-use case, provide defaults
41536         as well.
41537
41538 2005-09-02  Bruno Haible  <bruno@clisp.org>
41539
41540         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
41541         patches not yet found in the latest gettext release.
41542
41543 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41544
41545         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
41546         to avoid a collision with bits/local_lim.h in glibc.
41547         All uses changed.  Problem reported by Dmitry V. Levin in
41548         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
41549
41550         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
41551         bugs in int versus size_t comparisons.
41552         (re_string_context_at): Fix bug where the code assumed that
41553         Idx is signed.
41554
41555         Use bool where appropriate.
41556         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
41557         All callers changed.
41558         (calc_eclosure_iter): Likewise, for ROOT arg.
41559         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
41560         (build_charclass_op): Likewise, for NON_MATCH arg.
41561         * lib/regex_internal.c (re_string_allocate, re_string_construct):
41562         (re_string_construct_common): Likewise, for ICASE arg.
41563         * lib/regexec.c (re_search_2_stub, re_search_stub):
41564         Likewise, for RET_LEN arg.
41565         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
41566         (set_regs): Likewise, for FL_BACKTRACK arg.
41567         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
41568         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
41569         (calc_eclosure_iter, parse_bracket_exp):
41570         Use bool for internal variables that are booleans.
41571         * lib/regexec.c (re_search_internal, check_matching,
41572         proceed_next_node):
41573         (set_regs, build_sifted_states, sift_states_bkref):
41574         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
41575         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41576         (find_collation_sequence_value):
41577         Likewise.
41578         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
41579         (re_node_set_compare):
41580         Return bool, not int. All callers changed.
41581         * lib/regexec.c (check_halt_node_context, check_dst_limits):
41582         (build_trtable, check_node_accept): Likewise.
41583         * lib/regex_internal.h: Include stdbool.h.
41584
41585         Fix bugs uncovered when converting to bool.
41586         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
41587         failure instead of charging ahead blindly.
41588         * lib/regex_internal.c (register_state): Likewise.
41589         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
41590         for freeing internal storage.
41591         (group_nodes_into_DFA_states): Use unsigned int, not int, for
41592         bitset pieces used as boolean, to avoid undefined behavior
41593         on hosts that do int overflow checking.
41594
41595 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41596
41597         * config/srclist.txt: Add glibc bugs 1285-1287.
41598
41599 2005-09-01  Jim Meyering  <jim@meyering.net>
41600
41601         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
41602         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
41603         Require gl_STAT_MACROS, too.
41604
41605 2005-09-01  Bruno Haible  <bruno@clisp.org>
41606
41607         * gnulib-tool (import): In the first-use case, provide defaults.
41608
41609 2005-09-01  Bruno Haible  <bruno@clisp.org>
41610
41611         * gnulib-tool (func_import): Remove the .tmp files.
41612
41613 2005-09-01  Bruno Haible  <bruno@clisp.org>
41614
41615         * gnulib-tool (func_import): Fix handling of symbolic links.
41616
41617 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41618
41619         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
41620         old glibc regex code mishandles strings longer than 2**31 bytes.
41621         This patch fixes this when the regex code is used in gnulib
41622         (i.e., outside glibc).
41623
41624         This patch should not affect the use of the regex code inside
41625         glibc.  No doubt this problem also needs to be handled for glibc
41626         as well, but the result will be an incompatible change to the
41627         glibc ABI, and the old ABI will have to be supported too.  That
41628         can be the the subject for another patch.
41629
41630         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
41631         governing whether the rest of this patch is active.  By default,
41632         the macro is disabled and the patch has no effect.
41633         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
41634         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
41635         (struct re_pattern_buffer, re_search, re_search_2, re_match):
41636         (re_match_2, re_set_registers): Use the new types.
41637         * lib/regex_internal.h (Idx, re_hashval_t): New types.
41638         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
41639         New macros.
41640         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
41641         (re_string_context_at, bin_tree_t, re_dfastate_t):
41642         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
41643         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
41644         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
41645         (re_string_char_size_at, re_string_wchar_at):
41646         (re_string_elem_size_at):
41647         Use the new types and macros to port to 64-bit hosts.
41648         Use unsigned types for internal values, so that the code
41649         mostly works even for arrays larger than SSIZE_MAX.
41650         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
41651         (search_duplicated_node, calc_eclosure_iter, fetch_number):
41652         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
41653         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
41654         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
41655         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
41656         (calc_inveclosure, parse_dup_op, build_range_exp):
41657         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
41658         (fetch_number, create_token_tree, mark_opt_subexp):
41659         Likewise.
41660         * lib/regex_internal.c (re_string_construct_common,
41661         create_ci_newstate):
41662         (create_cd_newstate, re_string_allocate, re_string_construct):
41663         (re_string_realloc_buffers, build_wcs_upper_buffer):
41664         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41665         (re_string_reconstruct, re_string_peek_byte_case):
41666         (re_string_fetch_byte_case, re_string_context_at):
41667         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41668         (re_node_set_init_copy, re_node_set_add_intersect):
41669         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41670         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41671         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41672         (re_acquire_state, re_acquire_state_context, register_state):
41673         Likewise.
41674         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
41675         search_cur_bkref_entry):
41676         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
41677         (re_search_internal, re_search_2_stub, re_search_stub)
41678         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
41679         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
41680         (update_cur_sifted_state, check_dst_limits):
41681         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41682         (check_subexp_limits, sift_states_bkref, merge_state_array):
41683         (check_subexp_matching_top, get_subexp, get_subexp_sub):
41684         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
41685         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41686         (expand_bkref_cache, check_node_accept_bytes):
41687         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
41688         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
41689         (acquire_init_state_context, check_halt_node_context):
41690         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
41691         (sift_states_backward, clean_state_log_if_needed):
41692         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
41693         (find_recover_state, transit_state_sb, transit_state_mb):
41694         (transit_state_bkref, build_trtable, match_ctx_clean):
41695         Likewise.
41696         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
41697         to work around an assumption that REG_MISSING is negative.
41698
41699         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
41700         (seek_collating_symbol_entry) [defined _LIBC]:
41701         (lookup_collation_sequence_value) [defined _LIBC]:
41702         (build_range_exp, build_collating_symbol) [defined _LIBC]:
41703         Use prototypes rather than old-style function definitions.
41704         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
41705         (transit_state_sb) [0]:
41706         (find_collation_sequence_value) [defined _LIBC]: Likewise.
41707
41708         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
41709         rm_eo.
41710
41711         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
41712         (optimize_subexps, lower_subexp):
41713         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
41714         since the signed shift might overflow.  Use 1u<<31 instead.
41715         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
41716         Likewise.
41717         * lib/regexec.c (check_dst_limits_calc_pos_1,
41718         check_subexp_matching_top): Likewise.
41719
41720         * lib/regcomp.c (optimize_subexps, lower_subexp):
41721         Use CHAR_BIT rather than 8, for clarity.
41722         * lib/regexec.c (check_dst_limits_calc_pos_1):
41723         (check_subexp_matching_top): Likewise.
41724         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
41725         have to worry about portability issues when shifting it left.
41726         Remove no-longer-needed test for table_size > 0.
41727         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
41728         in a word, as the resulting behavior is undefined.
41729         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
41730         in one case, a <= should have been an <, and in another case the
41731         whole test was missing.
41732         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
41733         the standard name CHAR_BIT.
41734         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
41735         this is not true on one's complement and signed-magnitude hosts.
41736
41737         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
41738         next_last_offset.
41739         (struct re_dfa_t): Remove unused member states_alloc.
41740         * lib/regcomp.c (init_dfa): Don't initialize unused members.
41741
41742 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41743
41744         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
41745         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
41746         and large-file glibc and in 32-bit large-file Solaris.
41747
41748 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41749
41750         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
41751         lengths fit in regoff_t; this isn't true if regoff_t is the same
41752         width as size_t.
41753         * lib/regex.c (re_search_internal): 5th arg is LAST_START
41754         (= START + RANGE) instead of RANGE.  This avoids overflow
41755         problems when regoff_t is the same width as size_t.
41756         All callers changed.
41757         (re_search_2_stub): Check for overflow when adding the
41758         sizes of the two strings.
41759         (re_search_stub): Check for overflow when adding START
41760         to RANGE; if it occurs, substitute the extreme value.
41761
41762 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41763
41764         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
41765
41766 2005-08-31  Jim Meyering  <jim@meyering.net>
41767
41768         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
41769         a pointer-to-const.
41770         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
41771         (register_state): Likewise.
41772         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
41773         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41774         (group_nodes_into_DFAstates): Likewise.
41775
41776 2005-08-31  Jim Meyering  <jim@meyering.net>
41777
41778         * check-module: Add a FIXME comment.
41779
41780 2005-08-31  Eric Blake  <ebb9@byu.net>
41781
41782         * modules/unistd-safer (Files): Add unistd--.h.
41783         * modules/stdio-safer (Files): Add stdio--.h.
41784
41785 2005-08-31  Derek Price  <derek@ximbiot.com>
41786
41787         * lib/getdelim.c (getdelim): Return EOF on EOF.
41788         Reported by Larry Jones <lawrence.jones@ugs.com>.
41789
41790 2005-08-31  Bruno Haible  <bruno@clisp.org>
41791
41792         Avoid unnecessary diffs in the generated lib/Makefile.am.
41793         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
41794         the generated files.
41795         (func_import): Don't set cmd.
41796
41797 2005-08-31  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/strstr.c: Include <stddef.h>, for NULL.
41800         * lib/strcasestr.c: Likewise.
41801         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41802
41803 2005-08-31  Bruno Haible  <bruno@clisp.org>
41804
41805         * gnulib-tool: New option --macro-prefix.
41806         (func_import): Use macro_prefix.
41807         (import): Handle option --macro-prefix.
41808
41809 2005-08-31  Bruno Haible  <bruno@clisp.org>
41810
41811         * gnulib-tool (import): Rename most ac_* variables to cached_*.
41812         Also use new variables cached_lgpl, cached_libtool.
41813
41814 2005-08-31  Bruno Haible  <bruno@clisp.org>
41815
41816         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
41817         always instantiating them.
41818
41819 2005-08-31  Bruno Haible  <bruno@clisp.org>
41820
41821         * gnulib-tool (func_import): Read the previous cached settings
41822         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
41823         earlier added by gnulib but are now dropped. Warn when a gnulib file
41824         overwrites a non-gnulib file.
41825
41826 2005-08-31  Bruno Haible  <bruno@clisp.org>
41827
41828         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
41829         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
41830         projects that don't keep autogenerated files in CVS. Put into
41831         actioncmd only the specified modules, not the transitive closure.
41832
41833 2005-08-31  Bruno Haible  <bruno@clisp.org>
41834
41835         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
41836         Create directories that shall be filled.
41837         (import): Don't look for gl_* macros in configure.ac. Recurse across
41838         all directories containing a gnulib-cache.m4 files, if meaningful.
41839
41840 2005-08-31  Bruno Haible  <bruno@clisp.org>
41841
41842         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
41843         (import): Set seen_libtool when we see gl_LIBTOOL.
41844
41845 2005-08-31  Bruno Haible  <bruno@clisp.org>
41846
41847         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
41848         declaration macro definitions from generated gnulib.m4.
41849
41850 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
41851
41852         * lib/iconvme.h: Add prototype for iconv_alloc.
41853
41854 2005-08-29  Simon Josefsson  <jas@extundo.com>
41855
41856         * lib/iconvme.c: Fix errno.
41857
41858 2005-08-29  Bruno Haible  <bruno@clisp.org>
41859
41860         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
41861         that it works when the directory contains spaces.
41862
41863 2005-08-29  Bruno Haible  <bruno@clisp.org>
41864
41865         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
41866
41867 2005-08-29  Bruno Haible  <bruno@clisp.org>
41868
41869         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
41870         Emit more advice.
41871
41872 2005-08-29  Bruno Haible  <bruno@clisp.org>
41873         and Stepan Kasal  <kasal@ucw.cz>
41874
41875         * check-module: If more parameters are given, check each of them
41876         separately; add more exceptions, as noted by Jim Meyering.
41877         (check_module): New procedure.
41878         (%exempt_header): Now contains all exceptions.
41879
41880 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
41881
41882         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
41883
41884 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
41885
41886         * lib/iconvme.c: Split iconv_string into iconv_alloc.
41887
41888 2005-08-28  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/gnulib-tool.m4: New file.
41891
41892 2005-08-27  Jim Meyering  <jim@meyering.net>
41893
41894         * modules/unistd-safer (Files): Add pipe-safer.c.
41895         * modules/fcntl-safer (Files): Add creat-safer.c.
41896
41897 2005-08-27  Jim Meyering  <jim@meyering.net>
41898
41899         * m4/stdlib-safer.m4: New file.  From coreutils.
41900         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
41901         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
41902         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
41903         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
41904         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
41905
41906 2005-08-27  Jim Meyering  <jim@meyering.net>
41907
41908         * lib/fopen-safer.c: Merge minor changes from coreutils.
41909         * lib/dup-safer.c: Likewise.
41910         * lib/fd-safer.c: Likewise.
41911
41912         Merge from coreutils.
41913         * lib/stdio--.h: New file.
41914         * lib/stdlib--.h: New file.
41915         * lib/mkstemp-safer.c: New file.
41916
41917         GNU tar needs these.
41918         * lib/pipe-safer.c: New file.
41919         * lib/creat-safer.c: New file.
41920         * lib/fcntl--.h (creat): Define to creat_safer.
41921         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
41922         * lib/unistd--.h (pipe): Define to pipe_safer.
41923         * lib/unistd-safer.h: Declare pipe_safer.
41924
41925 2005-08-26  Simon Josefsson  <jas@extundo.com>
41926
41927         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
41928         Haible <bruno@clisp.org>.
41929
41930 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
41931
41932         * lib/regex_internal.h: Remove all references to
41933         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
41934         or better.
41935         (bitset_not, bitset_merge, bitset_not_merge):
41936         (bitset_mask, re_string_allocate, re_string_construct):
41937         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
41938         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
41939         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
41940         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
41941         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41942         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41943         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
41944         (re_acquire_state_context):
41945         Remove unnecessary forward decls.
41946         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
41947         Put __attribute at function definition,
41948         now that the function decl has been removed.
41949         * lib/regex_internal.c (re_string_peek_byte_case):
41950         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
41951         Likewise.
41952
41953 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
41954
41955         * m4/regex.m4: Add AC_PREREQ(2.50).
41956         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
41957
41958 2005-08-25  Simon Josefsson  <jas@extundo.com>
41959
41960         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
41961         __fsetlocking.
41962
41963 2005-08-25  Simon Josefsson  <jas@extundo.com>
41964
41965         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
41966         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
41967         GLIBC specific code.
41968
41969 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41970
41971         Make regex safe for g++.  This fixes one real bug (an "err"
41972         that should have been "*err").  g++ problem reported by
41973         Sam Steingold.
41974         * lib/regex_internal.h (re_calloc): New macro, consistent with
41975         re_malloc etc.  All callers of calloc changed to use re_calloc.
41976         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
41977         not int.  All callers changed.
41978         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
41979         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
41980         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
41981         (find_recover_state): Change "err" to "*err"; this fixes what
41982         appears to be a real bug.
41983         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
41984         versus int.
41985
41986 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41987
41988         * modules/regex (Depends-on): Add malloc, since the code
41989         assumes that !malloc(0) means failure.
41990
41991 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41992
41993         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
41994
41995         alloca modernization/simplification for regex.
41996         * lib/regex.c: Remove portability cruft for alloca.  This no longer
41997         needs to be at the start of the file, and can be moved into
41998         regex_internal.h and simplified.
41999         * lib/regex_internal.h: Include <alloca.h>.
42000         (__libc_use_alloca) [!defined _LIBC]: New macro.
42001         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
42002         now works outside glibc.
42003
42004 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42005
42006         * config/srclist.txt: Add glibc bugs 1241, 1245.
42007
42008 2005-08-25  Jim Meyering  <jim@meyering.net>
42009
42010         * lib/open-safer.c: Include <config.h>.
42011         Otherwise, we'd lose LARGEFILE support in any file using
42012         e.g. "fcntl--.h"
42013
42014 2005-08-25  Bruno Haible  <bruno@clisp.org>
42015
42016         * m4/minmax.m4: Require autoconf 2.52.
42017         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
42018         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
42019         alternatives of translit over the alphabet.
42020         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
42021
42022 2005-08-24  Simon Josefsson  <jas@extundo.com>
42023
42024         * tests/test-getpass.c: New file.
42025
42026 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42027
42028         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
42029         for GNU regex features.
42030
42031 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42032
42033         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
42034         * lib/regex.h (regerror): Likewise.
42035
42036         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
42037         requires this.  (The code never needed it.)
42038
42039         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
42040         All uses of recently-renamed identifiers changed to use the new,
42041         POSIX-compliant names.  The code will build and run just fine
42042         without these changes, but it's better to eat our own dog food
42043         and use the standard-conforming names.
42044
42045         * lib/regex.h: Fix a multitude of POSIX name space violations.
42046         These changes have an effect only for programs that define
42047         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
42048         do not change anything for programs compiled in the normal way.
42049         Also, there is no effect on the ABI.
42050
42051         (_REGEX_SOURCE): New macro.
42052         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
42053         defined and _GNU_SOURCE is not; this fixes a name space violation.
42054
42055         Rename the following macros to obey POSIX requirements.
42056         The old names are still visible as macros if _REGEX_SOURCE is defined.
42057         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
42058         RE_BACKSLASH_ESCAPE_IN_LISTS.
42059         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
42060         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
42061         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
42062         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
42063         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
42064         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
42065         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
42066         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
42067         (REG_INTERVALS): renamed from RE_INTERVALS.
42068         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
42069         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
42070         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
42071         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
42072         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
42073         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
42074         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
42075         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
42076         RE_UNMATCHED_RIGHT_PAREN_ORD.
42077         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
42078         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
42079         (REG_DEBUG): renamed from RE_DEBUG.
42080         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
42081         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
42082         unusual, since we can't clash with the POSIX REG_ICASE.
42083         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
42084         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
42085         (REG_NO_SUB): renamed from RE_NO_SUB.
42086         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
42087         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
42088         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
42089         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
42090         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
42091         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
42092         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
42093         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
42094         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
42095         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
42096         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
42097         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
42098         RE_SYNTAX_POSIX_MINIMAL_BASIC.
42099         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
42100         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
42101         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
42102         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
42103         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
42104         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
42105         (REG_FIXED): Renamed from REGS_FIXED.
42106         (REG_NREGS): Renamed from RE_NREGS.
42107
42108         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
42109         of other REG_* macros, since POSIX says the user is allowed to
42110         #undef these macros selectively.
42111
42112         (reg_errcode_t): Update comment stating what other tables need
42113         to be consistent.
42114
42115         Rename the following enum values to obey POSIX requirements.
42116         The old names are still visible as macros.
42117         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
42118         is not defined, since GNU is supposed to be a superset of POSIX as
42119         much as possible, and since we want reg_errcode_t to be a signed
42120         type for implementation consistency.
42121         (_REG_NOERROR): Renamed from REG_NOERROR.
42122         (_REG_NOMATCH): Renamed from REG_NOMATCH.
42123         (_REG_BADPAT): Renamed from REG_BADPAT.
42124         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
42125         (_REG_ECTYPE): Renamed from REG_ECTYPE.
42126         (_REG_EESCAPE): Renamed from REG_EESCAPE.
42127         (_REG_ESUBREG): Renamed from REG_ESUBREG.
42128         (_REG_EBRACK): Renamed from REG_EBRACK.
42129         (_REG_EPAREN): Renamed from REG_EPAREN.
42130         (_REG_EBRACE): Renamed from REG_EBRACE.
42131         (_REG_BADBR): Renamed from REG_BADBR.
42132         (_REG_ERANGE): Renamed from REG_ERANGE.
42133         (_REG_ESPACE): Renamed from REG_ESPACE.
42134         (_REG_BADRPT): Renamed from REG_BADRPT.
42135         (_REG_EEND): Renamed from REG_EEND.
42136         (_REG_ESIZE): Renamed from REG_ESIZE.
42137         (_REG_ERPAREN): Renamed from REG_ERPAREN.
42138         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
42139         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
42140         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
42141         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
42142
42143         (_REG_RE_NAME, _REG_RM_NAME): New macros.
42144         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
42145         changed.  But support the old name if the new one is not defined
42146         and if _REGEX_SOURCE.
42147
42148         Change the following member names in struct re_pattern_buffer.
42149         The old names are still supported if !_REGEX_SOURCE.
42150         The new names are always supported, regardless of _REGEX_SOURCE.
42151         (re_buffer): Renamed from buffer.
42152         (re_allocated): Renamed from allocated.
42153         (re_used): Renamed from used.
42154         (re_syntax): Renamed from syntax.
42155         (re_fastmap): Renamed from fastmap.
42156         (re_translate): Renamed from translate.
42157         (re_can_be_null): Renamed from can_be_null.
42158         (re_regs_allocated): Renamed from regs_allocated.
42159         (re_fastmap_accurate): Renamed from fastmap_accurate.
42160         (re_no_sub): Renamed from no_sub.
42161         (re_not_bol): Renamed from not_bol.
42162         (re_not_eol): Renamed from not_eol.
42163         (re_newline_anchor): Renamed from newline_anchor.
42164
42165         Change the following member names in struct re_registers.
42166         The old names are still supported if !_REGEX_SOURCE.
42167         The new names are always supported, regardless of _REGEX_SOURCE.
42168         (rm_num_regs): Renamed from num_regs.
42169         (rm_start): Renamed from start.
42170         (rm_end): Renamed from end.
42171
42172         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
42173         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
42174         Prepend __ to parameter names.
42175
42176         Undo yesterday's changes.
42177
42178 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42179
42180         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
42181         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
42182         lib/regex.c.
42183
42184 2005-08-24  Jim Meyering  <jim@meyering.net>
42185
42186         Sync from coreutils.
42187         * m4/fcntl-safer.m4: New file.
42188
42189         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
42190         and object files for this module.
42191
42192 2005-08-24  Jim Meyering  <jim@meyering.net>
42193
42194         Sync from coreutils.
42195         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
42196
42197 2005-08-24  Jim Meyering  <jim@meyering.net>
42198
42199         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
42200         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
42201
42202 2005-08-24  Jim Meyering  <jim@meyering.net>
42203
42204         * modules/fcntl-safer: New module.
42205         * modules/fts (Depends-on): Add fcntl-safer.
42206         * MODULES.html.sh (File descriptor based Input/Output):
42207         Add fcntl-safer.
42208
42209 2005-08-24  Bruno Haible  <bruno@clisp.org>
42210
42211         Support for unit test modules.
42212         * modules/README: Mention tests modules.
42213         * modules/TEMPLATE-TESTS: New file.
42214         * gnulib-tool: New options --extract-tests-module, --with-tests and
42215         --tests-base (unused for the moment).
42216         (testsbase, inctests): New variables.
42217         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
42218         (func_verify_module): Exclude TEMPLATE-TESTS.
42219         (func_verify_nontests_module, func_verify_tests_module): New functions.
42220         (func_get_dependencies): Add implicit dependency for tests modules.
42221         (func_get_tests_module): New function.
42222         (func_modules_transitive_closure): When --with-tests was specified,
42223         include the unit tests as well, unless explicitly avoided.
42224         (func_emit_lib_Makefile_am): Ignore the tests modules here.
42225         (func_emit_tests_Makefile_am): New function.
42226         (func_create_testdir): When --with-tests was specified, emit a
42227         tests/ directory.
42228         * MODULES.html.sh (Future developments): Update.
42229
42230 2005-08-24  Bruno Haible  <bruno@clisp.org>
42231
42232         * modules/tls-tests: New file.
42233         * tests/test-tls.c: New file, from GNU gettext.
42234
42235 2005-08-24  Bruno Haible  <bruno@clisp.org>
42236
42237         * modules/lock-tests: New file.
42238         * tests/test-lock.c: New file, from GNU gettext.
42239
42240 2005-08-24  Bruno Haible  <bruno@clisp.org>
42241
42242         * lib/lock.h: Add multiple inclusion guard.
42243         * lib/tls.h: Add multiple inclusion guard.
42244
42245 2005-08-24  Bruno Haible  <bruno@clisp.org>
42246
42247         * gnulib-tool: Add support for the --aux-dir option to
42248         --create-testdir, --create-megatestdir, --test, --megatest.
42249         (func_create_testdir, func_create_megatestdir): Optionally emit a
42250         AC_CONFIG_AUX_DIR directive.
42251         (create-testdir, create-megatestdir, test, megatest): Provide a
42252         default value for $auxdir.
42253
42254 2005-08-24  Bruno Haible  <bruno@clisp.org>
42255
42256         * gnulib-tool (import): Use compound statement instead of subshell
42257         where possible.
42258
42259 2005-08-24  Bruno Haible  <bruno@clisp.org>
42260
42261         * gnulib-tool (import): Change --aux-dir default to "build-aux".
42262
42263 2005-08-24  Bruno Haible  <bruno@clisp.org>
42264
42265         * gnulib-tool (func_version): Update.
42266
42267 2005-08-24  Bruno Haible  <bruno@clisp.org>
42268
42269         * gnulib-tool (func_import, func_create_testdir,
42270         func_create_megatestdir): Quote all autoconf macro arguments.
42271
42272 2005-08-24  Bruno Haible  <bruno@clisp.org>
42273
42274         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
42275         option --force, because --force causes the aclocal.m4 of each
42276         subdirectory to be newer than the corresponding config.h.in.
42277
42278 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42279
42280         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
42281         All contents moved to gl_REGEX.
42282         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
42283         assume that it does.
42284
42285 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42286
42287         * lib/regex.h (REG_NOSYS)
42288         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
42289         Define, since POSIX requires it as of 2001.
42290         (_REG_ENOSYS)
42291         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
42292         New private symbol, used to keep the enum signed in all cases.
42293         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
42294         Youngman in
42295         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
42296
42297         * lib/regex_internal.c (re_string_skip_chars, register_state):
42298         (calc_state_hash):
42299         Remove forward decls; no longer needed now that we use prototypes.
42300         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
42301         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
42302         (clean_state_log_if_needed): Likewise.
42303
42304 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42305
42306         * config/srclist.txt: Add glibc bugs 1231-1233.
42307
42308 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42309
42310         Fix problems reported by Sam Steingold in
42311         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
42312         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
42313         assumed that reg_errcode_t is a signed type, which is not
42314         necessarily true if _XOPEN_SOURCE is not defined.
42315         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
42316         since some compilers warn about it otherwise.
42317
42318 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42319
42320         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
42321         (init_word_char, create_initial_state, duplicate_node_closure):
42322         (fetch_token, peek_token_bracket, build_range_exp):
42323         (build_collating_symbol): Remove forward decls; no longer needed
42324         now that we use prototypes.
42325
42326         * lib/regcomp.c:
42327         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
42328         (re_compile_fastmap_iter, regcomp, regerror, regfree):
42329         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
42330         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
42331         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
42332         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
42333         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
42334         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
42335         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
42336         (build_range_exp, build_collating_symbol, parse_bracket_exp):
42337         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
42338         (build_charclass, build_charclass_op, fetch_number, create_tree):
42339         (create_token_tree, mark_opt_subexp, duplicate_tree):
42340         Use prototypes rather than old-style definitions.
42341
42342         * lib/regex_internal.c:
42343         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
42344         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
42345         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
42346         (re_string_reconstruct, re_string_peek_byte_case):
42347         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
42348         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
42349         (re_node_set_init_copy, re_node_set_add_intersect):
42350         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
42351         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
42352         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
42353         (re_acquire_state, re_acquire_state_context, register_state):
42354         (create_ci_newstate, create_cd_newstate, free_state):
42355         Likewise.
42356         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
42357         re_search_2):
42358         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
42359         (re_search_internal, prune_impossible_nodes):
42360         (acquire_init_state_context, check_matching, static):
42361         (check_halt_node_context, check_halt_state_context, proceed_next_node):
42362         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
42363         (update_regs, sift_states_backward, build_sifted_states):
42364         (clean_state_log_if_needed, merge_state_array):
42365         (update_cur_sifted_state, add_epsilon_src_nodes):
42366         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
42367         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
42368         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
42369         (find_recover_state, check_subexp_matching_top, transit_state_mb):
42370         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
42371         (check_arrival, check_arrival_add_next_nodes):
42372         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
42373         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
42374         (check_node_accept_bytes, check_node_accept, extend_buffers):
42375         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
42376         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
42377         (sift_ctx_init):
42378         Likewise.
42379
42380         * lib/regex_internal.h:
42381         (re_string_allocate, re_string_construct, re_string_reconstruct):
42382         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
42383         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
42384         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
42385         (re_string_context_at, re_string_peek_byte_case):
42386         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
42387         is defined, since we now use prototypes always.
42388
42389         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
42390         C89 or better.  All uses removed.
42391
42392 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42393
42394         * config/srclist.txt: Add glibc bugs 1220-1227.
42395
42396 2005-08-20  Jim Meyering  <jim@meyering.net>
42397
42398         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
42399         of unused local, dfa.
42400
42401 2005-08-20  Bruno Haible  <bruno@clisp.org>
42402
42403         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
42404
42405 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42406
42407         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
42408         (re_node_set_insert_last, re_dfa_add_node):
42409         Rename local variables to avoid GCC shadowing warnings.
42410
42411 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42412
42413         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
42414         [defined lint]: Suppress bogus uninitialized-variable warnings.
42415
42416         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
42417         and let the caller return REG_ESPACE if out of space.  This
42418         removes an uninitialied-variable warning with GCC 4.0.1, and also
42419         avoids taking the address of a local variable.  All callers
42420         changed.
42421
42422 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42423
42424         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
42425         $LIBCSRC/posix/regexec.c.
42426         Add glibc bug 1217 for regcomp.c.
42427
42428 2005-08-19  Jim Meyering  <jim@meyering.net>
42429
42430         * lib/regexec.c (proceed_next_node): Redo local variables to
42431         avoid GCC shadowing warnings.
42432
42433 2005-08-18  Bruno Haible  <bruno@clisp.org>
42434
42435         * lib/strstr.c (strstr): Fix return value in multibyte case.
42436         * lib/strcasestr.c (strcasestr): Likewise.
42437
42438 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42439
42440         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
42441
42442 2005-08-17  Jim Meyering  <jim@meyering.net>
42443
42444         Make the %s format (seconds since the epoch) work for a negative
42445         number and when used with a zero-padded field width, e.g. %015s.
42446
42447         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
42448         label so that it precedes the code to set `digits'.  Otherwise,
42449         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
42450         print `00-22'.  Now, it prints `-0022', as it should.
42451
42452 2005-08-17  Bruno Haible  <bruno@clisp.org>
42453
42454         * modules/strstr (Files): Add m4/mbrtowc.m4.
42455         (Depends-on): Add mbuiter.
42456
42457 2005-08-17  Bruno Haible  <bruno@clisp.org>
42458
42459         * modules/strcasestr: New file.
42460         * MODULES.html.sh (String handling, based on ANSI C 89): Add
42461         strcasestr.
42462
42463 2005-08-17  Bruno Haible  <bruno@clisp.org>
42464
42465         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
42466
42467 2005-08-17  Bruno Haible  <bruno@clisp.org>
42468
42469         * modules/mbuiter: New file.
42470         * MODULES.html.sh (Extended multibyte and wide character utilities):
42471         Add mbuiter.
42472
42473 2005-08-17  Bruno Haible  <bruno@clisp.org>
42474
42475         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
42476         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
42477
42478 2005-08-17  Bruno Haible  <bruno@clisp.org>
42479
42480         * m4/strcasestr.m4: New file.
42481
42482 2005-08-17  Bruno Haible  <bruno@clisp.org>
42483
42484         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
42485         * lib/strstr.c: Completely rewritten, with multibyte locale support.
42486
42487 2005-08-17  Bruno Haible  <bruno@clisp.org>
42488
42489         * lib/strcasestr.h: New file.
42490         * lib/strcasestr.c: New file.
42491
42492 2005-08-17  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/strcasecmp.c: Use mbuiter.h.
42495
42496 2005-08-17  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/mbuiter.h: New file.
42499
42500 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42501
42502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
42503         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
42504         and gl_GETOPT are both invoked via different paths (as happens
42505         with GNU tar CVS because it uses both argp and getopt), the former
42506         wins.
42507
42508 2005-08-16  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/tls: New file.
42511         * MODULES.html.sh (Multithreading): Add tls.
42512
42513 2005-08-16  Bruno Haible  <bruno@clisp.org>
42514
42515         * modules/strnlen1: New file.
42516         * MODULES.html.sh (String handling): Add strnlen1.
42517
42518 2005-08-16  Bruno Haible  <bruno@clisp.org>
42519
42520         * modules/strcase (Files): Add m4/mbrtowc.m4.
42521         (Depends-on): Add strnlen1, mbchar.
42522
42523 2005-08-16  Bruno Haible  <bruno@clisp.org>
42524
42525         * modules/mbiter: New file.
42526         * MODULES.html.sh (Extended multibyte and wide character utilities):
42527         Add mbiter.
42528
42529 2005-08-16  Bruno Haible  <bruno@clisp.org>
42530
42531         * modules/mbfile: New file.
42532         * MODULES.html.sh (Extended multibyte and wide character utilities):
42533         Add mbfile.
42534
42535 2005-08-16  Bruno Haible  <bruno@clisp.org>
42536
42537         * modules/mbchar: New file.
42538         * MODULES.html.sh (Extended multibyte and wide character utilities):
42539         New section.
42540
42541 2005-08-16  Bruno Haible  <bruno@clisp.org>
42542
42543         * m4/tls.m4: New file, from GNU gettext.
42544
42545 2005-08-16  Bruno Haible  <bruno@clisp.org>
42546
42547         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
42548         always.
42549         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
42550
42551 2005-08-16  Bruno Haible  <bruno@clisp.org>
42552
42553         * m4/mbiter.m4: New file.
42554
42555 2005-08-16  Bruno Haible  <bruno@clisp.org>
42556
42557         * m4/mbfile.m4: New file.
42558
42559 2005-08-16  Bruno Haible  <bruno@clisp.org>
42560
42561         * m4/mbchar.m4: New file.
42562
42563 2005-08-16  Bruno Haible  <bruno@clisp.org>
42564
42565         * lib/tls.h: New file, from GNU gettext.
42566         * lib/tls.c: New file, from GNU gettext.
42567
42568 2005-08-16  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/strnlen1.h: New file.
42571         * lib/strnlen1.c: New file.
42572
42573 2005-08-16  Bruno Haible  <bruno@clisp.org>
42574
42575         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
42576         (mbi_init): Update.
42577         (mbi_avail, mbi_advance): Let the iteration end before the terminating
42578         NUL byte, not after it.
42579
42580 2005-08-16  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/strcase.h (strcasecmp): Add note in comments.
42583         * lib/strncasecmp.c: Use code from strcasecmp.c.
42584         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
42585         (strcasecmp): Work correctly in multibyte locales.
42586
42587 2005-08-16  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/mbiter.h: New file.
42590
42591 2005-08-16  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/mbfile.h: New file.
42594
42595 2005-08-16  Bruno Haible  <bruno@clisp.org>
42596
42597         * lib/mbchar.h: New file.
42598         * lib/mbchar.c: New file.
42599
42600 2005-08-16  Bruno Haible  <bruno@clisp.org>
42601
42602         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
42603         the valid ones. Makes the comparison operations transitive:
42604         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
42605         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
42606
42607 2005-08-15  Simon Josefsson  <jas@extundo.com>
42608
42609         * modules/ssize_t (License): Change to 'unlimited'.
42610
42611         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
42612
42613 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42614
42615         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
42616         Add comments for each pending glibc patch.
42617
42618 2005-08-15  Bruno Haible  <bruno@clisp.org>
42619
42620         * lib/regex.h (__restrict_arr): Don't define to __restrict if
42621         __cplusplus is defined.
42622
42623 2005-08-14  Jim Meyering  <jim@meyering.net>
42624
42625         Sync from coreutils.
42626
42627         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
42628         Use the hash-table-based cycle-detection code not just when
42629         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
42630         Reported by James Youngman in
42631         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
42632         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
42633         FTS_TIGHT_CYCLE_CHECK.
42634         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
42635         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
42636         once again.
42637         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
42638         * lib/fts.c (fd_safer): Remove decl.
42639         Include fcntl--.h rather than unistd-safer.h
42640         (fts_safe_changedir): Don't call fd_safer; no longer needed
42641         now that we include fcntl--.h.
42642
42643 2005-08-12  Simon Josefsson  <jas@extundo.com>
42644
42645         * modules/getndelim2: Use ssize_t module.
42646         * modules/getnline: Likewise.
42647         * modules/safe-read: Likewise.
42648         * modules/xreadlink: Likewise.
42649
42650         * modules/ssize_t: New file.
42651
42652 2005-08-12  Simon Josefsson  <jas@extundo.com>
42653
42654         * m4/readline.m4: Look for termcap, curses or ncurses if required.
42655
42656 2005-08-12  Simon Josefsson  <jas@extundo.com>
42657
42658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42659         ssize_t.
42660
42661 2005-08-12  Simon Josefsson  <jas@extundo.com>
42662
42663         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
42664         readline, getdelim and check_version.
42665         (Support for systems lacking ISO C 99: Sizes of integer types):
42666         Add size_max.
42667
42668 2005-08-12  Bruno Haible  <bruno@clisp.org>
42669
42670         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
42671
42672 2005-08-11  Simon Josefsson  <jas@extundo.com>
42673
42674         * modules/readline: New file.
42675
42676         * modules/strnlen (Files): Add strnlen.h.
42677
42678 2005-08-11  Simon Josefsson  <jas@extundo.com>
42679
42680         * m4/readline.m4: New file.
42681
42682 2005-08-11  Simon Josefsson  <jas@extundo.com>
42683
42684         * lib/readline.h, readline.c: New file.
42685
42686 2005-08-11  Simon Josefsson  <jas@extundo.com>
42687
42688         * doc/gnulib.texi (Initial import, Finishing touches): Mention
42689         gl_AVOID.
42690
42691 2005-08-11  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/strnlen.h (strnlen): Change parameter name to match comment.
42694
42695 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
42696
42697         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
42698
42699 2005-08-10  Simon Josefsson  <jas@extundo.com>
42700
42701         * tests/test-iconvme.c: New file.
42702
42703 2005-08-10  Simon Josefsson  <jas@extundo.com>
42704
42705         * m4/strnlen.m4: New file.
42706
42707         * m4/strndup.m4: Don't check for strnlen declaration, done in
42708         strnlen.m4.
42709
42710 2005-08-10  Simon Josefsson  <jas@extundo.com>
42711
42712         * lib/strndup.c: Use strnlen.h.
42713
42714         * lib/strnlen.h: New file.
42715
42716 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42717
42718         * README: Typos.
42719
42720 2005-08-02  Simon Josefsson  <jas@extundo.com>
42721
42722         * modules/readline: New file.
42723
42724 2005-08-02  Simon Josefsson  <jas@extundo.com>
42725
42726         * modules/getdelim: New file.
42727
42728         * modules/getline: Rewrite, don't use getndelim2.
42729
42730 2005-08-02  Simon Josefsson  <jas@extundo.com>
42731
42732         * m4/getline.m4: Separate out getdelim stuff into separate module.
42733
42734         * m4/getdelim.m4: New file.
42735
42736 2005-08-02  Simon Josefsson  <jas@extundo.com>
42737
42738         * lib/getline.h, getline.c: Rewrite.
42739
42740         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
42741
42742 2005-07-31  Bruno Haible  <bruno@clisp.org>
42743
42744         * lib/lock.h (gl_lock_initializer): New macro.
42745         (gl_lock_define_initialized): Use it.
42746         (gl_rwlock_initializer): New macro.
42747         (gl_rwlock_define_initialized): Use it.
42748         (gl_recursive_lock_initializer): New macro.
42749         (gl_recursive_lock_define_initialized): Use it.
42750
42751 2005-07-30  Karl Berry  <karl@gnu.org>
42752
42753         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
42754         Report from Ben Pfaff, regarding getopt.
42755
42756 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
42757
42758         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
42759         normal way.
42760         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
42761         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
42762         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
42763         (gl_GETOPT): Use the new macros.  Most of the implementation
42764         is moved to the new macros.  This is for programs like Emacs
42765         that don't want all the functionality of gl_GETOPT.
42766
42767 2005-07-26  Bruno Haible  <bruno@clisp.org>
42768
42769         * m4/lock.m4: Update from GNU gettext.
42770
42771 2005-07-26  Bruno Haible  <bruno@clisp.org>
42772
42773         * lib/lock.h: Update from GNU gettext.
42774         * lib/lock.c: Update from GNU gettext.
42775
42776 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
42777
42778         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
42779         obsolescent AC_TRY_RUN.  Include the default includes files, for
42780         'exit'.
42781
42782 2005-07-24  Bruno Haible  <bruno@clisp.org>
42783
42784         * modules/visibility: New file.
42785         * MODULES.html.sh (Misc): Add visibility.
42786
42787 2005-07-24  Bruno Haible  <bruno@clisp.org>
42788
42789         * m4/visibility.m4: New file.
42790
42791 2005-07-24  Bruno Haible  <bruno@clisp.org>
42792
42793         * doc/visibility.texi: New file.
42794
42795 2005-07-22  Bruno Haible  <bruno@clisp.org>
42796
42797         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
42798         $(ALLOCA_H), redundant through BUILT_SOURCES.
42799         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
42800         redundant through BUILT_SOURCES.
42801         * modules/byteswap (Makefile.am): Remove explicit dependency on
42802         $(BYTESWAP_H), redundant through BUILT_SOURCES.
42803         * modules/fnmatch (Makefile.am): Remove explicit dependency on
42804         $(FNMATCH_H), redundant through BUILT_SOURCES.
42805         * modules/getopt (Makefile.am): Remove explicit dependency on
42806         $(GETOPT_H), redundant through BUILT_SOURCES.
42807         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
42808         redundant through BUILT_SOURCES.
42809         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
42810         redundant through BUILT_SOURCES.
42811         * modules/stdbool (Makefile.am): Remove explicit dependency on
42812         $(STDBOOL_H), redundant through BUILT_SOURCES.
42813         * modules/stdint (Makefile.am): Remove explicit dependency on
42814         $(STDINT_H), redundant through BUILT_SOURCES.
42815         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
42816         Remove explicit dependency on $(SYSEXITS_H).
42817         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
42818
42819 2005-07-18  Simon Josefsson  <jas@extundo.com>
42820
42821         * lib/check-version.c (check_version): Accept identical versions too.
42822
42823 2005-07-18  Bruno Haible  <bruno@clisp.org>
42824
42825         * modules/lock: New file.
42826         * MODULES.html.sh (Multithreading): New section.
42827
42828 2005-07-18  Bruno Haible  <bruno@clisp.org>
42829
42830         * m4/lock.m4: New file, from GNU gettext.
42831
42832 2005-07-18  Bruno Haible  <bruno@clisp.org>
42833
42834         * lib/lock.h: New file, from GNU gettext.
42835         * lib/lock.c: New file, from GNU gettext.
42836
42837 2005-07-18  Bruno Haible  <bruno@clisp.org>
42838
42839         * lib/lock.h (gl_once_t): New type.
42840         (gl_once_define, gl_once): New macros.
42841         * lib/lock.c (fresh_once): New variable.
42842         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
42843         functions.
42844
42845 2005-07-16  Simon Josefsson  <jas@extundo.com>
42846
42847         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
42848         workaround, suggested by Bruno.
42849
42850 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42851
42852         * modules/xalloc (Depends-on): Add xalloc-die.
42853         * modules/xvasprintf (Depends-on): Add xalloc-die.
42854
42855 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42856
42857         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
42858         with a minor change.
42859
42860 2005-07-15  Bruno Haible  <bruno@clisp.org>
42861
42862         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
42863         When using lib/poll.c, define poll as rpl_poll.
42864
42865 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
42866
42867         * modules/argp (Depends-on): Remove unlocked-io.
42868
42869 2005-07-14  Derek Price  <derek@ximbiot.com>
42870
42871         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
42872         for glob symlink bug.
42873
42874 2005-07-14  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
42877         Instead, test for *_unlocked function declarations directly.
42878
42879 2005-07-11  Simon Josefsson  <jas@extundo.com>
42880
42881         * modules/size_max: New file.
42882
42883         * modules/xsize: Depend on size_max module for size_max.m4.
42884
42885 2005-07-11  Simon Josefsson  <jas@extundo.com>
42886
42887         * lib/size_max.h: New file.
42888
42889 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
42890
42891         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
42892         copyright symbol and the year.
42893         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
42894         (version_etc_va): Use parameterized copyright notice.
42895         Reword to conform to the current GNU coding standards.
42896
42897 2005-07-11  Karl Berry  <karl@gnu.org>
42898
42899         * doc/gnulib.texi (Quoting): new node.
42900         (Initial import): more info, from Patrice.
42901
42902 2005-07-11  Bruno Haible  <bruno@clisp.org>
42903
42904         * gnulib-tool (func_usage): Document option --avoid.
42905         (Command line options): Handle --avoid.
42906         (func_acceptable): New function.
42907         (func_modules_transitive_closure): Use it.
42908
42909 2005-07-11  Bruno Haible  <bruno@clisp.org>
42910
42911         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
42912         Reported by Jim Meyering.
42913
42914 2005-07-10  Bruno Haible  <bruno@clisp.org>
42915
42916         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
42917         Needed when size_t is smaller than 'unsigned int'.
42918         Reported by Paul Eggert.
42919
42920 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42921
42922         * modules/argp (Depends-on): Add unlocked-io
42923
42924 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42925
42926         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
42927         block of defines.
42928
42929 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42930
42931         * config/srclist.txt: Comment out regcomp.c, since we have a porting
42932         fix now.
42933
42934 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
42935         and Paul Eggert  <eggert@cs.ucla.edu>
42936
42937         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
42938         in wint_t, not wchar_t.  Remove now-unnecessary cast.
42939
42940 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42941
42942         * modules/regex (Files): Add lib/regex_internal.c,
42943         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
42944         (Depends-on): Add extensions.
42945         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
42946
42947 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42948
42949         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
42950         pathconf.
42951         * m4/same.m4 (gl_SAME): Likewise.
42952         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
42953
42954         * m4/regex.m4: Adjust to new libc regex implementation.
42955         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
42956         all the .c and .h parts of (the new) regex.
42957         Quote the m4 stuff better.
42958         Check for RE_ICASE bug of old gnulib.
42959         Check for REG_STARTEND of recent libc.
42960         Rename local variables from jm_* to gl_*.
42961         Quote operand of "test -f".
42962         Say "recent enough" version of libc, not "version 2".
42963         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
42964         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
42965         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
42966         Remove check for btowc, isascii.
42967         Require AM_LANGINFO_CODESET.
42968
42969 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42970
42971         * lib/regex.c, regex.h: Sync from libc.
42972         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
42973         * lib/regexec.c:
42974         New files, synced from libc, except that regex_internal.h
42975         currently has a small porting fix.
42976
42977 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42978
42979         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
42980         regex_internal.c, regexec.c.
42981         Add regex_internal.h too, but as a comment, since the libc version
42982         is currently broken in gnulib mode.
42983
42984 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42985
42986         Support programs like Emacs that use gnulib but not gettext.
42987         * MODULES.html.sh (Internationalization functions): Add gettext-h.
42988         * modules/gettext-h: New file.
42989         * modules/gettext (Files): Remove lib/gettext.h.
42990         (Depends-on): Add gettext-h.
42991         (Makefile.am): Remove lib_SOURCES.
42992         * modules/argmatch, modules/c-stack, modules/closeout:
42993         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
42994         * modules/execute, modules/file-type, modules/getaddrinfo:
42995         * modules/getopt, modules/human, modules/javacomp:
42996         * modules/javaexec, modules/mkdir-p, modules/obstack:
42997         * modules/openat, modules/pagealign_alloc, modules/pipe:
42998         * modules/quotearg, modules/regex, modules/rpmatch:
42999         * modules/unicodeio, modules/userspec, modules/version-etc:
43000         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
43001         * modules/xsetenv:
43002         Depend on gettext-h, not gettext.
43003
43004 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43005
43006         * gnulib-tool (func_import): Add support for 'public domain' license.
43007         * modules/alloca, modules/atexit, modules/memmove:
43008         Now public domain, not GPL.
43009         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
43010         * modules/realloc, modules/strerror, modules/strtod:
43011         Now LGPL, not GPL.
43012
43013 2005-07-05  Bruno Haible  <bruno@clisp.org>
43014
43015         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
43016         autoconf CVS. Needed for mingw.
43017
43018 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43019
43020         Remove the dependency of the strftime module on the tzset module.
43021         * modules/strftime (Depends-on): Remove dependency on tzset.
43022
43023 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43024
43025         Remove the dependency of the strftime module on the tzset module.
43026         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
43027         gl_FUNC_TZSET_CLOBBER.
43028
43029 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43030
43031         Remove the dependency of the strftime module on the tzset module.
43032         * lib/strftime.c (my_strftime)
43033         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
43034         Copy the input structure, to work around some of the bug with
43035         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
43036         Solaris releases, you should also use the tzset module, but we won't
43037         require it as a dependency any more since we don't want LGPLed code
43038         to depend on GPLed code.
43039
43040 2005-07-02  Jim Meyering  <jim@meyering.net>
43041
43042         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
43043         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
43044         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
43045         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
43046
43047 2005-07-02  Jim Meyering  <jim@meyering.net>
43048
43049         * lib/backupfile.c (backup_args): Change a `0' to NULL.
43050
43051 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
43052
43053         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
43054         declares only 'struct timespec;' (!).
43055
43056 2005-07-01  Jim Meyering  <jim@meyering.net>
43057
43058         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
43059         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
43060         * lib/save-cwd.c, tempname.c:
43061         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
43062         and don't include <sys/file.h>).
43063
43064 2005-06-29  Jim Meyering  <jim@meyering.net>
43065
43066         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
43067         type name.  Use the variable name instead.
43068         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
43069         Likewise.
43070
43071 2005-06-28  Simon Josefsson  <jas@extundo.com>
43072
43073         * modules/check-version (Files): Add check-version.m4.
43074
43075 2005-06-28  Simon Josefsson  <jas@extundo.com>
43076
43077         * m4/check-version.m4: New file, suggested by Jim Meyering
43078         <jim@meyering.net>.
43079
43080 2005-06-28  Simon Josefsson  <jas@extundo.com>
43081
43082         * lib/check-version.h, lib/check-version.c: New files.
43083
43084 2005-06-28  Simon Josefsson  <jas@extundo.com>
43085
43086         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
43087         collision with global variable.  Better indentation.  Don't
43088         increment buffer pointer beyond buffer end.  Based on comments
43089         from Paul Eggert <eggert@cs.ucla.edu>.
43090
43091         * lib/base64.h: Indent.
43092
43093 2005-06-28  Simon Josefsson  <jas@extundo.com>
43094
43095         * doc/gnulib.texi (Library version handling): New section.
43096
43097 2005-06-28  Jim Meyering  <jim@meyering.net>
43098
43099         * check-module (find_included_lib_files): Hard-code another
43100         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
43101         but modules/fts-lgpl (correctly) does not list those files.
43102
43103         * modules/canonicalize (Files): Add lib/pathmax.h.
43104
43105 2005-06-25  Simon Josefsson  <jas@extundo.com>
43106
43107         * modules/check-version: New file.
43108
43109 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
43110
43111         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
43112         initializer of struct addrinfo, as an indication that we don't
43113         care how many members the structure has.
43114
43115 2005-06-24  Derek Price  <derek@ximbiot.com>
43116         and Bruno Haible  <bruno@clisp.org>
43117
43118         Remove stat module & update lstat.
43119         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
43120         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43121         * m4/stat.m4: Remove this file.
43122
43123 2005-06-24  Derek Price  <derek@ximbiot.com>
43124         and Bruno Haible  <bruno@clisp.org>
43125
43126         Remove stat module & update lstat.
43127         * lib/stat.c: Remove this file...
43128         (slash_aware_lstat): ...moving this content and its support...
43129         * lib/lstat.c (rpl_lstat): ...into here.
43130         * lib/lstat.h: New file.
43131
43132 2005-06-24  Derek Price  <derek@ximbiot.com>
43133         and Bruno Haible  <bruno@clisp.org>
43134
43135         Remove stat module & update lstat.
43136         * config/srclist.txt (libc sources): Remove stat.
43137
43138 2005-06-24  Derek Price  <derek@ximbiot.com>
43139         and Bruno Haible  <bruno@clisp.org>
43140
43141         Remove stat module & update lstat.
43142         * MODULES.html.sh (stat): Remove.
43143         * MODULES.html: Regenerated.
43144         * modules/lstat (Description): Correct function name.
43145         (Files): Add "lstat.h".
43146         (Depends-on): Remove stat, add xalloc, stat-macros.
43147         * modules/stat: Remove this file.
43148         (Include): Add "lstat.h", remove <sys/stat.h>.
43149
43150 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43151
43152         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
43153         (ranged_convert): Don't save conversion in a temporary struct.
43154         This causes a warning with GCC 4.0.0, and anyway in the typical
43155         case it's not worth the extra 100 bytes or so of code.
43156         (ranged_convert, __mktime_internal): When calling a function via a
43157         pointer P, use P () rather than (*P) (), as we now assume C89 or
43158         better.
43159
43160 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43161
43162         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
43163         "who -r" failed to give output.  Problem reported by Tim Waugh.
43164
43165         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
43166         (xcalloc): Use it to avoid needless tests.
43167         Problem reported by Jim Meyering.
43168
43169 2005-06-20  Derek Price  <derek@ximbiot.com>
43170
43171         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
43172         unnecessary for Autoconfs > 2.59c.
43173
43174 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43175
43176         * lib/argp.h (__option_is_short): Check upper limit of
43177         __key. Isprint() requires its argument to have the value
43178         of an unsigned char or EOF.
43179
43180 2005-06-16  Jim Meyering  <jim@meyering.net>
43181
43182         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
43183         when either N or S is zero.
43184
43185 2005-06-16  Derek Price  <derek@ximbiot.com>
43186
43187         * m4/bison.m4: Declare YACC & YFLAGS precious.
43188
43189 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
43190
43191         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
43192         multibyte string or pattern, fall back on unibyte matching.
43193         Problem reported by James Youngman.
43194
43195 2005-06-08  Bruno Haible  <bruno@clisp.org>
43196
43197         * modules/csharpcomp: New file.
43198         * MODULES.html.sh (C#): Add csharpcomp.
43199
43200 2005-06-08  Bruno Haible  <bruno@clisp.org>
43201
43202         * m4/csharpcomp.m4: New file, from GNU gettext.
43203
43204 2005-06-08  Bruno Haible  <bruno@clisp.org>
43205
43206         * lib/csharpcomp.h: New file, from GNU gettext.
43207         * lib/csharpcomp.c: New file, from GNU gettext.
43208         * lib/csharpcomp.sh.in: New file, from GNU gettext.
43209
43210 2005-06-08  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
43213         warning on mingw.
43214
43215 2005-06-07  Derek Price  <derek@ximbiot.com>
43216
43217         Sync from CVS.
43218         * lib/glob_.h: Indent nested #ifdef.
43219
43220 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43221
43222         Sync from coreutils.
43223         Use "file name" when talking about file names, instead of "filename"
43224         or "path", as per the GNU coding standards.
43225         * lib/mkdir-p.c: Renamed from makepath.c.
43226         (make_dir_parents): Renamed from make_path.  All callers changed.
43227         * lib/mkdir-p.h: Likewise.  All includers changed.
43228         * lib/filenamecat.c: Renamed from path-concat.c.
43229         (file_name_concat): Renamed from path_concat.  All callers changed.
43230         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
43231         * lib/filenamecat.h: Likewise.  All includers changed.
43232         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
43233         in comments or local variable names.
43234         * lib/basename.c: Likewise.
43235         * lib/canonicalize.c, canonicalize.h: Likewise.
43236         * lib/dirname.c, dirname.h: Likewise.
43237         * lib/euidaccess.c: Likewise.
43238         * lib/exclude.c: Likewise
43239         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
43240         * lib/fsusage.c, fsuage.h: Likewise.
43241         * lib/fts.c, fts_.h: Likewise.
43242         * lib/getcwd.c: Likewise.
43243         * lib/getloadavg.c: Likewise.
43244         * lib/mkstemp.c: Likewise.
43245         * lib/mountlist.c, mountlist.h: Likewise.
43246         * lib/openat.c, openat.h: Likewise.
43247         * lib/readlink-stub.c: Likewise.
43248         * lib/readutmp.c, readutmp.h: Likewise.
43249         * lib/rename.c: Likewise.
43250         * lib/rmdir.c: Likewise.
43251         * lib/same.c: Likewise.
43252         * lib/savedir.c: Likewise.
43253         * lib/stripslash.c: Likewise.
43254         * lib/tempname.c: Likewise.
43255         * lib/xreadlink.c: Likewise.
43256         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
43257         All uses changed.
43258         * lib/exclude.h: Likewise.
43259
43260         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
43261         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
43262         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
43263         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
43264         * lib/pathmax.h: Include <limits.h> unconditionally, since other
43265         files have been getting away with it for years (MORE/BSD 4.3
43266         is extinct now).
43267         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
43268         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
43269
43270         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
43271         Define to 256, not 255, as per modern POSIX.
43272
43273 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43274
43275         Sync from coreutils.
43276         Use "file name" when talking about file names, instead of "filename"
43277         or "path", as per the GNU coding standards.
43278         * MODULES.html.sh: mkdir-p renamed from makepath.
43279         filenamecat renamed from path-concat.
43280         * modules/filenamecat: Renamed from modules/path-concat.
43281         (Files): filenamecat.h and filenamecat.c renamed from
43282         path-concat.h and path-concat.c.
43283         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
43284         (Include): filenamecat.h, not path-concat.h.
43285         * modules/mkdir-p: Renamed from modules/makepath.
43286         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
43287         makepath.c.
43288         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
43289         (Include): mkdir-p.h, not makepath.h.
43290
43291 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43292
43293         Sync from coreutils.
43294         * m4/mkdir-p.m4: Renamed from makepath.m4.
43295         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
43296         Rename files from makepath.c to mkdir-p.c, and from
43297         makepath.h to mkdir-p.h.
43298         * m4/filenamecat.m4: Renamed from path-concat.m4.
43299         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
43300         Rename files from path-concat.c to filenamecat.c,
43301         and from path-concat.h to filenamecat.h.
43302         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
43303         "file name" in local variables or comments.
43304         * m4/rename.m4: Likewise.
43305
43306 2005-06-01  Bruno Haible  <bruno@clisp.org>
43307
43308         * modules/csharpexec: New file.
43309         * MODULES.html.sh (C#): New section.
43310
43311 2005-06-01  Bruno Haible  <bruno@clisp.org>
43312
43313         * m4/csharp.m4: New file, from GNU gettext.
43314         * m4/csharpexec.m4: New file, from GNU gettext.
43315
43316 2005-06-01  Bruno Haible  <bruno@clisp.org>
43317
43318         * lib/csharpexec.h: New file, from GNU gettext.
43319         * lib/csharpexec.c: New file, from GNU gettext.
43320         * lib/csharpexec.sh.in: New file, from GNU gettext.
43321
43322 2005-05-31  Derek Price  <derek@ximbiot.com>
43323             Paul Eggert  <eggert@cs.ucla.edu>
43324
43325         Sync from cvs.
43326         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
43327
43328 2005-05-31  Derek Price  <derek@ximbiot.com>
43329             Paul Eggert  <eggert@cs.ucla.edu>
43330
43331         Sync from cvs.
43332         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
43333
43334 2005-05-29  Derek Price  <derek@ximbiot.com>
43335
43336         * config/srclist.txt (glob_.h, glob.c): Add these files.
43337
43338 2005-05-29  Derek Price  <derek@ximbiot.com>
43339
43340         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
43341         * modules/glob: New file.
43342         * modules/getlogin_r: Add link to POSIX spec in description.
43343
43344 2005-05-29  Derek Price  <derek@ximbiot.com>
43345             Paul Eggert  <eggert@cs.ucla.edu>
43346
43347         * m4/glob.m4: New file.
43348
43349 2005-05-29  Derek Price  <derek@ximbiot.com>
43350             Paul Eggert  <eggert@cs.ucla.edu>
43351
43352         * lib/glob_.h, lib/glob.c: New files.
43353
43354 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
43355
43356         * modules/fts (Files): Remove m4/inttypes-pri.m4.
43357         * modules/fts-lgpl (Depends-on): Remove gettext.
43358
43359 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
43360
43361         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
43362         and don't require gt_INTTYPES_PRI.
43363
43364 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
43365
43366         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
43367
43368         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
43369         the configuration hassle isn't worth it.
43370         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
43371         (LONGEST_MODIFIER, PRIuMAX): Remove.
43372
43373 2005-05-27  Bruno Haible  <bruno@clisp.org>
43374
43375         * lib/getlogin_r.h: Remove second include of <stddef.h>.
43376
43377 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
43378
43379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
43380         _POSIX_PTHREAD_SEMANTICS for Solaris.
43381
43382 2005-05-25  Derek Price  <derek@ximbiot.com>
43383
43384         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
43385
43386 2005-05-25  Derek Price  <derek@ximbiot.com>
43387             Paul Eggert  <eggert@cs.ucla.edu>
43388
43389         * modules/getlogin_r, m4/getlogin_r.m4: New files.
43390         * lib/getlogin_r.c, getlogin_r.h: New files.
43391
43392 2005-05-25  Bruno Haible  <bruno@clisp.org>
43393             Derek Price  <derek@ximbiot.com>
43394
43395         * lib/getlogin_r.h: Simplify API documentation.
43396
43397 2005-05-23  Derek Price  <derek@ximbiot.com>
43398
43399         * modules/minmax (Files): Add m4/minmax.m4.
43400         (configure.ac): Add gl_MINMAX.
43401
43402 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
43403
43404         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
43405         so that unistd-safer.h (GPL'ed code) need not be included.
43406
43407 2005-05-22  Bruno Haible  <bruno@clisp.org>
43408
43409         * m4/minmax.m4: New file.
43410         Based on a patch by Derek Price <derek@ximbiot.com>.
43411
43412 2005-05-22  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
43415         (INT64_MIN): Fix definition.
43416         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
43417
43418         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
43419         NEED_SIGNED_INT_TYPES.
43420
43421         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
43422         HAVE_SYSTEM_INTTYPES.
43423
43424 2005-05-22  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
43427         Also include <sys/param.h> if it defines MIN, MAX.
43428         Based on a patch by Derek Price <derek@ximbiot.com>.
43429
43430 2005-05-21  Jim Meyering  <jim@meyering.net>
43431
43432         * modules/fts (Files): Add m4/inttypes-pri.m4.
43433         (Depends-on): Add lstat and remove gettext.  Alphabetize.
43434
43435 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43436
43437         New fts module.
43438         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
43439         (setup_dir, free_dir): New functions.
43440         (enter_dir, leave_dir): Define trivial
43441         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
43442         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
43443         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
43444         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
43445         Move to fts-cycle.c.
43446         (fts_open): Use setup_dir.
43447         (fts_close): Use free_dir.
43448         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
43449         This adds a label and some gotos, but the alternatives were messier.
43450         Check for memory allocation failure when entering a dir.
43451         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
43452         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
43453         (FTS): New member fts_cycle, that is a union that contains the
43454         old active_dir_ht and cycle_state.  All uses changed to mention
43455         fts_cycle.ht and fts_cycle.state.
43456         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
43457         fts.c, with the following changes:
43458         (setup_dir, free_dir): New functions.
43459         (enter_dir): Now returns bool.  Return true if successful, false
43460         if memory exhausted.  All callers changed.
43461         Do not bother partly cleaning up on
43462         memory allocation failure; that is free_dir's job.
43463         However, free ad if hash_insert fails, to avoid memory leak.
43464         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
43465         fts->fts_options to see which union member to use.
43466
43467 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
43470         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
43471
43472 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43473
43474         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
43475
43476 2005-05-20  Jim Meyering  <jim@meyering.net>
43477
43478         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
43479         Now a macro, to pacify GCC.
43480
43481 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
43482
43483         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
43484         of -1.
43485
43486 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
43487
43488         * lib/chown.c (rpl_chown): Return -1 on failure.
43489
43490 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
43491
43492         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
43493         Don't check for stddef.h.
43494         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
43495         don't use its results.
43496         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
43497         since we include them unconditionally.  Don't require
43498         AM_STDBOOL_H, since stdbool is a prerequisite.
43499         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
43500         since we assume C89 or better.
43501         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
43502         as we don't use their results.
43503         Don't check for fchdir, memmove, memset, strrchr, as we use
43504         them unconditionally.
43505         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
43506         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
43507
43508 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
43509
43510         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
43511         Include <stddef.h> unconditionally, since we assume C89 now.
43512         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
43513         * lib/fts.c: Include fts_.h first, to check interface.
43514         Do not include intprops.h; no longer needed.
43515         Include cycle-check.h and hash.h, since fts_.h no longer does.
43516         Remove unnecessary casts of closedir to void.
43517         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
43518         decide whether to decrement nlinks.
43519         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
43520         (FTS): Use struct hash_table * instead of Hash_table, so that
43521         we no longer need to include hash.h here.
43522
43523 2005-05-18  Jim Meyering  <jim@meyering.net>
43524
43525         * modules/dirfd (License): Change to LGPL.  Most of the code
43526         is already in the public domain.
43527
43528 2005-05-18  Jim Meyering  <jim@meyering.net>
43529
43530         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
43531         Reported by Yoann Vandoorselaere.
43532
43533 2005-05-17  Jim Meyering  <jim@meyering.net>
43534
43535         * m4/fts.m4: New file, from coreutils.
43536
43537 2005-05-17  Jim Meyering  <jim@meyering.net>
43538
43539         * lib/fts.c, lib/fts_.h: New files, from coreutils.
43540
43541 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43542
43543         Sync from coreutils.
43544         * m4/unlinkdir.m4: New file.
43545
43546 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43547
43548         Sync from coreutils.
43549         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
43550         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
43551         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
43552         White space changes only.
43553         * lib/makepath.c (make_path): Port to hosts where leading "//" is
43554         special.
43555         * lib/yesno.c: Include getline.h, not ctype.h.
43556         (yesno): Don't remove leading white space; POSIX doesn't allow it.
43557         Use getline to remove arbitrary restriction on response length.
43558
43559 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43560
43561         * config/srclist-update: Spell out "Street" in FSF postal
43562         mail address; this is the style the FSF seems to prefer.
43563
43564         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
43565         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
43566         this updates FSF postal mail address.
43567
43568         Sync from coreutils.
43569         * modules/unlinkdir: New file.
43570         * modules/yesno (Depends-on): Add getline.
43571         * MODULES.html.sh (File system functions): Add unlinkdir.
43572
43573 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43574
43575         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
43576         lib/strsep.h:
43577         Change the initial comment to refer to GPL, not LGPL.
43578         gnulib-tool will change it to LGPL as needed.
43579
43580         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
43581         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
43582         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
43583         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
43584         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
43585         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
43586         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
43587         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
43588         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
43589         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
43590         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
43591         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
43592         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
43593         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
43594         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
43595         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
43596         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
43597         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
43598         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
43599         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
43600         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
43601         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
43602         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
43603         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
43604         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
43605         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
43606         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
43607         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
43608         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
43609         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
43610         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
43611         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
43612         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
43613         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
43614         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
43615         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
43616         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
43617         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
43618         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
43619         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
43620         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
43621         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
43622         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
43623         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
43624         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
43625         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
43626         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
43627         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
43628         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
43629         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
43630         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43631         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
43632         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
43633         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
43634         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
43635         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
43636         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
43637         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
43638         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
43639         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
43640         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
43641         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
43642         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
43643         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
43644         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
43645         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
43646         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
43647         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
43648         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
43649         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
43650         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
43651         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
43652         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
43653         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
43654         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
43655         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
43656         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
43657         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
43658         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
43659         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
43660         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
43661         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
43662         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
43663         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
43664         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
43665         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
43666         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
43667         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
43668         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
43669         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
43670         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
43671         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
43672         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
43673         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
43674         lib/yesno.c, lib/yesno.h:
43675         Update FSF postal mail address.
43676
43677 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43678
43679         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
43680         tests/test-memmem.c, tests/test-stpncpy.c:
43681         Update FSF postal mail address.
43682
43683 2005-05-13  Bruno Haible  <bruno@clisp.org>
43684
43685         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
43686         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
43687         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
43688         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
43689         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
43690         Add support for 64-bit integers in the MSVC compiler.
43691
43692 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43693
43694         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
43695
43696 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
43697
43698         * gnulib-tool (func_import): Sort and uniquify recommended includes.
43699
43700 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
43701
43702         * doc/getdate.texi (General date syntax): Don't say that date
43703         date --iso-8601=ns generates acceptable dates; it doesn't yet.
43704         Problem reported by Nic Ferrier.
43705
43706 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43707
43708         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
43709         specified in ai_socktype. Fix invalid ai_protocol
43710         check. ai_protocol is usually set to 0 or depending on
43711         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
43712         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
43713         ai_socktype / ai_protocol in the returned addrinfo structure.
43714
43715 2005-05-10  Simon Josefsson  <jas@extundo.com>
43716
43717         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
43718         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43719
43720 2005-05-10  Karl Berry  <karl@gnu.org>
43721
43722         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
43723         (from http://www.gnu.org/licenses).
43724         * doc/COPYING.LIB: also rename to COPYING.LESSER.
43725         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
43726         fdl.texi suffices.
43727
43728 2005-05-10  Karl Berry  <karl@gnu.org>
43729
43730         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
43731         (COPYING.DOC): remove.
43732
43733         * config/srclist-update: new FSF address.
43734
43735 2005-05-10  Derek Price  <derek@ximbiot.com>
43736
43737         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
43738         possible.
43739
43740 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43741             Bruno Haible  <bruno@clisp.org>
43742
43743         * modules/inet_ntop: New file.
43744         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43745         inet_ntop.
43746
43747 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43748             Bruno Haible  <bruno@clisp.org>
43749
43750         * m4/inet_ntop.m4: New file.
43751
43752 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43753             Bruno Haible  <bruno@clisp.org>
43754
43755         * lib/inet_ntop.h: New file.
43756         * lib/inet_ntop.c: New file, from glibc with modifications.
43757
43758 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
43759
43760         * modules/time_r (License): Change to LGPL.
43761         * modules/extensions (License): Change to LGPL.  Actually,
43762         the license is more permissive than that, but currently gnulib-tool
43763         doesn't know how to handle more-permissive licenses.
43764
43765         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
43766         Problem reported by Dave Love.
43767
43768 2005-05-08  Jim Meyering  <jim@meyering.net>
43769
43770         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
43771         blank.
43772
43773 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43774
43775         * modules/argmatch (Depends-on): Add stdbool.
43776         * modules/backupfile (Depends-on): Likewise.
43777         * modules/chdir-long (Depends-on): Likewise.
43778         * modules/closeout (Depends-on): Likewise.
43779         * modules/cycle-check (Depends-on): Likewise.
43780         * modules/dirname (Depends-on): Likewise.
43781         * modules/fnmatch (Depends-on): Likewise.
43782         * modules/fsusage (Depends-on): Likewise.
43783         * modules/fwriteerror (Depends-on): Likewise.
43784         * modules/getcwd (Depends-on): Likewise.
43785         * modules/getloadavg (Depends-on): Likewise.
43786         * modules/hard-locale (Depends-on): Likewise.
43787         * modules/makepath (Depends-on): Likewise.
43788         * modules/mountlist (Depends-on): Likewise.
43789         * modules/nanosleep (Depends-on): Likewise.
43790         * modules/posixtm (Depends-on): Likewise.
43791         * modules/quotearg (Depends-on): Likewise.
43792         * modules/readtokens (Depends-on): Likewise.
43793         * modules/readtokens0 (Depends-on): Likewise.
43794         * modules/readutmp (Depends-on): Likewise.
43795         * modules/save-cwd (Depends-on): Likewise.
43796         * modules/strftime (Depends-on): Likewise.
43797         * modules/userspec (Depends-on): Likewise.
43798         * modules/utimecmp (Depends-on): Likewise.
43799         * modules/xgetcwd (Depends-on): Likewise.
43800         * modules/xnanosleep (Depends-on): Likewise.
43801         * modules/xstrtod (Depends-on): Likewise.
43802         * modules/yesno (Depends-on): Likewise.
43803
43804 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
43805
43806         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
43807         needless checks.
43808
43809 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43810
43811         Merge from coreutils.  Among other things,
43812         add bulletproofing for cases where stdin, stdout, or stderr are closed.
43813         * lib/fd-safer.c: New file.
43814         * lib/fcntl-safer.h, open-safer.c: Remove.
43815         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
43816         * lib/dup-safer.c: Include unistd-safer.h first.
43817         Don't include errno.h.
43818         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
43819         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
43820         * lib/file-type.c: Rely on file-type.h change.
43821         * lib/getloadavg.c: Include unistd-safer.h.
43822         (getloadavg): Use safer open.
43823         * lib/getusershell.c: Include "stdio-safer.h".
43824         (getusershell): Use safer fopen.
43825         * lib/long-options.c (long_options): Use NULL rather than 0.
43826         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
43827         'free'.
43828         * lib/modechange.c: Likewise.
43829         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
43830         (MODE_DONE): New constant.
43831         (struct mode_change): Remove 'next' member.
43832         (make_node_op_equals): New function; like the old one of the
43833         same name, except it allocates an array.
43834         (mode_compile, mode_create_from_ref): Use it.
43835         (mode_compile): Allocate result as an array, not a linked list.
43836         Parse octal string ourself, so that we catch mistakes like "+0".
43837         (mode_adjust): Arg is an array, not a linked list.
43838         * lib/modechange.c: Include stat-macros.h, xalloc.h.
43839         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
43840         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
43841         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
43842         Remove.  This is now stat-macros.h's job.
43843         (talloc): Remove.  All callers replaced by xalloc, so that
43844         our invokers don't have to worry about reporting memory failures.
43845         (make_node_op_equals): Remove.
43846         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43847         New constants.
43848         (struct mode_change): Moved here from modechange.h.
43849         (mode_append_entry): Remove.
43850         (mode_compile): Remove MASKED_OPS arg, since it encouraged
43851         apps to have incorrect behavior.  Use simpler algorithm for head
43852         and tail.  Don't futz with umask; that's now the job of mode_adjust.
43853         Detect more invalid usages rather than having somewhat-random behavior.
43854         Don't insert an "a=" action, as that leads to incorrect behavior.
43855         (mode_compile, mode_create_from_ref): Return NULL on error instead
43856         of an enum, since now there's only one way to have an error.  All
43857         callers changed.
43858         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
43859         at the correct time.  Simplify calculation of "+u" and its ilk.
43860         Don't mishandle "+X".
43861         (mode_free): Remove "register" and localize decls.
43862         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43863         (struct mode_change): Move to modechange.c; callers don't
43864         need to see this stuff.
43865         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
43866         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
43867         (mode_change, mode_adjust): Reflect the new signatures noted above.
43868         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
43869         that might redefine system include files.
43870         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
43871         (my_usleep): Use NULL rather than (void *) 0.
43872         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
43873         Use siginterrupt to specify that system calls should be interrupted.
43874         (rpl_nanosleep): Move initialization of suspended closer to call of
43875         my_usleep.
43876         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
43877         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
43878         (desirable_utmp_entry): New function.
43879         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
43880         using x2nrealloc, to simplify logic.
43881         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
43882         size calculation.  Do not assume utmp file is a regular file.
43883         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
43884         (READ_UTMP_CHECK_PIDS): New constant.
43885         * lib/save-cwd.c: Include unistd-safer.h.
43886         (save_cwd): Use fd_safer.
43887         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
43888         [!_LIBC] Include "stat-macros.h" instead.
43889         * lib/unistd-safer.h (fd_safer): New decl.
43890
43891 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43892
43893         * modules/getloadavg (Depends-on): Add unistd-safer.
43894         * modules/getusershell (Depends-on): Add stdio-safer.
43895         * modules/lstat (Depends-on): Remove xalloc.
43896         * modules/mkstemp (Depends-on): Add stat-macros.
43897         * modules/modechange (Depends-on): Remove xstrtol.
43898         Add stat-macros, xalloc.
43899         * modules/save-cwd (Depends-on): Add unistd-safer.
43900         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
43901         * modules/unistd-safer (Files): Add lib/fd-safer.c
43902         (Makefile.am): Remove lib_SOURCES.
43903
43904         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
43905         Remove fcntl-safer; unistd-safer supersedes it.
43906
43907 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43908
43909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
43910         AC_HEADER_STAT.
43911         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
43912         (gl_PREREQ_CHOWN): Remove.
43913         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
43914         it.  Don't require AC_HEADER_STAT.
43915         (gl_PREREQ_LSTAT): Remove.
43916         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
43917         Don't require AC_HEADER_STAT.
43918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
43919         (gl_PREREQ_RMDIR): Remove.
43920         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
43921         mention stat-macros.h or AC_HEADER_STAT, since we'll make
43922         the stat-macros module a prerequisite.
43923         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
43924         * m4/filemode.m4 (gl_FILEMODE): Likewise.
43925         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
43926         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
43927         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
43928         variable names.
43929         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
43930         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
43931         variable prefixes.
43932         * m4/fcntl-safer.m4: Remove.
43933         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
43934         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
43935         Invoke gl_PREREQ_FD_SAFER.
43936         (gl_PREREQ_FD_SAFER): New macro.
43937         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
43938         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
43939         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
43940         Remove duplicate call to AC_LIBOBJ(readutmp).
43941         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
43942
43943         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
43944         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
43945
43946 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43947
43948         * MODULES.html.sh (Misc): Add byteswap.
43949
43950 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43951
43952         * modules/getcwd (Depends-on): Add extensions.
43953         * modules/openat (Depends-on): Likewise.
43954
43955 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43956
43957         * modules/byteswap: New file.
43958
43959 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43960
43961         * m4/byteswap.m4: New file.
43962
43963 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43964
43965         * lib/byteswap_.h: New file.
43966
43967 2005-04-25  Karl Berry  <karl@gnu.org>
43968
43969         * m4/gettext.m4: Update from GNU gettext 0.14.4.
43970
43971 2005-04-25  Albert Chin  <china@thewrittenword.com>
43972
43973         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
43974         Toolkit C bug.
43975
43976 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
43977
43978         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
43979         (func_ln_if_changed) Remove forcibly for no error message
43980         in case file does not exist.
43981
43982 2005-04-19  Simon Josefsson  <jas@extundo.com>
43983
43984         * gnulib-tool (Options): Make --symlink mean --symbolic.
43985
43986 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
43987
43988         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
43989
43990 2005-04-16  Simon Josefsson  <jas@extundo.com>
43991
43992         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
43993
43994 2005-04-15  Simon Josefsson  <jas@extundo.com>
43995
43996         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
43997
43998 2005-04-15  Simon Josefsson  <jas@extundo.com>
43999
44000         * gnulib-tool: Rename --symlink to --symbolic.
44001
44002 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
44003
44004         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
44005         symbolic links to files instead of copying/moving.  Add --aux-dir,
44006         specifying directory relative --dir where auxiliary build tools
44007         are placed.
44008
44009 2005-04-14  Bruno Haible  <bruno@clisp.org>
44010
44011         * modules/allocsa (License): Change to LGPL.
44012         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44013
44014 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44015
44016         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
44017         that "UTC +1 second" continues to work.  Problem reported
44018         by Dmitry V. Levin.
44019         (relunit_snumber): New rule.
44020         (relunit): Use it.
44021
44022 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44023
44024         * lib/getdate.y (universal_time_zone_table): New constant.
44025         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
44026         universal_time_zone_table.
44027         (lookup_zone): Prefer universal_time_zone_table to
44028         local_time_zone_table, so that "GMT" time stamps are allowed in
44029         London during the summer.  Problem reported by Ian Abbott.
44030
44031 2005-04-12  Jim Meyering  <jim@meyering.net>
44032
44033         * lib/human.c (humblock): Set *options even when returning due to
44034         xstrtoumax conversion failure.  Thanks to a used-uninitialized
44035         warning from gcc-4.
44036
44037 2005-04-09  Jim Meyering  <jim@meyering.net>
44038
44039         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
44040         -Wuninitialized: initialize tm0.tm_year.
44041
44042 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
44043
44044         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
44045         count, since there's no maximum.  All uses changed.
44046         Add member dsts_seen.
44047         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
44048         not being INT_MAX.
44049         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
44050         Use pc_rels_seen to decide whther a date is absolute.
44051
44052         * lib/getdate.y (number): Don't overwrite year.
44053         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
44054         check.
44055
44056 2005-04-02  Simon Josefsson  <jas@extundo.com>
44057
44058         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
44059         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
44060
44061 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
44062
44063         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
44064         where no absolute path name can be longer than PATH_MAX.
44065
44066 2005-03-27  Jim Meyering  <jim@meyering.net>
44067
44068         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
44069
44070 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
44071
44072         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
44073         "one's complement" -> "ones' complement" in comment, as per Knuth.
44074         "value of type" -> "type or expression" in comment.
44075         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
44076
44077 2005-03-26  Jim Meyering  <jim@meyering.net>
44078
44079         Comment nits.
44080         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
44081         Correct typos: s/or/of/.
44082
44083 2005-03-26  Jim Meyering  <jim@meyering.net>
44084
44085         * modules/check-include-files: Move to ../ and rename to...
44086         * check-module: ...this.
44087
44088 2005-03-25  Jim Meyering  <jim@meyering.net>
44089
44090         * modules/xvasprintf (Files): Add xalloc.h.
44091
44092 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44093
44094         * modules/gettext (Files): config/config.rpath ->
44095         build-aux/config.rpath
44096         * modules/iconv (Files): Likewise.
44097         Problem reported by Oskar Liljeblad.
44098
44099 2005-03-23  Jim Meyering  <jim@meyering.net>
44100
44101         * modules/check-include-files: New script to check for
44102         missing dependencies, multiple includes, etc.
44103
44104         * modules/c-strtold (Depends-on): Add xalloc.
44105         * modules/c-strtod (Depends-on): Add xalloc.
44106         * modules/hash (Depends-on): Add xalloc.
44107         (Files): Remove lib/xalloc.h.
44108
44109         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
44110         * modules/userspec (Files): Add lib/inttostr.h.
44111
44112 2005-03-23  Jim Meyering  <jim@meyering.net>
44113
44114         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
44115
44116 2005-03-22  Jim Meyering  <jim@meyering.net>
44117
44118         * modules/stat-macros: New module.
44119         * modules/canonicalize, modules/euidaccess, modules/file-type,
44120         * modules/filemode, modules/lchown, modules/makepath,
44121         * modules/rmdir, modules/stat: Depend on new stat-macros module
44122         rather than listing lib/stat-macros.h manually.
44123         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
44124
44125 2005-03-22  Jim Meyering  <jim@meyering.net>
44126
44127         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
44128
44129 2005-03-22  Bruno Haible  <bruno@clisp.org>
44130
44131         * config/srclist.txt: Replace target directory 'config' with
44132         'build-aux'.
44133         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
44134         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
44135         ../build-aux/.
44136
44137 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
44138
44139         * modules/chdir-long (Depends-on): Add mempcpy.
44140
44141         * modules/acl, modules/backupfile, modules/c-strtod,
44142         modules/c-strtold, modules/canon-host, modules/canonicalize,
44143         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
44144         modules/exclude, modules/exitfail, modules/file-type,
44145         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
44146         modules/getdate, modules/getline, modules/getpagesize,
44147         modules/getpass, modules/getugroups, modules/group-member,
44148         modules/hard-locale, modules/hash, modules/human, modules/idcache,
44149         modules/inttostr, modules/long-options, modules/makepath,
44150         modules/md5, modules/memcasecmp, modules/memcoll,
44151         modules/modechange, modules/mountlist, modules/path-concat,
44152         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
44153         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
44154         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
44155         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
44156         modules/strftime, modules/strndup, modules/strverscmp,
44157         modules/timespec, modules/unlocked-io, modules/userspec,
44158         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
44159         modules/yesno:
44160         Remove lib_SOURCES line from Makefile.am section, as this is now
44161         done automatically by the corresponding Autoconf macro.
44162
44163 2005-03-21  Jim Meyering  <jim@meyering.net>
44164
44165         Changes imported from coreutils.
44166
44167         * lib/cycle-check.c: Don't include xalloc.h.
44168
44169         * lib/path-concat.c: Don't include assert.h.
44170         (path_concat): Remove assertion that would have triggered
44171         for ABASE starting with more than one slash.
44172         Reported by Andreas Schwab.
44173
44174         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
44175         properly when ABASE is an absolute file name.
44176         Correct the description of this function.
44177         Include <assert.h>.
44178         Add an assertion and a test driver.
44179         This fixes a bug introduced on 2004-07-02.
44180         Andreas Schwab reported the resulting failure of cp --parents:
44181         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
44182
44183 2005-03-21  Jim Meyering  <jim@meyering.net>
44184
44185         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
44186         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
44187
44188 2005-03-21  Jim Meyering  <jim@meyering.net>
44189         and  Paul Eggert  <eggert@cs.ucla.edu>
44190
44191         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
44192         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
44193         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
44194         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
44195         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
44196         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
44197         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
44198         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
44199         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
44200         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
44201         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
44202         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
44203         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
44204         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
44205         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
44206         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
44207         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
44208         for these modules.
44209
44210 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
44211
44212         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
44213         (which shouldn't happen), generate nothing instead of returning 0
44214         immediately, so that nstrftime (NULL, ...) doesn't return 0.
44215
44216 2005-03-16  Bruno Haible  <bruno@clisp.org>
44217
44218         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
44219         HAVE_LONGLONG_64BIT.
44220
44221 2005-03-16  Bruno Haible  <bruno@clisp.org>
44222
44223         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
44224         HAVE_LONGLONG_64BIT.
44225
44226 2005-03-16  Bruno Haible  <bruno@clisp.org>
44227
44228         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
44229         HAVE_LONGLONG_64BIT.
44230
44231 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
44232
44233         * lib/strftime.c (my_strftime): Prepend space to format so that we can
44234         reliably distinguish strftime failure from empty output on POSIX
44235         hosts.
44236
44237 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
44238
44239         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
44240         (iconv_string): Don't guess a size-zero buffer, as that might cause
44241         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
44242         result would be 'too large', where 'too large' is (heuristically)
44243         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
44244         overflow concerns.  This will prevent some unwanted malloc failures
44245         when the inputs are very large.
44246
44247 2005-03-15  Karl Berry  <karl@gnu.org>
44248
44249         * config/srclist.txt (config.rpath): from gettext.
44250         * config/config.rpath: update.
44251
44252 2005-03-15  Bruno Haible  <bruno@clisp.org>
44253
44254         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
44255         to 'negate'.
44256
44257         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
44258         variable.
44259
44260         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
44261         results.
44262
44263 2005-03-14  Simon Josefsson  <jas@extundo.com>
44264
44265         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
44266         <fx@gnu.org>.
44267
44268 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
44269
44270         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
44271         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
44272         intprops.h.
44273         * lib/strtol.c: Likewise.
44274
44275 2005-03-14  Jim Meyering  <jim@meyering.net>
44276
44277         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
44278         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
44279         to be nonzero so that we (and caller) can detect the difference
44280         between a valid zero-length expansion and an error return, even
44281         when the underlying strftime fails before writing anything into
44282         that location.
44283
44284 2005-03-14  Bruno Haible  <bruno@clisp.org>
44285
44286         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
44287         Update from GNU gettext 0.14.3.
44288
44289 2005-03-10  Jim Meyering  <jim@meyering.net>
44290
44291         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
44292
44293 2005-03-10  Jim Meyering  <jim@meyering.net>
44294
44295         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
44296         so that this module works on systems without fchdir.
44297
44298 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
44299
44300         Factor int-properties macros into a single file, except for
44301         glibc-related files.
44302         * lib/intprops.h: New file.
44303         * lib/getloadavg.c: Include it instead of limits.h.
44304         (INT_STRLEN_BOUND): Remove.
44305         * lib/human.c: Include intprops.h.
44306         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
44307         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
44308         302/1000.
44309         * lib/inttostr.h: Include intprops.h instead of limits.h.
44310         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
44311         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
44312         for consistency with intprops.h.
44313         (time_t_is_integer, twos_complement_arithmetic): Use them.
44314         * lib/sig2str.h: Include <signal.h>, intprops.h.
44315         (INT_STRLEN_BOUND): Remove.
44316         * lib/strftime.c (TYPE_SIGNED): Remove.
44317         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
44318         * lib/strtol.c: Adjust comments to match intprops.h.
44319         * lib/userspec.c: Include intprops.h.
44320         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
44321         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
44322         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
44323         instead of rolling our own expressions.
44324         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
44325
44326         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
44327         instead of int.
44328         (my_strftime): Do not mishandle years close to INT_MAX, by doing
44329         the right thing even if adding 1900 would overflow.  Similarly
44330         for tm_mon + 1 and tm_yday + 1.
44331         Make %Y always equivalent to %C%y, and similarly for %G and %g.
44332         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
44333         (DO_SIGNED_NUMBER): New macro.
44334         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
44335
44336 2005-03-07  Bruno Haible  <bruno@clisp.org>
44337
44338         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
44339
44340 2005-03-07  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
44343
44344 2005-03-04  Derek R. Price  <derek@ximbiot.com>
44345
44346         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
44347         (func_import): Only replace files via --import when they have actually
44348         changed.
44349
44350 2005-03-03  Derek R. Price  <derek@ximbiot.com>
44351
44352         * m4/mmap-anon.m4: New file.
44353         * m4/pagealign_alloc.m4: New file.
44354
44355 2005-03-03  Derek R. Price  <derek@ximbiot.com>
44356             Bruno Haible  <bruno@clisp.org>
44357
44358         * modules/pagealign_alloc: New file.
44359         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
44360
44361 2005-03-03  Derek R. Price  <derek@ximbiot.com>
44362             Bruno Haible  <bruno@clisp.org>
44363
44364         * lib/pagealign_alloc.h: New file.
44365         * lib/pagealign_alloc.c: New file.
44366
44367 2005-03-03  Bruno Haible  <bruno@clisp.org>
44368
44369         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
44370         Use an all-permissive copyright notice, recommended by RMS.
44371
44372 2005-03-02  Bruno Haible  <bruno@clisp.org>
44373
44374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
44375         of AIX, the replacement has to be done only after <string.h> is
44376         included, therefore not in config.h. stpncpy.h does the replacement,
44377         and stpncpy.c uses it.
44378
44379 2005-03-02  Bruno Haible  <bruno@clisp.org>
44380
44381         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
44382         stpncpy.c uses it.
44383
44384 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
44387         The workaround isn't strictly needed for POSIX conformance, and
44388         it's too much of a pain to configure and maintain.  We'll ask
44389         people to fix their kernels instead.
44390         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
44391         (NANOSLEEP_BUG_WORKAROUND): Remove.
44392         (xnanosleep): Remove the workaround.
44393
44394 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44395
44396         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
44397         Reported by Derek Price.
44398         (Include): Add "timespec.h".
44399
44400         * modules/xnanosleep (Depends-on): Remove gethrxtime.
44401
44402 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44403
44404         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
44405         to detect nanosleep bug.
44406
44407 2005-03-01  Bruno Haible  <bruno@clisp.org>
44408
44409         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
44410
44411 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
44412
44413         * modules/gethrxtime: New file.
44414         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
44415         (Depends-on): Add gethrxtime.
44416         (configure.ac): Add gl_XNANOSLEEP.
44417         (Makefile.am): Remove lib_SOURCES line.
44418
44419 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44420
44421         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
44422         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
44423
44424 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44425
44426         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
44427         * lib/timespec.h (gettime): Return void, since it always
44428         succeeds now.  All uses changed.
44429         * lib/gettime.c (gettime) Likewise.
44430         [HAVE_NANOTIME]: Prefer nanotime.
44431         Assume gettimeofday succeeds, as POSIX requires.
44432         Assime time () succeeds, since other code already does.
44433         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
44434         (timespec_subtract): Remove.
44435         (NANOSLEEP_BUG_WORKAROUND): New constant.
44436         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
44437         things considerably.  Use it only on GNU/Linux hosts, since the
44438         workaround shouldn't be needed elsewhere.
44439
44440 2005-02-24  Bruno Haible  <bruno@clisp.org>
44441
44442         * modules/gettext (Files): Add m4/glibc2.m4.
44443
44444 2005-02-24  Bruno Haible  <bruno@clisp.org>
44445
44446         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
44447         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
44448         * m4/progtest.m4:
44449         Update from GNU gettext 0.14.2.
44450         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
44451
44452 2005-02-24  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/localcharset.c: Update from GNU gettext 0.14.2.
44455         * lib/config.charset: Update from GNU gettext 0.14.2.
44456
44457 2005-02-24  Bruno Haible  <bruno@clisp.org>
44458
44459         * lib/gettext.h: Update from GNU gettext 0.14.2.
44460
44461 2005-02-23  Simon Josefsson  <jas@extundo.com>
44462
44463         * m4/iconvme.m4: New file.
44464
44465 2005-02-23  Jim Meyering  <jim@meyering.net>
44466
44467         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
44468         change.
44469         Thanks to Bruno Haible for catching it.
44470
44471 2005-02-22  Simon Josefsson  <jas@extundo.com>
44472
44473         * modules/iconvme: New file.
44474
44475         * MODULES.html.sh: Add iconvme.
44476
44477 2005-02-22  Simon Josefsson  <jas@extundo.com>
44478
44479         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
44480
44481 2005-02-22  Simon Josefsson  <jas@extundo.com>
44482
44483         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
44484
44485 2005-02-22  Jim Meyering  <jim@meyering.net>
44486
44487         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
44488         s/ifndef/ifdef/.
44489
44490 2005-02-20  Neil Conway  <neilc@samurai.com>
44491
44492         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
44493         returned by OSX/Darwin if the specified buffer is not large
44494         enough for the hostname.
44495
44496 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44497
44498         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
44499         pass it to _help, otherwise the latter coredumps trying to
44500         dereference state.root_argp.
44501
44502 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44503
44504         * modules/chdir-long (Depends-on): Add memrchr.
44505         * modules/memrchr (Files): Add lib/memrchr.h.
44506         (Include): "memrchr.h".
44507
44508 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44509
44510         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
44511
44512 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44513
44514         * lib/memrchr.h: New file.
44515         * lib/chdir-long.c: Include it.
44516         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
44517         Don't bother including stddef.h.
44518
44519 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
44522         inclusion.
44523         Include <sys/types.h>, for dev_t.
44524         (ME_DUMMY, ME_REMOTE): Move from here....
44525         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
44526         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
44527         Dmitry V. Levin.
44528         Include mountlist.h first, to test the interface.
44529
44530 2005-01-29  Bruno Haible  <bruno@clisp.org>
44531
44532         * lib/progname.c (program_name): Initialize.
44533         Needed when linking statically on MacOS X.
44534
44535 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         Sync from coreutils.
44538         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
44539         (Depends-on): Add c-strtod.
44540         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
44541
44542 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44543
44544         Sync from coreutils.
44545         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
44546
44547         Remove files that are specific to coreutils.
44548         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
44549
44550 2005-01-28  Bruno Haible  <bruno@clisp.org>
44551
44552         * modules/javacomp: New file.
44553         * MODULES.html.sh (Java): Add javacomp.
44554
44555 2005-01-28  Bruno Haible  <bruno@clisp.org>
44556
44557         * m4/javacomp.m4: New file, from GNU gettext.
44558
44559 2005-01-28  Bruno Haible  <bruno@clisp.org>
44560
44561         * lib/javacomp.sh.in: New file, from GNU gettext.
44562         * lib/javacomp.h: New file, from GNU gettext.
44563         * lib/javacomp.c: New file, from GNU gettext.
44564
44565 2005-01-26  Simon Josefsson  <jas@extundo.com>
44566
44567         * lib/gai_strerror.c: Use GPL in header.
44568
44569 2005-01-26  Bruno Haible  <bruno@clisp.org>
44570
44571         * modules/javaexec: New file.
44572         * MODULES.html.sh (Java): Add javaexec.
44573
44574 2005-01-26  Bruno Haible  <bruno@clisp.org>
44575
44576         * m4/javaexec.m4: New file, from GNU gettext.
44577
44578 2005-01-26  Bruno Haible  <bruno@clisp.org>
44579
44580         * lib/javaexec.sh.in: New file, from GNU gettext.
44581         * lib/javaexec.h: New file, from GNU gettext.
44582         * lib/javaexec.c: New file, from GNU gettext.
44583
44584 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44585
44586         * modules/lchown (Depends-on): Remove lchown.h
44587
44588 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44589
44590         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
44591         must be defined if the header file was not found, in order
44592         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
44593
44594 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44595
44596         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
44597         initializers for struct pentry_state.
44598         (__argp_error): Check return value of __asprintf
44599         (__argp_failure): Translate error message
44600
44601         * lib/argp-parse.c: Removed braces around the expansion of N_()
44602
44603 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44604
44605         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
44606         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
44607         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
44608         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
44609         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
44610         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
44611         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
44612         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
44613         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
44614         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
44615         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
44616         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
44617         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
44618         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
44619         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
44620         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
44621         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
44622         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
44623         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
44624         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
44625         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
44626         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
44627         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
44628         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
44629         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
44630         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
44631         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
44632         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
44633         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
44634         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
44635         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
44636         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
44637         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
44638         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
44639         xstrtol.m4, xstrtoumax.m4, yesno.m4:
44640         Use an all-permissive copyright notice, recommended by RMS.
44641
44642 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44643
44644         * modules/chdir-long (Depends-on): Remove mempcpy.
44645
44646 2005-01-21  Jim Meyering  <jim@meyering.net>
44647
44648         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
44649         same value as for Solaris 9.
44650
44651         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
44652         component length.  This included changing the parameter to be
44653         of type `char *' rather than `char const *'.
44654         * lib/chdir-long.h (chdir_long): Update prototype.
44655
44656         * lib/openat.c (fdopendir, fstatat): New functions.
44657         * lib/openat.h: Include headers required for use of DIR and struct
44658         stat.
44659         [AT_SYMLINK_NOFOLLOW]: Define.
44660         (fdopendir, fstatat): Add prototypes.
44661
44662 2005-01-21  Bruno Haible  <bruno@clisp.org>
44663
44664         * modules/classpath: New file.
44665         * MODULES.html.sh (Java): Add classpath.
44666
44667 2005-01-21  Bruno Haible  <bruno@clisp.org>
44668
44669         * lib/classpath.h: New file, from GNU gettext.
44670         * lib/classpath.c: New file, from GNU gettext.
44671
44672 2005-01-20  Simon Josefsson  <jas@extundo.com>
44673
44674         * modules/version-etc-fsf: New file.
44675
44676 2005-01-20  Simon Josefsson  <jas@extundo.com>
44677
44678         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
44679         * lib/version-etc.c: Remove version_etc_copyright.
44680         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
44681         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
44682
44683 2005-01-20  Simon Josefsson  <jas@extundo.com>
44684
44685         * lib/base64.h (isbase64): Add.
44686
44687         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
44688         using a unsigned prototype, don't inline.
44689         (base64_decode): Use it.
44690
44691 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44692
44693         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
44694         it.
44695
44696 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44697
44698         * lib/save-cwd.c (save_cwd): Remove code to support the case
44699         where fchdir is missing or flaky.
44700
44701 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44702
44703         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
44704
44705 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44706
44707         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
44708         AC_LIBSOURCES now does this.
44709         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
44710         with new ullong_max module.
44711
44712 2005-01-19  Bruno Haible  <bruno@clisp.org>
44713
44714         * modules/sh-quote: New file.
44715         * MODULES.html.sh (Executing programs): Add sh-quote.
44716
44717 2005-01-19  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/sh-quote.h: New file, from GNU gettext.
44720         * lib/sh-quote.c: New file, from GNU gettext.
44721
44722 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44723
44724         Merge from coreutils.
44725         * m4/ullong_max.m4: New file.
44726         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
44727         (gl_MACROS): Assume localeconv exists.
44728
44729 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44730
44731         Merge changes from coreutils, as described below in several
44732         changelogs dated today.
44733
44734         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
44735         (O_DIRECTORY): Remove; not needed here, since "." must be
44736         a directory.  All uses removed.
44737         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
44738         universal on Suns, and we also need to test for IRIX.
44739         Revamp code to use 'if' rather than '#if'.
44740         Avoid unnecessary comparison of cwd->desc to 0.
44741
44742         * lib/utimens.c (futimens): Robustify the previous patch, by checking
44743         for known valid error numbers rather than observed invalid ones.
44744
44745 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44746
44747         * modules/ullong_max: New file.
44748
44749         * modules/chdir-long, modules/openat: New files.
44750         * modules/save-cwd (Depends-on): Depend on chdir-long.
44751         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
44752
44753 2005-01-18  Jim Meyering  <jim@meyering.net>
44754
44755         Merge from coreutils.
44756         * m4/chdir-long.m4, m4/openat.m4: New files.
44757         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
44758         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
44759         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
44760         is sane and DOES follow symlinks.  Besides, testing 20 different
44761         systems found no broken chown implementations.
44762         Prompted by a change in rsync's copy of this macro.
44763         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
44764
44765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
44766
44767         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
44768         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
44769         NULL-means-set-to-current-time semantics.
44770         Remove temporary file immediately, rather than waiting
44771         for configure's at-exit trap code to do it.
44772
44773 2005-01-18  Jim Meyering  <jim@meyering.net>
44774
44775         * lib/version-etc.c (version_etc_copyright): Update copyright date.
44776
44777         * lib/utimens.c (futimens): Account for the fact that futimes
44778         can also fail with errno == ENOSYS or errno == ENOENT.
44779         Patch from Dmitry V. Levin.
44780
44781         Change the name of the robust chdir function from chdir to chdir_long.
44782         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
44783         (restore_cwd): Use chdir_long, not chdir.
44784         * lib/chdir-long.c: Renamed from chdir.c.
44785         * lib/chdir-long.h: Renamed from chdir.h.
44786         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
44787         Hurd.
44788
44789 2005-01-18  Bruno Haible  <bruno@clisp.org>
44790
44791         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
44792         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
44793         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
44794         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
44795         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
44796         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
44797         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
44798         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
44799         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
44800         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
44801         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
44802         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
44803         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
44804         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
44805         Use an all-permissive copyright notice, recommended by RMS.
44806
44807 2005-01-18  Bob Proulx  <bob@proulx.com>
44808
44809         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
44810         simplify offsetof() macro construct to avoid compile failure with
44811         native HP-UX 11.0 ANSI C compiler.
44812
44813 2005-01-17  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
44816         redundant because stpncpy.m4 takes care of it.
44817
44818 2005-01-17  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
44821
44822 2005-01-17  Bruno Haible  <bruno@clisp.org>
44823
44824         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
44825         used.
44826
44827 2005-01-17  Bruno Haible  <bruno@clisp.org>
44828
44829         * lib/fwriteerror.h (fwriteerror): Change specification to include
44830         fclose.
44831         * lib/fwriteerror.c: Include <stdbool.h>.
44832         (fwriteerror): At the end, close the file stream. Record whether
44833         stdout was already closed.
44834
44835 2005-01-17  Bruno Haible  <bruno@clisp.org>
44836
44837         * lib/execute.c (environ): Declare if needed.
44838         * lib/pipe.c (environ): Likewise.
44839         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
44840
44841 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44842
44843         * modules/argp: Depend on vsnprintf
44844
44845 2005-01-10  Jim Meyering  <jim@meyering.net>
44846
44847         * modules/closeout (Depends-on): Add atexit.
44848
44849 2005-01-06  Bruno Haible  <bruno@clisp.org>
44850
44851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
44852
44853 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44854
44855         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
44856         definitions to be after all include files, to avoid collisions.
44857         Problem reported by Bob Proulx.
44858
44859 2005-01-04  Jim Meyering  <jim@meyering.net>
44860
44861         Changes imported from coreutils.
44862         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
44863         as the mkstemp template, use a temporary directory and an
44864         8.3-friendly template to avoid trouble on systems like DJGPP.
44865         Reported by Juan M. Guerrero via Stepan Kasal.
44866         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
44867         close. Remove the temporary directory right away, rather than waiting
44868         for configure's at-exit trap code to do it.
44869         Suggestion from Stepan Kasal.
44870
44871 2005-01-01  Simon Josefsson  <jas@extundo.com>
44872
44873         * gnulib-tool: Print #include directives when --import'ing.
44874
44875 2004-12-28  Simon Josefsson  <jas@extundo.com>
44876
44877         * tests/test-base64.c: Include required header files.  Remove
44878         unused variables.
44879
44880 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44881
44882         * modules/error (Depends-on): Remove gettext.
44883
44884 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44885
44886         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
44887         not needed.  This removes a dependency on the gettext module.
44888         [defined _LIBC]: Do not include <libintl.h>; not needed.
44889
44890 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
44891
44892         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
44893         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
44894
44895 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
44896
44897         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
44898         HAVE_DECL_STRTOLD.
44899
44900 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44901
44902         * modules/getdate (Depends-on): Remove alloca-opt.
44903
44904 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44905
44906         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
44907
44908 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44909
44910         * lib/argp-parse.c: Include <stddef.h>.
44911         (alignof, alignto): New macros.
44912         (parser_init): Don't assume that void * is aligned sufficiently
44913         for struct option.
44914
44915         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
44916         need to extend the stack.
44917         (YYINITDEPTH): New macro, so that the initial stack isn't overly
44918         large.
44919
44920 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44921
44922         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
44923
44924 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44925
44926         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
44927         (2004-10-24) change.  Apparently this was a false alarm.
44928
44929         * modules/getdate: Depend on alloca-opt, not alloca.
44930
44931 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44932
44933         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
44934         Remove now-obsolete comment about AIX.
44935         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
44936         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
44937         (YYMAXDEPTH): New macro.
44938
44939 2004-12-18  Simon Josefsson  <jas@extundo.com>
44940
44941         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
44942
44943 2004-12-18  Bruno Haible  <bruno@clisp.org>
44944
44945         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
44946
44947 2004-12-18  Bruno Haible  <bruno@clisp.org>
44948
44949         * lib/fatal-signal.c (fatal_signals): Make non-const.
44950         (init_fatal_signals): New function.
44951         (uninstall_handlers, install_handlers): Ignore signals that were set to
44952         SIG_IGN.
44953         (at_fatal_signal): Call init_fatal_signals.
44954         (init_fatal_signal_set): Likewise. Ignore signals that were set to
44955         SIG_IGN.
44956         Reported by Paul Eggert.
44957
44958 2004-12-18  Bruno Haible  <bruno@clisp.org>
44959
44960         * doc/alloca.texi: New file.
44961         * doc/alloca-opt.texi: New file.
44962
44963 2004-12-17  Jim Meyering  <jim@meyering.net>
44964
44965         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
44966         Otherwise, install-sh could exit with improper exit status when
44967         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
44968
44969 2004-12-16  Simon Josefsson  <jas@extundo.com>
44970
44971         * tests/test-base64.c: Add license.
44972
44973 2004-12-15  Stepan Kasal  <address@hidden>
44974
44975         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
44976
44977 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44978
44979         * modules/getcwd (Files): Add m4/d-ino.m4.
44980         Suggested by Mark D. Baushke.
44981
44982 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
44983
44984         * lib/getdate.y (textint): New member "negative".
44985         (time_zone_hhmm): New function.
44986         Expect 14 shift-reduce conflicts, not 13.
44987         (o_colon_minutes): New rule.
44988         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
44989         (yylex): Set the "negative" member of signed numbers.
44990
44991 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
44992
44993         * doc/getdate.texi (Time of day items, Time zone items):
44994         Describe new formats +00:00, UTC+00:00.
44995
44996 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44997
44998         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
44999         spurious "-l"s.  Problem reported by Stepan Kasal.
45000
45001 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
45002
45003         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
45004         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
45005
45006 2004-12-04  Simon Josefsson  <jas@extundo.com>
45007
45008         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
45009         Vandoorselaere <yoann@prelude-ids.org>.
45010
45011 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
45012
45013         Changes imported from coreutils.
45014         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
45015         exist.
45016         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
45017
45018 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
45019
45020         Changes imported from coreutils.
45021         * lib/hard-locale.c: Assume <locale.h> exists.
45022         Include "strdup.h".
45023         (GLIBC_VERSION): New macro.
45024         (hard_locale): Assume setlocale exists.
45025         Rewrite to avoid #ifdef.
45026         Use strdup rather than malloc + strcpy.
45027         * lib/human.c: Assume <locale.h> exists.
45028         (human_readable): Assume localeconv exists.
45029
45030 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
45031
45032         * modules/hard-locale (Depends-on): Add strdup.
45033
45034 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45035
45036         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
45037         convert T2, not T.  (Imported from libc.)
45038
45039 2004-11-30  Simon Josefsson  <jas@extundo.com>
45040
45041         * modules/restrict (License): Change to LGPL.
45042
45043 2004-11-30  Simon Josefsson  <jas@extundo.com>
45044
45045         * m4/restrict.m4: Add copyright and copying conditions.
45046
45047 2004-11-30  Simon Josefsson  <jas@extundo.com>
45048
45049         * m4/base64.m4: New file.
45050
45051 2004-11-30  Simon Josefsson  <jas@extundo.com>
45052
45053         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
45054         base64.
45055
45056         * tests/test-base64.c: New file.
45057
45058         * modules/base64: New file.
45059
45060 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
45061
45062         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
45063         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
45064
45065         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
45066
45067 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
45068
45069         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
45070         (__getcwd.c): Don't restore errno; glibc doesn't.
45071         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
45072         first, falling back to our code only if its results look suspicious.
45073         Ensure that the resulting buffer is only as large as necessary.
45074
45075         * lib/readutmp.c: Include readutmp.h first.
45076         Include <errno.h>, since readutmp.h no longer does that.
45077         * lib/readutmp.h: Don't include <errno.h>,
45078         <sys/param.h>, <time.h>; not needed to establish interface.
45079         (errno): Remove decl.
45080         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
45081         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
45082         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
45083
45084 2004-11-28  Simon Josefsson  <jas@extundo.com>
45085
45086         * lib/base64.h, base64.c: New file.
45087
45088 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45089
45090         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
45091
45092 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45093
45094         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
45095         (Depends-on): Remove pathmax, same.  Add mempcpy.
45096         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
45097         (Makefile.am): Append getcwd.h to lib_SOURCES.
45098         (Include): Add getcwd.h.
45099         (Maintainer): Change from Jim Meyering to "all, glibc",
45100         since getdate now uses intended-for-glibc code.
45101         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
45102         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
45103
45104 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45105
45106         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
45107         HP's ANSI C compiler.
45108         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
45109         Declaring int functions causes warnings on some modern systems and
45110         shouldn't be needed to compile on ancient ones.
45111         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
45112         defined.
45113
45114         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
45115         with the following changes.
45116         (__set_errno): Parenthesize properly.
45117         Include <stdbool.h>.
45118         (MIN, MAX, MATCHING_INO): New macros.
45119         (__getcwd): Define with prototype, not K&R form.
45120         Use heuristics to allocate default buffer on stack if possible.
45121         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
45122         behavior, and to avoid the PATH_MAX limit when computing
45123         ../../../../...
45124         Use MATCHING_INO to compare inode number to file.
45125         Check for arithmetic overflow in size calculations.
45126         Fix bug in reallocation of dot array that caused getcwd to fail
45127         on directories nested deeper than 75.
45128         Be more careful about saving errno on error.
45129         Do not use realloc; use only free+malloc, as this is a bit
45130         more flexible and avoids a needless copy operation.
45131         Do not inspect st_dev and st_ino for symbolic links; POSIX
45132         doesn't specify the latter.
45133         Check for closedir errors.
45134         Avoid needless casts.
45135         Use "#ifdef weak_alias" around weak_alias, to be like other
45136         glibc code.
45137         The following changes to getcwd.c have effect only when used in
45138         gnulib; they have no effect inside glibc proper.
45139         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
45140         as alloca isn't used.
45141         (alloca, __alloca): Likewise.
45142         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
45143         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
45144         unconditionally, as gnulib assumes C89 or better.
45145         Do not include <sys/param.h>.
45146         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
45147         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
45148         better.
45149         (NULL) [!defined NULL]: Remove; we assume C89 or better.
45150         Include <dirent.h> in a way that is compatible with modern Autoconf.
45151         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
45152         New macros, if not already defined.
45153         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
45154         Use "_LIBC", not "defined _LIBC", for consistency.
45155         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
45156         a mempcpy module.
45157         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
45158         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
45159         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
45160         credit only to Jim Meyering and adjust the copyright dates.
45161         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
45162         <stdlib.h>, <unistd.h>, "pathmax.h".
45163         Instead, include "xgetcwd.h" (first) and "getcwd.h".
45164         (INITIAL_BUFFER_SIZE): Remove.
45165         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
45166
45167 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45168
45169         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
45170         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
45171         Use the _ONCE methods, for efficiency.
45172         Check for fcntl.h.  In test program, include <errno.h>
45173         and <fcntl.h> if available.  Remove old K&R cruft from
45174         test program.  Check for common errors in GNU/Linux,
45175         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
45176         don't do AC_LIBOBJ, as that's getcwd.m4's job.
45177         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
45178         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
45179         name accordingly.
45180         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
45181         accommodate new getcwd.c.
45182         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
45183         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
45184         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
45185         that's all we need now.
45186
45187 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45188
45189         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
45190         argp-parse.c depends on getopt internals, that means we should
45191         always use our getopt, to be on the safe side.
45192         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
45193         order not to spoil the result of an eventual previous invocation
45194         of gl_GETOPT_SUBSTITUTE.
45195
45196 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45197
45198         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
45199         redefinition warnings. To avoid them, include the defines
45200         in `#if !defined __need_getopt ... #endif'. The only place
45201         where __getopt_argv_const is used is in definitions
45202         of getopt_long and getopt_long_only below, which are as well
45203         protected by `#ifndef __need_getopt'.
45204         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
45205         __need_getopt after including <stdio.h> and <unistd.h> These
45206         headers might have defined it.
45207
45208 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
45209
45210         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
45211
45212 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
45213
45214         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
45215         (futimens): New function, which uses futimes if available.
45216         (futimens, utimens): Support timespec==NULL, with same semantics
45217         as utime and utimens.
45218         * lib/utimens.h (futimens): New decl.
45219
45220 2004-11-23  Jim Meyering  <jim@meyering.net>
45221
45222         * lib/getopt_.h: Remove trailing blanks.
45223
45224 2004-11-23  Jim Meyering  <jim@meyering.net>
45225
45226         * lib/__fpending.c: Add comment.
45227
45228 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
45229
45230         * modules/canonicalize (Depends-on): Add xreadlink.
45231         Problem reported by James Youngman.
45232
45233 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45234
45235         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
45236         New macros.
45237         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
45238         optopt): Use them instead of invoking ## directly; otherwise, the
45239         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
45240
45241 2004-11-19  Bruno Haible  <bruno@clisp.org>
45242
45243         * lib/strtok_r.c: Move comments from here...
45244         * lib/strtok_r.h: ... to here.
45245
45246 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45247
45248         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
45249         implementations that mishandle size_t overflow.
45250
45251 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45252
45253         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
45254         might fail.  Problem reported by Yoann Vandoorselaere.
45255         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
45256         implementations that mishandle size_t overflow.
45257
45258 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45259
45260         * modules/canon-host (Depends-on): Add strdup.
45261
45262 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45263
45264         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
45265
45266 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45267
45268         * lib/canon-host.c: Include "strdup.h".
45269         (canon_host): Use getaddrinfo if available, so that IPv6 works.
45270         Use strdup instead of malloc/strcpy to duplicate strings.
45271
45272         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
45273         (human_space_before_unit): New constant.
45274         * lib/human.c (human_readable): Support it.
45275
45276         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
45277         (xgetcwd): Set errno correctly when failing.
45278         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
45279         the failure is actually due to a PATH_MAX problem.
45280
45281         Further getopt changes to make it more likely that glibc will
45282         buy the changes back.
45283         * lib/getopt.c (POSIXLY_CORRECT): New constant.
45284         (getopt): Use it, so to preserve glibc semantic
45285         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
45286         when compiling for libc.
45287         * lib/getopt_.h (__getopt_argv_const): Bring it back.
45288         (getopt_long, getopt_long_only): Use it.
45289
45290         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
45291         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
45292         (getopt): Argv is now char * const *, as per standard.
45293         (_getopt_internal_r, _getopt_internal): Argv is now char **,
45294         not char *__getopt_argv_const *.
45295         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
45296         _getopt_long_only_r): Likewise.
45297         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
45298         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
45299         _getopt_long_r, _getopt_long_only_r): Likewise.
45300         * lib/getopt_.h (__getopt_argv_const): Remove.
45301         (getopt): Argv is now char * const *, as per standard.
45302
45303         * lib/getdate.y (tORDINAL): New token.
45304         (day, relunit): Allow it for relative times.
45305         (relative_time_table): Use tORDINAL for ordinals.
45306
45307 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45308
45309         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
45310         Document that "second" isn't allowed as an ordinal number.
45311
45312 2004-11-16  Jim Meyering  <jim@meyering.net>
45313
45314         * modules/closeout (Depends-on): Add fpending.
45315
45316 2004-11-15  Jim Meyering  <jim@meyering.net>
45317
45318         * lib/closeout.c: Include "__fpending.h" once again.
45319         Include <stdbool.h>.
45320         (close_stdout): Don't fail just because stdout was closed initially,
45321         since some programs don't write to stdout in the normal course of
45322         operation (other than --version and --help), and we don't want this
45323         function to make e.g. `touch file >&-' fail.
45324         But do fail if it was closed and someone has tried to write to it.
45325         E.g., `printf foo >&-' must fail.
45326
45327 2004-11-13  Jim Meyering  <jim@meyering.net>
45328
45329         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
45330
45331 2004-11-12  Simon Josefsson  <jas@extundo.com>
45332
45333         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
45334         small doc fix is still pending.
45335
45336 2004-11-11  Simon Josefsson  <jas@extundo.com>
45337
45338         * modules/strtok_r: New file.
45339
45340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45341         strtok_r.
45342
45343 2004-11-11  Simon Josefsson  <jas@extundo.com>
45344
45345         * m4/strtok_r.m4: New file.
45346
45347         * m4/getopt.m4: Replace opterr.
45348
45349 2004-11-11  Simon Josefsson  <jas@extundo.com>
45350
45351         * lib/strtok_r.h, strtok_r.c: New file.
45352
45353 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45354
45355         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
45356         of replacing opterr, getopt, etc.  This should handle the
45357         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
45358
45359 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45360
45361         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
45362         we can stop lying to compilers about the constness of argv when we
45363         are compiled outside glibc.
45364         (getopt, getopt_long, getopt_long_only): Use it.
45365         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
45366         _getopt_internal, getopt): Likewise.
45367         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
45368         _getopt_long_only_r): Likewise.
45369         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
45370         _getopt_long_r, _getopt_long_only_r): Likewise.
45371
45372         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
45373         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
45374         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
45375         the other external symbols.
45376         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
45377         declaration, since the above renaming now works around collisions.
45378
45379 2004-11-11  Jim Meyering  <jim@meyering.net>
45380
45381         * lib/linebreak.c: Remove trailing blanks.
45382         * lib/alloca_.h: Likewise.
45383         * lib/acosl.c: Likewise.
45384         * lib/euidaccess.c: Likewise.
45385         * lib/allocsa.h: Likewise.
45386
45387 2004-11-10  Simon Josefsson  <jas@extundo.com>
45388
45389         * m4/getaddrinfo.m4: New file.
45390
45391 2004-11-10  Simon Josefsson  <jas@extundo.com>
45392
45393         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
45394
45395 2004-11-10  Simon Josefsson  <jas@extundo.com>
45396
45397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45398         getaddrinfo.
45399
45400         * modules/getaddrinfo: New file.
45401
45402 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45403
45404         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
45405
45406 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45407
45408         * lib/mktime.c (SHR): New macro, which is a portable
45409         substitute for >> that should work even on Crays.
45410         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
45411         Problem reported by Mark D. Baushke in
45412         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
45413         * lib/getdate.y (SHR): Likewise.
45414         (tm_diff): Use it.
45415         * lib/strftime.c (SHR): Likewise.
45416         (tm_diff): Use it.
45417         * lib/quotearg.c (struct quoting_options): Use unsigned int for
45418         quote_these_too, so that right shifts are well defined.  All uses
45419         changed.
45420
45421 2004-11-10  Jim Meyering  <jim@meyering.net>
45422
45423         Ensure that no close failure goes unreported.
45424         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
45425         return early when it seems there's nothing to flush.
45426         Don't include __fpending.h.
45427
45428 2004-11-10  Jim Meyering  <jim@meyering.net>
45429
45430         * modules/closeout (Depends-on): Remove fpending.
45431
45432 2004-11-10  Jim Meyering  <jim@meyering.net>
45433
45434         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
45435
45436 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45437
45438         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
45439         gl_FUNC_STRFTIME.
45440         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
45441         and AC_REQUIRE when possible, to avoid duplicate checks.
45442         Check for <wchar.h>.
45443
45444 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45445
45446         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
45447
45448 2004-11-09  Bruno Haible  <bruno@clisp.org>
45449
45450         * m4/sockpfaf.m4: New file.
45451
45452 2004-11-05  Bruno Haible  <bruno@clisp.org>
45453
45454         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
45455         Reported by Mark D. Baushke <mdb@cvshome.org>.
45456
45457 2004-11-04  Bruno Haible  <bruno@clisp.org>
45458
45459         2004-09-11  Bruno Haible  <bruno@clisp.org>
45460                 * allocsa.valgrind: New file.
45461         2004-02-06  Bruno Haible  <bruno@clisp.org>
45462                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
45463                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
45464                 Reported by Christopher Seip <chris.seip@hp.com>.
45465
45466 2004-11-04  Bruno Haible  <bruno@clisp.org>
45467
45468         * modules/allocsa (Files): Add lib/allocsa.valgrind.
45469         (Makefile.am): Distribute it.
45470
45471 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45472
45473         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
45474         with errno == ERANGE if the buffer is too small.
45475         Problem reported by Mark D. Baushke.
45476
45477 2004-11-03  Albert Chin  <china@thewrittenword.com>
45478             Paul Eggert  <eggert@cs.ucla.edu>
45479
45480         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
45481         equivalent, substitute $ac_type for equivalent type rather than
45482         blindly using uint32_t *always* which won't work if uint32_t is not
45483         available.  Define _UINT32_T to work around typedef of uint32_t if
45484         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
45485         2.5.1.
45486
45487 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45488
45489         * m4/jm-macros.m4: Sync from coreutils.
45490         (gl_MACROS): Check for mbrlen, for pathchk.
45491         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
45492
45493 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45494
45495         * lib/xreadlink.c (MAXSIZE): New macro.
45496         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
45497         size does not exceed MAXSIZE.  Avoid cast.
45498         As suggested by Mark D. Baushke in
45499         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
45500         if readlink fails with buffer size just under MAXSIZE, try again
45501         with MAXSIZE.
45502
45503 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45504
45505         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
45506
45507 2004-11-02  Derek R. Price  <derek@ximbiot.com>
45508         and  Paul Eggert  <eggert@cs.ucla.edu>
45509
45510         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
45511         (get_date): Overparenthesize to avoid GCC warning.
45512
45513 2004-11-02  Bruno Haible  <bruno@clisp.org>
45514
45515         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
45516         returns void.
45517
45518 2004-11-02  Bruno Haible  <bruno@clisp.org>
45519
45520         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
45521         function returns void.
45522
45523 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45524
45525         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
45526         fflush_unlocked, flockfile, funlockfile, funlockfile,
45527         fputs_unlocked, putc_unlocked.
45528
45529 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45530
45531         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45532         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
45533         already declared.
45534
45535 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45536
45537         * modules/getdate (Files): Add doc/getdate.texi.
45538         (Depends-on): Add setenv, xalloc.
45539
45540 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45541
45542         * lib/getdate.y: Add support for TZ="foo" within a date string.
45543         Fix some bugs near time_t boundaries.  Reject dates with
45544         out-of-range components, e.g., "Sept 31".
45545         Include <stdlib.h>, "setenv.h", "xalloc.h".
45546         (ISDIGIT_LOCALE): Remove; unused.
45547         Note that the TZ and time functions used here are not reentrant.
45548         (mktime_ok, get_tz): New functions.
45549         (TZBUFSIZE): New constant.
45550         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
45551         This requires that we sometimes generate our own TZ="XXX..." setting.
45552
45553 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45554
45555         * doc/getdate.texi: New file, from coreutils with modifications for
45556         the new TZ parsing.
45557
45558 2004-10-27  Derek R. Price  <derek@ximbiot.com>
45559
45560         * lib/mktime.c (not_equal_tm): Remove redundant check.
45561
45562 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45563
45564         * modules/regex (lib_SOURCES): Add regex.c.
45565         Reported by James Youngman in
45566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
45567
45568 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45569
45570         * lib/getdate.y: Use Bison 1.875 features, and some minor
45571         code cleanups.  This change does not affect semantics.
45572         Don't include <stdlib.h>; no longer needed.
45573         Don't include unlocked-io.h; only the "#if TEST" code uses
45574         stdio, and performance isn't crucial there.
45575         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
45576         Bison 1.875 features as described below.
45577         All uses of "PC." replaced by "pc->".
45578         (YYSTYPE): Add a forward declaration.
45579         (yylex, yyerror): Use full prototypes in forward decls.
45580         Use "%pure-parser" rather than obsolescent "%pure_parser".
45581         Use %parse-param and %lex-param instead of obsolescent
45582         YYPARSE_PARAM and YYLEX_PARAM.
45583         (meridian_table, month_and_day_table, time_units_table,
45584         relative_time_table, time_zone_table, military_table,
45585         lookup_zone, lookup_word, get_date):
45586         Use NULL instead of 0 where appropriate.
45587         (to_hour): Avoid abort (), to avoid a dependency on
45588         stdlib.h.
45589         (yyerror, yylex): Now accepts parser_control * arg.
45590         (main) [TEST]: Use '\0' rather than 0 for char.
45591
45592 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45593
45594         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
45595
45596 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45597
45598         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
45599         It's now the caller's responsibility to handle the case where
45600         !HAVE_GETPAGESIZE && !defined getpagesize.
45601
45602         * lib/mktime.c (leapyear): Arg is long int, not int.
45603
45604 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
45605
45606         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
45607
45608 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45609
45610         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
45611         missing.  Problem reported by James Youngman.
45612
45613 2004-10-16  Simon Josefsson  <jas@extundo.com>
45614
45615         * gnulib-tool: Fix comments.  Fix parse problem.
45616         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
45617
45618 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
45619
45620         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
45621         implementation of getopt_long.  Problem reported by Alexander Taler in:
45622         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
45623
45624 2004-10-15  Bruno Haible  <bruno@clisp.org>
45625
45626         * gnulib-tool: Untabify. Initialize supplied_libname.
45627         (func_usage): More homogenous output.
45628         (func_modules_transitive_closure, func_modules_to_filelist,
45629         func_emit_lib_Makefile_am): New functions.
45630         (func_import): New function, extracted from big case statement. Use
45631         func_get_license, func_modules_transitive_closure,
45632         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
45633         opt_lgpl. Don't use test -a, as it's not portable.
45634         (func_create_testdir): Use func_modules_transitive_closure,
45635         func_modules_to_filelist, func_emit_lib_Makefile_am.
45636
45637 2004-10-15  Bruno Haible  <bruno@clisp.org>
45638
45639         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
45640
45641 2004-10-15  Bruno Haible  <bruno@clisp.org>
45642
45643         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
45644         the portions belonging to each module.
45645         Suggested by Derek Robert Price <derek@ximbiot.com>.
45646
45647 2004-10-12  Simon Josefsson  <jas@extundo.com>
45648
45649         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45650         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
45651         to real functions.
45652
45653 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45654
45655         * modules/vsnprintf: New file.
45656
45657 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45658
45659         * m4/vsnprintf.m4: New file.
45660
45661 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45662
45663         * lib/vsnprintf.h: New file.
45664         * lib/vsnprintf.c: New file.
45665
45666 2004-10-11  Bruno Haible  <bruno@clisp.org>
45667
45668         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
45669         vsnprintf.
45670
45671 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45672
45673         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
45674
45675 2004-10-07  Bruno Haible  <bruno@clisp.org>
45676
45677         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
45678         fits into the provided buffer.
45679
45680 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45681
45682         * lib/diacrit.c, diacrit.h: Add GPL notice.
45683
45684         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
45685         notice.
45686         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
45687         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
45688         This avoids a potential constant-folding bug.
45689
45690 2004-10-05  Bruno Haible  <bruno@clisp.org>
45691
45692         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
45693         for the declaration of strsep.
45694
45695 2004-10-05  Bruno Haible  <bruno@clisp.org>
45696
45697         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
45698
45699 2004-10-04  Simon Josefsson  <jas@extundo.com>
45700
45701         * modules/memmem: New file.
45702         * tests/test-memmem.c: New file.
45703         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
45704
45705 2004-10-04  Simon Josefsson  <jas@extundo.com>
45706
45707         * m4/memmem.m4: New file.
45708
45709 2004-10-04  Simon Josefsson  <jas@extundo.com>
45710
45711         * lib/memmem.h: New file.
45712         * lib/memmem.c: New file, taken from glibc.
45713
45714 2004-10-04  Simon Josefsson  <jas@extundo.com>
45715
45716         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
45717         '#ifdef USE_UNLOCKED_IO'.
45718
45719 2004-10-04  Simon Josefsson  <jas@extundo.com>
45720
45721         * config/srclist.txt: Add memmem from glibc.
45722
45723 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45724
45725         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
45726
45727         * modules/argmatch, modules/argp, modules/closeout, modules/error,
45728         modules/exclude, modules/getdate, modules/getline,
45729         modules/getndelim2, modules/getpass, modules/getpass-gnu,
45730         modules/getusershell, modules/linebuffer, modules/md5,
45731         modules/mountlist, modules/posixtm, modules/readtokens,
45732         modules/readutmp, modules/regex, modules/sha1,
45733         modules/version-etc, modules/yesno:
45734         Remove dependency on unlocked-io.
45735
45736 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45737
45738         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
45739
45740         * m4/unlocked-io.m4: Add copyright notice.
45741         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
45742
45743 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45744
45745         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
45746         * lib/xmalloc.c (xmemdup): Likewise.
45747         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
45748         XFREE): Remove these long-obsolescent macros.
45749         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
45750         * lib/xstrdup.c: Remove.
45751
45752         * lib/regex.c (re_comp): Cast gettext return value to char *,
45753         Problem reported by Martin Neitzel via Mark D. Baushke.
45754
45755 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45756
45757         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
45758         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
45759         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
45760         regex.c, sha1.c, version-etc.c, yesno.c:
45761         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
45762         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
45763         the includer's responsibility.
45764
45765         Sync from coreutils.
45766
45767         * lib/modechange.c (mode_compile): Don't decrement a pointer that
45768         points to the start of a string, as the C Standard says the
45769         resulting behavior is undefined.
45770
45771         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
45772         simple -> simple_backups, numbered_existing ->
45773         numbered_existing_backups, numbered -> numbered_backups
45774         to avoid shadowing problems.  All uses changed.
45775         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
45776         * lib/backupfile.c (check_extension, numbered_backup):
45777         Rename locals to avoid shadowing 'basename'.
45778         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
45779         once.
45780
45781         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
45782         * lib/.cvsignore: Add getopt.h.
45783
45784 2004-10-04  Bruno Haible  <bruno@clisp.org>
45785
45786         * modules/README: New file.
45787         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
45788         not a module.
45789
45790 2004-10-02  Jim Meyering  <jim@meyering.net>
45791
45792         * lib/dirfd.h, getpagesize.h: Add copyright notice.
45793
45794 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45795
45796         * modules/strsep: New file.
45797
45798 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45799
45800         * m4/strsep.m4: New file.
45801
45802 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45803
45804         * lib/strsep.h: New file.
45805         * lib/strsep.c: New file.
45806
45807 2004-10-01  Simon Josefsson  <jas@extundo.com>
45808
45809         * lib/snprintf.c (snprintf): Handle size==0.
45810
45811 2004-10-01  Simon Josefsson  <jas@extundo.com>
45812             Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
45815         (snprintf): Declare 'args'.
45816
45817 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
45818
45819         * lib/snprintf.c: Remove comments as to why each header is needed.
45820
45821 2004-10-01  Bruno Haible  <bruno@clisp.org>
45822
45823         * MODULES.html.sh: Add strsep.
45824
45825 2004-09-30  Simon Josefsson  <jas@extundo.com>
45826
45827         * modules/snprintf: New file.
45828
45829 2004-09-30  Simon Josefsson  <jas@extundo.com>
45830
45831         * m4/snprintf.m4: New file.
45832
45833 2004-09-30  Simon Josefsson  <jas@extundo.com>
45834
45835         * lib/snprintf.h, lib/snprintf.c: New files.
45836
45837 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45838
45839         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
45840         (hol_entry_help): Never translate an empty string.
45841         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
45842         * lib/argp.h (OPTION_NO_TRANS): New option.
45843
45844 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45845
45846         * modules/argp (Maintainer): Replace Simon Josefsson
45847         by Sergey Poznyakoff.
45848
45849 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45850
45851         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
45852         changes merged back into glibc.
45853
45854 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45855
45856         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
45857
45858 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
45859
45860         * lib/xvasprintf.c: Include xalloc.h.
45861         (xvasprintf): Use xalloc_die, not xmalloc_die.
45862
45863 2004-09-29  Bruno Haible  <bruno@clisp.org>
45864
45865         * modules/alloca-opt: New file, derived from modules/alloca.
45866         * modules/allocsa: Depend on alloca-opt instead of alloca.
45867         * modules/setenv: Likewise.
45868         * modules/vasnprintf: Likewise.
45869         * MODULES.html.sh: Add alloca-opt.
45870
45871 2004-09-28  Simon Josefsson  <jas@extundo.com>
45872
45873         * gnulib-tool: New parameter --lgpl, to asseert that modules are
45874         LGPL, and to replace license template from GPL to LGPL.
45875
45876 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
45877
45878         * modules/dummy: Change license to LGPL.
45879
45880 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
45881
45882         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
45883
45884 2004-09-24  Simon Josefsson  <jas@extundo.com>
45885
45886         * modules/minmax (License): Change from GPL to LGPL.
45887
45888 2004-09-23  Simon Josefsson  <jas@extundo.com>
45889
45890         * gnulib-tool (--import): Typo.
45891
45892 2004-09-23  Simon Josefsson  <jas@extundo.com>
45893
45894         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
45895
45896 2004-09-22  Bruno Haible  <bruno@clisp.org>
45897
45898         * modules/*: Add 'License' field.
45899         * gnulib-tool: Accept --extract-license option.
45900         (func_get_license): New function.
45901
45902 2004-09-21  Bruno Haible  <bruno@clisp.org>
45903
45904         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
45905         Reported by Simon Josefsson.
45906
45907 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45908
45909         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
45910         gl_AC_TYPE_LONG_LONG.
45911
45912 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45913
45914         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
45915
45916 2004-09-18  Simon Josefsson  <jas@extundo.com>
45917         and  Paul Eggert  <eggert@cs.ucla.edu>
45918
45919         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
45920         calls with autoreconf.  Define GL_LIB.
45921
45922 2004-09-14  Karl Berry  <karl@gnu.org>
45923
45924         * config/srclist.txt: unsync setenv.c, sigh.
45925
45926 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45927
45928         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
45929         Problem reported by Bruno Haible in:
45930         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
45931
45932 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45933
45934         * config/srclist.txt: Comment out argp-pvh.c.
45935
45936 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
45937
45938         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
45939         in case some system header has #define'd it.  Problem reported by
45940         Soeren D. Schulze in
45941         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
45942
45943 2004-09-09  Karl Berry  <karl@gnu.org>
45944
45945         * regex.[ch]: delete from the root.  These were supposed to be
45946                 synced with emacs cvs, but this has not happened for about
45947                 a year, and anyway nothing else uses emacs regex.[ch].
45948                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
45949                 lib/regex[.ch] is untouched.
45950
45951 2004-09-09  Bruno Haible  <bruno@clisp.org>
45952
45953         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
45954
45955 2004-09-09  Bruno Haible  <bruno@clisp.org>
45956
45957         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
45958         modifications.
45959         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
45960
45961 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
45962
45963         * modules/xvasprintf: New file.
45964         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
45965
45966 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
45967
45968         * lib/xvasprintf.h: New file.
45969         * lib/xvasprintf.c: New file.
45970         * lib/xasprintf.c: New file.
45971
45972 2004-09-08  Bruno Haible  <bruno@clisp.org>
45973
45974         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
45975
45976 2004-09-08  Bruno Haible  <bruno@clisp.org>
45977
45978         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
45979         length is > INT_MAX.
45980         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
45981         more.
45982
45983 2004-09-08  Bruno Haible  <bruno@clisp.org>
45984
45985         * lib/stdint_.h: New file, taken from GNU clisp.
45986
45987 2004-09-08  Bruno Haible  <bruno@clisp.org>
45988             Oskar Liljeblad  <oskar@osk.mine.nu>
45989
45990         * modules/stdint: New file.
45991         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
45992
45993 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45994
45995         Import from coreutils.
45996         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
45997         strings on unbounded length.  alloca's performance benefits aren't
45998         that important here.
45999         (V_STRDUP): Remove.
46000         (parse_with_separator): New function, with most of the internals
46001         of the old parse_user_spec.  Allow user to omit both user and group,
46002         for compatibility with FreeBSD.
46003         Clone only the user name, not the entire spec.
46004         Do not set *uid, *gid unless entirely successful.
46005         Avoid memory leak in some failing cases.
46006         Fix regression for USER.GROUP reported by Dmitry V. Levin in
46007         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
46008         (parse_user_spec): Rewrite to use parse_with_separator.
46009
46010 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
46011
46012         * modules/userspec: Don't depend on alloca.
46013
46014 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
46015
46016         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
46017
46018 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
46019
46020         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
46021         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
46022         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
46023
46024 2004-08-16  Simon Josefsson  <jas@extundo.com>
46025
46026         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
46027         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
46028         Add --dry-run for --import.
46029         Let user provided command line parameters override configure.ac
46030         settings.
46031
46032 2004-08-12  Simon Josefsson  <jas@extundo.com>
46033
46034         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
46035         as discussed with Paul Eggert in threads rooted at
46036         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
46037         and
46038         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
46039         Before, the test was empty, and relied on ELIDE_CODE in source
46040         code.)
46041         (gl_PREREQ_GETOPT): New macro.
46042         (gl_GETOPT): Use them.
46043
46044 2004-08-12  Simon Josefsson  <jas@extundo.com>
46045
46046         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
46047         * lib/getopt_.h: Renamed from getopt.h.
46048
46049 2004-08-12  Simon Josefsson  <jas@extundo.com>
46050
46051         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
46052         Change default library name from libfoo to libgnu.
46053         Now, if you have a configure.ac that says:
46054                 gl_SOURCE_BASE(gl)
46055                 gl_M4_BASE(gl/m4)
46056                 gl_MODULES(error getopt etcetera)
46057                 gl_INIT
46058         you can import all you need by running:
46059                 ../gnulib/gnulib-tool --import
46060
46061         * modules/getopt (Files): Rename getopt.h to getopt_.h.
46062         (Makefile.am): Rewrite, use logic from argz.
46063         (Include): Use <getopt.h> instead of "getopt.h".
46064
46065 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46066
46067         * modules/argp (Files): Add m4/unlocked-io.m4.
46068         (Depends-on): Add extensions.
46069
46070 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46071
46072         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
46073         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
46074         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
46075         Check for program_invocation_name, program_invocation_short_name,
46076         flockfile, funlockfile, features.h, _getopt_long_only_r.
46077
46078 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46079
46080         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
46081         its complicated substitute.
46082         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
46083         and program_invocation_name.
46084         (__argp_basename) [!_LIBC]: Remove; the only use was
46085         replaced by its body.
46086         (__argp_short_program_name): Change condition from
46087         !defined __argp_short_program_name to
46088         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
46089         to match argp-namefrob.h.
46090         (__argp_failure): Don't assume strerror_r returns char *.
46091         * lib/argp-parse.c (N_): Define unconditionally.
46092         (argp_default_options): Fill out initializers with 0 to avoid
46093         gcc warnings.
46094
46095 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46096
46097         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
46098         getopt1.c.
46099
46100 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46101
46102         Merge from coreutils.
46103
46104         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
46105
46106         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
46107         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
46108
46109 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46110
46111         Merge from coreutils.
46112
46113         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
46114         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
46115         for Reliant Unix 5.43.
46116
46117         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
46118         (union fooround): Use uintmax_t, not long int.
46119         The rest is a merge from libc:
46120         [defined _LIBC]: Include <shlib-compat.h>.
46121         (_obstack) [defined _LIBC]: Remove after 2.3.4.
46122
46123         * lib/settime.c (settime): Recode to avoid warning with
46124         Sun Forte C 6U2.
46125
46126         * lib/strverscmp.c: Convert to UTF-8.
46127
46128 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46129
46130         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46131         m4/uintmax_t.m4.
46132
46133 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46134
46135         * modules/xalloc-die: New file.
46136         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
46137
46138         * modules/md5 (Files): Add m4/uint32_t.m4.
46139         * modules/sha1: Renamed from modules/sha.
46140         (Files):
46141         Rename lib/sha.h to lib/sha1.h.
46142         Rename lib/sha.c to lib/sha1.c.
46143         Rename m4/sha.m4 to m4/sha1.m4.
46144         (lib_SOURCES): Likewise.
46145         (configure.ac): Rename gl_SHA to gl_SHA1.
46146         (Include): sha.h -> sha1.h.
46147
46148 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46149
46150         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
46151         * m4/sha1.m4: Renamed from sha.m4.
46152         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
46153
46154 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46155
46156         * lib/obstack.h (obstack_empty_p):
46157         Don't assume that chunk->contents is suitably aligned.
46158         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
46159         Likewise. Problem reported by Benno in
46160         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
46161
46162         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
46163         readable.  This could be improved further but it'd take some work.
46164
46165 2004-08-08  Simon Josefsson  <jas@extundo.com>
46166
46167         * modules/xgethostname (Depends-on): Remove exit and error (not
46168         used).
46169
46170         * modules/getpass-gnu: Add getpass.h.
46171         (Depends-on): Add stdbool.
46172         * modules/getpass: Add getpass.h.
46173
46174 2004-08-08  Simon Josefsson  <jas@extundo.com>
46175
46176         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
46177         Check getpass declaration.
46178
46179 2004-08-08  Simon Josefsson  <jas@extundo.com>
46180
46181         * lib/xgethostname.c: Don't include error.h (not used).
46182
46183         * lib/getpass.h: Add.
46184         * lib/getpass.c: Include getpass.h first.
46185
46186 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
46187
46188         * lib/xalloc-die.c: New file.
46189         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
46190         All uses removed.
46191         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
46192         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
46193         xalloc-die.c.
46194         (_, N_, xalloc_die): Move to xalloc-die.c.
46195         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
46196         so that we needn't mess with xalloc_msg_memory_exhausted.
46197
46198         * lib/sha1.h: Renamed from sha.h.
46199         (SHA1_H): Renamed from _SHA_H.
46200         (sha1_ctx): Renamed from sha_ctx.
46201         (sha1_init_ctx): Renamed from sha_init_ctx.
46202         (sha1_process_block): Renamed from sha_process_block.
46203         (sha1_process_bytes): Renamed from sha_process_bytes.
46204         (sha1_finish_ctx): Renamed from sha_finish_ctx.
46205         (sha1_read_ctx): Renamed from sha_read_ctx.
46206         (sha1_stream): Renamed from sha_stream.
46207         (sha1_buffer): Renamed from sha_buffer.
46208         * lib/sha1.c: Likewise; renamed from sha.c.
46209         Do not include <sys/types.h>.
46210         Include <stddef.h> rather than <stdlib.h>.
46211
46212 2004-08-08  Bruno Haible  <bruno@clisp.org>
46213
46214         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
46215         FILESYSTEM_PREFIX_LEN.
46216         * lib/progreloc.c: Likewise.
46217         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
46218
46219 2004-08-06  Simon Josefsson  <jas@extundo.com>
46220
46221         * modules/progname (Depends-on): Don't depend on stdbool.
46222
46223 2004-08-06  Simon Josefsson  <jas@extundo.com>
46224
46225         * modules/getsubopt: New file.
46226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46227         getsubopt.
46228
46229 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46230
46231         More merge from coreutils.
46232
46233         * m4/utimens.m4, m4/utimecmp.m4: New files.
46234         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
46235         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
46236         prereq.m4, sha.m4: Import changes from coreutils.
46237
46238 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46239
46240         More merge from coreutils.
46241         * modules/raise, modules/readtokens0, modules/utimens:
46242         * modules/utimecmp, module/xnanosleep: New files.
46243         * modules/strftime: Add lib/strftime.h.
46244         Change include from <time.h> to "strftime.h".
46245         * modules/yesno: Add lib/yesno.h.
46246         * modules/backupfile: Remove lib/addext.c.
46247         * modules/euidaccess: Add stat-macros.h.
46248         * modules/canonicalize, modules/euidaccess,
46249         modules/filemode, modules/lchown, modules/makepath,
46250         modules/rmdir, modules/stat: Likewise.
46251
46252 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46253
46254         Merge from tar.
46255         * lib/argp-help.c (make_hol, hol_append): Don't assume that
46256         SIZE_MAX is a valid preprocessor constant.
46257         (__argp_basename): Change from "#ifndef _LIBC"
46258         to "#ifndef __argp_short_program_name", so that
46259         we don't compile these functions for tar.
46260
46261         More merges from coreutils.
46262         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
46263         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
46264         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
46265         * lib/addext.c: Remove; no longer needed.
46266         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
46267         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
46268         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
46269         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
46270         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
46271         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
46272         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
46273         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
46274         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
46275         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
46276         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
46277         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
46278         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
46279         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
46280         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
46281         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
46282         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
46283         Import changes from coreutils.
46284
46285 2004-08-05  Simon Josefsson  <jas@extundo.com>
46286
46287         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
46288
46289 2004-08-05  Simon Josefsson  <jas@extundo.com>
46290
46291         * m4/getsubopt.m4: New file.
46292
46293 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
46294
46295         Merge from coreutils.
46296
46297         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
46298         * m4/getcwd-path-max.m4: New files.
46299
46300         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
46301         FILESYSTEM_PREFIX_LEN ->
46302         FILE_SYSTEM_PREFIX_LEN.
46303         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
46304         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
46305         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
46306         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
46307
46308         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
46309         prerequisite modules now handle the DOS stuff.
46310         Don't check for unistd.h.
46311
46312 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
46313
46314         Merge from coreutils.
46315
46316         * lib/.gdb-history: Remove; this doesn't belong here.
46317
46318         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
46319         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
46320         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
46321         * lib/getcwd.c: New files.
46322
46323         * lib/dirname.h: Include <stdbool.h>.
46324         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
46325         for consistency with POSIX terminology.  All uses changed.
46326         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
46327         (strip_trailing_slashes): Use bool for booleans.
46328         * lib/stripslash.c (strip_trailing_slashes): Likewise.
46329
46330         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
46331         sometimes returns a positive errno value even when it succeeds.
46332         (print_errno_message) [!LIBC]: Fall back on strerror if
46333         __strerror_r fails.
46334
46335         * lib/path-concat.c (mempcpy): Don't define if a system header defines
46336         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
46337         (longest_relative_suffix): New function.
46338         (path_concat): Use it.  Assume first argument is not NULL.
46339         Port to DOS.  Omit redundant separators.
46340         Report an error instead of returning NULL.
46341         Use mempcpy instead of memcpy.
46342         (xpath_concat): Remove: not declared or used.
46343
46344         * lib/same.h: Include <stdbool.h>
46345         (same_name): Return bool, not int.
46346         * lib/same.c (same_name): Likewise.
46347         (errno): Don't declare; we assume C89 or better now.
46348
46349         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
46350         if not already defined.
46351
46352         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
46353         * lib/dup-safer.c (errno): Likewise.
46354
46355 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
46356
46357         Merge from coreutils.
46358         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
46359         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
46360         * modules/path-concat: Don't depend on strdup.
46361
46362 2004-08-03  Simon Josefsson  <jas@extundo.com>
46363
46364         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
46365         * lib/progname.h: Don't include stdbool.h.
46366
46367 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
46368
46369         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
46370         * MODULES.html.sh (func_all_modules): Remove fatal.
46371
46372 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
46373
46374         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
46375
46376 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
46377
46378         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
46379         working.
46380
46381 2004-08-02  Simon Josefsson  <jas@extundo.com>
46382
46383         * lib/getsubopt.h: New file, with comments from Bruno Haible.
46384         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
46385         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
46386
46387 2004-08-01  Simon Josefsson  <jas@extundo.com>
46388
46389         * lib/xgetdomainname.c: Include stdlib.h, for free().
46390
46391 2004-07-19  Bruno Haible  <bruno@clisp.org>
46392
46393         * MODULES.html.sh (func_all_modules): Add dummy.
46394
46395 2004-07-16  Simon Josefsson  <jas@extundo.com>
46396
46397         * modules/dummy: New file.
46398
46399 2004-07-16  Simon Josefsson  <jas@extundo.com>
46400
46401         * lib/dummy.c: New file.
46402
46403 2004-07-16  Bruno Haible  <bruno@clisp.org>
46404
46405         * lib/backupfile.h: Add extern "C" for C++.
46406         * lib/closeout.h: Likewise.
46407         * lib/copy-file.h: Likewise.
46408         * lib/findprog.h: Likewise.
46409         * lib/full-write.h: Likewise.
46410         * lib/pathname.h: Likewise.
46411         * lib/progname.h: Likewise.
46412         * lib/stpcpy.h: Likewise.
46413         * lib/stpncpy.h: Likewise.
46414         * lib/strcase.h: Likewise.
46415         * lib/strstr.h: Likewise.
46416         * lib/xalloc.h: Likewise.
46417
46418         * lib/mbswidth.h: Add extern "C" for C++.
46419         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
46420
46421 2004-07-13  Robert Millan  <robertmh@gnu.org>
46422
46423         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
46424
46425 2004-07-09  Simon Josefsson  <jas@extundo.com>
46426
46427         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
46428         failed without this.)
46429
46430 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46431
46432         * modules/chown (Files): Add lib/fchown-stub.c, since
46433         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
46434
46435 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46436
46437         * lib/fchown-stub.c: New file.
46438
46439 2004-06-24  Jim Meyering  <jim@meyering.net>
46440
46441         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
46442
46443 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46444
46445         * modules/argz: Omit "#include".
46446
46447         * MODULES.html.sh (func_all_modules): Add calloc, to match
46448         2004-06-01 addition of calloc module.
46449
46450 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46451
46452         * m4/argz.m4: New file, which is autoupdated from libtool.
46453
46454 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46455
46456         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
46457         libtool.
46458
46459 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46460
46461         * config/srclist-update: Don't insist on "USA." before the
46462         close-comment, as libtool omits the period and puts the */ on a
46463         separate line.
46464         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
46465         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
46466
46467 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
46468
46469         * modules/argz: New file.
46470         * MODULES.html.sh (func_all_modules): Add argz.
46471
46472 2004-06-12  Jim Meyering  <jim@meyering.net>
46473         and  Paul Eggert  <eggert@cs.ucla.edu>
46474
46475         * modules/hash (Files): Add lib/xalloc.h.
46476         * modules/pipe (Depends-on): Add wait-process.
46477         * modules/stat (Depends-on): Add xalloc.
46478         * modules/userspec (Files): Add lib/userspec.h.
46479         * modules/xstrto
46480
46481         Upgrade from gettext-0.13.
46482         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
46483         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
46484         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
46485
46486 2004-06-10  Jim Meyering  <jim@meyering.net>
46487
46488         * lib/calloc.c: New file.
46489
46490 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46491
46492         * lib/getdate.y (yylex): Allow space between sign and number.
46493         Problem reported by Dan Jacobson.
46494
46495 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
46496
46497         Merge from coreutils CVS.
46498
46499         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
46500         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
46501         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
46502         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
46503         xstrtol.m4: Fix copyright date and/or serial number.
46504
46505         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
46506         See if we need an fchown replacement.
46507         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
46508         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
46509         and use the replacement function if we detect either defect.
46510
46511         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
46512         gl_UTIMECMP.
46513
46514 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
46515         and  Jim Meyering  <jim@meyering.net>
46516
46517         Merge from coreutils CVS.
46518
46519         * lib/stat-macros.h: New file, with contents from file-type.h
46520         and coreutils' system.h.
46521         * lib/file-type.c: Include "stat-macros.h".
46522         * lib/file-type.h (file_type): Move all macro definitions to new file,
46523         stat-macros.h.
46524
46525         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
46526         Wrap old code with this conditional.
46527         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
46528         function that does not dereference symlinks.
46529         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
46530
46531         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
46532         dependency problems.
46533         (xreadlink): Accept new arg SIZE, for efficiency.
46534         All decls and uses changed.
46535         * lib/xreadlink.h: Include <stddef.h>, for size_t.
46536
46537         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
46538         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
46539
46540         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
46541         sysexits.h.
46542
46543 2004-06-01  Jim Meyering  <jim@meyering.net>
46544
46545         * m4/calloc.m4: New file.
46546
46547 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
46548
46549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
46550         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
46551         Also, fix a typo in a diagnostic.
46552
46553 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
46554
46555         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
46556         or AC_FUNC_REALLOC.
46557
46558 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
46559
46560         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
46561         macros to be defined.
46562         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
46563         the allocator returns NULL because the requested size is zero.
46564
46565 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
46566
46567         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
46568         var.  Add comment explaining why libc still defines it.  This
46569         merges the following patch from glibc:
46570         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
46571
46572 2004-05-20  Andreas Schwab  <schwab@suse.de>
46573
46574         * m4/free.m4: Replace free if it not known to work, not the other
46575         way round.
46576
46577 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46578
46579         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
46580         present in glibc since revision 1.1 of this file.
46581         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
46582         obstack_alignment_mask, obstack_alloc, obstack_base,
46583         obstack_blank, obstack_blank_fast, obstack_chunk_size,
46584         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
46585         obstack_grow0, obstack_init, obstack_int_grow,
46586         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
46587         obstack_next_free, obstack_object_size, obstack_ptr_grow,
46588         obstack_ptr_grow_fast, obstack_room): Remove declarations of
46589         nonexistent functions.
46590
46591 2004-05-18  Karl Berry  <karl@gnu.org>
46592
46593         * config/srclist.txt: break link for vasnprintf.c.
46594
46595 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46596
46597         Port obstack to the AS/400, where pointers are 16 bytes wide and
46598         you cannot cast an integer to a valid pointer.  This patch is
46599         currently waiting to be integrated into glibc; see
46600         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
46601
46602         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
46603         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
46604         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
46605         (struct obstack): temp member is now a union of a pointer and
46606         an integer, instead of an integer.  All integer uses changed.
46607         This does not affect the physical layout of struct obstack,
46608         except on hosts (like the AS/400) where the size or alignment of
46609         void * is greater than that of ptrdiff_t.
46610         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
46611         __STDC__)]: Store temporary in pointer member of union, not
46612         integer member.
46613         * lib/obstack.c: Include <stddef.h>, for offsetof.
46614         (struct fooalign): Remove; it doesn't need a name.
46615         (union fooround): Change double to long double, and add void *.
46616         (DEFAULT_ALIGNMENT): Use offsetof to compute.
46617         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
46618         not a macro.  Hence the values are always int; so remove all
46619         casts-to-int in uses.
46620
46621 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46622
46623         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
46624         we can get this patch merged into glibc.
46625
46626 2004-05-17  Derek R. Price  <derek@ximbiot.com>
46627             Paul Eggert  <eggert@cs.ucla.edu>
46628
46629         * m4/argp: Depend on alloca.
46630
46631 2004-05-17  Derek R. Price  <derek@ximbiot.com>
46632             Paul Eggert  <eggert@cs.ucla.edu>
46633
46634         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
46635         freecoding.
46636
46637 2004-05-17  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
46640         precision that consists of a '.' followed by an empty digit string.
46641         Patch by Tor Lillqvist <tml@iki.fi>.
46642
46643 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
46646         for backward compatibility with older code.  We need our own
46647         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
46648         it under some other name, and our alloca.h will define it.
46649
46650 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46651             Derek Price  <derek@ximbiot.com>
46652
46653         * lib/alloca.c: Include <alloca.h>, to get our interface.
46654         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
46655         include <alloca.h> first.  Use C89 prototype for alloca; this
46656         requires including <stddef.h> for size_t.  Use extern "C" if C++.
46657         Use #elif for simplicity, since we can assume C89 now.
46658         Don't try to source the system alloca.h since it will not be found
46659         and to prevent recursively including its replacement.
46660         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
46661         * lib/regex.c: Likewise.
46662
46663 2004-05-16  Derek Price  <derek@ximbiot.com>
46664             Paul Eggert  <eggert@cs.ucla.edu>
46665
46666         getline cleanup.  This changes the getndelim2 API: both order of
46667         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
46668         no delimiter).
46669
46670         * lib/getline.c: Don't include stddef.h or stdio.h, since our
46671         interface does that.
46672         (getline): Always use getdelim, so that we don't have two
46673         copies of this code.
46674         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
46675         if available.
46676         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
46677         (GETNDELIM2_MAXIMUM): New macro.
46678         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
46679         instead of the old practice of delim2==0.  All callers changed.
46680         Return -1 on overflow, instead of returning junk.
46681         Do not set *linesize unless allocation succeeds.
46682         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
46683         that we include sys/types.h.
46684         * lib/getnline.h: Likewise.
46685         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
46686         (getndelim2): Reorder arguments.
46687         * lib/getnline.c (getnline, getndelim):
46688         Don't discard the NMAX argument.
46689         (getnline): Invoke getndelim, to avoid code duplication.
46690         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
46691         of (size_t) -1 by callers of the getnline family.
46692
46693 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46694
46695         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
46696         Check for gettimeofday.
46697         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
46698         Check for settimeofday, stime.
46699
46700 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46701
46702         * lib/nanosleep.c (suspended): Change its type from int to
46703         sig_atomic_t volatile.
46704         (first_call): Make it private to rpl_nanosleep, and have it
46705         be zero initially as that's a bit faster.
46706         (my_usleep): Round up fractional times instead of truncating them,
46707         as this is the usual meaning for 'sleep'.
46708
46709         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
46710         doesn't work.
46711         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
46712         (ENOSYS): Define if not defined.
46713         (settime): Fall back on stime if it exists and settimeofday fails.
46714         But don't bother with fallbacks if a method fails with errno == EPERM.
46715
46716 2004-05-11  Jim Meyering  <jim@meyering.net>
46717
46718         Prior to this change, the save_cwd caller required read access to the
46719         current directory on most systems (ones with the fchdir function).
46720
46721         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
46722         fails, try write-only, and finally, resort to using xgetcwd.
46723
46724 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
46725
46726         * lib/obstack.c, obstack.h: Import changes from libc.
46727
46728 2004-04-28  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
46731         also implicitly appends .exe to executables.
46732         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
46733         accepts Windows pathnames.
46734         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46735         Treat Cygwin like Windows, since it now accepts Windows pathnames.
46736         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46737         Treat Cygwin like Windows, since it now accepts Windows pathnames.
46738         Reported by Derek Robert Price <derek@ximbiot.com>.
46739
46740 2004-04-21  Karl Berry  <karl@gnu.org>
46741
46742         * config/srclist.txt (localcharset.c): break sync.
46743
46744 2004-04-20  Paul Eggert  <eggert@twinsun.com>
46745
46746         * m4/host-os.m4: Add a copyright notice.
46747
46748 2004-04-20  Jim Meyering  <jim@meyering.net>
46749
46750         Change UTILS_ to gl_ in AC_DEFINE'd names.
46751         Change utils_- and jm_-prefixed variables, too.
46752         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
46753         UTILS_FUNC_MKDIR_TRAILING_SLASH.
46754         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
46755
46756         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
46757         Don't emit trailing blanks.
46758         Also rename jm_-prefixed variables to have gl_ prefix.
46759
46760         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
46761         Also rename jm_-prefixed variables to have gl_ prefix.
46762
46763         * m4/jm-macros.m4: Reflect the renamings.
46764         * m4/prereq.m4: Likewise.
46765
46766 2004-04-20  Jim Meyering  <jim@meyering.net>
46767
46768         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
46769         memory.
46770
46771 2004-04-20  Jim Meyering  <jim@meyering.net>
46772             Bruno Haible  <bruno@clisp.org>
46773
46774         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
46775         memory when realloc fails.
46776
46777 2004-04-19  Jim Meyering  <jim@meyering.net>
46778
46779         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
46780         now that readutmp.c may call `free (0)'.
46781
46782 2004-04-19  Bruno Haible  <bruno@clisp.org>
46783
46784         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
46785         * m4/inttypes_h.m4: Likewise.
46786         * m4/stdint_h.m4: Likewise.
46787         * m4/intmax_t.m4: Likewise.
46788         * m4/uintmax_t.m4: Likewise.
46789
46790 2004-04-18  Jim Meyering  <jim@meyering.net>
46791
46792         * m4/prereq.m4: Don't forbid jm_ prefix.
46793
46794         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
46795         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
46796         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
46797         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
46798         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
46799         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
46800         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
46801         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
46802         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
46803         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
46804         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
46805         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
46806         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
46807         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
46808         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
46809         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
46810         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
46811         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
46812         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
46813
46814 2004-04-18  Jim Meyering  <jim@meyering.net>
46815
46816         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
46817         failure, don't leak memory and do call END_UTMP_ENT.
46818
46819 2004-04-16  Jim Meyering  <jim@meyering.net>
46820
46821         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
46822         coreutils' stat program.
46823         (gl_PREREQ): Don't require jm_PREREQ_STAT.
46824
46825 2004-04-11  Paul Eggert  <eggert@twinsun.com>
46826
46827         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
46828         C89.
46829         (CHAR_BIT): Remove, since we assume C89.
46830         Include <stdint.h> if available, as per current Autoconf CVS advice.
46831
46832 2004-03-31  Jim Meyering  <jim@meyering.net>
46833
46834         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
46835         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
46836         * m4/xalloc.m4: Likewise.
46837
46838 2004-03-30  Paul Eggert  <eggert@twinsun.com>
46839
46840         Merge from coreutils.
46841
46842         * m4/inttostr.m4: New file.
46843         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
46844         Require AM_STDBOOL_H and gl_TIMESPEC instead.
46845         Require gl_CLOCK_TIME.
46846         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
46847
46848 2004-03-30  Paul Eggert  <eggert@twinsun.com>
46849
46850         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
46851         not bool, to be more consistent with Unix conventions.
46852         Suggested by Bruno Haible.
46853
46854         Merge from coreutils.
46855
46856         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
46857         * lib/umaxtostr.c: New files.
46858
46859         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
46860         the usual <time.h> dance.
46861         (get_date): Change signature to support fractional time stamps.
46862         All callers changed.
46863         * lib/getdate.y: Include "getdate.h" first, as we can now
46864         assume C89 and don't need to worry about 'const'.
46865         Similarly, include "unlocked-io.h" near start, not in middle.
46866         Include <limits.h>.
46867         (textint.value): Use long int rather than int.
46868         (textint.digits): Use size_t rather than int.
46869         (BILLION, LOG10_BILLION): New constants.
46870         (parser_control): New member rel_ns.  Members day_ordinal,
46871         time_zone, month, day, hour, minutes, rel_year, rel_month,
46872         rel_day, rel_hour, rel_minutes, rel_seconds
46873         are now long int, not int.  Member seconds is now struct timespec,
46874         not int.  New member timespec_seen.  Members dates_seen, days_seen,
46875         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
46876         not int.
46877         (%union.intval): Now long int, not int.
46878         New member timespec.
46879         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
46880         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
46881         (spec): Now is a timespec or an item list.
46882         (timespec, items): New nonterminals.
46883         (time, rel, relunit, number, get_date):
46884         Add support for fractional seconds.
46885         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
46886         (gmtime, localtime, mktime): Remove decls; not needed with C89.
46887         (to_hour): First arg is now long int, not int.
46888         (to_year): Returns long int, not int.
46889         Don't treat year -70 like 70.
46890         (tm_diff): Returns long int, not int.
46891         (lookup_word): Use bool instead of int when appropriate.
46892         (yylex): Use size_t for count, not int.
46893         Detect overflow when parsing large integer constants.
46894         Add support for fractions.
46895         (get_date): Make pointers 'const' if possible.
46896         Use more-portable code to detect integer overflow.
46897         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
46898         Don't use ctime; it's not reliable if the year has >4 digits.
46899
46900         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
46901         This is for compatibility with BSD.
46902
46903         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
46904         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
46905         From coreutils' system.h.
46906
46907         * lib/userspec.c: Don't include "posixver.h".
46908         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
46909         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
46910         compatible extension.  Simplify code by removing a boolean int
46911         that was always nonzero if a string was nonnull.
46912
46913 2004-03-30  Jim Meyering  <jim@meyering.net>
46914
46915         Merge from coreutils.
46916
46917         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
46918         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
46919         on some systems one must include <grp.h> before it.
46920         Reported by Christian Krackowizer.
46921
46922 2004-03-30  Jim Meyering  <jim@meyering.net>
46923
46924         Merge from coreutils.
46925
46926         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
46927
46928         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
46929         an empty input stream.
46930
46931         * lib/readtokens.c: Include <stdbool.h>.
46932         (readtoken): Use `size_t' rather than int/long.
46933         All callers adjusted.
46934         Use `bool' rather than `int' where appropriate.
46935         Use memset rather than an explicit loop.
46936         Use x2nrealloc rather than xrealloc.
46937         Allow the use of `\0' as a delimiter.
46938         (readtokens): Likewise.
46939         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
46940
46941 2004-03-30  Jim Meyering  <jim@meyering.net>
46942
46943         * m4/realloc.m4: Remove file, since now it does no more than
46944         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
46945         the `configure.ac' section of module/realloc.
46946         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
46947
46948 2004-03-30  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
46951         nonnull.
46952
46953 2004-03-29  Paul Eggert  <eggert@twinsun.com>
46954
46955         Merge changes to getloadavg.c from coreutils and Emacs.
46956
46957         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
46958         Define to an expression, not to the empty string.
46959         Include cloexec.h and xalloc.h.
46960         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
46961         Use set_cloexec_flag rather than rolling our own.
46962         * lib/cloexec.c, lib/cloexec.h: New files.
46963
46964 2004-03-29  Paul Eggert  <eggert@twinsun.com>
46965
46966         * m4/cloexec.m4: New file.
46967
46968 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46969
46970         * lib/getopt.h: Sync with libc CVS.
46971
46972 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46973             Bruno Haible  <bruno@clisp.org>
46974
46975         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
46976         mbswidth.
46977
46978 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46979             Bruno Haible  <bruno@clisp.org>
46980
46981         * lib/mbswidth.h: Include <wchar.h> only if
46982         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
46983         <wchar.h>.
46984         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
46985
46986 2004-03-09  Paul Eggert  <eggert@twinsun.com>
46987
46988         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
46989         Sync with libc CVS.
46990         * lib/getopt_int.h: New file, also synced from libc.
46991
46992 2004-03-09  Paul Eggert  <eggert@twinsun.com>
46993
46994         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
46995         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
46996         Bring back getopt.c, getopt.h, getopt1.c.
46997
46998 2004-03-07  Paul Eggert  <eggert@twinsun.com>
46999
47000         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
47001         All uses changed.  Check for sa_sigaction member; this fixes
47002         a bug first reported by Jason Andrade in
47003         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
47004
47005 2004-03-07  Paul Eggert  <eggert@twinsun.com>
47006
47007         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
47008         '#if' expressions.  Unlike the code it replaces, it does not
47009         depend on (defined _SC_PAGESIZE).  However, it does depend on
47010         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
47011         first reported by Jason Andrade in
47012         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
47013
47014 2004-02-25  Simon Josefsson  <jas@extundo.com>
47015
47016         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
47017
47018 2004-02-25  Simon Josefsson  <jas@extundo.com>
47019
47020         * lib/strdup.h: New file.
47021         * lib/strdup.c: Include it.
47022         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
47023         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
47024
47025 2004-02-23  Karl Berry  <karl@gnu.org>
47026
47027         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
47028         (from fencepost.gnu.org:/gd/gnuorg).
47029
47030 2004-02-23  Karl Berry  <karl@gnu.org>
47031
47032         * config/srclistvars.sh (GNUORG) [karl]: redefine.
47033         * config/srclist.txt: add maintain/standards documents.
47034
47035 2004-02-18  Bruno Haible  <bruno@clisp.org>
47036
47037         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
47038         Reported by Derek Robert Price <derek@ximbiot.com>.
47039
47040 2004-02-16  Karl Berry  <karl@gnu.org>
47041
47042         * config/mkinstalldirs, install-sh: update from automake.
47043
47044 2004-02-06  Karl Berry  <karl@gnu.org>
47045
47046         * m4/po.m4: update from gettext 0.14.1.
47047
47048 2004-02-06  Karl Berry  <karl@gnu.org>
47049
47050         * lib/config.charset: update from gettext 0.14.1.
47051
47052 2004-02-05  Paul Eggert  <eggert@twinsun.com>
47053
47054         Add comments and code, prompted by suggestions from Bruno Haible
47055         for sh-quote.
47056         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
47057         describing the enum quoting_style values.
47058         * lib/quotearg.c (quotearg_alloc): New function.
47059         (quotearg_buffer_restyled): Treat lone { and } as special.
47060         Treat = as special.  Work around bug with older shells
47061         that "see" a '\' that is really the 2nd byte of a multibyte char.
47062         Quote empty string with shell_quoting_style.
47063
47064 2004-02-03  Bruno Haible  <bruno@clisp.org>
47065
47066         * m4/pipe.m4: New file, from GNU gettext.
47067
47068 2004-02-03  Bruno Haible  <bruno@clisp.org>
47069
47070         * lib/pipe.h: New file, from GNU gettext.
47071         * lib/pipe.c: New file, from GNU gettext.
47072
47073 2004-01-27  Bruno Haible  <bruno@clisp.org>
47074
47075         * m4/execute.m4: New file, from GNU gettext.
47076
47077 2004-01-27  Bruno Haible  <bruno@clisp.org>
47078
47079         * lib/execute.h: New file, from GNU gettext.
47080         * lib/execute.c: New file, from GNU gettext.
47081         * lib/w32spawn.h: New file, from GNU gettext.
47082
47083 2004-01-24  Paul Eggert  <eggert@twinsun.com>
47084
47085         Merge from diffutils.
47086
47087         * lib/file-type.c (file_type): Add typed memory objects.
47088         * lib/file-type.h (S_TYPEISTMO): New macro.
47089
47090         * lib/c-stack.h (c_stack_action): Remove argv argument.
47091         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
47092         (die): Don't calculate message unless segv_action returns.
47093         (get_stack_location, min_address_from_argv, max_address_from_argv,
47094         volatile stack_base, volatile_stack_size): Remove.
47095         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
47096         that every segmentation violation is a stack overflow.  (Ouch!)
47097         See Debian bug 136249 (still outstanding) for more info about why
47098         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
47099
47100 2004-01-24  Paul Eggert  <eggert@twinsun.com>
47101
47102         Exit-status fix from coreutils.
47103
47104         Use exit_failure consistently in place of EXIT_FAILURE,
47105         so that program exit statuses are consistent on failure.
47106
47107         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
47108         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
47109         * lib/argmatch.h: Comment fix to match the above.
47110         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
47111         Now a macro referring to exit_failure, instead of a separate
47112         variable.  Include "exitfail.h" to get it.
47113         * lib/xstrtol.h: Include "exitfail.h".
47114         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
47115
47116         * lib/long-options.c (parse_long_options): Use prototype
47117         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
47118         for clarity.
47119
47120 2004-01-21  Jim Meyering  <jim@meyering.net>
47121
47122         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
47123         so as not to conflict with a different-sized __mktime_internal
47124         function in GNU libc.
47125         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
47126         Problem building statically-linked `ls' reported by Michael Brunnbauer.
47127
47128 2004-01-20  Karl Berry  <karl@gnu.org>
47129
47130         * config/config.guess: update from config.
47131
47132         * config/srclistvars.sh: GNUWWWLICENSES for karl.
47133
47134 2004-01-20  Bruno Haible  <bruno@clisp.org>
47135
47136         Safer stack allocation.
47137         * lib/setenv.c: Include allocsa.h.
47138         (alloca): Remove fallback definition.
47139         (freea): Remove macro.
47140         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
47141         instead of freea.
47142
47143 2004-01-20  Bruno Haible  <bruno@clisp.org>
47144
47145         * m4/eealloc.m4: New file, from GNU gettext.
47146
47147 2004-01-20  Bruno Haible  <bruno@clisp.org>
47148
47149         * m4/allocsa.m4: New file, from GNU gettext.
47150
47151 2004-01-20  Bruno Haible  <bruno@clisp.org>
47152
47153         * lib/xallocsa.h: New file, from GNU gettext.
47154         * lib/xallocsa.c: New file, from GNU gettext.
47155
47156 2004-01-20  Bruno Haible  <bruno@clisp.org>
47157
47158         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
47159
47160 2004-01-20  Bruno Haible  <bruno@clisp.org>
47161
47162         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
47163         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
47164         specially.
47165
47166 2004-01-20  Bruno Haible  <bruno@clisp.org>
47167
47168         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
47169         patch.
47170
47171 2004-01-20  Bruno Haible  <bruno@clisp.org>
47172
47173         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
47174
47175 2004-01-20  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/eealloc.h: New file.
47178
47179 2004-01-20  Bruno Haible  <bruno@clisp.org>
47180
47181         * lib/binary-io.h: Avoid warnings on Cygwin.
47182
47183 2004-01-20  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/allocsa.h: New file, from GNU gettext.
47186         * lib/allocsa.c: New file, from GNU gettext.
47187
47188 2004-01-18  Karl Berry  <karl@gnu.org>
47189
47190         * doc/gpl.texi, doc/lgpl.texi: new files.
47191
47192 2004-01-18  Karl Berry  <karl@gnu.org>
47193
47194         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
47195         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
47196
47197 2004-01-15  Paul Eggert  <eggert@twinsun.com>
47198
47199         Merge from coreutils.
47200
47201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
47202         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
47203         (gl_DEFAULT_POSIX2_VERSION): Move
47204         the documentation from 'configure' into 'config.hin',
47205         so that 'configure --help' isn't burdened by it and
47206         we don't have to worry about its formatting there.
47207         Reword the documentation so that it's more succinct
47208         and can be run together into a single paragraph.
47209         * m4/same.m4 (gl_SAME): Check for pathconf.
47210
47211 2004-01-15  Paul Eggert  <eggert@twinsun.com>
47212
47213         Merge from coreutils.
47214
47215         * lib/posixver.c: Include posixver.h.
47216
47217         * lib/same.c: Include <stdbool.h>, <limits.h>.
47218         (_POSIX_NAME_MAX): Define if not defined.
47219         (MIN): New macro.
47220         (same_name): If file names are silently truncated, report
47221         that the file names are the same if they are the same after
47222         the silent truncation.
47223
47224         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
47225         conversion function.
47226         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
47227         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
47228         longer needed.
47229
47230 2004-01-15  Jim Meyering  <jim@meyering.net>
47231
47232         Merge from coreutils.
47233
47234         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
47235         if no library is required.
47236         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
47237         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
47238         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
47239         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
47240         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
47241         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
47242         value, $ac_cv_search_crypt, if it's "none required".
47243         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
47244         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
47245         not gl_FUNC_GETLOADAVG.
47246         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
47247         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
47248
47249 2004-01-15  Jim Meyering  <jim@meyering.net>
47250
47251         Merge from coreutils.
47252
47253         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
47254         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
47255         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
47256
47257         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
47258         optional configure-time default.
47259
47260         * lib/version-etc.c (version_etc_copyright): Update copyright date.
47261
47262         * lib/xreadlink.c (xreadlink): Correct outdated comment.
47263
47264 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
47265
47266         Merge from coreutils.
47267
47268         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
47269         value, $ac_cv_search_nanosleep, if it's "none required".
47270
47271 2004-01-14  Paul Eggert  <eggert@twinsun.com>
47272
47273         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
47274         with like-named macro in fnmatch.c.
47275         (EXT): Use an internal constant instead.
47276
47277         Merge fnmatch patches from glibc.
47278         * lib/fnmatch.c (mbsinit): Remove define.
47279         Add libc_hidden_ver (__fnmatch, fnmatch).
47280         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
47281         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
47282
47283 2004-01-14  Karl Berry  <karl@gnu.org>
47284
47285         * config/install-sh: update from automake.
47286
47287 2004-01-13  Karl Berry  <karl@gnu.org>
47288
47289         * config/install-sh: update from automake.
47290
47291 2004-01-09  Karl Berry  <karl@gnu.org>
47292
47293         * config/install-sh: update from automake.
47294
47295 2004-01-05  Karl Berry  <karl@gnu.org>
47296
47297         * config/config.{sub,guess}: update from config.
47298
47299 2003-12-31  Karl Berry  <karl@gnu.org>
47300
47301         * config/depcomp: update from automake.
47302
47303 2003-12-14  Karl Berry  <karl@gnu.org>
47304
47305         * lib/config.charset: update from gettext-runtime.
47306
47307 2003-12-03  Paul Eggert  <eggert@twinsun.com>
47308
47309         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
47310         Bug reported by Alfred M. Szmidt.
47311
47312 2003-12-03  Bruno Haible  <bruno@clisp.org>
47313
47314         * m4/gettext.m4: Upgrade from gettext-0.13.
47315         * m4/po.m4: Upgrade from gettext-0.13.
47316         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
47317         * m4/intmax.m4: New file, from gettext-0.13.
47318         * m4/printf-posix.m4: New file, from gettext-0.13.
47319
47320 2003-11-29  Karl Berry  <karl@gnu.org>
47321
47322         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
47323
47324 2003-11-25  Paul Eggert  <eggert@twinsun.com>
47325             Bruno Haible  <bruno@clisp.org>
47326
47327         * lib/printf-parse.h: Don't include sys/types.h.
47328         (ARG_NONE): New macro.
47329         (char_directive): Change type of *arg_index fields to size_t.
47330         * lib/printf-parse.c: Don't include sys/types.h.
47331         (SSIZE_MAX): Remove macro.
47332         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
47333         Remove unnecessary overflow check.
47334         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
47335         fields.
47336
47337 2003-11-25  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
47340
47341 2003-11-25  Bruno Haible  <bruno@clisp.org>
47342
47343         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
47344         gt_TYPE_SSIZE_T.
47345
47346 2003-11-24  Paul Eggert  <eggert@twinsun.com>
47347
47348         * modules/alloca: Remove dependency on xalloc.
47349
47350 2003-11-24  Paul Eggert  <eggert@twinsun.com>
47351
47352         * lib/alloca.c: Remove dependency on xalloc module.
47353         (xalloc_die): Remove.
47354         (memory_full) [!defined emacs]: New macro.
47355         [!defined emacs]: Don't include xalloc.h.
47356         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
47357         address arithmetic overflows.  Change datatypes a bit to avoid
47358         unnecessary casts.
47359
47360 2003-11-22  Jim Meyering  <jim@meyering.net>
47361
47362         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
47363         s/size/size_t/.
47364
47365 2003-11-21  Karl Berry  <karl@gnu.org>
47366
47367         * config/config.{sub,guess}: update from config.
47368
47369 2003-11-18  Karl Berry  <karl@gnu.org>
47370
47371         * config/config.{sub,guess}: update from config.
47372
47373         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
47374
47375 2003-11-17  Paul Eggert  <eggert@twinsun.com>
47376
47377         * README: Mention that S+T cannot overflow if S is the size of
47378         an existing object and T is sufficiently small.
47379
47380 2003-11-17  Jim Meyering  <jim@meyering.net>
47381
47382         On systems without utime and without a utimes function capable of
47383         dealing with a NULL struct utimbuf* argument, this utime replacement
47384         could -- in unusual circumstances -- leak a file descriptor.
47385         * lib/utime.c: Include <unistd.h> and <errno.h>.
47386         (utime_null): Be sure to close `fd' and to preserve errno.
47387         Reported by Geoff Collyer via Arnold Robbins.
47388
47389 2003-11-17  Bruno Haible  <bruno@clisp.org>
47390
47391         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
47392         (Depends-on): Add xsize.
47393
47394 2003-11-17  Bruno Haible  <bruno@clisp.org>
47395
47396         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
47397
47398 2003-11-17  Bruno Haible  <bruno@clisp.org>
47399
47400         * lib/vasnprintf.c (alloca): Remove fallback definition.
47401         (freea): Remove definition.
47402         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
47403         Reported by Paul Eggert.
47404
47405 2003-11-16  Paul Eggert  <eggert@twinsun.com>
47406             Bruno Haible  <bruno@clisp.org>
47407
47408         Protect against address arithmetic overflow.
47409         * lib/printf-args.h: Include stddef.h.
47410         (arguments): Change type of field 'count' to size_t.
47411         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
47412         'unsigned int' where appropriate.
47413         * lib/printf-parse.h: Include sys/types.h.
47414         (char_directive): Change type of *arg_index fields to ssize_t.
47415         (char_directives): Change type of fields 'count', max_*_length to
47416         size_t.
47417         * lib/printf-parse.c: Include sys/types.h and xsize.h.
47418         (SSIZE_MAX): Define fallback value.
47419         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
47420         instead of 'int' where appropriate. Check a_allocated, d_allocated
47421         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
47422         * lib/vasnprintf.c: Include xsize.h.
47423         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
47424         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
47425         overflow. Avoid wraparound when converting a width or precision from
47426         decimal to binary.
47427
47428 2003-11-16  Bruno Haible  <bruno@clisp.org>
47429
47430         Update from GNU gettext.
47431         * lib/printf-parse.c: Generalize to it can be compiled for wide
47432         strings.
47433         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
47434         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
47435         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
47436         SNPRINTF): New macros.
47437         Don't include <alloca.h> if the file is used inside libintl.
47438         (local_wcslen): New function, for Solaris 2.5.1.
47439         (VASNPRINTF): Use it instead of wcslen.
47440
47441 2003-11-16  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/xsize.h (xmax): New function.
47444         (xsum, xsum3, xsum4): Declare as "pure" functions.
47445
47446 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47447
47448         * modules/xalloc (Files): Undo latest change, since xalloc.h
47449         no longer needs SIZE_MAX or PTRDIFF_MAX.
47450
47451 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47452
47453         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
47454         gl_PTRDIFF_MAX.
47455
47456 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47457
47458         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
47459         "return", to pacify some unknown compiler.  Problem reported
47460         by Joerg Schilling.
47461
47462 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47463
47464         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
47465         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
47466         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
47467         heuristic is just as accurate as far as we know, and it removes a
47468         dependency on size_max.m4 and ptrdiff_max.m4.
47469
47470 2003-11-11  Bruno Haible  <bruno@clisp.org>
47471
47472         * modules/xsize (Files): Add m4/size_max.m4.
47473         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
47474
47475 2003-11-11  Bruno Haible  <bruno@clisp.org>
47476
47477         * m4/size_max.m4: New file.
47478         * m4/ptrdiff_max.m4: New file.
47479         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
47480         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
47481         (gl_XALLOC): Invoke it.
47482
47483 2003-11-11  Bruno Haible  <bruno@clisp.org>
47484
47485         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
47486         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
47487         defined.
47488
47489 2003-11-10  Paul Eggert  <eggert@twinsun.com>
47490
47491         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
47492         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
47493         rejected some allocations of exactly SIZE_MAX - 2 bytes.
47494         From Bruno Haible.
47495         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
47496         not (size_t) -1, since it's defined here.
47497
47498 2003-11-09  Karl Berry  <karl@gnu.org>
47499
47500         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
47501
47502 2003-11-06  Paul Eggert  <eggert@twinsun.com>
47503
47504         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
47505         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
47506         Reject sizes of exactly SIZE_MAX bytes.
47507         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
47508         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
47509
47510 2003-11-05  Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/xsize.h: Include limits.h, to avoid a possible collision with
47513         SIZE_MAX defined in <limits.h> on Solaris.
47514
47515 2003-11-04  Jim Meyering  <jim@meyering.net>
47516
47517         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
47518         variable names, rather than @VAR@.
47519         * modules/poll: Likewise.
47520
47521 2003-11-04  Bruno Haible  <bruno@clisp.org>
47522
47523         * modules/xsize: New file.
47524         * modules/linebreak: Depend on xsize.
47525         * MODULES.html.sh (func_all_modules): Add xsize.
47526
47527 2003-11-04  Bruno Haible  <bruno@clisp.org>
47528
47529         * m4/xsize.m4: New file.
47530
47531 2003-11-04  Bruno Haible  <bruno@clisp.org>
47532
47533         * lib/xsize.h: New file.
47534         * lib/linebreak.c: Include xsize.h.
47535         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
47536         argument for overflow.
47537         Suggested by Paul Eggert.
47538
47539 2003-11-03  Karl Berry  <karl@gnu.org>
47540
47541         * config/config.{guess,sub}: update from config.
47542
47543 2003-11-03  Jim Meyering  <jim@meyering.net>
47544
47545         * modules/userspec (lib_SOURCES): Add userspec.h.
47546         (Include): Add "userspec.h".
47547         Improve description.
47548
47549 2003-11-03  Jim Meyering  <jim@meyering.net>
47550
47551         * lib/userspec.c: Include "userspec.h".
47552         * lib/userspec.h: New file.
47553
47554 2003-11-03  Bruno Haible  <bruno@clisp.org>
47555
47556         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
47557
47558 2003-11-03  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
47561         available, to avoid (extremely rare) race condition.
47562         Suggested by Paul Eggert.
47563
47564 2003-11-02  Karl Berry  <karl@gnu.org>
47565
47566         * config/srclist.txt (vasprintf.c): sync broken, sigh.
47567
47568 2003-10-31  Paul Eggert  <eggert@twinsun.com>
47569
47570         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
47571         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
47572         (read_filesystem_list): Set and use me_type_malloced.
47573         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
47574         whatever the type happens to be), for brevity and consistency.
47575         Check for size calculation overflow on Alphas running OSF/1.
47576
47577 2003-10-31  Jim Meyering  <jim@meyering.net>
47578
47579         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
47580
47581         * lib/linebuffer.c: Include <string.h> for declaration of memset.
47582
47583 2003-10-30  Paul Eggert  <eggert@twinsun.com>
47584             Bruno Haible  <bruno@clisp.org>
47585
47586         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
47587         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
47588
47589 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47590
47591         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
47592         netbsd*-gnu*.  Suggested by Robert Millan.
47593
47594 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47595
47596         * modules/group-member: Depend on stdbool.
47597
47598 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47599
47600         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
47601
47602 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47603
47604         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
47605         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
47606         after the 'gnu' in these cases.  This fixes some bugs in the
47607         previous change, and is based on suggestions by Robert Millan.
47608
47609 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47610
47611         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
47612         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
47613         no longer needed.
47614         * lib/quotearg.c (quotearg_n_options): Use it.
47615         * lib/group-member.c: Include <stdbool.h>.
47616         (free_group_info): Arg is now const *; don't free arg.
47617         (get_group_info): Now returns bool and accepts struct group_info *,
47618         rather than returning a malloc'ed struct group_info *.
47619         All uses changed.  Check for overflow in internal size calculation.
47620
47621         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
47622         rather than xmalloc/xrealloc.
47623         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
47624         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
47625         conformance bug: the old code used a pointer after freeing the
47626         storage that it addressed.
47627         * lib/hash.c (hash_initialize): Simplify the code by using
47628         xalloc_oversized rather than doing it by hand.
47629         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
47630         the buffer preserved.  Use free and xmalloc instead.
47631         * lib/quotearg.c (quotearg_n_options): Likewise.
47632         Use a simpler test for size overflow.  Don't use xalloc_oversized
47633         because unsigned int might be wider than size_t (!); this suggests
47634         that we should switch from unsigned int to size_t for slot numbers.
47635
47636 2003-10-28  Paul Eggert  <eggert@twinsun.com>
47637
47638         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
47639         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
47640         NetBSD kernels.  Requested by Richard Stallman.
47641
47642 2003-10-27  Paul Eggert  <eggert@twinsun.com>
47643
47644         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
47645         to allocate the returned structure.  Do not allocate a subarray,
47646         as x2nrealloc will do that.
47647         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
47648         instead of xnrealloc.
47649         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
47650
47651 2003-10-27  Bruno Haible  <bruno@clisp.org>
47652
47653         * lib/stdbool_.h: Better support for BeOS.
47654
47655 2003-10-26  Paul Eggert  <eggert@twinsun.com>
47656
47657         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
47658         now uses inline.
47659
47660 2003-10-26  Paul Eggert  <eggert@twinsun.com>
47661
47662         * lib/xalloc.h (xalloc_oversized): New static inline function, for
47663         callers that want to do their own size-overflow checking.  Include
47664         <stdbool.h>, since xalloc_oversized returns bool.
47665         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
47666         to use xalloc_oversized.
47667
47668         Add two functions x2realloc, x2nrealloc, for programs that grow
47669         arrays dynamically by doubling their sizes.
47670         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
47671         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
47672         New functions.
47673
47674         Port to C99 semantics for 'inline' of external functions.
47675         Bug reported by Bruno Haible.
47676         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
47677         with the old contents of xnmalloc.
47678         (xnmalloc, xmalloc): Use it.
47679         (xnrealloc_inline): New static inline function,
47680         with the old contents of xnrealloc.
47681         (xnrealloc, xrealloc): Use it.
47682
47683         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
47684         that.
47685
47686 2003-10-26  Karl Berry  <karl@gnu.org>
47687
47688         * config/srclist.txt (COPYING.DOC): no longer available from
47689         /gd/gnuorg; don't know where the ultimate source is.
47690
47691 2003-10-25  Paul Eggert  <eggert@twinsun.com>
47692
47693         Fix several address-calculation bugs in the hash modules,
47694         plus some minor code cleanup.
47695
47696         * lib/hash.h: Include <stdbool.h>, for bool.
47697         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
47698         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
47699         hash_get_n_entries, hash_get_max_bucket_length,
47700         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
47701         hash_rehash): Use size_t rather than unsigned.
47702         * lib/hash.c (struct hash_table, hash_get_n_buckets,
47703         hash_get_n_buckets_used, hash_get_n_entries,
47704         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
47705         hash_get_entries, hash_do_for_each, hash_string, is_prime,
47706         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
47707         Likewise.
47708         (SIZE_MAX): Define if not defined.
47709         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
47710         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
47711         hash_print):
47712         Use const * when possible.
47713         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
47714         (check_tuning): Fix bug: if tuning parameters were very close to
47715         0 or 1, rounding errors could have caused subscript violations.
47716         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
47717         (hash_initialize): Add 'fail:' label
47718         to free table and return NULL, and use it to simplify code.
47719         Use calloc rather than clearing the storage ourself.
47720         (hash_initialize, hash_rehash): Check for arithmetic overflow in
47721         buffer size calculations.
47722         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
47723         Include <stddef.h>, for size_t.
47724         * lib/hash-pjw.c (hash_pjw): Likewise.
47725         Switch to method described by Bruno Haible.
47726         Include <limits.h>, for CHAR_BIT.
47727         (SIZE_BITS): New macro.
47728
47729 2003-10-23  Paul Eggert  <eggert@twinsun.com>
47730
47731         * m4/getline.m4 (AM_FUNC_GETLINE):
47732         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
47733         hosts.  Problem reported by Derek Robert Price in
47734         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
47735         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
47736         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
47737
47738 2003-10-21  Paul Eggert  <eggert@twinsun.com>
47739
47740         * lib/getndelim2.c (getndelim2): When size calculation overflows,
47741         ceiling the allocation at NMAX bytes rather than silently
47742         discarding input bytes before NMAX is reached.  This makes
47743         a difference only if NMAX exceeds SIZE_MAX / 2.
47744
47745         * lib/obstack.c: Merge from glibc.
47746         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
47747         Add libc_hidden_def (_obstack_newchunk).
47748         (_obstack_free) [! defined _LIBC]: Remove.
47749         [defined _LIBC]: Make a strong alias from obstack_free, rather than
47750         a clone of the function body.
47751         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
47752         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
47753
47754         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
47755         glibc.
47756         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
47757         arg to memcpy.
47758
47759         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
47760         (obstack_ptr_grow_fast, obstack_int_grow_fast):
47761         Don't use lvalue casts, as GCC plans to remove support for them
47762         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
47763         was also present in the non-GCC version, indicating that this
47764         code had always been buggy and had never been widely used.
47765         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
47766         Use the fast variant of each macro, rather than copying the
47767         definiens of the fast variant; that way, we'll be more likely to
47768         catch future bugs in the fast variants.
47769
47770 2003-10-20  Bruno Haible  <bruno@clisp.org>
47771
47772         * modules/wait-process: New file.
47773         * MODULES.html.sh (func_all_modules): Add wait-process.
47774
47775 2003-10-20  Bruno Haible  <bruno@clisp.org>
47776
47777         * m4/wait-process.m4: New file.
47778
47779 2003-10-20  Bruno Haible  <bruno@clisp.org>
47780
47781         * lib/wait-process.h: New file, from GNU gettext.
47782         * lib/wait-process.c: New file, from GNU gettext.
47783
47784 2003-10-19  Jim Meyering  <jim@meyering.net>
47785
47786         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
47787         HPUX 10.20.
47788
47789 2003-10-18  Karl Berry  <karl@gnu.org>
47790
47791         * config/config.guess: update from config.
47792
47793 2003-10-16  Paul Eggert  <eggert@twinsun.com>
47794
47795         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
47796         (getgroups): First arg is int, not size_t.
47797         Don't let 'free' mangle errno.
47798
47799 2003-10-16  Paul Eggert  <eggert@twinsun.com>
47800
47801         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
47802
47803 2003-10-16  Karl Berry  <karl@gnu.org>
47804
47805         * config/config.{guess,sub}: update from config.
47806
47807 2003-10-16  Jim Meyering  <jim@meyering.net>
47808
47809         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
47810         memcpy.
47811
47812 2003-10-15  Paul Eggert  <eggert@twinsun.com>
47813
47814         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
47815         (SIZE_MAX): Remove.
47816         (new_exclude, add_exclude_file): Initial size no longer needs to
47817         be a power of 2.
47818         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
47819         our own address arithmetic overflow checking.
47820
47821         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
47822         (fnmatch): Do not alloca more than 2000 wide characters;
47823         instead, use malloc for large buffers.
47824         Check for address arithmetic overflow, and return -1
47825         with errno set to ENOMEM in that case.
47826         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
47827         (NEW_PATTERN): Do not alloca more than 8000 bytes;
47828         instead, return -1.  Check for address arithmetic overflow.
47829
47830 2003-10-14  Paul Eggert  <eggert@twinsun.com>
47831
47832         Handle invalid suffixes and overflow independently, so that
47833         callers can treat them independently as needed.  Fix some bugs in
47834         suffix handling, e.g., "100k@" was not diagnosed as an invalid
47835         suffix for a human-readable blocksize.  The major caller-visible
47836         change is the addition of a new
47837         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
47838         that both overflow and suffix chars were found.
47839
47840         * lib/human.c (humblock): Don't check separately for invalid suffix
47841         char; that is xstrtoumax's job (now that its bug is fixed).
47842         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
47843         INTMAX_MAX]: New macros.
47844         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
47845         TYPE_MAXIMUM): New macros.
47846         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
47847         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
47848         if overflow occurs, as it's what __strtol does and it's more useful
47849         in practice.
47850         (__xstrtol): If __strtol reports some error other than ERANGE,
47851         reflect it to the caller as LONGINT_INVALID.  If it reports
47852         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
47853         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
47854         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
47855         value.
47856         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
47857         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
47858         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
47859         [defined UINTMAX_MAX]: New macros.
47860
47861 2003-10-14  Bruno Haible  <bruno@clisp.org>
47862
47863         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
47864
47865 2003-10-14  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/sig_atomic_t: New file, from GNU gettext.
47868         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
47869
47870 2003-10-14  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
47873         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
47874         Also use volatile where needed.
47875
47876 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47877
47878         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
47879         Change maintainer from Bruno Haible to 'all'.
47880
47881 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47882
47883         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
47884
47885 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47886
47887         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
47888         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
47889         and define in terms of the other primitives.
47890         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
47891         (SIZE_MAX): Define if not already defined.
47892         (array_size_overflow): New function.
47893         (xalloc_die): Abort instead of exiting if 'error' returns.
47894         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
47895         (xmalloc, xrealloc): Use them.
47896         (xcalloc): Check for address arithmetic overflow.
47897         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
47898         a bit faster than strcpy.
47899
47900 2003-10-10  Simon Josefsson  <jas@extundo.com>
47901
47902         * modules/argp (Depends-on): Add restrict and strcase.
47903
47904 2003-10-10  Simon Josefsson  <jas@extundo.com>
47905
47906         * m4/argp.m4: Add AC_C_INLINE.
47907
47908 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47909
47910         Merge getpass from libc, plus a few fixes.
47911
47912         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
47913         Include <stdbool.h>.
47914         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
47915         __fsetlocking to empty.
47916         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
47917         do include <bits/libc-lock.h>.
47918         Do not include <fcntl.h>; not needed.
47919         [_LIBC]: Include <wchar.h>.
47920         (NOTCANCEL_MODE): New macro.
47921         (flockfile, funlockfile) [_LIBC]: New macros.
47922         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
47923         [!_LIBC]: New macros.
47924         (call_fclose): New function.
47925         (getpass): Use it.  Save tty stream separately; this simplifies the
47926         code and makes it more reliable if stdin happens to equal stdout.
47927         Invoke __fsetlocking on tty.
47928         Handle thread cancellation if needed.
47929         Namespace cleanup (use __tcgetattr, __getline).
47930         Use bool for Booleans.
47931         [USE_IN_LIBIO]: Handle wide streams.
47932         [!_LIBC]: Unconditionally do the fseek, since we don't know what
47933         stream might go where.
47934
47935         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
47936         doesn't have to include <stdio.h> before us.
47937         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
47938         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
47939         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
47940         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
47941         if not declared, so that we can use getpass.c code from libc without
47942         rewriting it.
47943         (flockfile, ftrylockfile, funlockfile): New macros.
47944
47945 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47946
47947         * modules/getpass: Depend on stdbool.
47948
47949 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47950
47951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
47952
47953 2003-10-07  Karl Berry  <karl@gnu.org>
47954
47955         * config/config.{guess,sub}: update from config.
47956
47957 2003-10-06  Jim Meyering  <jim@meyering.net>
47958             Bruno Haible  <bruno@clisp.org>
47959
47960         This lets translators provide better translations for the
47961         "Written by ..." part of --version output.
47962         * lib/version-etc.h: Include stdarg.h.
47963         (version_etc_copyright): Declare as readonly.
47964         (version_etc): Make this function variadic with a NULL-terminated list
47965         of author name strings.
47966         (version_etc_va): New declaration.
47967         * lib/version-etc.c: Include stdarg.h, stdlib.h.
47968         (version_etc_copyright): Declare as readonly.
47969         (version_etc_va): New function. Provide a different translatable string
47970         for each possible number of authors < 10. Abbreviate when there are 10
47971         authors or more.
47972         (version_etc): Make this function variadic. Call version_etc_va.
47973         Suggestion from Gary V. Vaughan.
47974
47975         * lib/long-options.h (parse_long_options): Change prototype: the
47976         authors string is moved to the end and becomes variadic.
47977         * lib/long-options.c: Include stdarg.h.
47978         (parse_long_options): Make this function variadic, too.
47979         Call version_etc_va, not version_etc.
47980
47981 2003-10-06  Bruno Haible  <bruno@clisp.org>
47982
47983         * modules/version-etc-2: Remove file.
47984         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
47985
47986 2003-10-06  Bruno Haible  <bruno@clisp.org>
47987
47988         * modules/fatal-signal: New file.
47989         * MODULES.html.sh (func_all_modules): Add fatal-signal.
47990
47991 2003-10-06  Bruno Haible  <bruno@clisp.org>
47992
47993         * m4/fatal-signal.m4: New file.
47994         * m4/signalblocking.m4: New file, from GNU gettext.
47995
47996 2003-10-06  Bruno Haible  <bruno@clisp.org>
47997
47998         * lib/version-etc-2.h: Remove file.
47999         * lib/version-etc-2.c: Remove file.
48000
48001 2003-10-06  Bruno Haible  <bruno@clisp.org>
48002
48003         * lib/fatal-signal.h: New file, from GNU gettext.
48004         * lib/fatal-signal.c: New file, from GNU gettext.
48005
48006 2003-10-05  Paul Eggert  <eggert@twinsun.com>
48007
48008         * README: Rework advice for preventing empty .o files.
48009         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
48010         not <sys/types.h>.
48011
48012 2003-10-04  Karl Berry  <karl@gnu.org>
48013
48014         * lib/argp*: update from libc.
48015
48016 2003-10-04  Karl Berry  <karl@gnu.org>
48017
48018         * config/config.{guess,sub}: update from config.
48019
48020 2003-10-02  Bruno Haible  <bruno@clisp.org>
48021
48022         * modules/lchown (Include): Add lchown.h.
48023         * modules/time_r (Include): Use "..." syntax.
48024         * modules/xgetdomainname (Include): Add xgetdomainname.h.
48025
48026 2003-10-01  Simon Josefsson  <jas@extundo.com>
48027
48028         * MODULES.html.sh (func_all_modules): Move gethostname from section
48029         'based on' to section 'lacking' POSIX:2001.
48030
48031 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
48032
48033         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
48034         to output mode on the same stream.
48035
48036 2003-09-29  Paul Eggert  <eggert@twinsun.com>
48037
48038         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
48039         Fix arg typo in previous patch.
48040
48041 2003-09-28  Jim Meyering  <jim@meyering.net>
48042
48043         * lib/error.c: Correct cpp indentation.
48044
48045 2003-09-27  Paul Eggert  <eggert@twinsun.com>
48046
48047         * modules/free: New file.
48048
48049 2003-09-27  Paul Eggert  <eggert@twinsun.com>
48050
48051         * m4/free.m4: New file.
48052
48053 2003-09-27  Paul Eggert  <eggert@twinsun.com>
48054
48055         * lib/minmax.h (MIN, MAX)
48056         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
48057         Omit the special code that used __typeof__, since we worry that
48058         it could be more trouble than it's worth.  See:
48059         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
48060         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
48061
48062         * lib/free.c: New file.
48063
48064 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
48065
48066         Trivial fixes to Makefile.am parts of module listings.
48067         * modules/strstr: Append strstr.h to lib_SOURCES.
48068         * modules/strcase: Likewise, for strcase.h.
48069
48070 2003-09-27  Karl Berry  <karl@gnu.org>
48071
48072         * config/mkinstalldirs: update from automake.
48073
48074 2003-09-26  Paul Eggert  <eggert@twinsun.com>
48075
48076         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
48077         (error_tail): Do not loop, reallocating temporary buffer, since
48078         the output cannot contain more wide characters than the input
48079         contains bytes, the size must be big enough already.  This avoids
48080         one potential size overflow calculation.  Check for size overflow
48081         when calculating temporary buffer size.  Free temporary buffer
48082         when done, if it was allocated with malloc; this plugs a memory
48083         leak.  Remove casts from void * to pointers, that are no longer
48084         needed now that we're assuming C89 or better.
48085
48086         Merge error changes from glibc.
48087
48088         * lib/error.c, error.h: Update copyright notice header to match glibc.
48089         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
48090         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
48091         Disable cancellation while printing error.
48092         * lib/error.h: Prepend __ to parameter names.
48093
48094 2003-09-26  Jim Meyering  <jim@meyering.net>
48095
48096         * lib/error.c (error_tail): Move some declarations
48097         into inner scope where the local variables are used.
48098
48099 2003-09-26  Bruno Haible  <bruno@clisp.org>
48100
48101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
48102         stpncpy().
48103         Don't define stpncpy through config.h; it's now done through stpncpy.h.
48104
48105 2003-09-26  Bruno Haible  <bruno@clisp.org>
48106
48107         * lib/stpncpy.h (gnu_stpncpy): New declaration.
48108         (stpncpy): Define as alias for gnu_stpncpy.
48109         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
48110
48111 2003-09-25  Simon Josefsson  <jas@extundo.com>
48112
48113         * lib/xgetdomainname.h: New file.
48114         * lib/xgetdomainname.c: New file.
48115
48116 2003-09-25  Simon Josefsson  <jas@extundo.com>
48117             Bruno Haible  <bruno@clisp.org>
48118
48119         * modules/getdomainname: New file.
48120         * modules/xgetdomainname: New file.
48121         * MODULES.html.sh (func_all_modules): Add getdomainname,
48122         xgetdomainname.
48123
48124 2003-09-25  Simon Josefsson  <jas@extundo.com>
48125             Bruno Haible  <bruno@clisp.org>
48126
48127         * m4/getdomainname.m4: New file.
48128
48129 2003-09-25  Simon Josefsson  <jas@extundo.com>
48130             Bruno Haible  <bruno@clisp.org>
48131
48132         * lib/getdomainname.h: New file.
48133         * lib/getdomainname.c: New file.
48134
48135 2003-09-25  Karl Berry  <karl@gnu.org>
48136
48137         * lib/argp-fmtstream.c, argp-help.c: update from libc.
48138
48139 2003-09-25  Karl Berry  <karl@gnu.org>
48140
48141         * config/install-sh: update from automake.
48142
48143 2003-09-25  Bruno Haible  <bruno@clisp.org>
48144
48145         * modules/version-etc-2: New file, from modules/version-etc with
48146         modifications.
48147         * MODULES.html.sh (func_all_modules): Add version-etc-2.
48148
48149 2003-09-25  Bruno Haible  <bruno@clisp.org>
48150
48151         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
48152         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
48153
48154 2003-09-24  Simon Josefsson  <jas@extundo.com>
48155
48156         * modules/xgethostname: Add xgethostname.h.
48157
48158 2003-09-24  Paul Eggert  <eggert@twinsun.com>
48159
48160         * lib/linebuffer.c (freebuffer): Don't free the argument, just
48161         the buffer associated with the argument.  Bug reported by
48162         Simon Josefsson.
48163
48164 2003-09-24  Paul Eggert  <eggert@twinsun.com>
48165
48166         * README: Document assumptions that 'int' is at least 32 bits
48167         wide, that integer arithmetic is 2's complement without overflow,
48168         that there are no holes in integer values, that adding sizes of
48169         two nonoverlapping objects can't overflow, and that all-bits-zero
48170         yields scalar zero.  Fix spelling and capitalization typos.
48171
48172 2003-09-19  Karl Berry  <karl@gnu.org>
48173
48174         * lib/argp.h: update from libc.
48175
48176 2003-09-17  Paul Eggert  <eggert@twinsun.com>
48177
48178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
48179         to avoid spurious warnings like "AC_RUN_IFELSE was called before
48180         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
48181
48182 2003-09-17  Paul Eggert  <eggert@twinsun.com>
48183
48184         * gnulib-tool: Use "test -h", not "test -L", for portability
48185         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
48186         (tags_regexp): Remove, since \| doesn't conform to POSIX.
48187         (sed_extract_prog): Issue s commands one-by-one, rather than
48188         using \| in one s command.
48189
48190 2003-09-16  Paul Eggert  <eggert@twinsun.com>
48191
48192         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
48193         input error, instead of returning NULL the next time we are called
48194         (and therefore losing track of errno).
48195
48196 2003-09-16  Bruno Haible  <bruno@clisp.org>
48197
48198         * gnulib-tool (func_create_testdir): Warn about duplicated
48199         dependencies.
48200
48201 2003-09-15  Paul Eggert  <eggert@twinsun.com>
48202
48203         * modules/argmatch, modules/fatal, modules/obstack,
48204         modules/xalloc, modules/xgethostname: Sort dependencies by
48205         importance, not alphabetically.
48206
48207 2003-09-15  Paul Eggert  <eggert@twinsun.com>
48208
48209         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
48210         fails, so that the caller gets the proper errno.
48211
48212         * lib/readutmp.c (read_utmp): Likewise.
48213         Check for fstat error.  Close stream and free storage
48214         when failing.
48215
48216 2003-09-14  Karl Berry  <karl@gnu.org>
48217
48218         * config/srclist.txt (strdup.c): disable for c89 changes.
48219
48220 2003-09-14  Jim Meyering  <jim@meyering.net>
48221
48222         * lib/getloadavg.c: Correct cpp indentation.
48223         * lib/strdup.c: Likewise.
48224         * lib/vasnprintf.c: Likewise.
48225
48226 2003-09-14  Bruno Haible  <bruno@clisp.org>
48227
48228         * modules/fwriteerror: New file.
48229         * MODULES.html.sh (func_all_modules): Add fwriteerror.
48230
48231 2003-09-14  Bruno Haible  <bruno@clisp.org>
48232
48233         * lib/fwriteerror.h: New file.
48234         * lib/fwriteerror.c: New file.
48235
48236 2003-09-12  Paul Eggert  <eggert@twinsun.com>
48237
48238         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
48239         modules/xgethostname, modules/xalloc: Depend on exit.
48240
48241 2003-09-12  Paul Eggert  <eggert@twinsun.com>
48242
48243         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
48244
48245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
48246         and AC_MINIX, too, so that their extensions are available.
48247
48248         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
48249         This macro has been superseded by gl_BACKUPFILE.
48250
48251         More patches to assume C89 or better.
48252
48253         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
48254
48255         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
48256         unconditionally.
48257         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
48258         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
48259         Include <string.h>, <stdlib.h> unconditionally.
48260         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
48261         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
48262         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
48263         headers or for string.h.
48264         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
48265         or strtoul.
48266
48267         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
48268         headers.
48269         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
48270         * m4/userspec.m4 (gl_USERSPEC): Likewise.
48271         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
48272         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
48273         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48274         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
48275         memcpy, memset.
48276         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
48277         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
48278         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
48279         strtol.
48280         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
48281         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
48282         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
48283         strtoul.
48284
48285 2003-09-12  Paul Eggert  <eggert@twinsun.com>
48286
48287         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
48288         * lib/obstack.c [!defined _LIBC]: Likewise.
48289         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
48290         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
48291         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
48292
48293         More changes to assume C89 or better.
48294
48295         * lib/error.c (error_tail): Assume vprintf.
48296
48297         * lib/argmatch.c (getenv): Remove decl.
48298         * lib/progreloc.c (get_full_program_name): Define via prototype.
48299         * lib/setenv.c (clearenv): Likewise.
48300         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
48301         needed.
48302         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
48303         (malloc, memcpy): Remove decls.
48304         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
48305         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
48306         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
48307         (memcpy): Remove macro.
48308         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
48309         (__P): Remove.  All uses removed.
48310         (PTR): Remove.  All uses changed to void *.
48311         (CHAR_BIT, NULL): Remove.
48312         (spaces, zeros, memset_space, memset_zero)
48313         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
48314         Remove.
48315         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
48316         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
48317         Define with prototype.
48318         Remove now-unnecessary prototype decl.
48319         (extra_args_spec): Assume ANSI C.  All uses changed.
48320         (extra_args_spec_iso): Remove.
48321         (my_strftime, emacs_strftimeu): Define via prototype.
48322         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
48323         unconditionally.
48324         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
48325         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
48326         (strtoul, strtol): Remove decls.
48327         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
48328         LONG_MAX): Remove.
48329         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
48330         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
48331         (LOCALE_PARAM_PROTO): New macro.
48332         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
48333         (INTERNAL (strtol), strtol): Define with a prototype.
48334         (PARAMS): Remove.  All uses removed.
48335         * lib/tempname.c: Include <string.h> unconditionally.
48336         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
48337         * lib/xgethostname.c (main): Define with a prototype.
48338         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
48339         Include <stdlib.h> unconditionally.
48340         (calloc, malloc, realloc, free): Remove decls.
48341         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
48342         Include <stdlib.h> unconditionally.  Sort include file names.
48343         (strtod): Remove.
48344         (xstrtod): Define with a prototype.
48345         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
48346         (strtol, strtoul): Remove decls.
48347
48348 2003-09-11  Paul Eggert  <eggert@twinsun.com>
48349
48350         More patches to assume C89 or better.
48351         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
48352         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
48353         string.h, memchr, STDC_HEADERS.
48354
48355 2003-09-11  Paul Eggert  <eggert@twinsun.com>
48356
48357         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
48358         Include <stdlib.h>, <string.h> unconditionally.
48359         Remove now-unnecessary cast to char *.
48360         * lib/strnlen.c: Include <string.h> unconditionally.
48361         * lib/yesno.c (yesno): Define with a prototype.
48362
48363 2003-09-11  Bruno Haible  <bruno@clisp.org>
48364
48365         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
48366
48367 2003-09-10  Jim Meyering  <jim@meyering.net>
48368
48369         * lib/error.c: Correct indentation of cpp directives.
48370
48371 2003-09-10  Bruno Haible  <bruno@clisp.org>
48372
48373         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
48374         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
48375         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
48376         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
48377         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
48378         <stdlib.h> and <string.h> checks.
48379         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
48380         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
48381
48382 2003-09-10  Bruno Haible  <bruno@clisp.org>
48383
48384         * lib/strcspn.c: Include <string.h> unconditionally.
48385         * lib/strpbrk.c: Include <string.h> unconditionally.
48386         * lib/strstr.c: Include <string.h> unconditionally.
48387         * lib/unicodeio.c: Include <string.h> unconditionally.
48388         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
48389         * lib/unsetenv.c: Likewise.
48390         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
48391         * lib/yesno.c: Include <stdlib.h> unconditionally.
48392         (rpmatch): Add prototype.
48393
48394 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48395
48396         More patches to assume C89 or better.
48397         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
48398         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
48399         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
48400         or for string.h.
48401         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
48402         stdlib.h.
48403         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
48404         C headers.
48405         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
48406         string.h.
48407         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
48408         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
48409         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
48410         or for string.h.
48411         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
48412         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
48413         C headers.
48414         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
48415         memcpy.
48416         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
48417         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
48418         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
48419         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
48420         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
48421         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
48422         string.h, free.
48423         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
48424         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
48425         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
48426         C headers, or for string.h.
48427         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
48428         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
48429         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
48430         headers, memory.h, stdlib.h, string.h, strings.h.
48431         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
48432         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
48433         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
48434         strchr.
48435         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
48436         headers, memory.h, string.h.
48437         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
48438         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
48439         free.
48440         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
48441         headers.
48442         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
48443         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
48444         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
48445         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
48446         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
48447
48448 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48449
48450         More K&R removal.
48451
48452         * lib/acosl.c (main): Use a prototype.
48453         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
48454         tanl.c: Likewise.
48455
48456         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
48457
48458         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
48459         (getopt, etopt_long, getopt_long_only, _getopt_internal)
48460         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
48461         with a prototype.
48462         * lib/getopt.c (const): Remove macro.
48463         Include <string.h> unconditionally.
48464         (my_index): Remove; all uses changed to strchr.
48465         (strlen): Remove decl.
48466         (exchange): Remove forward decl; no longer needed.
48467         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
48468         Define with prototype.
48469         * lib/getopt1.c (const): Remove macro.
48470         (getopt_long, getopt_long_only, main): Define with prototype.
48471
48472         * lib/getugroups.c: Include <string.h> unconditionally.
48473
48474         * lib/getusershell.c: Include <stdlib.h> unconditionally.
48475         (getusershell, setusershell, endusershell, readname, main):
48476         Define with prototypes.
48477
48478         * lib/group-member.c: Include group-member.h first.
48479         Include <stdlib.h> unconditionally.
48480
48481         * lib/hard-locale.c: Include hard-locale.h first.
48482         Include <stdlib.h>, <string.h> unconditionally.
48483
48484         * lib/hash.c (free, malloc): Remove decls.
48485         Include <stdlib.h> unconditionally.
48486
48487         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
48488         (getenv): Do not declare.
48489
48490         * lib/idcache.c: Include <string.h> unconditionally.
48491
48492         * lib/long-options.c: Include long-options.h first, to test interface.
48493         Include <stdlib.h> unconditionally.
48494
48495         * lib/makepath.c: Include makepath.h first, to test interface.
48496         Include <stdlib.h> and <string.h> unconditionally.
48497
48498         * lib/linebuffer.c: Include <stdlib.h>.
48499         (free): Remove decl.
48500
48501         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
48502         stddef.h. rpl_malloc returns void *, not char *.
48503         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
48504         prototype.
48505
48506         * lib/md5.h: Include <limits.h> unconditionally.
48507         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
48508         (__P): Remove; all uses removed.
48509         * lib/md5.c: Include "md5.h" first.
48510         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
48511         md5_buffer, md5_process_bytes, md5_process_block):
48512         Define with prototypes.
48513         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
48514         * lib/sha.c: Include "sha.h" first.
48515         Include <stdlib.h>, <string.h> unconditionally.
48516
48517         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
48518         * lib/memcmp.c (__ptr_t): Likewise.
48519         * lib/memrchr.c (__ptr_t): Likewise.
48520         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
48521         Include <string.h> unconditionally.
48522         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
48523         * lib/memchr.c: Include <stdlib.h> unconditionally.
48524         * lib/memchr.c (LONG_MAX): Remove.
48525         * lib/memrchr.c (LONG_MAX): Likewise.
48526         * lib/memchr.c (__memchr): Define via a prototype.
48527         * lib/memrchr.c (__memrchr): Likewise.
48528         * lib/memcmp.c (__P): Remove, and remove all uses.
48529         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
48530         Remove forward decls; no longer needed.
48531         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
48532         Use types required by C89 in prototype.
48533
48534         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
48535         * lib/savedir.c: Likewise.
48536         * lib/mkdir.c (free): Remove decl.
48537         * lib/rmdir.c (rmdir): Define with a prototype.
48538         * lib/savedir.c: Include savedir.h first, to test interface.
48539
48540         * lib/mktime.c (STDC_HEADERS): Remove.
48541         Include <stdlib.h>, <string.h> unconditionally.
48542
48543         * lib/modechange.c: Include <stdlib.h> unconditionally.
48544         (malloc): Remove decl.
48545
48546         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
48547         (free): Remove decl.
48548
48549         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
48550         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
48551         (This type really should be intptr_t, but that's a C99ism.)
48552         (_obstack_memcpy): Remove: all uses changed to memcpy.
48553         Include <string.h> unconditionally.
48554         (struct obstack): Assume __STDC__ for types of members
48555         chunkfun, freefun, extra_arg.
48556         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
48557         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
48558         obstack_begin, obstack_specify_allocation,
48559         obstack_specify_allocation_with_arg, obstack_chunkfun,
48560         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
48561         Remove unprototyped decls and the macros that use them.
48562         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
48563         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
48564         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
48565         (defined __STDC__ && __STDC__)]:
48566         Remove nonprototyped code.
48567         Include <stdlib.h> unconditionally.
48568         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
48569         _obstack_allocated_p, _obstack_free, obstack_free,
48570         _obstack_memory_used, print_and_abort):
48571         Define using prototypes.
48572         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
48573         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
48574         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
48575         obstack_next_free, obstack_object_size, obstack_room) [0]:
48576         Remove unused, unprototyped code.
48577
48578         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
48579
48580         * lib/physmem.c (physmem_total, physmem_available, main): Define
48581         with prototypes.
48582
48583         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
48584         (main): Define with a prototype.
48585
48586         * lib/posixver.c (getenv): Remove decl.
48587
48588         * lib/putenv.c (malloc): Returns void *, not char *.
48589         Include <string.h> unconditionally.
48590         (strchr, memcpy, NULL): Do not define.
48591
48592         * lib/readtokens.c: Include readtokens.h first, to test interface.
48593         Include <stdlib.h>, <string.h> unconditionally.
48594         (init_tokenbuffer): Define with a prototype.
48595
48596         * lib/regex.c (PARAMS): Remove.  All uses removed.
48597         All uses of _RE_ARGS removed, too.
48598         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
48599         unconditionally.
48600         (bzero): Assume memset exists.
48601         (memcmp, memcpy, NULL): Remove.
48602         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
48603         char, or assignments to local vars of type signed char.
48604         (init_syntax_once, PREFIX(extract_number_and_incr),
48605         PREFIX(print_partial_compiled_pattern),
48606         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
48607         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
48608         PREFIX(regex_grow_registers), PREFIX(regex_compile),
48609         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
48610         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
48611         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
48612         wcs_compile_range, byte_compile_range, truncate_wchar,
48613         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
48614         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
48615         count_mbs_length, wcs_re_match_2_internal,
48616         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
48617         PREFIX(alt_match_null_string_p),
48618         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
48619         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
48620         regfree, PREFIX(extract_number)): Define with prototype.  Remove
48621         now-unnecessary declaration, if any.
48622         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
48623         regcomp, regexec):
48624         Remove now-unnecessary casts among pointer types.
48625         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
48626
48627         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
48628         (free): Remove decl.
48629
48630         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
48631
48632         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
48633         (free): Remove decl.
48634
48635         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
48636         * lib/xgetcwd.c: Likewise.
48637
48638         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
48639         (free): Remove decl.
48640
48641         * lib/strchrnul.c (strchrnul): Define with a prototype.
48642         Fix bug: c_in was not converted to char before searching.
48643
48644         The following changes are not K&R related:
48645
48646         * lib/group-member.h: Include <sys/types.h>, so that this file is
48647         self-contained.
48648         * lib/makepath.h: Likewise.
48649
48650         * lib/getusershell.c (readname, default_index, line_size, readname):
48651         Use size_t, not int, for sizes.
48652         (readname): If the size overflows, report an error instead of
48653         looping forever.
48654
48655 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48656
48657         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
48658         libc.
48659
48660 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48661
48662         * README: New section: portability guidelines.
48663
48664 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
48665
48666         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
48667         C89 spec.
48668
48669 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
48670
48671         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
48672
48673 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48674
48675         Assume C89 or better; remove K&R cruft.
48676         A few of these changes were first proposed by Derek Robert Price
48677         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
48678
48679         * lib/addext.c: Include <string.h> unconditionally.
48680         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
48681         Don't declare getenv or malloc.
48682
48683         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
48684         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
48685         (NULL): Remove.
48686         (find_stack_direction, alloca): Use prototypes.
48687
48688         * lib/atexit.c (atexit): Define using a prototype.
48689
48690         * lib/basename.c, dirname.c, stripslash.c:
48691         Include <string.h> unconditionally.
48692
48693         * lib/bcopy.c: Include <stddef.h>.
48694         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
48695
48696         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
48697
48698         * lib/error.h (error, error_at_line, error_print_progname)
48699         [! (defined (__STDC__) && __STDC__)]: Remove decls.
48700         * lib/error.c: Include error.h first, to check interface.
48701         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48702         (VA_START): Remove; all uses changeed to va_start.
48703         (exit, strerror): Remove decls.
48704         (error_print_progname): Prototype uncondionally.
48705         Don't include <errno.h>; no longer needed.
48706         (private_strerror): Remove.
48707         (error_tail): Always define.
48708         (error, error_at_line): Assume C89 or better; always use prototypes.
48709         * lib/fatal.c: Include "fatal.h" first, to test interface.
48710         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48711         (VA_START): Remove; all uses changed to va_start.
48712         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
48713         this case.
48714         (exit): Remove decl.
48715         (fatal): Prototype unconditionally.  Assume va_start works.
48716         Abort at end, to pacify gcc.
48717
48718         * lib/euidaccess.c (main): Define with a prototype.
48719
48720         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
48721
48722         * lib/exitfail.c: Include <stdlib.h> unconditionally.
48723
48724         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
48725         prototypes.
48726         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
48727         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
48728         (getenv): Remove decl.
48729         (fnmatch): Define using a prototype.
48730         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
48731         (FCT): Define using a prototype.
48732
48733         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
48734
48735         * lib/gethostname.c: Include <stddef.h>.
48736         (gethostname): Define with prototype.  Length is size_t, not int.
48737
48738 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48739
48740         Assume C89 or better; remove K&R cruft.
48741         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
48742         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
48743         string.h, getenv, malloc.
48744         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
48745         headers.
48746         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
48747         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
48748         do not check for strerror.
48749         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
48750         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
48751         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
48752         do not check for doprnt or vprintf.
48753         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
48754         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
48755
48756 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48757
48758         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
48759         getversion.c should have been removed then, but was accidentally
48760         preserved.
48761
48762         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
48763         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
48764
48765 2003-09-08  Karl Berry  <karl@gnu.org>
48766
48767         * config/config.sub, config.guess, srclistvars.sh: update from savannah
48768                 config, forget about prep.
48769
48770         * config/depcomp, missing: update from automake.
48771
48772 2003-09-07  Paul Eggert  <eggert@twinsun.com>
48773
48774         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
48775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48776
48777 2003-09-07  Paul Eggert  <eggert@twinsun.com>
48778
48779         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
48780         copy_tm_result.  Bug reported by Simon Josefsson in
48781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48782
48783 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48784
48785         * m4/time_r.m4: New file.
48786         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
48787         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
48788         is. Check for timegm declaration.
48789         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
48790         Do not check for gmtime_r.
48791         Replace mktime if __mktime_internal does not exist and if mktime
48792         hasn't been replaced already.
48793
48794 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48795
48796         * lib/time_r.c, lib/time_r.h: New files.
48797
48798         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
48799         __localtime_r.
48800         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
48801         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
48802
48803         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
48804         __gmtime_r.
48805         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
48806         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
48807         Include <time_r.h>.
48808
48809         * lib/timegm.c: Switch to glibc implementation, with the following
48810         changes:
48811         [defined HAVE_CONFIG_H]: Include <config.h>.
48812         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
48813         (__mktime_internal) [!defined _LIBC]: New decl.
48814         (__gmtime_r) [!defined _LIBC]: New macro and function.
48815         (timegm): Use a prototype, since gnulib assumes C89.
48816         Do not bother declaring tmp to be const, as it's not really usefu.
48817         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
48818         (timegm): Declare only if HAVE_DECL_TIMEGM.
48819
48820 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48821
48822         * MODULES.html.sh (func_all_modules): Add time_r.
48823         * modules/time_r: New file.
48824         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
48825         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
48826
48827 2003-09-03  Paul Eggert  <eggert@twinsun.com>
48828
48829         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
48830         Bug reported by Lute Kamstra in
48831         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
48832
48833         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
48834         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
48835         course with correspondingly smaller numbers for tomorrow and
48836         yesterday.  From Tadayoshi Funaba.  Originally installed into
48837         sh-utils on 1999-08-07, but the patch got lost (I guess during the
48838         coreutils merge?).
48839
48840 2003-08-31  Simon Josefsson  <jas@extundo.com>
48841
48842         * modules/timegm: New file.
48843         * MODULES.html.sh (func_all_modules): Add timegm.
48844
48845 2003-08-31  Simon Josefsson  <jas@extundo.com>
48846
48847         * m4/timegm.m4: New file.
48848
48849 2003-08-31  Simon Josefsson  <jas@extundo.com>
48850
48851         * lib/timegm.h: New file.
48852         * lib/timegm.c: New file.  Based on
48853         wget-1.8.2/src/http.c:mktime_from_utc.
48854
48855 2003-08-31  Karl Berry  <karl@gnu.org>
48856
48857         * lib/argp.h: update from libc.
48858
48859 2003-08-28  Bruno Haible  <bruno@clisp.org>
48860
48861         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
48862         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
48863         followed by '#define fnmatch fnmatch_posix' gives an error.
48864
48865 2003-08-28  Bruno Haible  <bruno@clisp.org>
48866
48867         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
48868         warning on QNX, which defines O_BINARY to 000000.
48869
48870 2003-08-27  Jim Meyering  <jim@meyering.net>
48871
48872         * m4/mkstemp.m4: Require that the system mkstemp be able to create
48873         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
48874         would fail after 32.  Reported by Danny Levinson.  Details here:
48875         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
48876
48877 2003-08-24  Bruno Haible  <bruno@clisp.org>
48878
48879         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
48880         MSVC7 <stdio.h> is included later.
48881
48882 2003-08-22  Simon Josefsson  <jas@extundo.com>
48883
48884         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
48885
48886 2003-08-20  Karl Berry  <karl@gnu.org>
48887
48888         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
48889
48890 2003-08-20  Bruno Haible  <bruno@clisp.org>
48891
48892         * modules/progname: New file.
48893         * MODULES.html.sh (func_all_modules): Add progname.
48894
48895 2003-08-20  Bruno Haible  <bruno@clisp.org>
48896
48897         * lib/progname.h: New file, from GNU gettext.
48898         * lib/progname.c: New file, from GNU gettext.
48899         * lib/progreloc.c: New file, from GNU gettext.
48900
48901 2003-08-19  Jim Meyering  <jim@meyering.net>
48902
48903         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
48904         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
48905
48906 2003-08-19  Bruno Haible  <bruno@clisp.org>
48907
48908         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
48909         more.
48910
48911 2003-08-19  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/xstrdup.c: Assume <string.h> exists.
48914
48915 2003-08-18  Paul Eggert  <eggert@twinsun.com>
48916
48917         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
48918         in makefile rules.
48919
48920 2003-08-18  Jim Meyering  <jim@meyering.net>
48921
48922         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
48923         * m4/lib-ld.m4: Likewise.
48924
48925 2003-08-18  Jim Meyering  <jim@meyering.net>
48926
48927         * lib/setenv.h: Indent nested cpp directive.
48928         * lib/vasnprintf.c: Remove trailing blanks.
48929
48930 2003-08-17  Simon Josefsson  <jas@extundo.com>
48931
48932         * modules/xstrndup: New file.
48933         * MODULES.html.sh (func_all_modules): Add xstrndup.
48934
48935 2003-08-17  Simon Josefsson  <jas@extundo.com>
48936
48937         * modules/argp: Fix autoconf macro name. Add more dependencies.
48938
48939 2003-08-17  Simon Josefsson  <jas@extundo.com>
48940
48941         * m4/xstrndup.m4: New file.
48942
48943 2003-08-17  Simon Josefsson  <jas@extundo.com>
48944
48945         * m4/argp.m4: New file.
48946
48947 2003-08-17  Simon Josefsson  <jas@extundo.com>
48948             Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/xstrndup.h: New file.
48951         * lib/xstrndup.c: New file.
48952
48953 2003-08-17  Bruno Haible  <bruno@clisp.org>
48954
48955         * modules/strndup (Files, Include): Add lib/strndup.h.
48956
48957 2003-08-17  Bruno Haible  <bruno@clisp.org>
48958
48959         * modules/euidaccess (Files): Add lib/euidaccess.h.
48960
48961 2003-08-17  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/strndup.h: New file.
48964
48965 2003-08-17  Bruno Haible  <bruno@clisp.org>
48966
48967         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
48968         like AC_GNU_SOURCE.
48969         * modules/extensions (configure.ac): Comment out the invocation of
48970         gl_USE_SYSTEM_EXTENSIONS.
48971
48972 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48973
48974         Merges from coreutils, etc.
48975         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
48976         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
48977         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
48978         fixing a typo.
48979         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
48980         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
48981
48982 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48983
48984         Document merge from coreutils.
48985         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
48986         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
48987         * modules/utime: Add m4/utimes-null.m4.
48988
48989 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48990
48991         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
48992         space, undoing this 2003-08-12 change:
48993         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48994
48995 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48996
48997         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
48998         strtoul.c from libc, undoing this 2003-08-12 change:
48999         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
49000
49001 2003-08-16  Jim Meyering  <jim@meyering.net>
49002
49003         Merges from coreutils.
49004         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
49005         prefix.  Adjust cache variables similarly.  Create 500 rather than
49006         just 300 files, to exercise bug on Darwin6.5, too.
49007         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
49008         $missing_dir.
49009         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
49010         AM_SYS_POSIX_TERMIOS.
49011         Reported by mkc@mathdogs.com.
49012         Also change use of $am_cv_sys_posix_termios
49013         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
49014         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
49015         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
49016         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
49017         in /proc/mounts until it finds one with matching device number.  This
49018         is unnecessary when the FILE argument *is* a mount point.  No stat call
49019         is necessary in that case.  So, disable the statvfs-testing code on
49020         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
49021         as RedHat bug# 84846.
49022         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
49023         to 1MB, so as not to render systems with no stack size limit (e.g.,
49024         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
49025         Include <unistd.h>.  On some systems,
49026         it is required for the definition of _SC_PAGESIZE.
49027
49028 2003-08-16  Jim Meyering  <jim@meyering.net>
49029
49030         Merge from coreutils.
49031         * lib/xstrtoimax.c: #else #if -> #elif.
49032         * lib/xstrtoumax.c: Likewise.
49033
49034 2003-08-16  Jim Meyering  <jim@meyering.net>
49035
49036         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
49037         * m4/utimes.m4: Removed.
49038         * m4/utimes-null.m4: Renamed from utimes.m4.
49039
49040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
49041         to 1MB, so as not to render systems with no stack size limit (e.g.,
49042         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
49043         Include <unistd.h>.  On some systems,
49044         it is required for the definition of _SC_PAGESIZE.
49045
49046 2003-08-16  Jim Meyering  <jim@meyering.net>
49047         and Paul Eggert  <eggert@cs.ucla.edu>
49048
49049         Merges from coreutils, etc.
49050
49051         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
49052         using the latest version from cvs.  This avoids problems with #line
49053         directives using a vendor (Sun) compiler.
49054         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
49055         Don't set GETGROUPS_LIB here; now it's
49056         done via getgroups.m4's wrapper function.
49057         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
49058         rather than just in sh-util/configure.in, so that the
49059         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
49060         same.
49061         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
49062         AC_FUNC_GETLOADAVG where to find getloadavg.c.
49063         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
49064         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
49065         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
49066         Remove code that is now done by the newly-required macros.
49067         Append $(EXEEXT) to DF_PROG.
49068         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
49069         Do not invoke or require the following here,
49070         since prereq.m4 or some gnulib .m4 now does this for us:
49071         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
49072         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
49073         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
49074         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
49075         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
49076         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
49077         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
49078         AC_FUNC_OBSTACK.
49079         Do not replace the following functions, as this is now the job
49080         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
49081         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
49082         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
49083         atexit getpass, strdup, getpagesize.
49084         Replace 'raise'.
49085         Do not check for the following functions, as this is now the job
49086         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
49087         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
49088         setregid.
49089         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
49090         Check for sys/sysctl.h.
49091         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
49092         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
49093         of checking for ssize_t ourselves.
49094
49095         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
49096         Require every macro that gnulib/modules/* suggests for us.
49097         (jm_PREREQ_ADDEXT): New macro.
49098         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
49099         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
49100
49101         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
49102         (gl_PHYSMEM): Use it.
49103         Also check for `table' function.
49104         Check for new headers and functions.
49105         Add check for sys/sysmp.h.
49106         With suggestions from Kaveh Ghazi.
49107         Ignore headers that are present but cannot be compiled.  This
49108         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
49109         C 5.4.
49110
49111 2003-08-15  Paul Eggert  <eggert@twinsun.com>
49112
49113         Document merge from coreutils.
49114         * modules/userspec: Depend on posixver.
49115         * modules/strftime: Depend on tzset.
49116
49117 2003-08-15  Paul Eggert  <eggert@twinsun.com>
49118
49119         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
49120         rather than tab, after '#' in shell-script copyright notices.
49121         Suggested by Bruno Haible.
49122
49123 2003-08-15  Paul Eggert  <eggert@twinsun.com>
49124
49125         * config/srclist-update: Use three spaces, rather than tab, after '#'
49126         in shell-script copyright notices.  Suggested by Bruno Haible.
49127         Remove unnecessary parenthesization in regular expression.
49128
49129 2003-08-15  Jim Meyering  <jim@meyering.net>
49130
49131         Merge from coreutils.
49132         * lib/xgethostname.c: Include <stdlib.h>.
49133         (xghostname): Don't exit for anything other than memory-related
49134         failure; just return NULL.
49135         * lib/userspec.c: Include "posixver.h".
49136         (parse_user_spec): Accept `.' as a separator only
49137         in pre-POSIX-200112 mode.
49138         * lib/strtoimax.c: Use #elif rather than #else #if.
49139         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
49140         Remove function, now that we can rely on a working tzset function.
49141         [!_LIBC]: Ensure that the required autoconf test has been run.
49142         [!defined _NL_CURRENT && HAVE_STRFTIME]:
49143         Use underlying_strftime for %r.
49144         * lib/sha.c: Merge in some clean-up and optimization changes from
49145         glibc.
49146         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
49147         Ensure that it is a multiple of 64.
49148         Rearrange loop exit tests so as to avoid performing an
49149         additional fread after encountering an error or EOF.
49150         * lib/realloc.c: Update copyright date.
49151
49152 2003-08-15  Jim Meyering  <jim@meyering.net>
49153         and Paul Eggert  <eggert@twinsun.com>
49154
49155         Merge from coreutils.
49156         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
49157         member but strut utmpx does not.  Needed for AIX 4.3.3.
49158         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
49159
49160 2003-08-15  Jim Meyering  <jim@meyering.net>
49161         and Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         Merges from coreutils, etc.
49164         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
49165         Require gl_FUNC_TZSET_CLOBBER.
49166         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
49167         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
49168         members.
49169
49170 2003-08-14  Paul Eggert  <eggert@twinsun.com>
49171
49172         Help the merge from coreutils.
49173         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
49174         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
49175         * m4/tzset.m4: Use it too.
49176
49177 2003-08-14  Paul Eggert  <eggert@twinsun.com>
49178
49179         * modules/tzset: New file.
49180
49181 2003-08-14  Jim Meyering  <jim@meyering.net>
49182
49183         Merges from coreutils.
49184         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
49185         variable names, rather than @FNMATCH_H@.
49186         * modules/alloca: Likewise for $(ALLOCA_H).
49187
49188         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
49189         the three copies of the literal target, `fnmatch.h'.
49190         * modules/alloca (alloca.h): Likewise.
49191
49192 2003-08-14  Jim Meyering  <jim@meyering.net>
49193
49194         Merge from coreutils.
49195         * m4/tzset.m4: New file.
49196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
49197         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
49198         otherwise, AIX 5.1 systems would end up using the latter.
49199         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
49200         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
49201         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
49202         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
49203
49204 2003-08-14  Jim Meyering  <jim@meyering.net>
49205
49206         Merge from coreutils.
49207         * lib/obstack.h: Whitespace changes.
49208         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
49209         and xcalloc return values.
49210         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
49211         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
49212         hang on OSF/1 5.1 for DIR on both local and remote file systems.
49213         Reported by (and fix confirmed by) Nelson H. F. Beebe.
49214         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
49215         error from mntctl.
49216         Use mntctl's return value to drive the entry-processing loop, since
49217         we can't rely on the value of the vmt_length member in the last
49218         entry.  On some systems doing so could result in exhausting
49219         virtual memory.  Based in part on a patch from Mike Jetzer.
49220
49221 2003-08-14  Jim Meyering  <jim@meyering.net>
49222         and Paul Eggert  <eggert@twinsun.com>
49223
49224         Merges from coreutils, plus other fixes.
49225         * lib/physmem.c: Merge in portability changes from gcc/libiberty
49226         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
49227         for credits and details.  Thanks to Kaveh Ghazi for helping
49228         to keep these files in sync.
49229         (ARRAY_SIZE): Define it.
49230         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
49231         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
49232         (memcasecmp): Don't assume size_t fits in unsigned int.
49233         Remove casts and duplicate code.
49234         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
49235         (memcpy): Remove definition.
49236         Merge in some clean-up and optimization changes from glibc.
49237         [BLOCKSIZE]: Move definition to top of file.
49238         Ensure that it is a multiple of 64.
49239         Rearrange loop exit tests so as to avoid performing an
49240         additional fread after encountering an error or EOF.
49241         * lib/md5.h (md5_uintptr): Define.
49242         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
49243         return to the initial working directory.  Preserve errno
49244         for caller.
49245         * lib/idcache.c: Include "xalloc.h".
49246         (xmalloc, xrealloc): Remove decls.
49247         (getuser): Remove casts no longer required in C89.
49248         * lib/human.c: Include stdio.h, for sprintf.
49249         * lib/group-member.c: Include "xalloc.h".
49250         (xmalloc, xrealloc): Remove decls.
49251         (get_group_info): Remove casts no longer required in C89.
49252         * lib/getusershell.c (readname): Remove casts no longer required in
49253         C89.
49254         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
49255         * lib/getline.c: Whitespace fix, from coreutils.
49256
49257 2003-08-13  Paul Eggert  <eggert@twinsun.com>
49258
49259         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
49260         Check for isascii.
49261
49262         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
49263         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
49264         Undo previous (whitespace-only) change.
49265
49266 2003-08-13  Paul Eggert  <eggert@twinsun.com>
49267
49268         * lib/exclude.c: Include <ctype.h>
49269         (IN_CTYPE_DOMAIN): New macro.
49270         (is_space): New fn.
49271         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
49272         and empty lines.
49273
49274         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
49275         Undo previous (whitespace-only) change.
49276
49277 2003-08-13  Paul Eggert  <eggert@twinsun.com>
49278
49279         * config/srclist-update: Change update back to the old behavior,
49280         leaving whitespace alone.  Use one 'sed' command rather than a
49281         pipeline.
49282         (fixlicense): Now a variable, not a function.
49283         (remove_trailing_blanks): Remove.
49284         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
49285         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
49286         Undo previous (whitespace-only) change.
49287
49288 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49289
49290         Merge from coreutils.
49291         * modules/euidaccess: Add lib_SOURCES, include for new
49292         file euidaccess.h
49293
49294 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49295
49296         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
49297         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
49298         Normalize leading white space and remove trailing white space.
49299
49300         Merge from coreutils
49301         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
49302
49303         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
49304         0.12.1.  These files are now being upgraded automatically by
49305         ../config/srclist-update.
49306
49307 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49308
49309         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
49310         Normalize leading white space and remove trailing white space.
49311         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
49312         notice, as per ../config/srclist-update.
49313
49314         Merge from coreutils.
49315         * lib/euidaccess.h: New file.
49316         * lib/euidaccess.c: Include it.
49317         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
49318         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
49319         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
49320
49321 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49322
49323         * config/srclist-update: Add copyright notice.
49324         (remove_id_lines, remove_trailing_blanks): New constants.
49325         (fixfile): Use them to normalize spacing a bit in copied files.
49326         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
49327         Normalize leading white space and remove trailing white space.
49328
49329         * config/texinfo.tex: Sync with texinfo.
49330
49331         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
49332         strtoul.c from libc, to merge coreutils whitespace changes.
49333
49334         * config/srclist.txt: Get the following m4 files from gettext:
49335         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
49336         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
49337         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
49338         wint_t.m4.
49339
49340 2003-08-12  Karl Berry  <karl@gnu.org>
49341
49342         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
49343         been made.
49344
49345 2003-08-11  Paul Eggert  <eggert@twinsun.com>
49346
49347         * modules/gnu-source, m4/gnu-source.m4:
49348         Remove; we're assuming Autoconf 2.54 or later now.
49349         Suggested by Bruno Haible.
49350         * MODULES.html.sh (func_all_modules): Remove gnu-source.
49351
49352 2003-08-11  Bruno Haible  <bruno@clisp.org>
49353
49354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
49355
49356 2003-08-11  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
49359         (vasnprintf): Use it instead of wcslen.
49360
49361 2003-08-11  Bruno Haible  <bruno@clisp.org>
49362
49363         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
49364         value to ensure that _Bool promotes to int. Use #define for _Bool when
49365         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
49366
49367 2003-08-10  Karl Berry  <karl@gnu.org>
49368
49369         * lib/regex.h: update from libc (whitespace fix).
49370
49371 2003-08-09  Paul Eggert  <eggert@twinsun.com>
49372
49373         Merge some files from coreutils.  These changes were
49374         originally made by Jim Meyering.
49375         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
49376         many older Unixes require this.
49377         * lib/alloca.c (alloca): Remove cast to argument of free;
49378         no longer needed in C89.
49379         * lib/alloca_.h, regex.h: Fix white space to match
49380         what GNU indent does.
49381
49382 2003-08-09  Paul Eggert  <eggert@twinsun.com>
49383
49384         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
49385         apparently Emacs's Unicode mode got confused before my 2003-08-05
49386         checkin.
49387
49388 2003-08-08  Paul Eggert  <eggert@twinsun.com>
49389
49390         * m4/extensions.m4: New file.
49391         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
49392         Require gl_USE_SYSTEM_EXTENSIONS.
49393         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
49394         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
49395
49396 2003-08-08  Paul Eggert  <eggert@twinsun.com>
49397
49398         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
49399         * modules/extensions, modules/gnu-source: New files.
49400         * modules/timespec, modules/unlocked-io: Depend on extensions.
49401
49402 2003-08-07  Paul Eggert  <eggert@twinsun.com>
49403
49404         * modules/restrict: New file.
49405         * MODULES.html.sh (func_all_modules): Add restrict.
49406         * modules/regex: Depend on restrict.
49407
49408 2003-08-07  Paul Eggert  <eggert@twinsun.com>
49409
49410         * m4/restrict.m4: New file.
49411         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
49412
49413 2003-08-07  Bruno Haible  <bruno@clisp.org>
49414
49415         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
49416         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
49417
49418 2003-08-07  Bruno Haible  <bruno@clisp.org>
49419
49420         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
49421         makes the module 'getndelim2' compatible with the module 'getline'.
49422
49423 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49424
49425         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
49426         byte with "\201" to avoid glitches when editing that source file
49427         with multi-gnome-terminal.
49428
49429 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49430
49431         * lib/bumpalloc.h: Remove.
49432
49433 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49434
49435         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
49436         * modules/bumpalloc: Remove.
49437
49438 2003-08-04  Paul Eggert  <eggert@twinsun.com>
49439
49440         * lib/getloadavg.c: Change copyright notice and spacing to conform to
49441         GNU coding style.
49442
49443         Merge from coreutils.
49444         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
49445         1. From glibc.
49446         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
49447         from Karl Berry, implemented by Jim Meyering.
49448         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
49449         from Dmitry V. Levin.
49450         Remove anachronistic cast of xrealloc.
49451         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
49452         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
49453         type. Otherwise, it wouldn't compile with at least /bin/cc on
49454         ymp-cray-unicos9.0.2.X.
49455         Combine two mostly-identical uses of alloca into one.
49456         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
49457
49458 2003-08-04  Dave Love  <d.love@dl.ac.uk>
49459
49460         [From Emacs.]
49461
49462         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
49463         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
49464         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
49465         obsolete NLIST_NAME_UNION.
49466         [__GNU__]: Undef BSD and FSCALE.
49467         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
49468
49469 2003-08-03  Paul Eggert  <eggert@twinsun.com>
49470
49471         * lib/stdbool_.h (_Bool): Make it signed char, instead of
49472         an enum type, so that it's guaranteed to promote to int.  See:
49473         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
49474
49475 2003-08-03  Karl Berry  <karl@gnu.org>
49476
49477         * config/depcomp: update from automake.
49478
49479 2003-07-31  Paul Eggert  <eggert@twinsun.com>
49480
49481         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
49482         (strerror): Don't assume that a printable int fits in 14 bytes.
49483
49484 2003-07-31  Bruno Haible  <bruno@clisp.org>
49485
49486         * modules/getpass-gnu: New file.
49487         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
49488
49489 2003-07-31  Bruno Haible  <bruno@clisp.org>
49490
49491         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
49492
49493 2003-07-24  Karl Berry  <karl@gnu.org>
49494
49495         * config/missing: update from automake.
49496
49497 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
49498             Bruno Haible  <bruno@clisp.org>
49499
49500         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
49501         * lib/getline.c (getline, getdelim): Likewise.
49502         Remove _GNU_SOURCE define; now it's defined in config.h through
49503         m4/getline.m4.
49504
49505 2003-07-23  Karl Berry  <karl@gnu.org>
49506
49507         * config/config.sub: update from prep.
49508
49509 2003-07-22  Paul Eggert  <eggert@twinsun.com>
49510
49511         * modules/xalloc (Depends-on): Add exitfail.
49512         * modules/xmemcoll: Likewise.
49513
49514 2003-07-22  Paul Eggert  <eggert@twinsun.com>
49515
49516         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
49517         over-parenthesization in macros.
49518
49519         Sync with coreutils.
49520
49521         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
49522         required by C99.
49523
49524         Use `exit_failure' for xalloc and xmemcoll instead of their own
49525         private exit-failure variables.
49526         * lib/xalloc.h (xalloc_exit_failure): Remove.
49527         * lib/xmalloc.c: Likewise.  Include exitfail.h.
49528         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
49529         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
49530         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
49531         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
49532
49533 2003-07-20  Jim Meyering  <jim@meyering.net>
49534
49535         * modules/closeout (Depends-on): Add exitfail.
49536         Suggestion from Bruno Haible.
49537
49538 2003-07-19  Karl Berry  <karl@gnu.org>
49539
49540         * config/config.sub: update from prep.
49541
49542 2003-07-18  Paul Eggert  <eggert@twinsun.com>
49543
49544         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
49545         Remove.
49546         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
49547         to test that it can stand by itself.  Include "exitfail.h".
49548         Clients should set exit_failure instead.
49549         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
49550
49551 2003-07-18  Bruno Haible  <bruno@clisp.org>
49552
49553         * modules/getndelim2: New file.
49554         * modules/getline: Share files with module getndelim2.
49555         * modules/getnline: Depend on getndelim2 instead of sharing files with
49556         it. Add getnline.c to lib_SOURCES.
49557         * MODULES.html.sh (func_all_modules): Add getndelim2.
49558
49559 2003-07-18  Bruno Haible  <bruno@clisp.org>
49560
49561         * m4/getndelim2.m4: New file.
49562         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
49563         invoke gl_PREREQ_GETNDELIM2.
49564         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
49565         gl_PREREQ_GETNDELIM2.
49566         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
49567         gl_GETNDELIM2.
49568
49569 2003-07-18  Bruno Haible  <bruno@clisp.org>
49570
49571         * lib/getndelim2.h: New file.
49572         * lib/getndelim2.c: Make into a module of its own. Include config.h,
49573         getndelim2.h.
49574         (getndelim2): Make non-static. Change return type to ssize_t.
49575         * lib/getline.h: Change argument names.
49576         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
49577         * lib/getnline.c: Include getndelim2.h.
49578
49579 2003-07-18  Andreas Schwab  <schwab@suse.de>
49580
49581         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
49582
49583 2003-07-17  Karl Berry  <karl@gnu.org>
49584
49585         * config/config.sub: update from prep.
49586
49587 2003-07-17  Bruno Haible  <bruno@clisp.org>
49588
49589         * modules/getnline: New file.
49590         * modules/getline: Add lib/getndelim2.c to source file list.
49591         * MODULES.html.sh (func_all_modules): Add getnline.
49592
49593 2003-07-17  Bruno Haible  <bruno@clisp.org>
49594
49595         * m4/getnline.m4: New file.
49596
49597 2003-07-17  Bruno Haible  <bruno@clisp.org>
49598
49599         * m4/Makefile.am.in: Remove file.
49600         * m4/Makefile.am: Remove file.
49601         * m4/Makefile.in: Remove file.
49602
49603 2003-07-17  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/getnline.h: New file.
49606         * lib/getnline.c: New file.
49607         * lib/getndelim2.c: New file, extracted from getline.c.
49608         (getndelim2): Renamed from getdelim2, with added nmax argument.
49609         * lib/getline.c: Include getndelim2.c.
49610         (getdelim2): Moved out to getndelim2.c.
49611         (getline, getdelim): Update.
49612
49613 2003-07-17  Bruno Haible  <bruno@clisp.org>
49614
49615         * lib/Makefile.am: Remove file.
49616         * lib/Makefile.in: Remove file.
49617
49618 2003-07-17  Bruno Haible  <bruno@clisp.org>
49619
49620         * configure.in: Remove file.
49621         * Makefile.in: Remove file.
49622
49623 2003-07-17  Bruno Haible  <bruno@clisp.org>
49624
49625         * MODULES.html.sh: Put the </BODY> right before </HTML>.
49626
49627 2003-07-16  Karl Berry  <karl@gnu.org>
49628
49629         * config/srclist-update: was running fixlicense twice, which caused
49630                 texinfo.tex to be nullified for some reason.  Simplify,
49631                 $gplsrc is no longer needed as far as I can see?
49632
49633 2003-07-16  Jim Meyering  <jim@meyering.net>
49634
49635         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
49636
49637 2003-07-15  Paul Eggert  <eggert@twinsun.com>
49638
49639         * config/srclist.txt: Get the following files from gettext-runtime/intl
49640         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
49641         ref-del.sin.  From Bruno Haible.
49642         * config/srclist-update (fixfile): Change grep pattern again, since the
49643         previous fix didn't work (there was another trailing $).  Use
49644         '[$]' to escape the $s.
49645
49646 2003-07-15  Karl Berry  <karl@gnu.org>
49647
49648         * lib/vasnprintf.c: update from gettext.
49649
49650 2003-07-15  Karl Berry  <karl@gnu.org>
49651
49652         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
49653         gets expanded when surrounded by '$'.
49654
49655 2003-07-15  Jim Meyering  <jim@meyering.net>
49656
49657         * modules/save-cwd: Don't depend on error.  From Derek Price.
49658
49659 2003-07-15  Jim Meyering  <jim@meyering.net>
49660
49661         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
49662
49663 2003-07-14  Simon Josefsson  <jas@extundo.com>
49664
49665         * modules/mempcpy: New file.
49666         * MODULES.html.sh (func_all_modules): Add mempcpy.
49667
49668 2003-07-14  Simon Josefsson  <jas@extundo.com>
49669
49670         * m4/mempcpy.m4: New file.
49671
49672 2003-07-14  Simon Josefsson  <jas@extundo.com>
49673
49674         * lib/mempcpy.h: New file.
49675         * lib/mempcpy.c: New file.
49676
49677 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49678
49679         * modules/getdate, modules/posixtm: Depend on mktime.
49680
49681 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49682
49683         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
49684         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
49685         unicodeio.c, unicodeio.h, unlocked-io.h:
49686         Switch from LGPL to GPL.
49687
49688 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49689
49690         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
49691         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
49692         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
49693         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
49694         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
49695         updated automatically by ../config/srclist-update.  This changes
49696         their license from LPGL to GPL.
49697
49698 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49699
49700         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
49701         assumed to refer to the root of the most recent stable gettext version.
49702         * config/srclistvars.sh: Add defaults for eggert.
49703         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
49704         Match "This program" as well as "The program".  This is needed
49705         for gettext.
49706
49707 2003-07-14  Jim Meyering  <jim@meyering.net>
49708
49709         Don't emit diagnostics.  Let callers do that.
49710         * lib/save-cwd.c: Don't include "error.h".
49711         (save_cwd): Don't call error.  Ensure that errno is valid
49712         when returning nonzero.
49713
49714         * lib/save-cwd.h (restore_cwd): Update prototype.
49715         * lib/save-cwd.c (restore_cwd): Remove two parameters.
49716         Simplify.  Don't call error upon failure.  Let callers do that.
49717         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
49718         when auditing is enabled.  But don't bother updating the #if.
49719
49720 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
49721
49722         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
49723         it breaks C++ compilation.
49724         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
49725
49726 2003-07-10  Simon Josefsson  <jas@extundo.com>
49727
49728         * modules/strchrnul (Makefile.am): Add strchrnul.h.
49729
49730 2003-07-10  Jim Meyering  <jim@meyering.net>
49731
49732         * m4/clock_time.m4: Remove trailing blank.
49733         * m4/intmax_t.m4: Likewise.
49734
49735 2003-07-10  Jim Meyering  <jim@meyering.net>
49736
49737         * lib/vasnprintf.c: Remove trailing blanks.
49738         Make cpp indentation consistent.
49739
49740 2003-07-09  Paul Eggert  <eggert@twinsun.com>
49741
49742         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
49743         posixver.c, strftime.c, strnlen.c, strverscmp.c:
49744         Switch from LGPL to GPL.
49745
49746 2003-07-09  Paul Eggert  <eggert@twinsun.com>
49747
49748         * config/srclist.txt: Sort sublists.  Add
49749         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
49750         that differ from gnulib for one reason or another; we'd like this list
49751         to be smaller but for now let's document what we have.
49752
49753 2003-07-08  Paul Eggert  <eggert@twinsun.com>
49754
49755         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
49756         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
49757         and sweeter "eval x=$x".
49758         * config/srclist.txt: Get lib/argp* from glibc.
49759
49760 2003-07-07  Paul Eggert  <eggert@twinsun.com>
49761
49762         * lib/mktime.c: Fix some boundary cases and remove need for floating
49763         point.
49764
49765         Issue a compile-time diagnostic if time_t is floating point, or if
49766         two's complement arithmetic is not in effect, or if arithmetic
49767         right shift does not propagate the sign.  These assumptions were
49768         all in the original code but they weren't checked.
49769
49770         (TIME_T_MIDPOINT, verify): New macros.
49771         (__isleap): Remove; it has integer overflow problems.
49772         (leapyear): New function, without those problems.
49773         (ydhms_tm_diff): Remove; splitting into two parts.
49774         (ydhms_diff): New function, containing the arithmetic part of
49775         the old ydhms_tm_diff function.  Issue a compile-time
49776         diagnostic if we are not using C99 integer division.
49777         Avoid casts when possible.
49778         (guess_time_tm): New function, containing the checking part of
49779         the old ydhms_tm_diff function.  Return the new value, rather than
49780         the difference between it and the old.  Accept a new argument T
49781         so that *T specifies the old value.  Check for overflow in the result.
49782
49783         (__mktime_internal): Use a time_t offset, not a long int offset.
49784         This undoes the 2003-06-04 change, which is no longer needed now
49785         that we have better overflow checking.
49786         (localtime_offset): Likewise.
49787
49788         (__mktime_internal): Avoid harmful overflow on hosts where time_t
49789         and long are 64-bit but int is only 32-bit.
49790         (ydhms_diff): Use long int to store year1 and yday1.
49791         Issue a compile-time diagnostic if long int is not wide enough.
49792
49793         (__mktime_internal): Use long int to store adjusted year and yday.
49794         Use plain C rather than preprocessor commands, if that doesn't
49795         affect efficiency.
49796         Check for overflow (and try to repair) after each probe
49797         rather than checking only at the very end.  This avoids some bugs
49798         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
49799         does not equal GMT offset at maximum time).
49800         Use integer to check for overflow rather than floating point; this
49801         is more portable to non-IEEE hosts, and is a tad faster.
49802         When we detect that we are oscillating between two values,
49803         don't check whether tm_isdst has the requested value, since
49804         we already know the answer.  When tm_isdst has the wrong value,
49805         use a different heuristic to find the right one, based on the
49806         extreme values actually observed in practice in tz2003a,
49807         rather than the (overly optimistic) "previous 3 calendar quarters".
49808
49809         (not_equal_tm, print_tm, check_result): Use "const T" rather than
49810         "T const" to accommodate glibc style.
49811         (check_result): Use less-confusing report format.  "long" -> "long int.
49812         (main): Likewise.
49813         Don't loop if the iteration overflows time_t.
49814         Allow a negative step in the iteration.
49815
49816 2003-07-06  Karl Berry  <karl@gnu.org>
49817
49818         * config/depcomp: update from automake.
49819         * config/config.sub: update from prep.
49820
49821 2003-07-03  Karl Berry  <karl@gnu.org>
49822
49823         * config/config.guess: update from prep.
49824
49825 2003-07-01  Paul Eggert  <eggert@twinsun.com>
49826
49827         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
49828         xreadlink.c now includes it unconditionally.
49829
49830 2003-07-01  Paul Eggert  <eggert@twinsun.com>
49831
49832         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
49833         having it depend on HAVE_SYS_TYPES_H.
49834
49835 2003-07-01  Bruno Haible  <bruno@clisp.org>
49836
49837         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
49838         <sys/types.h> should be sufficient.
49839         Reported by Paul Eggert.
49840
49841 2003-06-26  Karl Berry  <karl@gnu.org>
49842
49843         * config/depcomp: update from automake.
49844
49845 2003-06-26  Bruno Haible  <bruno@clisp.org>
49846
49847         * modules/human: Depend on module stdbool.
49848
49849 2003-06-25  Bruno Haible  <bruno@clisp.org>
49850
49851         * modules/readlink: New file.
49852         * modules/xreadlink: Depend on it.
49853         * MODULES.html.sh (func_all_modules): Add readlink.
49854
49855 2003-06-25  Bruno Haible  <bruno@clisp.org>
49856
49857         * m4/readlink.m4: New file.
49858
49859 2003-06-25  Bruno Haible  <bruno@clisp.org>
49860
49861         * lib/readlink.c: New file.
49862
49863 2003-06-22  Karl Berry  <karl@gnu.org>
49864
49865         * config/srclist.txt: update mkinstalldirs from automake.
49866         * config/mkinstalldirs: update.
49867
49868 2003-06-22  Bruno Haible  <bruno@clisp.org>
49869
49870         Portability to mingw32.
49871         * m4/ssize_t.m4: New file, from GNU gettext.
49872         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
49873         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
49874
49875 2003-06-22  Bruno Haible  <bruno@clisp.org>
49876
49877         * modules/safe-read: Add m4/ssize_t.m4.
49878         * modules/xreadlink: Add m4/ssize_t.m4.
49879
49880 2003-06-20  Bruno Haible  <bruno@clisp.org>
49881
49882         Assume C89, so PARAMS isn't needed.
49883         * lib/unicodeio.h (PARAMS): Remove.
49884         * lib/unicodeio.c: Don't use PARAMS.
49885
49886 2003-06-18  Karl Berry  <karl@gnu.org>
49887
49888         * config/config.{guess,sub}: update from prep.
49889
49890 2003-06-18  Jim Meyering  <jim@meyering.net>
49891
49892         Merge changes from coreutils.
49893         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
49894         Remove explicit declarations of xmalloc and realloc.
49895         Include xalloc.h.
49896         (read_utmp): Remove anachronistic cast of xmalloc.
49897
49898 2003-06-17  Paul Eggert  <eggert@twinsun.com>
49899
49900         Assume C89, so PARAMS isn't needed.
49901         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
49902         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
49903         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
49904         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
49905         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
49906         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
49907         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
49908         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
49909         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
49910         lib/xstrtod.h, lib/xstrtol.h: Likewise.
49911         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
49912         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
49913         no longer needed. Anyway, config.h should always be included before any
49914         other file.
49915
49916 2003-06-11  Simon Josefsson  <jas@extundo.com>
49917
49918         * modules/sysexits: New file.
49919         * MODULES.html.sh (func_all_modules): Add sysexits.
49920
49921 2003-06-11  Simon Josefsson  <jas@extundo.com>
49922
49923         * lib/sysexit_.h: New file.
49924
49925 2003-06-11  Derek Price  <derek@ximbiot.com>
49926
49927         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
49928         necessary.
49929
49930 2003-06-11  Bruno Haible  <bruno@clisp.org>
49931
49932         * m4/sysexits.m4: New file.
49933
49934 2003-06-10  Simon Josefsson  <jas@extundo.com>
49935
49936         * lib/argp.h: New file, from glibc.
49937         * lib/argp-ba.c: New file, from glibc.
49938         * lib/argp-eexst.c: New file, from glibc.
49939         * lib/argp-fmtstream.c: New file, from glibc.
49940         * lib/argp-fmtstream.h: New file, from glibc.
49941         * lib/argp-fs-xinl.c: New file, from glibc.
49942         * lib/argp-help.c: New file, from glibc.
49943         * lib/argp-namefrob.h: New file, from glibc.
49944         * lib/argp-parse.c: New file, from glibc.
49945         * lib/argp-pv.c: New file, from glibc.
49946         * lib/argp-pvh.c: New file, from glibc.
49947         * lib/argp-xinl.c: New file, from glibc.
49948
49949 2003-06-10  Simon Josefsson  <jas@extundo.com>
49950
49951         * modules/strchrnul: New file.
49952
49953 2003-06-10  Simon Josefsson  <jas@extundo.com>
49954
49955         * modules/argp: New file.
49956
49957 2003-06-10  Simon Josefsson  <jas@extundo.com>
49958
49959         * m4/strchrnul.m4: New file.
49960
49961 2003-06-10  Simon Josefsson  <jas@extundo.com>
49962
49963         * lib/strchrnul.h: New file.
49964         * lib/strchrnul.c: New file.
49965
49966 2003-06-10  Bruno Haible  <bruno@clisp.org>
49967
49968         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
49969
49970 2003-06-07  Karl Berry  <karl@gnu.org>
49971
49972         * config/config.{guess,sub}: update from prep.
49973
49974 2003-06-07  Jim Meyering  <jim@meyering.net>
49975
49976         * modules/strtod: Use $(...) notation, not @...@ for
49977         AC_REPLACE'd variables.
49978         * modules/localcharset: Likewise.
49979
49980 2003-06-07  Jim Meyering  <jim@meyering.net>
49981
49982         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
49983         in place of my name in the copyright comment.
49984         Remove definition and uses of __P.
49985
49986         From coreutils.
49987         * lib/stat.c: Don't declare xmalloc explicitly.
49988         Instead, include "xalloc.h".
49989         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
49990         xrealloc, and xcalloc return values.
49991         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
49992         Improve comment.
49993         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
49994
49995 2003-06-07  Bruno Haible  <bruno@clisp.org>
49996
49997         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
49998         avoid AC_CONFIG_LINKS.
49999         * modules/fnmatch (Makefile.am): Use explicit creation rule for
50000         fnmatch.h, to avoid AC_CONFIG_LINKS.
50001         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
50002
50003 2003-06-07  Bruno Haible  <bruno@clisp.org>
50004
50005         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
50006         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
50007         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
50008         directory.
50009         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
50010         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
50011         directory.
50012
50013 2003-06-06  Jim Meyering  <jim@meyering.net>
50014
50015         Merge from coreutils.
50016         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
50017         Consolidate declarations and initializations of *_base* locals.
50018
50019         Merge from coreutils.
50020         This avoids a core dump on systems without GNU putenv,
50021         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
50022         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
50023         (unsetenv): New static function, from GNU libc.
50024         (rpl_putenv): Use it.
50025
50026         * lib/modechange.c: Remove trailing blanks.
50027
50028         Merge from coreutils.
50029         * lib/fsusage.c: Remove declaration of statfs.
50030         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
50031
50032         * lib/posixtm.c: Include <stdbool.h> unconditionally.
50033
50034 2003-06-06  Jim Meyering  <jim@meyering.net>
50035
50036         * lib/stdbool_.h: Renamed from stdbool.h.in.
50037
50038 2003-06-06  Jim Meyering  <jim@meyering.net>
50039             Bruno Haible  <bruno@clisp.org>
50040
50041         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
50042         Adjust Makefile.am snippet not to redirect directly to target.
50043         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
50044
50045 2003-06-05  Paul Eggert  <eggert@twinsun.com>
50046
50047         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
50048         mismatch, look in future quarters as well as past.  This fixes a
50049         bug when processing fall-backwards gaps immediately after a long
50050         period of daylight-saving time.
50051
50052         * lib/mktime.c: Assume freestanding C89 or better.
50053         (HAVE_LIMITS_H): Remove.  Assume it's 1.
50054         (__P): Remove; not used.
50055         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
50056         (mktime, not_equal_tm, print_tm, check_result,
50057         main): Use prototypes.  Use const * where appropriate.
50058         (main): Fix typo in testing code that uncovered by above changes.
50059         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
50060
50061 2003-06-04  Paul Eggert  <eggert@twinsun.com>
50062
50063         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
50064         locale.h, localeconv.  This merges changes from coreutils.
50065
50066         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
50067         It can be removed after the next Autoconf is released.
50068         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
50069         needed.
50070
50071 2003-06-04  Paul Eggert  <eggert@twinsun.com>
50072
50073         * lib/mktime.c: Fix Debian bug 177940
50074         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
50075         (localtime_offset): Now long int, not time_t, because we want it
50076         to be guaranteed to be signed.  All uses changed.
50077         (__mktime_internal): If overflow would occur when adding offset,
50078         don't add it.
50079
50080         Merge 'human' changes from coreutils.  Rewrite to support
50081         locale-specific notations like thousands separators.
50082         * lib/human.c: Simplify authorship notice.
50083         Include human.h immediately after config.h.
50084         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
50085         <limits.h>: Do not include, since human.h does.
50086         (SIZE_MAX, UINTMAX_MAX): New macros.
50087         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
50088         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
50089         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
50090         (power_letter): Renamed from suffixes.
50091         (generate_suffix_backwards): Remove.
50092         (adjust_value): Now takes int style (because of human.h changes)
50093         and long double value (for greater precision on some platforms).
50094         (group_number): New function.
50095         (human_readable): Use it.  Use integer options, not enum.
50096         Put the options before the sizes in the arg list.
50097         Support all the new options.
50098         The old human_readable function has been removed;
50099         use inttostr.h instead.
50100         (human_readable, default_block_size, humblock):
50101         Use uintmax_t, not int, for block sizes.
50102         (human_readable_inexact, block_size_types): Remove.
50103         (block_size_opts): New constant.
50104         (human_options): Renamed from human_block_size, with new signature
50105         that allows block sizes up to UINTMAX_MAX.  All callers changed.
50106         * lib/human.h: Add copyright and authorship notice.
50107         Include <limits.h> and <stdbool.h> unconditionally.
50108         (PARAMS): Remove.  All uses removed.
50109         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
50110         (enum human_inexact_style): Remove tag; now a nameless enum.
50111         (human_floor, human_ceiling, human_round_to_even): Now have
50112         values 2, 0, 1 rather than -1, 1, 0.
50113         (human_group_digits, human_suppress_point_zero, human_autoscale,
50114         human_base_1024, human_SI, human_B): New constants.
50115         (human_readable_inexact, human_block_size): Remove.
50116         (human_readable): Size args are now uintmax_t, not int.
50117         (human_options): New decl.
50118
50119         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
50120         unnecessary now that we assume C89 or better.  This change
50121         imported from coreutils.
50122
50123         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
50124         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
50125         in the 2003-05-30 sync from glibc.
50126
50127         .h files should stand alone, but we shouldn't include <sys/types.h>
50128         if we can get away with just <stddef.h>.
50129
50130         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
50131         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
50132         rather than <sys/types.h>, as we merely need size_t.
50133         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
50134         to get size_t.
50135         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
50136         Include <stdio.h>, to get FILE.
50137         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
50138         memcasecmp.h has included <stddef.h> and all we need is size_t.
50139         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
50140         our interface, instead of including <sys/types.h>
50141
50142 2003-06-04  Paul Eggert  <eggert@twinsun.com>
50143
50144         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
50145         now, as glibc mktime is buggy on non-glibc systems.
50146
50147 2003-06-03  Karl Berry  <karl@gnu.org>
50148
50149         * config/config.sub: update from prep.
50150
50151 2003-06-02  Paul Eggert  <eggert@twinsun.com>
50152
50153         [from coreutils]
50154         Fix some minor time-related bugs with POSIX time arguments.
50155         Some valid time stamps were being rejected (notably -1, and
50156         time stamps before 1900 on 64-bit hosts).  And some invalid
50157         time stamps were being accepted, e.g. September 31.
50158
50159         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
50160         that we can return (time_t) -1 successfully.
50161         * lib/posixtm.c: Likewise.
50162         [HAVE_STDBOOL_H]: Include <stdbool.h>.
50163         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
50164         (t): Remove static var.
50165         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
50166         of static var.  All uses changed.
50167         (year): Do not reject years before 1900; they can occur with
50168         64-bit time_t.
50169         (posix_time_parse): Do not check for out-of-range components;
50170         that is now the caller's responsibility, since our checks were
50171         only approximations.
50172         (posixtime): Use mktime to check for out-of-range components,
50173         since it knows them exactly.
50174         If mktime returns (time_t) -1, check whether an error actually occurred
50175         by invoking localtime on -1.
50176         (main) [TEST_POSIXTIME]: Check for input data errors, and report
50177         posixtime failures better.
50178         Improve the test data (in comments only).
50179
50180 2003-06-02  Karl Berry  <karl@gnu.org>
50181
50182         * config/mkinstalldirs (version): new variable.
50183         (--version): new option.
50184         (usage): improve message.
50185
50186 2003-05-30  Karl Berry  <karl@gnu.org>
50187
50188         * lib/mktime.c: update from libc.
50189
50190 2003-05-30  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
50193         * config/config.rpath: Upgrade to gettext-0.12.1.
50194
50195 2003-05-30  Bruno Haible  <bruno@clisp.org>
50196
50197         * m4/gettext.m4: Upgrade to gettext-0.12.1.
50198         * m4/nls.m4: New file, from gettext-0.12.1.
50199         * m4/po.m4: New file, from gettext-0.12.1.
50200         * m4/progtest.m4: Upgrade to gettext-0.12.1.
50201
50202 2003-05-30  Bruno Haible  <bruno@clisp.org>
50203
50204         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
50205         * lib/localcharset.h: Likewise.
50206         * lib/localcharset.c: Likewise.
50207
50208 2003-05-29  Karl Berry  <karl@gnu.org>
50209
50210         * config/config.rpath: update from gettext.
50211
50212 2003-05-28  Paul Eggert  <eggert@twinsun.com>
50213
50214         Assume the headers required for C89 freestanding compilers.
50215         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
50216         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
50217         * m4/human.m4 (gl_HUMAN): Likewise.
50218         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
50219         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
50220         * m4/userspec.m4 (gl_USERSPEC): Likewise.
50221         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
50222         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50223         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
50224
50225 2003-05-28  Paul Eggert  <eggert@twinsun.com>
50226
50227         Assume the headers required for C89 freestanding compilers.
50228         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
50229         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
50230         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
50231         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
50232         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
50233         define, since <limits.h> is guaranteed to do that.
50234         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
50235         * lib/exclude.c: Include <stdbool.h> unconditionally.
50236         * lib/tempname.c: Include <stddef.h> unconditionally.
50237         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
50238         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
50239         <stddef.h> does that.
50240         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
50241         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
50242         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
50243         needed.
50244         * lib/xstrtol.c: Likewise.
50245         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
50246         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
50247
50248         * lib/addext.c (addext): Use assignment rather than cast, to avoid
50249         warnings on some platforms.
50250
50251         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
50252         arbitrarily.
50253
50254 2003-05-26  Jim Meyering  <jim@meyering.net>
50255
50256         Merge in a change from coreutils:
50257         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
50258         that is guaranteed to be `no'.  Use `no_such_member' to indicate
50259         that condition, rather than `-1' which is slightly misleading.
50260         Change the name of the cache variable to have the gl_ prefix.
50261         Prompted by a patch from Richard Dawe for DJGPP.
50262
50263 2003-05-24  Karl Berry  <karl@gnu.org>
50264
50265         * config/config.guess: update from prep.
50266
50267 2003-05-22  Karl Berry  <karl@gnu.org>
50268
50269         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
50270
50271 2003-05-20  Karl Berry  <karl@gnu.org>
50272
50273         * config/config.guess: update from prep.
50274
50275 2003-05-18  Karl Berry  <karl@gnu.org>
50276
50277         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
50278         might actually be set by the user.
50279
50280         * config/depcomp, install-sh, mdate-sh: update from automake.
50281
50282 2003-05-17  Bruno Haible  <bruno@clisp.org>
50283
50284         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
50285         invalid expansion for AC_EGREP_CPP.
50286         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
50287         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
50288         Suggested by Akim Demaille <akim@epita.fr> in
50289         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
50290
50291 2003-05-12  Jim Meyering  <jim@meyering.net>
50292
50293         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
50294         the space-padded-by-default conversion specifiers, %e, %k, %l.
50295
50296 2003-05-12  Bruno Haible  <bruno@clisp.org>
50297
50298         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
50299         the string is longer than 4 KB.
50300
50301 2003-05-11  Karl Berry  <karl@gnu.org>
50302
50303         * config/config.{guess,sub}: update from prep.
50304
50305 2003-05-09  Bruno Haible  <bruno@clisp.org>
50306
50307         * modules/error: Add m4/strerror_r.m4 to file list.
50308
50309 2003-05-03  Bruno Haible  <bruno@clisp.org>
50310
50311         Upgrade to Unicode-4.0.
50312         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
50313         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
50314         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
50315         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
50316         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
50317         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
50318         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
50319         Change width of U+E0100..U+E01EF from 1 to 0.
50320
50321 2003-04-25  Jim Meyering  <jim@meyering.net>
50322
50323         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
50324         of type size_t, not int.
50325
50326 2003-04-25  Bruno Haible  <bruno@clisp.org>
50327
50328         * lib/copy-file.c: Include <stddef.h>, for size_t.
50329
50330 2003-04-21  Paul Eggert  <eggert@twinsun.com>
50331
50332         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
50333         code which expansion is under static control.  Patch imported from
50334         Akim Demaille's patch to Bison; see
50335         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
50336
50337 2003-04-14  Bruno Haible  <bruno@clisp.org>
50338
50339         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
50340
50341 2003-04-11  Jim Meyering  <jim@meyering.net>
50342
50343         Merge changes from Coreutils.
50344
50345         2003-03-22  Jim Meyering  <jim@meyering.net>
50346
50347         * lib/strftime.c (widen): Cast alloca return value to proper type.
50348
50349         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
50350
50351         From GNU libc.
50352         * lib/strftime.c (my_strftime): Handle very large width
50353         specifications for numeric values correctly.  Improve checks for
50354         overflow.
50355
50356         2003-01-19  Jim Meyering  <jim@meyering.net>
50357
50358         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
50359         definitions.
50360         (nl_get_alt_digit) [! defined my_strftime]: Define.
50361         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
50362         _nl_get_alt_digit and _nl_get_walt_digit.
50363
50364         * lib/strftime.c (my_strftime): Merge in locale-related changes from
50365         libc. These changes have no effect outside of _LIBC.
50366
50367 2003-04-10  Bruno Haible  <bruno@clisp.org>
50368
50369         * modules/findprog: New file.
50370         * MODULES.html.sh (func_all_modules): Add it.
50371
50372 2003-04-10  Bruno Haible  <bruno@clisp.org>
50373
50374         * m4/findprog.m4: New file.
50375         * m4/eaccess.m4: New file.
50376
50377 2003-04-10  Bruno Haible  <bruno@clisp.org>
50378
50379         * lib/findprog.h: New file, from GNU gettext.
50380         * lib/findprog.c: New file, from GNU gettext.
50381
50382 2003-04-05  Jim Meyering  <jim@meyering.net>
50383
50384         Merge changes from Coreutils.
50385
50386         * lib/exclude.h (PARAMS): Remove definition and uses.
50387         * lib/exclude.c: Remove uses of `PARAMS'.
50388
50389         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
50390         Add test-cases for DOS filenames. Declare program_name.
50391         (main): Set up program_name.  Patch by Rich Dawe.
50392
50393         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
50394         error from mntctl.
50395         Use mntctl's return value to drive the entry-processing loop, since
50396         we can't rely on the value of the vmt_length member in the last
50397         entry.  On some systems doing so could result in exhausting
50398         virtual memory.  Based in part on a patch from Mike Jetzer.
50399
50400 2003-04-04  Bruno Haible  <bruno@clisp.org>
50401
50402         * modules/linebreak: New file.
50403         * MODULES.html.sh (func_all_modules): Add it.
50404
50405 2003-04-04  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/linebreak.m4: New file.
50408
50409 2003-04-04  Bruno Haible  <bruno@clisp.org>
50410
50411         * lib/linebreak.h: New file, from GNU gettext.
50412         * lib/linebreak.c: New file, from GNU gettext with slight
50413         modifications.
50414         * lib/lbrkprop.h: New file, from GNU gettext.
50415
50416 2003-04-03  Bruno Haible  <bruno@clisp.org>
50417
50418         * modules/utf8-ucs4: New file.
50419         * modules/utf16-ucs4: New file.
50420         * modules/ucs4-utf8: New file.
50421         * modules/ucs4-utf16: New file.
50422         * MODULES.html.sh (func_all_modules): Add them.
50423
50424 2003-04-03  Bruno Haible  <bruno@clisp.org>
50425
50426         * m4/utf-ucs4.m4: New file.
50427         * m4/ucs4-utf.m4: New file.
50428
50429 2003-04-03  Bruno Haible  <bruno@clisp.org>
50430
50431         * lib/utf8-ucs4.h: New file, from GNU gettext.
50432         * lib/utf16-ucs4.h: New file, from GNU gettext.
50433         * lib/ucs4-utf8.h: New file, from GNU gettext.
50434         * lib/ucs4-utf16.h: New file, from GNU gettext.
50435
50436 2003-04-02  Bruno Haible  <bruno@clisp.org>
50437
50438         * modules/binary-io: New file.
50439         * MODULES.html.sh (func_all_modules): Add it.
50440
50441 2003-04-02  Bruno Haible  <bruno@clisp.org>
50442
50443         * lib/binary-io.h: New file, from GNU gettext.
50444
50445 2003-04-01  Bruno Haible  <bruno@clisp.org>
50446
50447         * modules/pathname: New file.
50448         * MODULES.html.sh (func_all_modules): Add it.
50449
50450 2003-04-01  Bruno Haible  <bruno@clisp.org>
50451
50452         * lib/pathname.h: New file, from GNU gettext.
50453         * lib/concatpath.c: New file, from GNU gettext.
50454
50455 2003-03-30  Bruno Haible  <bruno@clisp.org>
50456
50457         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
50458
50459 2003-03-30  Bruno Haible  <bruno@clisp.org>
50460
50461         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
50462         function chown() doesn't exist.
50463
50464 2003-03-28  Bruno Haible  <bruno@clisp.org>
50465
50466         * modules/copy-file: New file.
50467         * MODULES.html.sh (func_all_modules): Add it.
50468
50469 2003-03-28  Bruno Haible  <bruno@clisp.org>
50470
50471         * m4/copy-file.m4: New file.
50472
50473 2003-03-28  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/copy-file.h: New file, from GNU gettext.
50476         * lib/copy-file.c: New file, from GNU gettext.
50477
50478 2003-03-18  Jim Meyering  <jim@meyering.net>
50479
50480         * lib/quote.c (quote_n): Fix typo in comment.
50481
50482 2003-03-18  Bruno Haible  <bruno@clisp.org>
50483
50484         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
50485         checking.
50486         * m4/onceonly_2_57.m4: Likewise.
50487
50488 2003-03-17  Bruno Haible  <bruno@clisp.org>
50489
50490         * m4/onceonly.m4: Require autoconf 2.54 or newer.
50491         (m4_quote): Remove macro.
50492         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
50493
50494 2003-03-14  Jim Meyering  <jim@meyering.net>
50495
50496         Merge changes from Coreutils.
50497         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
50498         to be const, in order to avoid warnings.
50499         (obstack_room): Likewise.
50500         (obstack_empty_p): Likewise.
50501
50502 2003-03-14  Bruno Haible  <bruno@clisp.org>
50503
50504         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
50505         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
50506
50507 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50508
50509         Merge changes from Bison.
50510         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
50511         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
50512         when compiling Bison 1.875's `bitset bset = obstack_alloc
50513         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
50514         * lib/hash.c: Include <stdbool.h> unconditionally.
50515
50516 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50517
50518         * m4/onceonly.m4 (m4_quote): New macro.
50519         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
50520         Quote AC_FOREACH variable-expansions properly.
50521
50522 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50523
50524         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
50525
50526 2003-03-09  Paul Eggert  <eggert@twinsun.com>
50527
50528         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
50529         Reported by Bruce Becker; see:
50530         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
50531
50532 2003-03-03  Paul Eggert  <eggert@twinsun.com>
50533             Bruno Haible  <bruno@clisp.org>
50534
50535         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
50536         Reported by John Hughes, see
50537         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
50538
50539 2003-02-20  Bruno Haible  <bruno@clisp.org>
50540
50541         * MODULES.html.sh (func_all_modules): Add poll.
50542
50543 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50544
50545         * modules/poll: New file.
50546
50547 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50548
50549         * lib/poll_.h: New file.
50550         * lib/poll.c: New file.
50551
50552 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50553
50554         * m4/poll.m4: New file.
50555
50556 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50557
50558         * modules/mathl: New file.
50559
50560 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50561
50562         * lib/mathl.h: New file.
50563         * lib/acosl.c: New file.
50564         * lib/asinl.c: New file.
50565         * lib/atanl.c: New file.
50566         * lib/ceill.c: New file.
50567         * lib/cosl.c: New file.
50568         * lib/expl.c: New file.
50569         * lib/floorl.c: New file.
50570         * lib/frexpl.c: New file.
50571         * lib/ldexpl.c: New file.
50572         * lib/logl.c: New file.
50573         * lib/sincosl.c: New file.
50574         * lib/sinl.c: New file.
50575         * lib/sqrtl.c: New file.
50576         * lib/tanl.c: New file.
50577         * lib/trigl.c: New file.
50578         * lib/trigl.h: New file.
50579
50580 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50581
50582         * m4/mathl.m4: New file.
50583
50584 2003-02-18  Bruno Haible  <bruno@clisp.org>
50585
50586         * MODULES.html.sh (func_all_modules): Add mathl.
50587
50588 2003-02-17  Bruno Haible  <bruno@clisp.org>
50589
50590         * modules/mkdtemp: New module.
50591         * MODULES.html.sh (func_all_modules): Add it.
50592
50593 2003-02-17  Bruno Haible  <bruno@clisp.org>
50594
50595         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
50596
50597 2003-02-17  Bruno Haible  <bruno@clisp.org>
50598
50599         * lib/mkdtemp.h: New file, from GNU gettext.
50600         * lib/mkdtemp.c: New file, from GNU gettext.
50601
50602 2003-02-02  Jim Meyering  <jim@meyering.net>
50603
50604         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
50605         e.g. glibc-2.2.93.
50606
50607 2003-01-31  Bruno Haible  <bruno@clisp.org>
50608
50609         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
50610         'rpl_rename'.
50611         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
50612         'rpl_strnlen'.
50613         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
50614         'rpl_strtod'.
50615         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
50616         'rpl_utime'.
50617
50618 2003-01-31  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/rename.c: #undef rename before defining rpl_rename.
50621         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
50622
50623 2003-01-30  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/vasnprintf, modules/vasprintf: New modules.
50626         * MODULES.html.sh (func_all_modules): Add them.
50627
50628 2003-01-30  Bruno Haible  <bruno@clisp.org>
50629
50630         * m4/signed.m4: New file, from GNU gettext.
50631         * m4/longdouble.m4: New file, from GNU gettext.
50632         * m4/wchar_t.m4: New file, from GNU gettext.
50633         * m4/wint_t.m4: New file, from GNU gettext.
50634         * m4/vasnprintf.m4: New file.
50635         * m4/vasprintf.m4: New file.
50636
50637 2003-01-30  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/printf-args.h: New file, from GNU gettext.
50640         * lib/printf-args.c: New file, from GNU gettext.
50641         * lib/printf-parse.h: New file, from GNU gettext.
50642         * lib/printf-parse.c: New file, from GNU gettext.
50643         * lib/vasnprintf.h: New file, from GNU gettext.
50644         * lib/vasnprintf.c: New file, from GNU gettext.
50645         * lib/asnprintf.c: New file, from GNU gettext.
50646         * lib/vasprintf.h: New file, from GNU gettext with modifications.
50647         * lib/vasprintf.c: New file, from GNU gettext.
50648         * lib/asprintf.c: New file, from GNU gettext.
50649
50650 2003-01-29  Bruno Haible  <bruno@clisp.org>
50651
50652         * modules/stpncpy: New module.
50653         * MODULES.html.sh (func_all_modules): Add it.
50654
50655 2003-01-29  Bruno Haible  <bruno@clisp.org>
50656
50657         * m4/stpncpy.m4: New file.
50658
50659 2003-01-29  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/stpncpy.h: New file, from GNU gettext with modifications.
50662         * lib/stpncpy.c: New file, from GNU gettext with modifications.
50663
50664 2003-01-28  Bruno Haible  <bruno@clisp.org>
50665
50666         * modules/c-ctype: New module.
50667         * MODULES.html.sh (func_all_modules): Add it.
50668
50669 2003-01-28  Bruno Haible  <bruno@clisp.org>
50670
50671         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
50672         Paul Eggert.
50673         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
50674         Paul Eggert.
50675
50676 2003-01-27  Bruno Haible  <bruno@clisp.org>
50677
50678         * modules/xsetenv: New module.
50679         * MODULES.html.sh (func_all_modules): Add it.
50680
50681 2003-01-27  Bruno Haible  <bruno@clisp.org>
50682
50683         * lib/xsetenv.h: New file, from GNU gettext.
50684         * lib/xsetenv.c: New file, from GNU gettext.
50685
50686 2003-01-23  Jim Meyering  <jim@meyering.net>
50687
50688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
50689         from working on systems without dirfd (at least Irix and OSF1/Tru64).
50690
50691 2003-01-23  Bruno Haible  <bruno@clisp.org>
50692
50693         * modules/minmax: New module.
50694         * MODULES.html.sh (func_all_modules): Add it.
50695
50696 2003-01-23  Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
50699         Eggert.
50700
50701 2003-01-22  Bruno Haible  <bruno@clisp.org>
50702
50703         * modules/exit: New module.
50704         * MODULES.html.sh (func_all_modules): Add it.
50705
50706 2003-01-22  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/exit.h: New file, from GNU gettext.
50709
50710 2003-01-19  Bruno Haible  <bruno@clisp.org>
50711
50712         * gnulib-tool: Recognize option --extract-maintainer.
50713         (func_get_maintainer): New function.
50714         * modules/*: Add Maintainer entry.
50715
50716 2003-01-16  Jim Meyering  <jim@meyering.net>
50717
50718         * m4/regex.m4: The `regex' struct is both input and output.
50719         Initialize it before each use.  Patch by Tim Waugh.
50720
50721 2003-01-16  Bruno Haible  <bruno@clisp.org>
50722
50723         * MODULES.html.sh: Add a table of contents. Add the module name as
50724         leftmost column. Add hyperlinks.
50725
50726 2003-01-15  Bruno Haible  <bruno@clisp.org>
50727
50728         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
50729
50730 2003-01-15  Bruno Haible  <bruno@clisp.org>
50731
50732         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
50733         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
50734         suffix.
50735
50736 2003-01-15  Bruno Haible  <bruno@clisp.org>
50737
50738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
50739
50740 2003-01-15  Bruno Haible  <bruno@clisp.org>
50741
50742         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
50743         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
50744
50745 2003-01-14  Jim Meyering  <jim@meyering.net>
50746
50747         * lib/same.c (same_name): Tweak a comment.
50748
50749 2003-01-14  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
50752         when a string comparison is sufficient.
50753
50754 2003-01-14  Bruno Haible  <bruno@clisp.org>
50755
50756         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
50757         'unsigned int'.
50758
50759 2003-01-14  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/hash-pjw.c: Add comment about low quality of this function.
50762
50763 2003-01-13  Bruno Haible  <bruno@clisp.org>
50764
50765         * modules/stpcpy: Distribute lib/stpcpy.h.
50766         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
50767
50768 2003-01-13  Bruno Haible  <bruno@clisp.org>
50769
50770         * modules/*: Add a description.
50771         * modules/strpbrk: Fix Makefile.am snippet.
50772         * modules/strtoimax: Fix dependencies.
50773         * modules/strtoumax: Likewise.
50774
50775 2003-01-13  Bruno Haible  <bruno@clisp.org>
50776
50777         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
50778         * modules/alloca (Makefile.am): All object files depend on alloca.h.
50779         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
50780
50781 2003-01-13  Bruno Haible  <bruno@clisp.org>
50782
50783         * gnulib-tool (func_create_testdir): Store config/* files in the main
50784         directory.
50785         * config.rpath: Move to ...
50786         * config/config.rpath: ... here.
50787         * modules/gettext: Contains config/config.rpath, not config.rpath.
50788         * modules/iconv: Likewise.
50789
50790 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50791
50792         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50793         to avoid collisions with libcurses and libreadline.
50794
50795         * m4/getstr.m4: Remove.
50796         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
50797
50798 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50799
50800         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50801         to avoid collisions with libcurses and libreadline.
50802
50803         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
50804         * lib/getstr.h, getstr.c: Remove.
50805         * lib/getline.c: Include "getline.h", to check interface.
50806         Move body of old getstr.c here: this defines MIN_CHUNK and
50807         declares getdelim2, which is renamed from getstr.
50808         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
50809
50810         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
50811         All uses changed.
50812         * lib/linebuffer.h: Likewise.
50813         (readline): Remove backward-compatibility macro.
50814
50815 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50816
50817         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50818         to avoid collisions with libcurses and libreadline.
50819         * getstr: Remove.
50820         * MODULES.html.sh: Remove getstr.
50821         * modules/getline: Depend on unlocked-io, not getstr.
50822
50823 2003-01-12  Jim Meyering  <jim@meyering.net>
50824
50825         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
50826
50827 2003-01-10  Bruno Haible  <bruno@clisp.org>
50828
50829         * modules/alloca: Change Makefile.am requirements. Simplify Include
50830         requirements. Add lib/alloca_.h to file list.
50831
50832 2003-01-10  Bruno Haible  <bruno@clisp.org>
50833
50834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
50835
50836 2003-01-10  Bruno Haible  <bruno@clisp.org>
50837
50838         * lib/alloca_.h: New file.
50839         * lib/getdate.y: Unconditionally include alloca.h.
50840         * lib/makepath.c: Likewise.
50841         * lib/setenv.c: Likewise.
50842         * lib/userspec.c: Likewise.
50843
50844 2003-01-09  Karl Berry  <karl@gnu.org>
50845
50846         * MODULES.html.sh: include `dirname $0` in PATH, to find
50847         gnulib-tool.
50848
50849 2003-01-09  Bruno Haible  <bruno@clisp.org>
50850
50851         * modules/stdbool: Change configure.ac, Makefile.am requirements.
50852         Simplify Include requirements. Add lib/stdbool.h.in to file list.
50853
50854 2003-01-09  Bruno Haible  <bruno@clisp.org>
50855
50856         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
50857
50858 2003-01-09  Bruno Haible  <bruno@clisp.org>
50859
50860         * lib/stdbool.h.in: New file.
50861
50862 2003-01-09  Bruno Haible  <bruno@clisp.org>
50863
50864         * gnulib-tool (func_all_modules): Ignore files ending in ~.
50865         * MODULES.html.sh: Likewise.
50866
50867 2003-01-08  Jim Meyering  <jim@meyering.net>
50868
50869         * lib/full-write.c: Undefine and define-away `const' after inclusion
50870         of errno.h, not before.  Suggestion from Bruno Haible.
50871
50872 2003-01-08  Bruno Haible  <bruno@clisp.org>
50873
50874         * modules/full-read: Depend on full-write.
50875
50876 2003-01-08  Bruno Haible  <bruno@clisp.org>
50877
50878         * lib/safe-read.c: Include specification header first, to ensure its
50879         selfcontainedness.
50880         * lib/full-write.c: Likewise.
50881
50882 2003-01-07  Jim Meyering  <jim@meyering.net>
50883
50884         * lib/full-write.c: Rework so that it may serve to define full_read,
50885         too.
50886         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
50887
50888 2003-01-07  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/strtoimax.c: Include <stdint.h> as an alternative to
50891         <inttypes.h>.
50892         * lib/xstrtol.h: Likewise.
50893         * lib/xstrtoimax.c: Likewise.
50894         * lib/xstrtoumax.c: Likewise.
50895         * lib/human.h: Likewise.
50896
50897         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
50898         on systems that have <inttypes.h> but not <stdint.h>.
50899
50900 2003-01-07  Bruno Haible  <bruno@clisp.org>
50901
50902         * MODULES.html.sh: Add copyright notice.
50903         (missed_files): Omit CVS directory entries.
50904         (func_module): Make it work with sed-3.02.
50905         * MODULES.txt: Remove file.
50906
50907 2003-01-06  Jim Meyering  <jim@meyering.net>
50908
50909         * lib/version-etc.c: Update year in translatable copyright string.
50910
50911 2003-01-03  Karl Berry  <karl@gnu.org>
50912
50913         * config/config.{guess,sub}: update from prep.
50914
50915 2003-01-02  Karl Berry  <karl@gnu.org>
50916
50917         * doc/COPYING.DOC: belatedly updated to 1.2.
50918
50919 2003-01-01  Karl Berry  <karl@gnu.org>
50920
50921         * gnulib-tool (func_verify_module): report module name $module in
50922         error message, not $1.
50923         * gnulib-tool (create-testdir): don't complain if destdir couldn't
50924         be created, only if it doesn't exist.
50925         * gnulib-tool (last_checkin_date): don't expand the $Date here.
50926
50927 2002-12-31  Paul Eggert  <eggert@twinsun.com>
50928
50929         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
50930
50931 2002-12-31  Paul Eggert  <eggert@twinsun.com>
50932
50933         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
50934         memcmp if strcoll doesn't work.
50935
50936 2002-12-31  Bruno Haible  <bruno@clisp.org>
50937
50938         * lib/utime.c (utime_null): No need to call ftruncate if the file was
50939         nonempty.
50940
50941 2002-12-31  Bruno Haible  <bruno@clisp.org>
50942
50943         * lib/memcoll.c (STRCOLL): New macro.
50944         (memcoll): Use it.
50945
50946 2002-12-31  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/localcharset.h: New file.
50949         * lib/localcharset.c: Include it.
50950         * lib/unicodeio.c: Likewise.
50951
50952 2002-12-31  Bruno Haible  <bruno@clisp.org>
50953
50954         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
50955         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
50956
50957 2002-12-31  Bruno Haible  <bruno@clisp.org>
50958
50959         * lib/getline.h: Include <stddef.h>, for size_t.
50960
50961         * lib/unicodeio.h: Include <stddef.h>, for size_t.
50962         * lib/unicodeio.c: Don't include <stddef.h>.
50963
50964 2002-12-31  Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
50967         HAVE_TM_ZONE.
50968
50969 2002-12-24  Karl Berry  <karl@gnu.org>
50970
50971         * config/config.guess: update from prep.
50972
50973 2002-12-24  Bruno Haible  <bruno@clisp.org>
50974
50975         General infrasructure.
50976         * m4/README: Rewritten.
50977         * m4/onceonly.m4: New file.
50978         * m4/onceonly_2_57.m4: New file.
50979
50980         Module atexit.
50981         * m4/atexit.m4: New file.
50982
50983         Module strtod.
50984         * m4/strtod.m4: New file.
50985
50986         Module strtol.
50987         * m4/strtol.m4: New file.
50988
50989         Module strtoul.
50990         * m4/strtoul.m4: New file.
50991
50992         Module memchr.
50993         * m4/memchr.m4: New file.
50994
50995         Module memcmp.
50996         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
50997         (jm_FUNC_MEMCMP): Invoke it.
50998
50999         Module memcpy.
51000         * m4/memcpy.m4: New file.
51001
51002         Module memmove.
51003         * m4/memmove.m4: New file.
51004
51005         Module memset.
51006         * m4/memset.m4: New file.
51007
51008         Module strcspn.
51009         * m4/strcspn.m4: New file.
51010
51011         Module strpbrk.
51012         * m4/strpbrk.m4: New file.
51013
51014         Module strstr.
51015         * m4/strstr.m4: New file.
51016
51017         Module strerror.
51018         * m4/strerror.m4: New file.
51019
51020         Module mktime.
51021         * m4/mktime.m4: Renamed from jm-mktime.m4.
51022         (gl_PREREQ_MKTIME): New macro.
51023         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
51024
51025         Module malloc.
51026         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
51027         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
51028         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
51029
51030         Module realloc.
51031         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
51032         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
51033         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
51034
51035         Module strftime.
51036         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
51037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
51038         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
51039         gl_TM_GMTOFF.
51040         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
51041
51042         Module xalloc.
51043         * m4/xalloc.m4: New file.
51044
51045         Module alloca.
51046         * m4/alloca.m4: New file.
51047
51048         Module putenv.
51049         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
51050         (jm_FUNC_PUTENV): Invoke it.
51051
51052         Module setenv.
51053         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
51054         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
51055         when invoked twice.
51056         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
51057         gt_FUNC_SETENV.
51058
51059         Module memrchr.
51060         * m4/memrchr.m4: New file.
51061
51062         Module stpcpy.
51063         * m4/stpcpy.m4: New file.
51064
51065         Module strcase.
51066         * m4/strcase.m4: New file.
51067
51068         Module strdup.
51069         * m4/strdup.m4: New file.
51070
51071         Module strnlen.
51072         * m4/strnlen.m4: New file.
51073
51074         Module strndup.
51075         * m4/strndup.m4: New file.
51076
51077         Module xstrtod.
51078         * m4/xstrtod.m4: New file.
51079
51080         Module xstrtol.
51081         * m4/xstrtol.m4: New file.
51082
51083         Module getdate.
51084         * m4/getdate.m4: New file.
51085
51086         Module unlocked-io.
51087         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
51088         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
51089         * m4/jm-glibc-io.m4n: Remove file.
51090
51091         Module long-options.
51092         * m4/long-options.m4: New file.
51093
51094         Module md5.
51095         * m4/md5.m4: New file.
51096
51097         Module sha.
51098         * m4/sha.m4: New file.
51099
51100         Module getstr.
51101         * m4/getstr.m4: New file.
51102
51103         Module getline.
51104         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
51105         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
51106         <sys/types.h>, for size_t. Use the function name gnu_getline, not
51107         simply getline. Infoke gl_PREREQ_GETLINE.
51108
51109         Module obstack.
51110         * m4/obstack.m4: New file.
51111
51112         Module hash.
51113         * m4/hash.m4: New file.
51114
51115         Module readtokens.
51116         * m4/readtokens.m4: New file.
51117
51118         Module strverscmp.
51119         * m4/strverscmp.m4: New file.
51120
51121         Module stdbool.
51122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
51123         OSF/1.
51124
51125         Module strtoll.
51126         * m4/strtoll.m4: New file.
51127
51128         Module strtoull.
51129         * m4/strtoull.m4: New file.
51130
51131         Module strtoimax.
51132         * m4/strtoimax.m4: New file.
51133
51134         Module strtoumax.
51135         * m4/strtoumax.m4: New file.
51136
51137         Module xstrtoimax.
51138         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
51139         jm_AC_PREREQ_XSTRTOIMAX.
51140         Moved the strtol prerequisites to strtol.m4.
51141         Moved the strtoll prerequisites to strtoll.m4.
51142         Moved the strtoimax prerequisites to strtoimax.m4.
51143
51144         Module xstrtoumax.
51145         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
51146         jm_AC_PREREQ_XSTRTOUMAX.
51147         Moved the strtoul prerequisites to strtoul.m4.
51148         Moved the strtoull prerequisites to strtoull.m4.
51149         Moved the strtoumax prerequisites to strtoumax.m4.
51150
51151         Module chown.
51152         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
51153         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
51154
51155         Module dup2.
51156         * m4/dup2.m4: New file.
51157
51158         Module ftruncate.
51159         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
51160         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
51161
51162         Module getgroups.
51163         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
51164         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
51165
51166         Module gettimeofday.
51167         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
51168         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
51169         gl_PREREQ_GETTIMEOFDAY.
51170
51171         Module mkdir.
51172         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
51173         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
51174
51175         Module mkstemp.
51176         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
51177         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
51178         jm_AC_TYPE_UINTMAX_T.
51179         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
51180
51181         Module stat.
51182         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
51183         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
51184
51185         Module lstat.
51186         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
51187         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
51188
51189         Module timespec.
51190         * m4/timespec.m4 (gl_TIMESPEC): New macro.
51191         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
51192         * m4/st_mtim.m4: Indentation.
51193
51194         Module nanosleep.
51195         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
51196         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
51197         gl_PREREQ_NANOSLEEP.
51198
51199         Module regex.
51200         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
51201         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
51202         (gl_REGEX): New macro.
51203
51204         Module rename.
51205         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
51206         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
51207
51208         Module rmdir.
51209         * m4/rmdir.m4: New file.
51210
51211         Module utime.
51212         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
51213         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
51214         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
51215
51216         Module dirname.
51217         * m4/dirname.m4: New file.
51218
51219         Module getopt.
51220         * m4/getopt.m4: New file.
51221
51222         Module unistd-safer.
51223         * m4/unistd-safer.m4: New file.
51224
51225         Module fnmatch.
51226         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
51227         declaration.
51228         (gl_PREREQ_FNMATCH_EXTRA): New macro.
51229         (gl_FUNC_FNMATCH_POSIX): New macro.
51230         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
51231         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
51232         simply fnmatch.
51233
51234         Module exclude.
51235         * m4/exclude.m4: New file.
51236
51237         Module human.
51238         * m4/human.m4: New file.
51239
51240         Module acl.
51241         * m4/acl.m4: Nop.
51242
51243         Module backupfile.
51244         * m4/backupfile.m4: New file.
51245         * m4/d-ino.m4: Indentation.
51246
51247         Module fsusage.
51248         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
51249         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
51250         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
51251
51252         Module dirfd.
51253         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
51254         requirements.
51255
51256         Module euidaccess.
51257         * m4/euidaccess.m4: New file.
51258
51259         Module file-type.
51260         * m4/file-type.m4: New file.
51261
51262         Module fileblocks.
51263         * m4/fileblocks.m4: New file.
51264
51265         Module filemode.
51266         * m4/filemode.m4: New file.
51267
51268         Module isdir.
51269         * m4/isdir.m4: New file.
51270
51271         Module lchown.
51272         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
51273         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
51274
51275         Module makepath.
51276         * m4/makepath.m4: New file.
51277
51278         Module modechange.
51279         * m4/modechange.m4: New file.
51280
51281         Module mountlist.
51282         * m4/mountlist.m4: New file.
51283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
51284         Indentation.
51285
51286         Module path-concat.
51287         * m4/path-concat.m4: New file.
51288
51289         Module pathmax.
51290         * m4/pathmax.m4: New file.
51291
51292         Module same.
51293         * m4/same.m4: New file.
51294
51295         Module save-cwd.
51296         * m4/save-cwd.m4: New file.
51297
51298         Module savedir.
51299         * m4/savedir.m4: New file.
51300
51301         Module xgetcwd.
51302         * m4/xgetcwd.m4: New file.
51303         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
51304
51305         Module xreadlink.
51306         * m4/xreadlink.m4: New file.
51307
51308         Module safe-read.
51309         * m4/safe-read.m4: New file.
51310
51311         Module safe-write.
51312         * m4/safe-write.m4: New file.
51313
51314         Module closeout.
51315         * m4/closeout.m4: New file.
51316
51317         Module stdio-safer.
51318         * m4/stdio-safer.m4: New file.
51319
51320         Module getpass.
51321         * m4/getpass.m4: New file.
51322
51323         Module getugroups.
51324         * m4/getugroups.m4: New file.
51325
51326         Module group-member.
51327         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
51328         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
51329
51330         Module idcache.
51331         * m4/idcache.m4: New file.
51332
51333         Module userspec.
51334         * m4/userspec.m4: New file.
51335
51336         Module gettime.
51337         * m4/clock_time.m4: New file.
51338         * m4/gettime.m4: New file.
51339
51340         Module settime.
51341         * m4/settime.m4: New file.
51342
51343         Module posixtm.
51344         * m4/posixtm.m4: New file.
51345
51346         Module gethostname.
51347         * m4/gethostname.m4: New file.
51348
51349         Module canon-host.
51350         * m4/canon-host.m4: New file.
51351
51352         Module gettext.
51353         * m4/codeset.m4: New file, from gettext-0.11.5.
51354         * m4/gettext.m4: New file, from gettext-0.11.5.
51355         * m4/glibc21.m4: New file, from gettext-0.11.5.
51356         * m4/iconv.m4: New file, from gettext-0.11.5.
51357         * m4/intdiv0.m4: New file, from gettext-0.11.5.
51358         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
51359         * m4/inttypes.m4: New file, from gettext-0.11.5.
51360         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
51361         * m4/isc-posix.m4: New file, from gettext-0.11.5.
51362         * m4/lcmessage.m4: New file, from gettext-0.11.5.
51363         * m4/lib-ld.m4: New file, from gettext-0.11.5.
51364         * m4/lib-link.m4: New file, from gettext-0.11.5.
51365         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
51366         * m4/progtest.m4: New file, from gettext-0.11.5.
51367         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
51368         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
51369         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
51370
51371         Module localcharset.
51372         * m4/localcharset.m4: New file.
51373
51374         Module hard-locale.
51375         * m4/hard-locale.m4: New file.
51376
51377         Module mbswidth.
51378         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
51379         onceonly macros.
51380         * m4/mbrtowc.m4: Add comment.
51381
51382         Module memcasecmp.
51383         * m4/memcasecmp.m4: New file.
51384
51385         Module memcoll.
51386         * m4/memcoll.m4: New file.
51387
51388         Module unicodeio.
51389         * m4/unicodeio.m4: New file.
51390
51391         Module rpmatch.
51392         * m4/rpmatch.m4: New file.
51393
51394         Module yesno.
51395         * m4/yesno.m4: New file.
51396
51397         Module exitfail.
51398         * m4/exitfail.m4: New file.
51399
51400         Module c-stack.
51401         * m4/c-stack.m4 (gl_C_STACK): New macro.
51402         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
51403
51404         Module error.
51405         * m4/error.m4 (gl_ERROR): New macro.
51406         (jm_PREREQ_ERROR): Use onceonly macros.
51407
51408         Module fatal.
51409         * m4/fatal.m4: New file.
51410
51411         Module getloadavg.
51412         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
51413         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
51414
51415         Module getpagesize.
51416         * m4/getpagesize.m4: New file.
51417
51418         Module getusershell.
51419         * m4/getusershell.m4: New file.
51420
51421         Module physmem.
51422         * m4/physmem.m4: New file.
51423
51424         Module posixver.
51425         * m4/posixver.m4: New file.
51426
51427         Module quotearg.
51428         * m4/quotearg.m4: New file.
51429
51430         Module quote.
51431         * m4/quote.m4: New file.
51432
51433         Module readutmp.
51434         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
51435
51436         Module sig2str.
51437         * m4/sig2str.m4: New file.
51438
51439         Other.
51440         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
51441         ulonglong.m4.
51442         * m4/intmax_t.m4: New file.
51443         * m4/d-type.m4: Indentation.
51444         * m4/jm-macros.m4: Update.
51445         * m4/prereq.m4 (jm_PREREQ): Update.
51446         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
51447         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
51448         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
51449         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
51450         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
51451         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
51452         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
51453         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
51454         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
51455         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
51456         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
51457         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
51458         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
51459         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
51460         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
51461         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
51462         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
51463         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
51464         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
51465
51466 2002-12-24  Bruno Haible  <bruno@clisp.org>
51467
51468         * MODULES.txt: Update according to m4/ changes.
51469
51470         Module gettext.
51471         * config.rpath: New file, from gettext-0.11.5.
51472
51473         * modules/*: New module descriptions.
51474         * gnulib-tool: New file.
51475         * MODULES.html.sh: New file.
51476
51477 2002-12-21  Karl Berry  <karl@gnu.org>
51478
51479         * doc/fdl.texi: update to version 1.2.
51480
51481 2002-12-19  Karl Berry  <karl@gnu.org>
51482
51483         * config/config.guess: update from prep.
51484
51485 2002-12-18  Bruno Haible  <bruno@clisp.org>
51486
51487         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
51488         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
51489
51490 2002-12-17  Bruno Haible  <bruno@clisp.org>
51491
51492         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
51493         stdlib.h, string.h.
51494
51495 2002-12-17  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/canon-host.c (strdup): Remove unused declaration.
51498
51499         * lib/fsusage.c: Include full_read.h.
51500         (get_fs_usage): Use full_read instead of safe_read.
51501
51502         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
51503
51504 2002-12-12  Karl Berry  <karl@gnu.org>
51505
51506         * config/config.guess: update from prep.
51507
51508 2002-12-11  Bruno Haible  <bruno@clisp.org>
51509
51510         * m4/setenv.m4: New file, from gettext-0.11.5.
51511
51512 2002-12-11  Bruno Haible  <bruno@clisp.org>
51513
51514         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
51515         not unsetenv().
51516         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
51517         modifications:
51518
51519         2002-12-11  Bruno Haible  <bruno@clisp.org>
51520
51521                 * setenv.c (alloca): Fall back to malloc.
51522                 (freea): New macro.
51523                 (setenv): Use freea() to free memory allocated with alloca().
51524
51525         2002-11-13  Bruno Haible  <bruno@clisp.org>
51526
51527                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
51528                 function declarations.
51529                 * unsetenv.c (unsetenv): Likewise.
51530
51531         2002-03-04  Bruno Haible  <bruno@clisp.org>
51532
51533                 Portability to AIX 4.3.3.
51534                 * unsetenv.c: New file, extracted from setenv.c.
51535                 * setenv.c: Move the unsetenv() function to unsetenv.c.
51536
51537         2001-12-20  Bruno Haible  <bruno@clisp.org>
51538
51539                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
51540                 use malloc instead. For SunOS 4.
51541
51542         2001-12-11  Bruno Haible  <bruno@clisp.org>
51543
51544                 * setenv.c: Declare alloca.
51545                 (compar_fn_t): New typedef.
51546                 (KNOWN_VALUE, STORE_VALUE): Use it.
51547
51548         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
51549         setenv.h.
51550
51551 2002-12-10  Paul Eggert  <eggert@twinsun.com>
51552
51553         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
51554         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
51555         Choose values that are less likely to collide with system fnmatch
51556         options.
51557         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
51558         defined (e.g., a pure POSIX system).
51559         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
51560         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
51561
51562 2002-12-06  Paul Eggert  <eggert@twinsun.com>
51563
51564         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
51565         a pain in practice to deal with generated m4 files.  This change
51566         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
51567
51568         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
51569         and jm-glibc-io.m4, as they are no longer a special case.
51570         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
51571         kludge and the auto-generation stuff.  Check only whether the
51572         functions are declared, not whether they exist, since older hosts
51573         that don't declare the functions can't use the optimization anyway.
51574
51575 2002-12-06  Jim Meyering  <jim@meyering.net>
51576
51577         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
51578
51579         Merge in changes from libc's misc/error.c, in preparation
51580         for the merge of gnulib's changes back into libc.
51581
51582         * lib/error.c (_): Define only if not already defined.
51583         Move definition to follow all #include directives.
51584         Include unlocked-io.h only if !_LIBC.
51585         [_LIBC]: Include <libio/libioP.h>.
51586         [USE_IN_LIBIO]: Include <libio/iolibio.h>
51587         (fflush): Tweak definition to use INTUSE.
51588         (putc): Define.
51589
51590 2002-12-05  Paul Eggert  <eggert@twinsun.com>
51591
51592         * lib/alloca.c [defined emacs]: Include "lisp.h".
51593         (xalloc_die) [defined emacs]: New macro.
51594         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
51595         [! defined emacs]: Include <xalloc.h>.
51596         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
51597         (pointer): Typedef to POINTER_TYPE *.
51598         (malloc): Remove decl; we now always use xmalloc.
51599         (alloca): Use old-style definition, since Emacs needs this.
51600         Check for arithmetic overflow when computing combined size.
51601
51602 2002-12-04  Paul Eggert  <eggert@twinsun.com>
51603
51604         Do not generate unlocked-io.h automatically, since it's easier to
51605         maintain it by hand.
51606
51607         * lib/unlocked-io.h: New file, from GNU diffutils,
51608         but with proper copyright notice and attribution.
51609         * lib/gen-uio: Remove.
51610         * lib/Makefile.am: Add copyright notice.
51611         (libfetish_a_SOURCES): Add unlocked-io.h.
51612         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
51613         (DISTCLEANFILES, io_functions): Remove macros.
51614         (EXTRA_DIST): Remove gen_uio.
51615         (unlocked-io.h): Remove rule.
51616
51617 2002-12-04  Jim Meyering  <jim@meyering.net>
51618
51619         Reflect the fact that stat.c and lstat.c are no longer generated.
51620         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
51621         (DISTCLEANFILES): Likewise.
51622         (EXTRA_DIST): Likewise.
51623         (all_local): Don't depend on stat.c or lstat.c.
51624         (stat.c, lstat.c): Remove rules.
51625         (EXTRA_DIST): Remove xstat.in.
51626
51627         * lib/xstat.in: Remove file.  Contents moved into stat.c.
51628         * lib/stat.c: New file.  Contents mostly from xstat.in.
51629         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
51630         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
51631
51632         * lib/safe-read.c: Rework so that it may serve to define safe_write,
51633         too.
51634         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
51635
51636 2002-12-03  Jim Meyering  <jim@meyering.net>
51637
51638         * lib/safe-read.c, safe-write.c: Change variable names and comments,
51639         but not semantics, to minimize the differences between these two files.
51640         (safe_read): Change comment to mention SAFE_READ_ERROR.
51641
51642         * lib/safe-read.c (IS_EINTR): Define.
51643         (safe_read): Use IS_EINTR in place of in-function cpp directives.
51644
51645 2002-12-02  Jim Meyering  <jim@meyering.net>
51646
51647         * lib/safe-read.c (EINTR): Define.
51648         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51649         (INT_MAX): Provide fallback.
51650         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
51651
51652         * lib/safe-read.h (SAFE_READ_ERROR): Define.
51653
51654 2002-12-02  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
51657         Define, taken from safe-read.c.
51658         (INT_MAX): Provide fallback.
51659         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
51660         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
51661
51662         * lib/safe-read.c (EINTR): Remove definition.
51663         (safe_read): Don't use EINTR if it is absent.
51664
51665 2002-12-01  Jim Meyering  <jim@meyering.net>
51666
51667         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
51668         zero.
51669         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
51670
51671 2002-11-27  Paul Eggert  <eggert@twinsun.com>
51672
51673         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
51674         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
51675         with `if (! (value < limit)) abort ();', for readability.
51676
51677 2002-11-26  Karl Berry  <karl@gnu.org>
51678
51679         * lib/strdup.c: copy from libc again, with jim's ok.
51680         * lib/.cppi-disable: re-add strdup.c
51681
51682 2002-11-25  Karl Berry  <karl@gnu.org>
51683
51684         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
51685         instead of "strtol.c".
51686
51687 2002-11-25  Karl Berry  <karl@gnu.org>
51688
51689         * config/install-sh: update from automake for variable quoting, $0 in
51690         error msgs, etc.
51691
51692         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
51693         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
51694         entry.
51695
51696 2002-11-25  Jim Meyering  <jim@meyering.net>
51697
51698         * lib/mktime.c: Sync from libc, now that it has the latest fix.
51699
51700 2002-11-24  Karl Berry  <karl@gnu.org>
51701
51702         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
51703         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
51704
51705 2002-11-24  Jim Meyering  <jim@meyering.net>
51706
51707         Update from coreutils:
51708
51709         * lib/mktime.c: Merge in changes from libc.
51710
51711         Avoid a link-time failure on some Linux systems.
51712         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
51713         (otherwise).
51714         (__mon_yday): Declare with the STATIC attribute.
51715         (__mktime_internal): Likewise.
51716         Based on a report from Greg Schafer.
51717
51718 2002-11-23  Jim Meyering  <jim@meyering.net>
51719
51720         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
51721         Use `unsigned', not `int', as type of index.
51722
51723         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
51724
51725         * lib/fsusage.c: Remove unneeded parentheses around operands of
51726         `defined'.
51727
51728 2002-11-22  Paul Eggert  <eggert@twinsun.com>
51729
51730         * lib/quotearg.h: Allow multiple inclusion by surrounding with
51731         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
51732         so that we can be included first.
51733         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
51734         * lib/quotearg.c: Include quotearg.h immediately after config.h.
51735         No need to include stddef.h or sys/types.h any more.
51736         Surround local include files with "", not "<>".
51737         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
51738         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
51739         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
51740         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
51741         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
51742         (ISPRINT): Remove; no longer needed now that we assume C89.
51743
51744         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
51745         Preserve errno.
51746
51747         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
51748         quotearg_char): Use SIZE_MAX rather than
51749         (size_t) -1 when we are talking about "infinity".
51750
51751         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
51752
51753 2002-11-22  Paul Eggert  <eggert@twinsun.com>
51754
51755         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
51756         hint that one should use `if (! x) abort ();' rather than `assert
51757         (x);', and anyway it's one less thing to worry about configuring.
51758         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
51759         hash_rehash, hash_insert): Use abort rather than assert.
51760
51761 2002-11-22  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/safe-read.h: Assume C89. Add comments.
51764         (safe_read): Change return type to size_t.
51765         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
51766         byte counts > SSIZE_MAX correctly.
51767         * lib/safe-write.h: New file.
51768         * lib/safe-write.c: New file.
51769         * lib/full-read.h: New file.
51770         * lib/full-read.c: New file.
51771         * lib/full-write.h: Assume C89. Add comments.
51772         * lib/full-write.c: Include safe-write.h.
51773         (full_write): Rewritten to use safe_write.
51774         Suggested by Jim Meyering and Paul Eggert.
51775
51776 2002-11-21  Jim Meyering  <jim@meyering.net>
51777
51778         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
51779
51780         Merge in changes from the coreutils.
51781
51782         2002-09-25  Paul Eggert  <eggert@twinsun.com>
51783         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
51784         <stdint.h>.
51785         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
51786         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
51787         int.  Work more efficiently if X is the same width as uintmax_t.
51788         Do not compare X to -1, to avoid bogus compiler warning.
51789         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
51790         Don't assume that f_frsize and f_bsize are the same type.
51791
51792         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
51793         warning on FreeBSD.
51794
51795         * lib/makepath.c (make_path): Restore umask *before* creating the final
51796         component.
51797         (make_path): Minor reformatting.
51798
51799         * lib/xmalloc.c: Adjust to work with new autoconf macros,
51800         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
51801         HAVE_MALLOC/HAVE_REALLOC.
51802
51803         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
51804         dummy ones.  At least on GNU/Linux systems, `auto' means something
51805         else.
51806         From Michael Stone.
51807
51808 2002-11-21  Bruno Haible  <bruno@clisp.org>
51809
51810         Remove case insensitive option matching.
51811         * lib/argmatch.h (argcasematch): Remove declaration.
51812         (ARGCASEMATCH): Remove macro.
51813         (__xargmatch_internal): Remove case_sensitive argument.
51814         (XARGMATCH): Update.
51815         (XARGCASEMATCH): Remove macro.
51816         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
51817         case_sensitive argument.
51818         (argcasematch): Remove function.
51819         (__xargmatch_internal): Remove case_sensitive argument.
51820         (main): Use XARGMATCH instead of XARGCASEMATCH.
51821
51822         * lib/xmalloc.c: Change compile-time error message. Add comment about
51823         required autoconf version.
51824
51825 2002-11-20  Paul Eggert  <eggert@twinsun.com>
51826
51827         Merge argmatch cleanups from Bison.  Assume C89.
51828
51829         * lib/argmatch.c: Include config.h here, not in argmatch.h.
51830         Include stdlib.h, for EXIT_FAILURE.
51831         Always include <string.h>, since we assume C89.
51832         (EXIT_FAILURE): Remove pre-C89 bug workaround.
51833         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
51834         Include <stddef.h> instead, since it's all we need for size_t.
51835         (PARAMS): Remove.  All uses removed.
51836         (ARRAY_CARDINALITY): Do not bother to #undef.
51837         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
51838         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51839         Remove unnecessary parentheses.
51840         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51841         Insert necessary parentheses.
51842         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
51843         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
51844
51845 2002-11-19  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
51848         * lib/mbswidth.h: Include <stddef.h>, for size_t.
51849
51850         * lib/mbswidth.h (PARAMS): Remove macro.
51851         (mbswidth, mbsnwidth): Use ANSI C function declarations.
51852         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
51853
51854         * lib/gcd.h (PARAMS): Remove macro.
51855         (gcd): Use ANSI C function declarations.
51856         * lib/gcd.c (gcd): Likewise.
51857
51858 2002-11-15  Bruno Haible  <bruno@clisp.org>
51859
51860         * lib/strcspn.c: Include <stddef.h>.
51861         (strcspn): Use ANSI C function declaration. Change return type to
51862         size_t. Use NULL.
51863         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
51864         (strpbrk): Use NULL.
51865         * lib/strpbrk.h (PARAMS): Remove macro.
51866         (strpbrk): Use ANSI C function declaration.
51867         * lib/strstr.c: Don't include <sys/types.h>.
51868         * lib/strstr.h (PARAMS): Remove macro.
51869         (strstr): Use ANSI C function declarations.
51870
51871 2002-11-14  Karl Berry  <karl@gnu.org>
51872
51873         * config/mkinstalldirs: `do' on separate line, instead of
51874         `for var; do'.
51875
51876 2002-11-06  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
51879         * lib/gcd.c (gcd): Likewise.
51880
51881 2002-11-05  Bruno Haible  <bruno@clisp.org>
51882
51883         * lib/gcd.h: New file, from gettext-0.11.5.
51884         * lib/gcd.c: New file, from gettext-0.11.5.
51885
51886 2002-11-05  Bruno Haible  <bruno@clisp.org>
51887
51888         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51889         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51890         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51891         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51892
51893         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
51894         <libintl.h>.
51895         * lib/makepath.c: Include gettext.h instead of <locale.h> and
51896         <libintl.h>.
51897
51898         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
51899         * lib/human.c: Include gettext.h instead of <libintl.h>.
51900         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
51901         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
51902         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
51903         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
51904         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
51905         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
51906         (textdomain): Remove definition.
51907         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
51908
51909         * lib/long-options.c: Remove include of <libintl.h> and definition of
51910         _.
51911         * lib/same.c: Remove include of <libintl.h> and definition of _.
51912
51913 2002-11-04  Owen Taylor  <otaylor@redhat.com>
51914
51915         * lib/config.charset: A few additions for Solaris.
51916
51917 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
51918
51919         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
51920         * lib/localcharset.c (locale_charset): Declare as extern "C".
51921
51922 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
51923
51924         * lib/config.charset: msdos in uk_UA uses CP1125.
51925
51926 2002-11-04  Bruno Haible  <bruno@clisp.org>
51927
51928         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
51929         * lib/strcase.h: New file, from GNU gettext-0.11.5.
51930         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
51931         * lib/strstr.h: New file, from GNU gettext-0.11.5.
51932         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
51933
51934 2002-11-04  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/localcharset.c (locale_charset): Don't return an empty string.
51937
51938 2002-11-04  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
51941         aliases.
51942
51943 2002-11-04  Bruno Haible  <bruno@clisp.org>
51944
51945         * lib/config.charset: Update for newest glibc. Add canonical names
51946         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
51947
51948 2002-11-04  Bruno Haible  <bruno@clisp.org>
51949
51950         * lib/config.charset: Add support for NetBSD.
51951
51952 2002-11-04  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
51955
51956 2002-11-01  Bruno Haible  <bruno@clisp.org>
51957
51958         * configure.in: Add AC_CONFIG_AUX_DIR call.
51959         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
51960         test/Makefile.
51961         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
51962
51963 2002-09-28  Karl Berry  <karl@gnu.org>
51964
51965         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
51966         installed automake until the next release, since changes have been
51967         made.
51968
51969 2002-09-25  Karl Berry  <karl@gnu.org>
51970
51971         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
51972         * lib/getopt*: copy from libc/posix.
51973         * lib/gettext.h: copy from gettext.
51974         * lib/.cppi-disable: add strdup.c, gettext.h.
51975
51976 2002-09-25  Karl Berry  <karl@gnu.org>
51977
51978         * config/srclist.txt: enable gettext.h check.
51979         * config/config.{guess,sub}: update from prep.
51980         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
51981                 from automake 1.6.3.
51982         See srclist*.
51983
51984 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
51985
51986         * regex.c (PATFETCH): Remove the translating fetch.
51987         (PATFETCH_RAW): Rename to PATFETCH.
51988         (set_image_of_range): New fun.
51989         (SET_RANGE_TABLE_WORK_AREA): Use it.
51990         (regex_compile): Don't translate the pattern chars so eagerly.
51991         Only do it when inserting an `exactn' bytecode or when handling
51992         a char-range.
51993         (mutually_exclusive_p): Avoid empty statement.
51994
51995 2002-07-06  Jim Meyering  <meyering@lucent.com>
51996
51997         * m4/README: Don't mention Makefile.am.in.
51998         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
51999
52000 2002-07-01  Jim Meyering  <meyering@lucent.com>
52001
52002         * lib/c-stack.c: Include sys/time.h.
52003         From Volker Borchert.
52004
52005 2002-06-26  Paul Eggert  <eggert@twinsun.com>
52006
52007         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
52008
52009 2002-06-26  Paul Eggert  <eggert@twinsun.com>
52010
52011         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
52012         New macro.  Use it uniformly instead of
52013         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
52014         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
52015         reported by Vin Shelton.
52016
52017 2002-06-22  Paul Eggert  <eggert@twinsun.com>
52018
52019         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
52020         Do not assume SA_SIGINFO behavior.
52021         Bug reported by Jim Meyering on NetBSD 1.5.2.
52022
52023 2002-06-22  Jim Meyering  <meyering@lucent.com>
52024
52025         * m4/c-stack.m4: New file, from diffutils-2.8.2.
52026         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
52027
52028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
52029         now that configure.ac uses AC_GNU_SOURCE.
52030         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
52031         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
52032
52033         Update to latest tools.  Suggestions from Paul Eggert.
52034         * m4/stdbool.m4: New file, from diffutils-2.8.2.
52035         * m4/gnu-source.m4: Update from diffutils-2.8.2.
52036         * m4/fnmatch.m4: Likewise.
52037         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
52038         to AC_HEADER_STDBOOL
52039
52040 2002-06-22  Jim Meyering  <meyering@lucent.com>
52041
52042         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
52043         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
52044
52045 2002-06-22  Jim Meyering  <meyering@lucent.com>
52046
52047         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
52048
52049         * lib/exitfail.c, exitfail.h: Likewise.
52050         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
52051
52052         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
52053         of fnmatch.h.
52054         (EXTRA_DIST): Add fnmatch_loop.c.
52055         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
52056
52057         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
52058         * lib/fnmatch.c: Update from diffutils-2.8.2.
52059         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
52060         * lib/fnmatch.h: Remove file.
52061
52062 2002-06-21  Jim Meyering  <meyering@lucent.com>
52063
52064         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
52065         * m4/mbrtowc.m4: Likewise.
52066
52067         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
52068         * m4/mbswidth.m4: Reflect name change:
52069         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
52070         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
52071
52072         * m4/lib-link.m4: Update from gettext-0.11.2.
52073         * m4/gettext.m4: Likewise.
52074
52075         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
52076         From Alfred M. Szmidt.
52077
52078 2002-06-18  Paul Eggert  <eggert@twinsun.com>
52079
52080         * lib/file-type.h: Report an error if neither S_ISREG nor
52081         S_IFREG is defined, instead of using a test specific to glibc
52082         2.2.  This should be safe, since POSIX requires S_ISREG and
52083         Unix Version 7 had S_IFREG.  We don't need to check for
52084         <sys/types.h> since we don't use any symbols that it defines.
52085
52086 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
52087
52088         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
52089         $@-t, so that each temporary file name is unique and valid in the first
52090         8 characters, for operation under DOS.
52091
52092 2002-06-15  Paul Eggert  <eggert@twinsun.com>
52093
52094         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
52095
52096 2002-06-15  Jim Meyering  <meyering@lucent.com>
52097
52098         Work even with DJGPP 2.03, which lacks support for symlinks.
52099         From Richard Dawe.
52100         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
52101         is defined.
52102         * lib/lchown.c (S_ISLNK): Likewise.
52103
52104 2002-06-15  Jim Meyering  <meyering@lucent.com>
52105
52106         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
52107         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
52108         have been included before this file.
52109
52110 2002-06-14  Jim Meyering  <meyering@lucent.com>
52111
52112         * lib/file-type.h: Use the version from diffutils-2.8.2.
52113         * lib/file-type.c: Likewise.
52114
52115 2002-06-07  Jim Meyering  <meyering@lucent.com>
52116
52117         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
52118         They're needed at least for NetBSD 1.5.2.
52119         ($statxfs_includes): Include those same headers.
52120         ($statxfs_includes): Include sys/vfs.h if available.
52121         ($statxfs_includes): Likewise for sys/statvfs.h.
52122         Check for the following members in both structs statfs and statvfs:
52123         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
52124
52125 2002-06-01  Jim Meyering  <meyering@lucent.com>
52126
52127         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
52128         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
52129
52130 2002-05-28  Jim Meyering  <meyering@lucent.com>
52131
52132         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
52133         Reported by Volker Borchert.
52134
52135 2002-05-27  Jim Meyering  <meyering@lucent.com>
52136
52137         Fix a problem seen only on nonconforming systems whereby ls.c's
52138         use of localtime, and then of gettimeofday would cause trouble:
52139         the localtime call used to initialize rpl_gettimeofday's save
52140         mechanism would clobber ls's current local time information so
52141         that in any long listing the first file would always be listed
52142         with date 1970-01-01.  Analysis by Volker Borchert.
52143
52144         * lib/gettimeofday.c (localtime): Undefine.
52145         (rpl_localtime): New function.
52146
52147 2002-05-27  Jim Meyering  <meyering@lucent.com>
52148
52149         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
52150         localtime.
52151
52152         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
52153         use the replacement function; it wouldn't resolve at link time.
52154         Reported by Volker Borchert.
52155
52156 2002-05-22  Jim Meyering  <meyering@lucent.com>
52157
52158         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
52159         file-type.h.
52160         * lib/file-type.h: New file.
52161         * lib/file-type.c (file_type): New file/function.  Extracted from
52162         diffutils.
52163
52164 2002-04-30  Jim Meyering  <meyering@lucent.com>
52165
52166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
52167
52168 2002-04-29  Paul Eggert  <eggert@twinsun.com>
52169
52170         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
52171
52172 2002-04-29  Paul Eggert  <eggert@twinsun.com>
52173
52174         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
52175         Do not check for alloca.h (no longer used) or stdbool.h (was never
52176         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
52177
52178 2002-04-29  Paul Eggert  <eggert@twinsun.com>
52179
52180         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
52181
52182 2002-04-29  Jim Meyering  <meyering@lucent.com>
52183
52184         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
52185         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
52186         Use AC_FUNC_STRNLEN here instead.
52187
52188         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
52189         With autoconf-2.53a, it's part of AC_PROG_CC.
52190
52191 2002-04-28  Paul Eggert  <eggert@twinsun.com>
52192
52193         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
52194         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
52195
52196 2002-04-28  Paul Eggert  <eggert@twinsun.com>
52197
52198         * lib/sig2str.h, lib/sig2str.c: New files.
52199         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
52200
52201 2002-04-28  Paul Eggert  <eggert@twinsun.com>
52202
52203         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
52204         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
52205         of 127, since 64 is the largest conceivable number for ancient
52206         nonstandard hosts.
52207         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
52208
52209 2002-04-28  Jim Meyering  <meyering@lucent.com>
52210
52211         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
52212
52213 2002-04-24  Jim Meyering  <meyering@lucent.com>
52214
52215         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
52216         (jm_PREREQ): Use it.
52217
52218         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
52219         mach/mach.h fcntl.h.
52220         Check for this function: setlocale.
52221
52222 2002-04-24  Jim Meyering  <meyering@lucent.com>
52223
52224         * lib/gettext.h: New file, from Gettext.
52225         * lib/Makefile.am (INCLUDES): Remove -I../intl.
52226         (libfetish_a_SOURCES): Add gettext.h.
52227
52228 2002-04-16  Jim Meyering  <meyering@lucent.com>
52229
52230         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
52231         ut_pid, ut_id, ut_exit.
52232
52233 2002-04-16  Jim Meyering  <meyering@lucent.com>
52234
52235         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
52236         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
52237         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
52238
52239 2002-04-12  Jim Meyering  <meyering@lucent.com>
52240
52241         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
52242         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
52243         existence of the getmntinfo function.  Needed for Darwin 5.3.
52244
52245         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
52246         This is necessary at least on Darwin 5.3.
52247
52248         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
52249         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
52250         strnlen.o in the library, and that makes some versions of ranlib
52251         object.
52252
52253 2002-04-12  Jim Meyering  <meyering@lucent.com>
52254
52255         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
52256
52257 2002-04-09  Jim Meyering  <meyering@lucent.com>
52258
52259         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
52260         to be more precise.  Rather than saying we're checking whether the
52261         function `works', say what we're testing.
52262         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
52263         Reported by Bruno Haible.
52264
52265 2002-03-10  Jim Meyering  <meyering@lucent.com>
52266
52267         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
52268         Suggestion from Santiago Vila.
52269
52270 2002-03-08  Jim Meyering  <meyering@lucent.com>
52271
52272         * lib/rename.c: Mention that this wrapper is needed also on
52273         mips-dec-ultrix4.4 systems.
52274
52275 2002-03-02  Jim Meyering  <meyering@lucent.com>
52276
52277         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
52278         not HAVE_CLOCK_SETTIME.
52279
52280 2002-02-27  Paul Eggert  <eggert@twinsun.com>
52281
52282         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
52283         Check for clock_settime.
52284
52285 2002-02-27  Paul Eggert  <eggert@twinsun.com>
52286
52287         * lib/nanosleep.h: Rename to....
52288         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
52289
52290         * lib/gettime.c: New file.
52291         * lib/settime.c: New file.
52292         * lib/stime.c: Remove.
52293
52294         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
52295         timespec.h.  Remove nanosleep.h.
52296
52297 2002-02-25  Paul Eggert  <eggert@twinsun.com>
52298
52299         * m4/acl.m4: New file.
52300         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
52301         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
52302
52303 2002-02-25  Paul Eggert  <eggert@twinsun.com>
52304
52305         * lib/acl.c, lib/acl.h: New files.
52306         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
52307
52308 2002-02-24  Jim Meyering  <meyering@lucent.com>
52309
52310         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
52311         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
52312         cause trouble.  Reported by Nelson Beebe.
52313
52314 2002-02-23  Paul Eggert  <eggert@twinsun.com>
52315
52316         * lib/path-concat.c (xpath_concat): Reorder code to pacify
52317         compilers that don't know that xalloc_die never returns.
52318
52319 2002-02-20  Jim Meyering  <meyering@lucent.com>
52320
52321         * lib/getdate.c: Regenerate using bison-1.33.
52322
52323 2002-02-17  Jim Meyering  <meyering@lucent.com>
52324
52325         * config/config.guess (main): Don't use `head -1'; it's no longer
52326         portable. Use `sed 1q' instead.
52327
52328 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
52329
52330         * m4/codeset.m4: Upgrade to gettext-0.11.
52331         * m4/gettext.m4: Upgrade to gettext-0.11.
52332         * m4/glibc21.m4: Upgrade to gettext-0.11.
52333         * m4/iconv.m4: Upgrade to gettext-0.11.
52334         * m4/isc-posix.m4: Upgrade to gettext-0.11.
52335         * m4/lcmessage.m4: Upgrade to gettext-0.11.
52336         * m4/lib-ld.m4: New file, from gettext-0.11.
52337         * m4/lib-link.m4: New file, from gettext-0.11.
52338         * m4/lib-prefix.m4: New file, from gettext-0.11.
52339         * m4/progtest.m4: Upgrade to gettext-0.11.
52340
52341 2002-02-15  Paul Eggert  <eggert@twinsun.com>
52342
52343         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
52344         (jm_PREREQ): Use it.
52345
52346 2002-02-15  Paul Eggert  <eggert@twinsun.com>
52347
52348         * lib/posixver.c, lib/posixver.h: New files.
52349         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
52350
52351 2002-02-02  Paul Eggert  <eggert@twinsun.com>
52352             Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
52355         (fwrite_success_callback): New declaration.
52356         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
52357         print_unicode_char. Call failure callback instead of error.
52358         (fwrite_success_callback): New function.
52359         (exit_failure_callback): New function.
52360         (fallback_failure_callback): New function.
52361         (print_unicode_char): Call unicode_to_mb.
52362
52363 2002-01-26  Jim Meyering  <meyering@lucent.com>
52364
52365         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
52366         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
52367
52368 2002-01-26  Jim Meyering  <meyering@lucent.com>
52369
52370         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
52371
52372 2002-01-22  Paul Eggert  <eggert@twinsun.com>
52373
52374         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
52375
52376 2002-01-22  Jim Meyering  <meyering@lucent.com>
52377
52378         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
52379         Otherwise, some versions of automake would omit the rule that makes
52380         Makefile from Makefile.in.
52381
52382 2002-01-21  Paul Eggert  <eggert@twinsun.com>
52383
52384         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
52385         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
52386         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
52387         (memcoll): Set errno to zero if there is no error.
52388
52389         * lib/quotearg.c (quotearg_buffer_restyled):
52390         Fix bug with quoting buffers containing NUL when backslashing escapes.
52391         This bug was exposed by the other changes in this patch.
52392         (quotearg_n_options): New arg ARGSIZE.
52393         All callers changed.
52394         (quoting_options_from_style): New function.
52395         (quotearg_n_style): Use it.
52396         (quotearg_n_style_mem): New function.
52397
52398         * lib/quotearg.h (quotearg_n_style_mem): New function.
52399
52400 2002-01-19  Jim Meyering  <meyering@lucent.com>
52401
52402         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
52403         Remove useless quotes: DF_PROG="df".
52404         * m4/strnlen.m4: New file.
52405
52406 2002-01-16  Paul Eggert  <eggert@twinsun.com>
52407
52408         * lib/backupfile.c (ISDIGIT): Comment fix.
52409         * lib/getdate.y (ISDIGIT): Likewise.
52410         * lib/posixtm.c (ISDIGIT, year): Likewise.
52411         * lib/strverscmp.c (ISDIGIT): Likewise.
52412         * lib/userspec.c (ISDIGIT): Likewise.
52413
52414 2002-01-16  Jim Meyering  <meyering@lucent.com>
52415
52416         * lib/getdate.y: Add three semicolons, each just before a closing
52417         brace. Bison (as of version 1.31) no longer papers over that mistake.
52418
52419 2002-01-05  Jim Meyering  <meyering@lucent.com>
52420
52421         * lib/version-etc.c (version_etc_copyright): Update copyright year.
52422
52423 2001-12-19  Paul Eggert  <eggert@twinsun.com>
52424
52425         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
52426         not silently exit merely because the output buffer happens to
52427         have nothing pending.
52428
52429 2001-12-18  Paul Eggert  <eggert@twinsun.com>
52430
52431         See the big note in ../ChangeLog.
52432         * lib/human.c (suffixes): Prefer K to k for 1024.
52433         (generate_suffix_backwards): New function.
52434         (human_readable_inexact): Use it.
52435         * lib/xstrtol.c (__xstrtol): If there is no number but there
52436         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
52437         Accept 'K' as well as 'k'.
52438
52439 2001-12-15  Jim Meyering  <meyering@lucent.com>
52440
52441         * lib/regex.h (__restrict_arr): Update from libc.
52442
52443         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
52444         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
52445         (STREQ): Define.
52446
52447 2001-12-14  Jim Meyering  <meyering@lucent.com>
52448
52449         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
52450         Suggestion from Bruno Haible.
52451
52452 2001-12-10  Jim Meyering  <meyering@lucent.com>
52453
52454         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
52455         xrealloc, Instead, include "xalloc.h".
52456         (initbuffer): Don't cast xmalloc return value to char*.
52457         (readline): Reword comment.
52458         Don't cast xrealloc return value to char*
52459         Return NULL, not 0.
52460
52461 2001-12-09  Jim Meyering  <meyering@lucent.com>
52462
52463         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
52464         about `signed and unsigned type in conditional expression'.
52465         * lib/posixtm.c (posix_time_parse): Likewise.
52466
52467         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
52468
52469         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
52470         to avoid a pedantic warning.
52471
52472         * lib/getstr.c: Don't include assert.h.
52473         (getstr): Remove warning-evoking assertions.
52474         Return -1 if offset parameter is out of bounds.
52475         Change the type of a local from int to size_t.
52476
52477         * lib/strftime.c (my_strftime_localtime_r): Include this function
52478         definition in the `#if ! HAVE_TM_GMTOFF' block.
52479
52480         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
52481         Include xalloc.h instead.
52482
52483 2001-12-02  Jim Meyering  <meyering@lucent.com>
52484
52485         * lib/tempname.c: Don't declare getenv, thus reverting the change of
52486         2001-11-18.  It's no longer necessary, now that stdlib.h is always
52487         included.
52488
52489         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
52490         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
52491
52492 2001-11-30  Akim Demaille  <akim@epita.fr>
52493
52494         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
52495         before being defined.
52496
52497 2001-11-27  Paul Eggert  <eggert@twinsun.com>
52498
52499         * lib/quotearg.h (quotearg_n, quotearg_n_style):
52500         First arg is int, not unsigned.
52501         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
52502         (SIZE_MAX, UINT_MAX): New macros.
52503         (quotearg_n_options): Abort if N is negative.
52504         Avoid overflow check on hosts where size_t is 64 bits and int
52505         is 32 bits, as overflow is impossible there.
52506         Fix off-by-one typo that caused unnecessary reallocation.
52507
52508 2001-11-27  Jim Meyering  <meyering@lucent.com>
52509
52510         * lib/tempname.c: Merge with version from libc.
52511         * lib/regex.c: Likewise.
52512
52513         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
52514         systems for which STDC_HEADERS is 0, it was not included, resulting in
52515         a warning about an integer-to-pointer conversion problem with getenv.
52516         Reported by Volker Borchert.
52517
52518 2001-11-26  Jim Meyering  <meyering@lucent.com>
52519
52520         * lib/gtod.h: Remove file.
52521         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
52522         * lib/gettimeofday.c: Don't include gtod.h.
52523         (GTOD_init): Remove function.
52524         (rpl_gettimeofday): Do its job here instead, rather than aborting.
52525         Suggestion from Volker Borchert.
52526
52527 2001-11-23  Jim Meyering  <meyering@lucent.com>
52528
52529         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
52530         it.
52531         * lib/hash.c (struct hash_table): Define it here instead.
52532
52533 2001-11-22  Jim Meyering  <meyering@lucent.com>
52534
52535         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
52536
52537 2001-11-20  Jim Meyering  <meyering@lucent.com>
52538
52539         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
52540         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
52541
52542 2001-11-19  Jim Meyering  <meyering@lucent.com>
52543
52544         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
52545         directory.  Use "conftestXXXXXX" as the template.
52546         Suggestion from Paul Eggert.
52547
52548         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
52549         immediately, so the test doesn't mistakenly hit the max-open-files
52550         limit.
52551
52552 2001-11-18  Paul Eggert  <eggert@twinsun.com>
52553
52554         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
52555         (TEMPORARIES): New macro.
52556         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
52557         removes an artificial limitation (e.g. HP-UX 10.20, where
52558         TMP_MAX is 17576).
52559
52560 2001-11-18  Jim Meyering  <meyering@lucent.com>
52561
52562         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
52563
52564 2001-11-18  Jim Meyering  <meyering@lucent.com>
52565
52566         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
52567         on SunOS 4.
52568
52569         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
52570         files will be created before anything else.
52571
52572 2001-11-17  Paul Eggert  <eggert@twinsun.com>
52573
52574         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
52575         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
52576
52577 2001-11-17  Jim Meyering  <meyering@lucent.com>
52578
52579         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
52580         Prompted by a report from Bob Proulx.
52581
52582         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
52583         Instead, require UTILS_FUNC_MKSTEMP.
52584
52585 2001-11-17  Jim Meyering  <meyering@lucent.com>
52586
52587         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
52588         Now, that's done as part of AC_FUNC_STRTOD.
52589
52590 2001-11-17  Jim Meyering  <meyering@lucent.com>
52591
52592         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
52593         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
52594         rather than group writable.  Patch by Juan F. Codagnone.
52595
52596         * lib/readtokens.c: Remove explicit declarations of xmalloc and
52597         xrealloc, Instead, include "xalloc.h".
52598
52599         * lib/mountlist.c: Include unlocked-io.h after all system headers.
52600         Remove explicit declarations of xmalloc, xrealloc,
52601         and xstrdup.  Instead, include "xalloc.h".
52602
52603         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
52604         unlocked-io.h.
52605         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
52606         Likewise.
52607         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
52608
52609         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
52610         Reported by Padraig Brady.
52611
52612         * lib/mkstemp.c: #undef mkstemp.
52613         Include config.h.
52614         (rpl_mkstemp): Rename from mkstemp.
52615         Protoize.
52616
52617 2001-11-16  Jim Meyering  <meyering@lucent.com>
52618
52619         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
52620         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
52621         determine the amount of total physical memory, use pstat_getstatic.
52622         HPUX-11 doesn't define _SC_PHYS_PAGES.
52623         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
52624         If sysconf couldn't be used to determine the amount of available
52625         physical memory, use both pstat_getstatic and pstat_getdynamic.
52626         Based on a patch from Bob Proulx.
52627
52628 2001-11-10  Jim Meyering  <meyering@lucent.com>
52629
52630         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
52631         (jm_PREREQ): Use it.
52632
52633 2001-11-09  Jim Meyering  <meyering@lucent.com>
52634
52635         * m4/jm-macros.m4: Require autoconf-2.52f.
52636         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
52637         Use these AC_-prefixed names, not the AM_-prefixed ones.
52638
52639         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
52640
52641 2001-11-05  Jim Meyering  <meyering@lucent.com>
52642
52643         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
52644
52645 2001-11-04  Jim Meyering  <meyering@lucent.com>
52646
52647         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
52648         $DEFS.
52649
52650 2001-11-03  Jim Meyering  <meyering@lucent.com>
52651
52652         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
52653         of AC_DEFUN.
52654
52655         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
52656         know the name of the variable in the macro definition.
52657
52658 2001-11-03  Jim Meyering  <meyering@lucent.com>
52659
52660         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
52661         in argmatch_to_argument call.
52662
52663         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
52664         argument.
52665
52666         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
52667         e.g., a fault due to an attempt to free a NULL pointer.
52668
52669 2001-11-01  Jim Meyering  <meyering@lucent.com>
52670
52671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
52672         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
52673
52674 2001-11-01  Jim Meyering  <meyering@lucent.com>
52675
52676         * lib/dirfd.c, lib/dirfd.h: New files.
52677         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
52678
52679         * lib/hash.c (hash_print) [TESTING]: Clean up.
52680
52681 2001-10-22  Paul Eggert  <eggert@twinsun.com>
52682
52683         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
52684         to avoid a warning if -Wall.
52685
52686 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
52687
52688         * README: New file
52689         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
52690         (per RMS's instructions, this is now the canonical source)
52691         * lgpl/, gpl/: New directories.
52692
52693 2001-10-21  Paul Eggert  <eggert@twinsun.com>
52694
52695         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
52696
52697 2001-10-21  Jim Meyering  <meyering@lucent.com>
52698
52699         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
52700         this code would end up calling gettext even in packages built
52701         with --disable-nls.
52702         * lib/getopt.c (_): Likewise.
52703         * lib/regex.c (_): Likewise.
52704
52705 2001-10-20  Paul Eggert  <eggert@twinsun.com>
52706
52707         * m4/error.m4 (jm_PREREQ_ERROR):
52708         Do not invoke AC_CHECK_FUNCS with strerror_r, as
52709         AC_FUNC_STRERROR_R does that.
52710         Check for strerror declaration.
52711
52712         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
52713         are supposed to have them these days.
52714         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
52715         Merge changes from latest Autoconf CVS.
52716         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
52717         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
52718         POSIX decided to standardize on the int flavor of strerror_r.
52719
52720 2001-10-20  Paul Eggert  <eggert@twinsun.com>
52721
52722         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
52723         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
52724         Use strerror_r that is only a macro, even if it is not a function.
52725         (strerror): Check for HAVE_DECL_STRERROR before declaring.
52726         (private_strerror): Use prototypes, not old-style function definition.
52727         (print_errno_message): New function.
52728         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
52729         char*-flavored one.
52730         (error_tail, error, error_at_line): Use it.
52731
52732 2001-10-11  Jim Meyering  <meyering@lucent.com>
52733
52734         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
52735         and quote_n (1, ... to avoid clobbering a buffer.
52736
52737 2001-10-05  Jim Meyering  <meyering@lucent.com>
52738
52739         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
52740         hash-pjw.h.
52741         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
52742         * lib/hash-pjw.h: New file.
52743
52744 2001-09-30  Jim Meyering  <meyering@lucent.com>
52745
52746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
52747         `struct fsstat' has the `f_fstypename' member.
52748         Use that to define FS_TYPE, which is now used to make
52749         the getfsstat link test tighter.
52750
52751 2001-09-30  Jim Meyering  <meyering@lucent.com>
52752
52753         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
52754         Include <sys/ucred.h>, for Apple Darwin.
52755         Include sys/mount.h and sys/fs_types.h only if available.
52756         (FS_TYPE): Define.
52757         (read_filesystem_list): Use FS_TYPE.
52758
52759 2001-09-29  Paul Eggert  <eggert@twinsun.com>
52760
52761         * lib/exclude.c (excluded_filename): 0 -> false, since it's
52762         a boolean context.
52763
52764 2001-09-29  Jim Meyering  <meyering@lucent.com>
52765
52766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52767         [one-argument getmntent function]): Include stdio.h before mntent.h.
52768         SunOS 4.1.x needs it for the declaration of `FILE'.
52769         Patch by Volker Borchert.
52770
52771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52772         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
52773         sys/fs_types.h, and make the link-test for getfsstat guard #include
52774         directives with appropriate #if HAVE_*_H tests so that we can
52775         detect getfsstat on Apple Darwin1.3.7 systems.
52776         Reported by Nelson Beebe.
52777         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
52778
52779 2001-09-28  Paul Eggert  <eggert@twinsun.com>
52780
52781         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52782         #defines strtoimax.  Also treat the other strto* functions
52783         like strtoimax.
52784
52785         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52786         Check for strtoul and strtoumax,
52787         as those declarations are made even in the signed case.
52788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
52789         Likewise, for strtol and strtoimax.
52790
52791 2001-09-28  Paul Eggert  <eggert@twinsun.com>
52792
52793         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52794         #defines strtoimax.  Also treat the other strto* functions
52795         like strtoimax.
52796
52797         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
52798         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
52799         (strtoimax, strtoumax): Do not declare if already defined as a macro.
52800
52801 2001-09-26  Jim Meyering  <meyering@lucent.com>
52802
52803         Most macros in unlocked-io.h had the wrong number of arguments.
52804         * lib/gen-uio: New script.
52805         (USE_UNLOCKED_IO): Define to 1 if not already defined.
52806         * lib/unlocked-io.hin: Remove file.
52807         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
52808         rather than trying to embed it here.
52809         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
52810         Reported by Padraig Brady.
52811
52812 2001-09-25  Volker Borchert  <bt@teknon.de>
52813
52814         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
52815         `result'.
52816
52817 2001-09-24  Jim Meyering  <meyering@lucent.com>
52818
52819         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
52820
52821 2001-09-23  Jim Meyering  <meyering@lucent.com>
52822
52823         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
52824         instead of the mere test for existence of mntent.h.  The latter
52825         would get a false-positive on AIX 3.4 systems.
52826         In the outer getmntent if-block, don't die if neither of the getmntent
52827         tests succeeds.  Instead, just fall through and continue with the
52828         remaining tests.
52829
52830 2001-09-23  Jim Meyering  <meyering@lucent.com>
52831
52832         * lib/mountlist.c: Remove useless parentheses in #if directives.
52833         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
52834         the deprecated MOUNTED symbol is no longer defined in mntent.h.
52835
52836 2001-09-22  Jim Meyering  <meyering@lucent.com>
52837
52838         * m4/gettext.m4: New file.  From gettext.
52839         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
52840         * m4/progtest.m4: Likewise
52841         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
52842         * m4/glibc21.m4: Likewise.
52843
52844         * m4/libintl.m4: Remove.  No longer used.
52845
52846 2001-09-22  Jim Meyering  <meyering@lucent.com>
52847
52848         * lib/localcharset.c: Update from latest gettext.
52849         * lib/config.charset: Likewise.
52850
52851 2001-09-20  Jim Meyering  <meyering@lucent.com>
52852
52853         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
52854         strtoimax.
52855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
52856         strtoumax.
52857
52858 2001-09-20  Jim Meyering  <meyering@lucent.com>
52859
52860         * lib/xstrtol.c (strtoimax): Guard declaration with
52861         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
52862         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
52863         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
52864         (strtoumax): Likewise, for completeness (it wasn't necessary).
52865
52866 2001-09-17  Paul Eggert  <eggert@twinsun.com>
52867
52868         * lib/strtoimax.c (HAVE_LONG_LONG):
52869         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
52870         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
52871         to work around bug in IBM C compiler.
52872
52873 2001-09-17  Jim Meyering  <meyering@lucent.com>
52874
52875         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
52876         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
52877         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
52878         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
52879         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
52880         whenever the right hand side need not be expanded by the shell.
52881
52882 2001-09-16  Paul Eggert  <eggert@twinsun.com>
52883
52884         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
52885         library.  It's not correct, as some older glibcs are buggy.
52886         fnmatch wasn't fixed until glibc 2.2.
52887
52888         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
52889         special shell magic here.
52890
52891 2001-09-16  Jim Meyering  <meyering@lucent.com>
52892
52893         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
52894         * m4/jm-macros.m4: Require it.
52895
52896 2001-09-16  Jim Meyering  <meyering@lucent.com>
52897
52898         * lib/mkdir.c: New file.
52899
52900 2001-09-15  Jim Meyering  <meyering@lucent.com>
52901
52902         * m4/jm-macros.m4: Check for help2man.
52903
52904 2001-09-11  Jim Meyering  <meyering@lucent.com>
52905
52906         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
52907         The body, by Paul Eggert, was moved here from configure.in.
52908         * m4/jm-macros.m4: Require UTILS_HOST_OS.
52909
52910 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52911
52912         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
52913         (jm_PREREQ): Use it.
52914
52915 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52916
52917         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
52918         Use ssize_t, not int, to store result of readlink.
52919         Check for ssize_t overflow as well as size_t overflow,
52920         as POSIX says the result of readlink is implementation-defined
52921         when ssize_t overflows.
52922         Remove unnecessary cast to char*.
52923         Use free+malloc instead of realloc, as the storage doesn't need
52924         to be preserved and it's clearer and can be more efficient that way.
52925         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
52926         * lib/xreadlink.h (xreadlink): Update prototype.
52927
52928 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52929
52930         * lib/xgetcwd.c: Revert some of the previous change; intead,
52931         fix the HAVE_GETCWD_NULL code to behave more like the
52932         !HAVE_GETCWD_NULL code used to.
52933
52934         Include "xalloc.h".
52935         (xgetcwd): Do not return NULL when memory is exhausted; instead,
52936         invoke xalloc_die.
52937
52938 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52939
52940         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
52941         sys/param.h, as pathmax.h includes them.
52942
52943 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52944
52945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
52946         (jm_PREREQ_XGETCWD): New macro.
52947
52948         * m4/getcwd.m4: New file.
52949
52950 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52951
52952         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
52953         like the HAVE_GETCWD_NULL code.
52954         Include pathmax.h if not HAVE_GETCWD.
52955         Do not include xalloc.h.
52956         (INITIAL_BUFFER_SIZE): New symbol.
52957         Do not use xmalloc / xrealloc, since the caller is responsible for
52958         handling errors.  Preserve errno around `free' during failure.
52959         Do not overrun buffer when using getwd.
52960
52961 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52962
52963         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
52964         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
52965         getcwd (NULL, 0).
52966
52967 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52968
52969         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
52970         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
52971         spotted by Jim Meyering.
52972
52973 2001-09-03  Jim Meyering  <meyering@lucent.com>
52974
52975         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
52976         failure.
52977
52978 2001-09-02  Jim Meyering  <meyering@lucent.com>
52979
52980         * lib/error.c: Update from GNU libc.
52981
52982 2001-09-01  Jim Meyering  <meyering@lucent.com>
52983
52984         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
52985         Used by df.
52986
52987 2001-09-01  Jim Meyering  <meyering@lucent.com>
52988
52989         * lib/xreadlink.c: New file.
52990         * lib/xreadlink.h: New file.
52991         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
52992         xreadlink.h.
52993
52994         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
52995         doesn't conflict with sparc Solaris 7's definition in
52996         /usr/include/sys/int_types.h.
52997
52998         * lib/exclude.c: Use `""', not `<>' to #include non-system header
52999         files.
53000         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
53001         and strncasecmp as r-values.  Unixware didn't have declarations.
53002
53003 2001-08-31  Paul Eggert  <eggert@twinsun.com>
53004
53005         * lib/xstrtol.h: Add copyright notice.
53006         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
53007         LONGINT_INVALID_SUFFIX_CHAR.
53008
53009 2001-08-31  Paul Eggert  <eggert@twinsun.com>
53010
53011         * lib/xstrtol.c (strtoimax): New decl.
53012
53013 2001-08-31  Paul Eggert  <eggert@twinsun.com>
53014
53015         * lib/xgetcwd.c: Don't include pathmax.h.
53016         Include stdlib.h and unistd.h if available.
53017         Include xalloc.h.
53018         (xmalloc, xstrdup, free): Remove decls.
53019         (xgetcwd): Don't assume sizes fit in unsigned.
53020         Check for overflow when computing sizes.
53021         Simplify reallocation code.
53022
53023 2001-08-31  Paul Eggert  <eggert@twinsun.com>
53024
53025         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
53026         a directory's st_size can have an arbitrary value, so the old
53027         usage could waste an arbitrary amount of memory.  All uses
53028         changed.
53029         * lib/savedir.h: Update prototype.
53030
53031 2001-08-31  Paul Eggert  <eggert@twinsun.com>
53032
53033         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
53034
53035         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
53036         old strtoimax.c.
53037
53038         Also, make the following further changes to make this file's
53039         configuration more similar to that of strtol.c:
53040         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
53041         (strtoumax, uintmax_t, strtoull, strtol): Remove.
53042         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
53043         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
53044         changed to signed values.
53045
53046         And make the following changes as well:
53047         Fix copyright notice, as 1999 was missing.
53048         (verify): New macro.
53049         (strtoimax): Check sizes at compile-time, not run-time.
53050         Prefer strtol to strtoll if both work.
53051         (main): Remove; it was not that useful and was a pain to maintain.
53052
53053         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
53054
53055 2001-08-31  Jim Meyering  <meyering@lucent.com>
53056
53057         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
53058         Use an initial, malloc'd, buffer of length 128 rather than
53059         a statically allocated one of length 1024.
53060
53061 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53062
53063         Simplify code, partly by assuming autoconf 2.52 semantics.
53064
53065         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
53066
53067         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
53068         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
53069         All uses removed.
53070         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
53071         Move AC_REQUIRE to next-to-top level, to avoid confusion.
53072         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
53073         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
53074         jm_AC_HEADER_INTTYPES_H.
53075         * m4/jm-macros.m4 (jm_MACROS): Likewise.
53076
53077         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
53078
53079         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
53080         Quote first arg of AC_DEFUN.
53081         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
53082         since they are needed to parse the include file even if we need
53083         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
53084         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
53085         but with opposite signedness.
53086
53087 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53088
53089         Merge 'exclude' changes from tar 1.13.22.
53090         This fixes one or two unlikely storage allocation overflow bugs,
53091         but doesn't change user-visible behavior otherwise.
53092
53093 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53094
53095         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
53096         (jm_PREREQ_EXCLUDE): New macro.
53097
53098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53099
53100         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
53101         tm to be declared.
53102
53103 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53104
53105         * lib/hash.c: Remove '2001' from copyright notice.
53106
53107 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53108
53109         * lib/full-write.h: New file.
53110         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
53111         * lib/full-write.c: Correct credits, as cccp.c no longer
53112         exists and anyway it was so heavily changed from the old cccp
53113         code as to be unrecognizable.  Include full-write.h.
53114         (full_write) Return size_t, with short writes meaning failure.
53115         All callers changed.  This fixes a bug with large buffers
53116         on 64-bit hosts.
53117         * lib/utime.c: Include full-write.h.
53118
53119 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53120
53121         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
53122         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
53123         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
53124         Include if available.
53125         (<xalloc.h>): Include
53126         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
53127         (verify): New macro.  Use it to verify that EXCLUDE macros do not
53128         collide with FNM macros.
53129         (struct patopts): New struct.
53130         (struct exclude): Use it, as exclude patterns now come with options.
53131         (new_exclude): Support above changes.
53132         (new_exclude, add_exclude_file):
53133         Initial size must now be a power of two to simplify overflow checking.
53134         (free_exclude, fnmatch_no_wildcards): New function.
53135         (excluded_filename): No longer requires options arg, as the options
53136         are determined by add_exclude.  Now returns bool, not int.
53137         (excluded_filename, add_exclude):
53138         Add support for the fancy new exclusion options.
53139         (add_exclude, add_exclude_file): Now takes int options arg.
53140         Check for arithmetic overflow when computing sizes.
53141         (add_exclude_file): xrealloc might modify errno, so don't
53142         realloc until after errno might be used.
53143
53144         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
53145         New macros.
53146         (free_exclude): New decl.
53147         (add_exclude, add_exclude_file): Now takes int options arg.
53148         (excluded_filename): No longer requires options arg, as the options
53149         are determined by add_exclude.  Now returns bool, not int.
53150
53151 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53152
53153         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
53154
53155 2001-08-27  Jim Meyering  <meyering@lucent.com>
53156
53157         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
53158
53159         * lib/version-etc.c (N_): Remove definition.
53160         Revert most of last change.
53161         Instead, simply don't mark the `Copyright...' string for translation.
53162         Based on advice from Paul Eggert.
53163
53164         * lib/strtoxmax.c: Tweak comment.
53165
53166 2001-08-26  Jim Meyering  <meyering@lucent.com>
53167
53168         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
53169
53170         * m4/xstrtoimax.m4: New file.
53171         * m4/xstrtoumax.m4: Add comments explaining why we
53172         AC_REPLACE_FUNCS(strtol).
53173
53174 2001-08-26  Jim Meyering  <meyering@lucent.com>
53175
53176         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
53177         of copyright with `%s' so translators don't get an untranslated
53178         message in 2002.
53179         (COPYRIGHT_YEAR): Define.
53180         (version_etc): Use fprintf rather than fputs.
53181         Suggestion from Ulrich Drepper.
53182
53183         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
53184
53185         * lib/strtoll.c: New file, from GNU libc.
53186         * lib/xstrtoimax.c: New file.
53187
53188         * lib/xstrtol.h: Add xstrtoimax.
53189         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
53190         * lib/strtoimax.c: New file.  Likewise, but first define
53191         STRTOUXMAX_SIGNED.
53192
53193         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
53194         ...
53195         * lib/strtoxmax.c: ... then renamed to this.
53196
53197 2001-08-18  Paul Eggert  <eggert@twinsun.com>
53198
53199         * m4/inttypes.m4: Add AC_PREREQ(2.13).
53200         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
53201         (jm_AC_TYPE_INTMAX_T): New macro.
53202         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
53203
53204         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
53205
53206         * m4/longlong.m4: Renamed from ulonglong.m4.
53207         * m4/inttypes.m4: Renamed from inttypes_h.m4.
53208         * m4/uintmax_t.m4: Removed.
53209
53210 2001-08-13  Paul Eggert  <eggert@twinsun.com>
53211
53212         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
53213         Port to Solaris 8, where 'sed' requires a space after the 'r'
53214         command, and where sh dislikes "$/".  Clean up the spacing a bit.
53215         Redirect output to $tmp just once.
53216
53217 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
53218
53219         * lib/addext.c (<errno.h>): Include.
53220         (errno): Declare if not defined.
53221         (addext): Work correctly when pathconf returns -1 and leaves
53222         errno alone because there is no limit.  Also, work even if
53223         pathconf returns a value greater than SIZE_MAX.
53224
53225 2001-08-12  Jim Meyering  <meyering@lucent.com>
53226
53227         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
53228         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
53229         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
53230         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
53231         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
53232         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
53233         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
53234         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
53235         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
53236         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
53237         utime.m4, utimes.m4, xstrtoumax.m4:
53238         Quote the first argument in each use of AC_DEFUN.
53239
53240 2001-08-12  Jim Meyering  <meyering@lucent.com>
53241
53242         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
53243         Simply `return getcwd (NULL, 0);'.
53244         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
53245         Use 1300 as initial value for length, not PATH_MAX.
53246
53247         * lib/pathmax.h: Clean up cpp syntax.
53248
53249 2001-08-12  Jim Meyering  <meyering@lucent.com>
53250
53251         * lib/gettimeofday.c: New file.
53252         * lib/gtod.h: New file.
53253         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
53254
53255 2001-08-05  Jim Meyering  <meyering@lucent.com>
53256
53257         * m4/jm-macros.m4: Require autoconf-2.52.
53258
53259 2001-08-04  Jim Meyering  <meyering@lucent.com>
53260
53261         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
53262         stmt, to get in sync with glibc.
53263
53264 2001-08-03  Paul Eggert  <eggert@twinsun.com>
53265
53266         The following changes are from gettext 0.10.39 as maintained by
53267         Bruno Haible.
53268
53269         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
53270         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
53271         with inverted sense.  All uses changed.
53272
53273         * lib/mbswidth.c: Don't include <limits.h>.
53274         Include <stdlib.h> and <string.h> unconditionally.
53275         (iswcntrl, mbsinit, ISCNTRL): New macros.
53276         (mbsnwidth): Use K&R style function declarations.
53277         Don't bother checking for MB_LEN_MAX == 1, since the compiler
53278         can optimize it when MB_CUR_MAX == 1.
53279         The width of control characters is zero, not 1.
53280
53281 2001-08-03  Paul Eggert  <eggert@twinsun.com>
53282
53283         The following changes are from gettext 0.10.39 as maintained by
53284         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
53285
53286         * m4/codeset.m4: Upgrade to serial AM1.
53287         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
53288         all uses changed.  Quote first arg of AC_DEFUN.
53289         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
53290
53291         * m4/iconv.m4: Upgrade to serial AM2.
53292         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
53293         Add --with-libconv-prefix.
53294         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
53295         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
53296         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
53297         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
53298         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
53299
53300         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
53301         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
53302         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
53303         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
53304         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
53305         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
53306         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53307         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
53308         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
53309
53310         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
53311         string.h any more.
53312
53313         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
53314         not the default value.
53315
53316         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
53317         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
53318         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
53319         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
53320         Also check for iswcntrl, used for wcwidth fallback.
53321         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
53322         to Autoconf 2.13.
53323
53324 2001-08-03  Jim Meyering  <meyering@lucent.com>
53325
53326         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
53327         as it was in the original.  Reported by Paul Eggert.
53328
53329 2001-07-16  Jim Meyering  <meyering@lucent.com>
53330
53331         * m4/gettimeofday.m4: New file.
53332         Prompted by a report from Bernhard Baehr.
53333
53334 2001-07-15  Jim Meyering  <meyering@lucent.com>
53335
53336         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
53337         stuff. Now it's in ../Makefile.cfg.
53338
53339 2001-07-15  Jim Meyering  <meyering@lucent.com>
53340
53341         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
53342         (BUILT_SOURCES): Add unlocked-io.h.
53343         (io_functions): Define.
53344         (unlocked-io.h): New rule.
53345         (DISTCLEANFILES): Add unlocked-io.h.
53346         (all-local): Depend on unlocked-io.h, to ensure it is created.
53347
53348         * lib/unlocked-io.hin: New file
53349
53350         * lib/regex.c: Update from glibc.
53351
53352 2001-07-05  Jim Meyering  <meyering@lucent.com>
53353
53354         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
53355         recommendation.
53356         (libfetish_a_SOURCES): Put all .h files here instead.
53357         Remove a thus-exposed (better checks in automake) duplicate and
53358         two unnecessary .h files.
53359
53360 2001-07-04  Jim Meyering  <meyering@lucent.com>
53361
53362         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
53363         that generates jm-glibc-io.m4 so that it doesn't trigger any make
53364         distcheck failure.
53365
53366 2001-07-02  Jim Meyering  <meyering@lucent.com>
53367
53368         The following changes were prompted by suggestions from Bruno Haible.
53369
53370         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
53371         is now generated.
53372         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
53373         definition of EXTRA_DIST.
53374         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
53375         ensure that the generated file is created/updated whenever the list
53376         of $(unlocked_functions) is changed.
53377         (jm-glibc-io.m4): New rule.
53378         (unlocked-io.h): New rule -- currently unused.
53379
53380 2001-06-24  Jim Meyering  <meyering@lucent.com>
53381
53382         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
53383         unmatched right bracket, rather than kludging it with an extra,
53384         falsely-matching quote in a comment.  Patch by Akim Demaille.
53385
53386 2001-06-11  Jim Meyering  <meyering@lucent.com>
53387
53388         * lib/regex.c: Update from GNU libc.
53389
53390 2001-05-27  Jim Meyering  <meyering@lucent.com>
53391
53392         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
53393         Check for ut_type in struct utmp.
53394
53395 2001-05-27  Jim Meyering  <meyering@lucent.com>
53396
53397         * lib/readutmp.h (UT_TYPE): Define.
53398
53399 2001-05-24  Jim Meyering  <meyering@lucent.com>
53400
53401         * lib/argmatch.c: Include "quote.h".
53402         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
53403         quote function.  Reported by Göran Uddeborg.
53404
53405 2001-05-22  Jim Meyering  <meyering@lucent.com>
53406
53407         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
53408         now that we use the package-supplied version unconditionally.
53409         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
53410
53411 2001-05-21  Jim Meyering  <meyering@lucent.com>
53412
53413         * m4/regex.m4: Change a couple backticks to single quotes to avoid
53414         shell syntax errors.
53415
53416 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
53417
53418         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
53419
53420 2001-05-20  Paul Eggert  <eggert@twinsun.com>
53421
53422         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
53423         Don't bother to check library strftime, since
53424         we'll be using our own my_strftime function anyway.
53425         Define my_strftime instead of strftime.
53426
53427 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
53428
53429         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
53430         which is not yet declared.
53431
53432 2001-05-15  Jim Meyering  <meyering@lucent.com>
53433
53434         * m4/regex.m4: Use proper quoting so brackets appear in the test
53435         program.
53436         Reported by, and with help from, Bruno Haible.
53437
53438 2001-05-13  Jim Meyering  <meyering@lucent.com>
53439
53440         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
53441         undefined.
53442
53443 2001-05-11  Paul Eggert  <eggert@twinsun.com>
53444
53445         dirname code cleanup.  base_name now behaves more compatibly
53446         with POSIX basename when given file names that have trailing
53447         slashes, and similarly for dir_name.  Add new primitives
53448         base_len and dir_len.  Put the directory-name-related decls
53449         into dirname.h.
53450
53451         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
53452         * lib/backupfile.c (base_name): Likewise.
53453         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
53454         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
53455         * lib/makepath.c (strip_trailing_slashes): Likewise.
53456         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
53457         ISSLASH): Likewise.
53458         * lib/rename.c (strip_trailing_slashes): Likewise.
53459         * lib/same.c (base_name): Likewise.
53460         * lib/stripslash.c (ISSLASH): Likewise.
53461
53462         * lib/addext.c: Include <dirname.h> after size_t is defined.
53463         * lib/backupfile.c: Likewise.
53464
53465         * lib/addext.c (addext): Use base_len to trim redundant
53466         trailing slashes instead of doing it ourselves.
53467         But do not trim the last slash if it is not redundant.
53468
53469         * lib/backupfile.c (find_backup_file_name,
53470         max_backup_version): Use base_len instead of rolling it ourselves.
53471         Handle the case of "" and (on DOS) "C:" correctly.
53472
53473         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
53474         needed. Include <string.h>, <dirname.h>.
53475         (base_name): Allow file names ending in slashes, other than names
53476         that are all slashes.  In this case, return the basename followed
53477         by the slashes.  This is more general, and can be used in places
53478         where the original base_name purposely had an assertion failure.
53479         (base_len): New function.
53480
53481         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
53482         Do not include <assert.h>; no longer needed.
53483         Include xalloc.h.
53484         (memrchr): Remove decl.
53485         (dir_name_r): Remove.
53486         (dir_len): Renamed from dirlen.  All callers changed.
53487         Rewrite in terms of base_name, for simplicity and consistency.
53488         (dir_name): Never return NULL.  All callers changed.
53489         Do not include <stdlib.h> in test program; no longer needed.
53490         return 0; is fine for test program.
53491
53492         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
53493         New macros.
53494         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
53495
53496         * lib/path-concat.c (path_concat): Use base_len to compute
53497         base length, not strlen; this means we cannot rely on memcpy
53498         to null-terminate.
53499
53500         * lib/same.c (STREQ): Remove.
53501         (same_name): Handle the case where the basename ends in trailing '/'.
53502
53503         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
53504         a slash was stripped.  Do not strip the last slash after a
53505         file system prefix.
53506
53507 2001-05-11  Paul Eggert  <eggert@twinsun.com>
53508
53509         * lib/Makefile.am (libfetish_a_SOURCES):
53510         Add strftime.c, since we now compile it on all hosts.
53511
53512         * lib/strftime.c (my_strftime):
53513         Define to nstrftime if emacs, but only if my_strftime is not defined.
53514         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
53515         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
53516         Add one more extra argument: a nanoseconds value.
53517         All uses changed.
53518         (ns): New macro.
53519         (my_strftime function): Add %N format.
53520         (emacs_strftimeu): Renamed from emacs_strftime,
53521         with extra ut argument.
53522
53523 2001-05-09  Paul Eggert  <eggert@twinsun.com>
53524
53525         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
53526
53527 2001-04-21  Jim Meyering  <meyering@lucent.com>
53528
53529         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
53530         doesn't interfere.
53531
53532 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
53533
53534         * m4/ftruncate.m4: Check for chsize.
53535         Link with ftruncate.o unconditionally if ftruncate is missing.
53536         This was required when cross-compiling to i586-mingw32msvc.
53537
53538 2001-04-08  Jim Meyering  <meyering@lucent.com>
53539
53540         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
53541         recomputed; that's necessary when the offset spans a DST transition.
53542         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
53543
53544 2001-04-02  Jim Meyering  <meyering@lucent.com>
53545
53546         * lib/regex.h, regex.c: Update from GNU libc.
53547
53548 2001-03-24  Jim Meyering  <meyering@lucent.com>
53549
53550         * m4/jm-macros.m4: Require autoconf-2.49d.
53551
53552 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
53553
53554         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
53555
53556 2001-03-19  Paul Eggert  <eggert@twinsun.com>
53557
53558         * lib/version-etc.c (version_etc_copyright): Update to 2001.
53559
53560 2001-03-17  Jim Meyering  <meyering@lucent.com>
53561
53562         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
53563         now that the version in autoconf is equivalent.
53564         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
53565
53566         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
53567         Suggestion from Akim Demaille.
53568
53569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
53570         (jm_PREREQ_TEMPNAME): New function.
53571
53572 2001-03-16  Paul Eggert  <eggert@twinsun.com>
53573
53574         * lib/tempname.c (uint64_t): Define to uintmax_t if
53575         not defined, and if UINT64_MAX is not defined.
53576         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
53577         Reported by John David Anglin.
53578
53579 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
53580
53581         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
53582         resolve alias if codeset is empty.
53583         * lib/config.charset (BeOS): Use wildcard syntax.
53584
53585 2001-03-13  Jim Meyering  <meyering@lucent.com>
53586
53587         * lib/path-concat.c (path_concat)
53588         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
53589         concatenating e.g., `C:' and `foo'.
53590         From Bruno Haible.
53591
53592 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
53593
53594         * lib/localcharset.c (locale_charset): Don't use
53595         setlocale(LC_CTYPE,NULL). Don't return NULL.
53596         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
53597
53598 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
53599
53600         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
53601         support for DOS/DJGPP.
53602
53603 2001-03-01  Paul Eggert  <eggert@twinsun.com>
53604
53605         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
53606         lacks mkstemp.  Compile our own tempname.c if we compile our own
53607         mkstemp.c, as mkstemp relies on tempname.
53608
53609 2001-03-01  Jim Meyering  <meyering@lucent.com>
53610
53611         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
53612         AH_VERBATIM really does output its argument verbatim.
53613
53614 2001-02-28  Paul Eggert  <eggert@twinsun.com>
53615
53616         * lib/Makefile.am (libfetish_a_SOURCES):
53617         Add dup-safer.c, fopen-safer.c.
53618         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
53619
53620         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
53621         * lib/unistd-safer.h: New files.
53622
53623 2001-02-25  Paul Eggert  <eggert@twinsun.com>
53624
53625         The mkstemp replacement is taken from glibc 2.2.2, with some
53626         portability fixes for use outside glibc, as follows:
53627
53628         * lib/tempname.c (struct_stat64): New macro.
53629         (direxists, __gen_tempname): Use it.
53630         This avoids a portability problem with Solaris 8.
53631
53632         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
53633         (<stddef.h>, <stdint.h>, <string.h>):
53634         Include only if STDC_HEADERS || _LIBC.
53635         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
53636         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
53637         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
53638         (__set_errno): Define this macro if <errno.h> doesn't.
53639         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
53640         Define these macros if <stdio.h> doesn't.
53641         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
53642         Define these macros if <sys/stat.h>
53643         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
53644         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
53645         __xstat64): Define if not _LIBC.
53646         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
53647         (__gen_tempname): Invoke gettimeofday only if
53648         HAVE_GETTIMEOFDAY || _LIBC;
53649         otherwise, fall back on plain "time".
53650         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
53651
53652         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
53653
53654         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
53655
53656 2001-02-18  Paul Eggert  <eggert@twinsun.com>
53657
53658         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
53659
53660 2001-02-17  Paul Eggert  <eggert@twinsun.com>
53661
53662         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
53663         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
53664         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
53665         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
53666
53667 2001-02-17  Paul Eggert  <eggert@twinsun.com>
53668
53669         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
53670         Remove workaround macros for hosts that have mbrtowc but not
53671         mbstate_t, as we now insist on proper declarations for both
53672         before using mbrtowc.
53673
53674 2001-02-17  Jim Meyering  <meyering@lucent.com>
53675
53676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
53677         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
53678         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
53679         UnixWare 7.1.1.
53680
53681         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
53682         rather than AC_CACHE_VAL.
53683
53684 2001-02-17  Jim Meyering  <meyering@lucent.com>
53685
53686         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
53687         around included file name.
53688
53689         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
53690
53691         * lib/strftime.c: Update from GNU libc (the only changes were to
53692         comments).
53693
53694 2001-02-17  Jim Meyering  <meyering@lucent.com>
53695
53696         * lib/regex.c: Update from libc.
53697
53698 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
53699
53700         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
53701         clash.
53702
53703 2001-02-16  Paul Eggert  <eggert@twinsun.com>
53704
53705         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
53706         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
53707         Reported by Mark Hounschell via Paul Eggert.
53708
53709 2001-02-07  Jim Meyering  <meyering@lucent.com>
53710
53711         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
53712
53713 2001-02-05  Jim Meyering  <meyering@lucent.com>
53714
53715         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
53716         it includes the patch required for `large file' support with at least
53717         HP-UX's 10.20 /bin/cc.
53718
53719 2001-02-03  Jim Meyering  <meyering@lucent.com>
53720
53721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
53722         AS_IF, now that it works once again (mysteriously).
53723         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53724
53725 2001-01-30  Jim Meyering  <meyering@lucent.com>
53726
53727         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
53728         * m4/chown.m4: Rename conftestchown to conftest.chown.
53729         * m4/rename.m4: s/conftestdir/conftest.d1/ and
53730         s/conftestdir2/conftest.d2/.
53731         * m4/utimes.m4: s/conftestdata/conftest.data/
53732         Inspired by Pavel Roskin's change in autoconf.
53733
53734 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
53735
53736         * lib/config.charset: Update for FreeBSD 4.2.
53737
53738 2001-01-27  Jim Meyering  <meyering@lucent.com>
53739
53740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
53741         a use of AS_IF.
53742         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53743
53744 2001-01-26  Jim Meyering  <meyering@lucent.com>
53745
53746         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
53747         quotearg.c includes it.
53748
53749 2001-01-26  Jim Meyering  <meyering@lucent.com>
53750
53751         * lib/quotearg.c: Include stddef.h.
53752         * lib/quote.c: Include stddef.h.
53753         Reported by Axel Kittenberger.
53754
53755         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
53756         line in double quotes so that it evokes a better diagnostic.
53757         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
53758         Reported by Axel Kittenberger.
53759
53760 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
53761
53762         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
53763         as if it was a `charset'.
53764
53765 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
53766
53767         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
53768         has const.
53769
53770 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
53771
53772         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
53773         to avoid a warning.  Add back 'const' to inptr.
53774
53775 2001-01-20  Jim Meyering  <meyering@lucent.com>
53776
53777         Be sure that headers are checked before used in code compiled
53778         for the type checks.
53779         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
53780         In place of that, invoke jm_CHECK_ALL_TYPES.
53781         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
53782         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
53783         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
53784         The check for ssize_t was mistakenly run before the test for unistd.h.
53785
53786         The configure-time check for stdbool.h was missing.
53787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
53788         (jm_PREREQ_HASH): New function.
53789
53790 2001-01-17  Jim Meyering  <meyering@lucent.com>
53791
53792         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
53793         for autoconf-2.49c.
53794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
53795
53796 2001-01-16  Jim Meyering  <meyering@lucent.com>
53797
53798         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
53799         From Bruno Haible.
53800
53801 2001-01-14  Jim Meyering  <meyering@lucent.com>
53802
53803         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
53804         foo and bar.  Create conftestdir/ in the script, not in the C code.
53805         Remove directories in the script, not in the C code.
53806         Remove conftestdir{,2} before trying to create the directory.
53807         Make the entire configure script fail if the mkdir fails.
53808
53809 2001-01-14  Jim Meyering  <meyering@lucent.com>
53810
53811         * lib/rename.c: New file.  From Volker Borchert.
53812         Include stdlib.h, string.h or strings.h, and xalloc.h.
53813         Use strip_trailing_slashes rather than open-coding it.
53814
53815 2001-01-03  Paul Eggert  <eggert@twinsun.com>
53816
53817         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
53818
53819 2001-01-03  Jim Meyering  <meyering@lucent.com>
53820
53821         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
53822         of local `inptr' to avoid warning with some system declarations of
53823         iconv.
53824
53825 2001-01-02  Volker Borchert  <bt@teknon.de>
53826
53827         * m4/rename.m4: New file.
53828         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
53829
53830 2001-01-01  Jim Meyering  <meyering@lucent.com>
53831
53832         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
53833         even on systems with utmpx.h.  It's necessary for the declaration of
53834         utmp's ut_user member.  Reported by Andreas Jaeger.
53835
53836         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
53837         available. They are required for the declarations of getgrgid and
53838         getpwuid resp.
53839         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
53840         Reported by Andreas Jaeger.
53841
53842 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
53843
53844         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
53845         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
53846         so `make install' also works in VPATH builds.
53847
53848 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
53849
53850         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
53851         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
53852         can be used in subdirectories.
53853
53854 2000-12-29  Paul Eggert  <eggert@twinsun.com>
53855
53856         * lib/modechange.c: Do not assume that mode_t uses the
53857         traditional octal encoding.  E.g. "chmod 1 FOO" should set
53858         the other-execute bit of FOO even if S_IXOTH != 1.
53859
53860         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
53861         WOTH, XOTH, ALLM): New macros.
53862         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
53863          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
53864         Use them.
53865         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
53866         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
53867         (mode_compile):
53868         No need to use uintmax_t; unsigned long is long enough.
53869         Don't bother to get suffix since we don't use it.
53870
53871 2000-12-26  Jim Meyering  <meyering@lucent.com>
53872
53873         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
53874         better with autoheader.
53875
53876 2000-12-24  Jim Meyering  <meyering@lucent.com>
53877
53878         * lib/hash.c (is_prime): Return explicit boolean values.
53879         (hash_get_first): Return NULL to appease Irix5.6's 89.
53880         Reported by Nelson Beebe.
53881
53882 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
53883
53884         * lib/localcharset.c (locale_charset): Add support for Win32.
53885
53886 2000-12-18  Paul Eggert  <eggert@twinsun.com>
53887
53888         * lib/physmem.h, lib/physmem.c: New files.
53889
53890         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
53891         (noinst_HEADERS): Add physmem.h.
53892
53893         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
53894         't' for compatibility with Solaris 8 sort.
53895
53896 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
53897
53898         * lib/config.charset: Add support for BeOS.
53899
53900 2000-12-17  Jim Meyering  <meyering@lucent.com>
53901
53902         * m4/dos.m4 (jm_AC_DOS): New file and macro.
53903         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
53904
53905 2000-12-16  Jim Meyering  <meyering@lucent.com>
53906
53907         This bug had a serious impact on chown: `chown N:M FILE' (for integer
53908         N and M) would have treated it like `chown N:N FILE'.
53909
53910         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
53911
53912 2000-12-16  Jim Meyering  <meyering@lucent.com>
53913
53914         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
53915         SHELLS_FILE to a file name that's useful on djgpp systems.
53916         Include stdlib.h.
53917         (ADDITIONAL_DEFAULT_SHELLS): Define.
53918         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
53919         Based mostly on a patch from Prashant TR.
53920
53921 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
53922
53923         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
53924         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
53925         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
53926
53927 2000-12-08  Andreas Schwab  <schwab@suse.de>
53928
53929         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
53930         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
53931
53932 2000-12-07  Jim Meyering  <meyering@lucent.com>
53933
53934         * lib/stripslash.c (ISSLASH): Define.
53935         (strip_trailing_slashes): Use ISSLASH rather than comparing against
53936         `/'.
53937         From Prashant TR.
53938
53939         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
53940         (dir_name_r): Declare this function as static.
53941         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
53942         manifest itself on a name containing a mix of slashes and
53943         backslashes.
53944         Make this function work with names starting with a DOS-style
53945         drive letter and colon prefix.
53946         (dir_name): Append `.' if necessary.
53947         Based mostly on patches from Prashant TR and Eli Zaretskii.
53948
53949         * lib/dirname.h (dir_name_r): Remove prototype.
53950
53951 2000-12-06  Paul Eggert  <eggert@twinsun.com>
53952
53953         * m4/off_t-format.m4: Remove this file.
53954         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
53955
53956 2000-12-06  Jim Meyering  <meyering@lucent.com>
53957
53958         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
53959         replacement strtoull, we may well need the replacement strtoul, too.
53960         Check for declarations of strtoul and strtoull.
53961         Check for strtol.  Mainly as a cue to cause automake to include
53962         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
53963         Check for limits.h -- strtol.c needs it.
53964
53965 2000-12-05  Jim Meyering  <meyering@lucent.com>
53966
53967         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
53968
53969 2000-12-04  Jim Meyering  <meyering@lucent.com>
53970
53971         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
53972         Also include memory.h, stdlib.h, unistd.h if appropriate.
53973         Reported by Andreas Jaeger (conflicting declaration of malloc).
53974
53975 2000-12-02  Jim Meyering  <meyering@lucent.com>
53976
53977         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
53978         * m4/jm-macros.m4 (jm_MACROS): require it.
53979
53980 2000-12-02  Jim Meyering  <meyering@lucent.com>
53981
53982         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
53983
53984 2000-12-01  Paul Eggert  <eggert@twinsun.com>
53985
53986         * lib/memrchr.c: Include <config.h> before any system include file.
53987
53988 2000-11-30  Jim Meyering  <meyering@lucent.com>
53989
53990         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
53991
53992 2000-11-30  Jim Meyering  <meyering@lucent.com>
53993
53994         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
53995
53996 2000-11-29  Paul Eggert  <eggert@twinsun.com>
53997
53998         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
53999
54000 2000-11-26  Jim Meyering  <meyering@lucent.com>
54001
54002         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
54003
54004 2000-11-22  Paul Eggert  <eggert@twinsun.com>
54005
54006         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
54007         size of (size_t) -1; it's not portable.
54008
54009 2000-11-17  Jim Meyering  <meyering@lucent.com>
54010
54011         * lib/strstr.c: Update from GNU libc.
54012
54013 2000-11-17  Akim Demaille  <akim@epita.fr>
54014
54015         * lib/obstack.h: Formatting changes.
54016         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
54017         prevent type checking.
54018         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
54019         cast the value to (void *): assigning a `foo *' to a `void *'
54020         variable is valid.
54021         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
54022
54023 2000-11-16  Jim Meyering  <meyering@lucent.com>
54024
54025         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
54026
54027 2000-11-11  Jim Meyering  <meyering@lucent.com>
54028
54029         * lib/error.c: Add a couple #includes, merging from GNU libc version.
54030
54031 2000-11-10  Jim Meyering  <meyering@lucent.com>
54032
54033         * lib/obstack.h: Update from GNU libc.
54034         * lib/obstack.c: Likewise.
54035
54036 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
54037
54038         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
54039
54040 2000-11-06  Paul Eggert  <eggert@twinsun.com>
54041
54042         * lib/getusershell.c (setusershell): Use rewind rather than
54043         fseek/fseeko, to avoid configuration hassles with fseeko.
54044         Don't bother opening SHELLS_FILE if shellstream is NULL;
54045         it's not necessary.
54046
54047 2000-11-05  Jim Meyering  <meyering@lucent.com>
54048
54049         * lib/makepath.h (make_dir): Declare.
54050         * lib/makepath.c (make_dir): Remove `static' attribute.
54051         Tweak a comment.
54052
54053 2000-11-04  Jim Meyering  <meyering@lucent.com>
54054
54055         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
54056
54057 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
54058
54059         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
54060         last one in a bucket, advance to the next bucket.
54061
54062 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
54063
54064         * lib/fnmatch.c: Do not comment out all the code if we are using
54065         the GNU C library, because in some cases we are replacing buggy
54066         code in the GNU C library itself.
54067
54068 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
54069
54070         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
54071         (regex_compile): Catch bogus \(\1\).
54072
54073 2000-10-30  Paul Eggert  <eggert@twinsun.com>
54074
54075         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
54076         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
54077         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
54078
54079 2000-10-30  Paul Eggert  <eggert@twinsun.com>
54080
54081         * lib/error.h, getline.h, modechange.h:
54082         Remove "2000" from Copyright line, as the file hasn't been
54083         changed this year other than in the copyright notice.
54084
54085         * lib/xalloc.h: Add "2000" to Copyright line, as this file
54086         was changed this year.
54087
54088 2000-10-29  Jim Meyering  <meyering@lucent.com>
54089
54090         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
54091         renaming.
54092         * m4/ls-mntd-fs.m4: Likewise
54093
54094 2000-10-29  Jim Meyering  <meyering@lucent.com>
54095
54096         * lib/xstat.in: Fix grammar in comment.
54097
54098 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
54099
54100         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
54101         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
54102         doesn't define __restrict_arr.
54103
54104 2000-10-28  Jim Meyering  <meyering@lucent.com>
54105
54106         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
54107         (jm_PREREQ_MEMCHR): New function.
54108
54109 2000-10-28  Jim Meyering  <meyering@lucent.com>
54110
54111         * lib/memchr.c: Update from libc.
54112         Adjust for portability:
54113         [HAVE_STDLIB_H]: Include stdlib.h.
54114         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
54115         Undef __memchr, too.
54116         [!weak_alias]: Define __memchr to memchr.
54117
54118         * lib/regex.c: Update from libc.
54119         * lib/regex.h: Likewise.
54120         * lib/getopt1.c: Likewise.
54121         * lib/memcmp.c: Likewise.
54122
54123         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
54124         Avoid using fseek, when possible -- it's broken by design.
54125         Patch by Ulrich Drepper.
54126
54127 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
54128
54129         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
54130         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
54131         Giving in to popular pressure to shut up the compiler with casts.
54132
54133 2000-10-26  Jim Meyering  <meyering@lucent.com>
54134
54135         * lib/strftime.c: Update from libc.
54136
54137 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
54138
54139         * regex.c: More `unsigned char' -> `re_char' changes.
54140         Also change several `int' into `re_wchar_t'.
54141         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
54142         (PUSH_FAILURE_POINTER): Don't cast any more.
54143         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
54144         We want GCC to complain, since this piece of code makes
54145         re_match non-reentrant, which *should* be fixed.
54146         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
54147         (EXTEND_BUFFER): Use RETALLOC.
54148         (SET_LIST_BIT): Don't cast.
54149         (re_wchar_t): New type.
54150         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
54151         that those two functions will always properly return.
54152         (IMMEDIATE_QUIT_CHECK): Cast to void.
54153         (analyse_first): Use recursion rather than an explicit stack.
54154         (re_compile_fastmap): Can't fail anymore.
54155         (re_search_2): Don't check re_compile_fastmap for failure.
54156         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
54157         Now also sets the new value (passed in a new argument).
54158         (re_match_2_internal): Use it.
54159         Also, use a new var `reg' of type size_t when looping through regs
54160         rather than reuse the inappropriate `mcnt'.
54161
54162 2000-10-25  Jim Meyering  <meyering@lucent.com>
54163
54164         * lib/obstack.c: Update from libc.
54165
54166 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
54167
54168         * regex.c (regex_compile): Change the way of handling a range from
54169         a char less than 256 to a char not less than 256.
54170
54171 2000-10-24  Andrew Innes  <andrewi@gnu.org>
54172
54173         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
54174         NT-Emacs only.
54175         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
54176         so that re_search functions only quit when callers expect them to.
54177
54178 2000-10-23  Jim Meyering  <meyering@lucent.com>
54179
54180         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
54181         wrong.  That set_locale call must not have any side effects.
54182         From Paul Eggert.
54183
54184 2000-10-22  Jim Meyering  <meyering@lucent.com>
54185
54186         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
54187         [CYCLIC]: Remove now-unused definition.
54188
54189         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
54190         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
54191         Suggestion from Ulrich Drepper.
54192
54193 2000-10-21  Jim Meyering  <meyering@lucent.com>
54194
54195         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
54196         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
54197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
54198
54199 2000-10-21  Jim Meyering  <meyering@lucent.com>
54200
54201         * lib/dirname.c (memrchr): Declare if necessary.
54202         (dir_name): Remove the restriction that there be no
54203         trailing slashes.  Now, this code skips past them, effectively
54204         ignoring them.
54205         [TEST_DIRNAME] (main): New unit tests.
54206
54207         * lib/memrchr.c: New file from GNU libc.
54208         Undef __memrchr, too.
54209         [!weak_alias]: Define __memrchr to memrchr.
54210         Guard weak_alias use with `#ifdef weak_alias'.
54211
54212 2000-10-21  Jim Meyering  <meyering@lucent.com>
54213
54214         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
54215         (dir_name): Use dir_name_r.
54216         * lib/dirname.h (dir_name_r): Declare it.
54217
54218 2000-10-17  Jim Meyering  <meyering@lucent.com>
54219
54220         * lib/quote.h (PARAMS): Define and use.
54221         Reported by Akim Demaille.
54222
54223         * lib/getopt.c: Update from libc.
54224
54225 2000-10-16  Jim Meyering  <meyering@lucent.com>
54226
54227         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
54228         setlocale.
54229         From Jan Fedak.
54230
54231 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
54232
54233         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
54234
54235 2000-09-25  Jim Meyering  <meyering@lucent.com>
54236
54237         * lib/md5.h (rol): Define (from GnuPG).
54238
54239         * lib/sha.c: Give credit (GnuPG) where due.
54240         (M): Use rol rather than open-coding it.
54241         Add a FIXME comment.
54242
54243 2000-09-21  Jim Meyering  <meyering@lucent.com>
54244
54245         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
54246         Reported by Michael Stone.
54247
54248 2000-09-20  Jim Meyering  <meyering@lucent.com>
54249
54250         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
54251         (noinst_HEADERS): Add sha.h.
54252         Based on code from Scott G. Miller and from GnuPG.
54253
54254 2000-09-18  Jim Meyering  <meyering@lucent.com>
54255
54256         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
54257         LIBS. Otherwise, everyone ends up linking with -lelf for some
54258         configurations.
54259         Reported by Mike Stone.
54260
54261 2000-09-15  Jim Meyering  <meyering@lucent.com>
54262
54263         * lib/regex.c: Update from libc.
54264
54265 2000-09-10  Jim Meyering  <meyering@lucent.com>
54266
54267         * lib/getopt.c (_getopt_internal): Update from glibc.
54268
54269 2000-09-09  Jim Meyering  <meyering@lucent.com>
54270
54271         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
54272         think it should be used as a general replacement for isascii.
54273         * lib/fnmatch.c: Likewise.
54274         * lib/mbswidth.c: Likewise
54275         * lib/regex.c: Likewise.
54276
54277         Don't use atoi.
54278         * lib/userspec.c: Include sys/param.h and limits.h.
54279         Include xstrtol.h.
54280         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
54281         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
54282         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
54283         UID, GID.  Check range.
54284
54285 2000-09-06  Jim Meyering  <meyering@lucent.com>
54286
54287         * lib/getopt.c (_getopt_internal): Update from glibc.
54288
54289 2000-08-30  Jim Meyering  <meyering@lucent.com>
54290
54291         * lib/strftime.c: Merge in changes from GNU libc.
54292
54293 2000-08-26  Jim Meyering  <meyering@lucent.com>
54294
54295         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
54296         * m4/fpending.m4: New file.
54297
54298 2000-08-26  Jim Meyering  <meyering@lucent.com>
54299
54300         * lib/closeout.c: Include "__fpending.h".
54301         (close_stdout_status): Return right away if there's nothing to flush.
54302
54303         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
54304         * lib/__fpending.c: New file.
54305         * lib/__fpending.h: New file.
54306
54307 2000-08-20  Jim Meyering  <meyering@lucent.com>
54308
54309         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
54310         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
54311         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
54312
54313 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
54314
54315         Improve fileutils installation on systems where running
54316         programs (like install) can't be unlinked.
54317         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
54318         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
54319
54320 2000-08-07  Paul Eggert  <eggert@twinsun.com>
54321
54322         Standardize on "memory exhausted" instead of "Memory exhausted"
54323         or "virtual memory exhausted".
54324         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
54325         "virtual memory exhausted".
54326         * lib/same.c (same_name): Invoke xalloc_die instead of printing
54327         our own message.
54328         * lib/userspec.c (parse_user_spec): Likewise.
54329         * lib/bumpalloc.h: comment fix
54330         * lib/same.c, userspec.c: Include xalloc.h.
54331
54332         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
54333         not char *const and pointing to a constant array.
54334         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
54335         (xrealloc): Comment fix.
54336
54337         * lib/userspec.c (parse_user_spec):
54338         Don't translate a message until just before returning,
54339         to avoid unnecessary translation.
54340
54341 2000-08-07  Jim Meyering  <meyering@lucent.com>
54342
54343         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
54344         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
54345         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
54346         getgroups.c, gethostname.c, getopt.h, group-member.c,
54347         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
54348         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
54349         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
54350         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
54351         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
54352         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
54353         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
54354         yesno.c: Back out Copyright date changes for each file with no change
54355         this year.  This eases coordination with other programs using the same
54356         source code modules.  From Paul Eggert.
54357
54358 2000-08-06  Paul Eggert  <eggert@twinsun.com>
54359
54360         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
54361         not char, for compatibility with glibc 2.1.3 strftime.c.
54362
54363 2000-08-03  Greg McGary  <greg@mcgary.org>
54364
54365         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
54366         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
54367         (EXTEND_BUFFER): Use them.
54368
54369 2000-08-01  Jim Meyering  <meyering@lucent.com>
54370
54371         * lib/dirname.c (ISSLASH): Define.
54372         (BACKSLASH_IS_PATH_SEPARATOR): Define.
54373         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
54374         both `\' and `/' may be use as path separators.
54375         Based on a patch from Prashant TR.
54376
54377 2000-07-31  Paul Eggert  <eggert@twinsun.com>
54378
54379         * lib/quotearg.c (quotearg_n_options): Don't make the initial
54380         slot vector a constant, since it might get modified.
54381
54382 2000-07-31  Jim Meyering  <meyering@lucent.com>
54383
54384         * lib/xmalloc.c: Use `virtual memory exhausted', not
54385         `Memory exhausted'.
54386         * lib/obstack.c (print_and_abort): Likewise.
54387
54388 2000-07-30  Paul Eggert  <eggert@twinsun.com>
54389
54390         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
54391         buffer, so that the caller can always quote one small
54392         component of a "memory exhausted" message in slot 0.
54393         From a suggestion by Jim Meyering.
54394
54395 2000-07-30  Jim Meyering  <meyering@lucent.com>
54396
54397         * lib/makepath.c (make_path): Quote the other instance, too.
54398
54399         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
54400         (STATIC_BUF_SIZE): Define.
54401         (quotearg_n_options): Use only statically allocated storage when
54402         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
54403         than STATIC_BUF_SIZE.
54404
54405 2000-07-29  Jim Meyering  <meyering@lucent.com>
54406
54407         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
54408         * lib/dirname.c (dir_name): Likewise.
54409
54410         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
54411         `/'.
54412
54413         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
54414         (dir_name): Assert that there are no trailing slashes.
54415
54416 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
54417
54418         * lib/mbswidth.h (mbswidth): Add a flags argument.
54419         (mbswidth): New declaration.
54420         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
54421         * lib/mbswidth.c (mbswidth): Add a flags argument.
54422         (mbsnwidth): New function.
54423
54424 2000-07-24  Jim Meyering  <meyering@lucent.com>
54425
54426         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
54427
54428 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54429
54430         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
54431
54432 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54433
54434         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
54435         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
54436         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
54437         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
54438         invoke multibyte primitives.
54439
54440 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54441
54442         * lib/quotearg.c:
54443         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
54444         so that mbstate_t is always defined.
54445
54446         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
54447         be 1 in at least one GCC installation, and this configuration
54448         error is likely to be common.  Ignoring MB_LEN_MAX hurts
54449         performance on hosts that have mbrtowc but have only unibyte
54450         locales, but I assume these hosts are rare.
54451
54452 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54453
54454         * lib/mbswidth.c (_XOPEN_SOURCE):
54455         Don't define; this causes problems on Solaris 7.
54456         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
54457
54458 2000-07-23  Jim Meyering  <meyering@lucent.com>
54459
54460         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
54461         too: getgrgid, getpwuid, getuid.
54462
54463 2000-07-23  Jim Meyering  <meyering@lucent.com>
54464
54465         * lib/basename.c (base_name): Add an assertion.
54466
54467 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
54468
54469         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
54470         shadow its mbsinit function.
54471
54472 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
54473
54474         * lib/mbswidth.h: New file.
54475         * lib/mbswidth.c: New file.
54476         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
54477         (noinst_HEADERS): Add mbswidth.h.
54478
54479 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
54480
54481         * lib/config.charset: Add support for FreeBSD. Improve support for
54482         HP-UX and IRIX 6.
54483
54484 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
54485
54486         * m4/mbswidth.m4: New file.
54487         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
54488
54489 2000-07-15  Jim Meyering  <meyering@lucent.com>
54490
54491         * lib/makepath.c: Include quote.h.
54492         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
54493         corresponding argument in a `quote (...)' call.
54494         Give better diagnostics.
54495
54496         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
54497         (noinst_HEADERS): Add quote.h.
54498
54499         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
54500         from tar's src/misc.c.
54501         * lib/quote.h: New file.  Prototypes for same.
54502
54503 2000-07-14  Paul Eggert  <eggert@twinsun.com>
54504
54505         From a suggestion by Bruno Haible.
54506         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
54507         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
54508         to decide whether to define the BeOS workaround macro;
54509         this adjusts to the change to AC_MBSTATE_T.
54510
54511 2000-07-14  Jim Meyering  <meyering@lucent.com>
54512
54513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
54514         jm_AC_TYPE_UINTMAX_T.
54515
54516 2000-07-13  Paul Eggert  <eggert@twinsun.com>
54517
54518         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
54519
54520         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
54521         quotearg_buffer_restyled): Add support for
54522         clocale_quoting_style.  Undo previous change to
54523         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
54524         and "{RIGHT QUOTATION MARK}" msgids.
54525
54526 2000-07-10  Paul Eggert  <eggert@twinsun.com>
54527
54528         From a suggestion by Bruno Haible.
54529         * m4/mbstate_t.m4 (AC_MBSTATE_T):
54530         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
54531         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
54532         and mbstate_t, to a single-part test that simply defines mbstate_t.
54533         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
54534         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
54535
54536 2000-07-10  Jim Meyering  <meyering@lucent.com>
54537
54538         * m4/strerror_r.m4: Mirror the correction made in autoconf.
54539
54540         * m4/gnu-source.m4: Output to confdefs.h directly.
54541         Suggestion from Akim Demaille.
54542
54543 2000-07-09  Paul Eggert  <eggert@twinsun.com>
54544
54545         The old behavior of quoting `like this' doesn't look good with
54546         newer, ISO-style fonts.  See:
54547         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
54548
54549         Instead, quote "like this" by default.  Let the translator
54550         tailor the locale-specific quoting behavior by providing
54551         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
54552
54553         * lib/quotearg.c (N_): New macro.
54554         (gettext_default): New function.
54555         (quotearg_buffer_restyled): Use
54556         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
54557         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
54558
54559 2000-07-09  Jim Meyering  <meyering@lucent.com>
54560
54561         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
54562         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
54563
54564         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
54565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
54566
54567 2000-07-09  Jim Meyering  <meyering@lucent.com>
54568
54569         * lib/Most files: Update copyright dates to include 2000.
54570
54571 2000-07-08  Jim Meyering  <meyering@lucent.com>
54572
54573         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
54574         if not defined.
54575         (xgethostname): Remove now-unnecessary #ifdef.
54576         Move declaration of `err' into loop where it's used.
54577
54578 2000-07-05  Paul Eggert  <eggert@twinsun.com>
54579         and Bruno Haible  <haible@clisp.cons.org>
54580
54581         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
54582         only if the test for an object-type mbstate_t fails.  This
54583         prevents us from mistakenly reporting that mbstate_t is a
54584         system object type after we "#define mbstate_t int" to work
54585         around its lack.
54586
54587 2000-07-05  Paul Eggert  <eggert@twinsun.com>
54588         and Bruno Haible  <haible@clisp.cons.org>
54589
54590         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
54591
54592 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54593
54594         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
54595         to strerror_r.
54596         Include <ctype.h> for use of isalpha.
54597
54598 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54599
54600         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
54601         by allocating a larger buffer. Test the gethostname return value for
54602         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
54603         returns an error and ENAMETOOLONG isn't defined.
54604
54605 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54606
54607         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
54608         dimension.
54609
54610 2000-07-04  Jim Meyering  <meyering@lucent.com>
54611
54612         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
54613         of the deprecated AC_CHECKING.
54614
54615 2000-07-04  Jim Meyering  <meyering@lucent.com>
54616
54617         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
54618         Reported by Bruno Haible.
54619
54620 2000-07-04  Jim Meyering  <meyering@lucent.com>
54621
54622         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
54623         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
54624         lacks mbrtowc.
54625
54626 2000-07-03  Paul Eggert  <eggert@twinsun.com>
54627
54628         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
54629         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
54630
54631 2000-07-03  Paul Eggert  <eggert@twinsun.com>
54632         and Bruno Haible  <haible@clisp.cons.org>
54633
54634         * lib/quotearg.c (mbrtowc):
54635         Assign to *pwc, and return 1 only if result is nonzero.
54636         (iswprint): Use ISPRINT when substituting our own mbrtowc.
54637
54638 2000-07-03  Jim Meyering  <meyering@lucent.com>
54639
54640         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
54641
54642 2000-07-03  Jim Meyering  <meyering@lucent.com>
54643
54644         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
54645         This is necessary to get a definition of e.g., UTMP_FILE on
54646         HP-UX 10.20.
54647         From Bob Proulx.
54648
54649 2000-07-02  Jim Meyering  <meyering@lucent.com>
54650
54651         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
54652
54653         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
54654         AC_LIBOBJ(function_name).
54655         * m4/chown.m4: Likewise.
54656         * m4/fnmatch.m4: Likewise.
54657         * m4/ftruncate.m4: Likewise.
54658         * m4/getgroups.m4: Likewise.
54659         * m4/getline.m4: Likewise.
54660         * m4/group-member.m4: Likewise.
54661         * m4/jm-macros.m4: Likewise.
54662         * m4/lstat.m4: Likewise.
54663         * m4/malloc.m4: Likewise.
54664         * m4/memcmp.m4: Likewise.
54665         * m4/nanosleep.m4: Likewise.
54666         * m4/putenv.m4: Likewise.
54667         * m4/realloc.m4: Likewise.
54668         * m4/regex.m4: Likewise.
54669         * m4/stat.m4: Likewise.
54670         * m4/strftime.m4: Likewise.
54671
54672 2000-07-02  Jim Meyering  <meyering@lucent.com>
54673
54674         * lib/quotearg.c (mbstate_t): Don't define here.
54675
54676 2000-07-02  Jim Meyering  <meyering@lucent.com>
54677
54678         * lib/nanosleep.c (SIGCONT): Define if not already defined.
54679
54680 2000-07-01  Jim Meyering  <meyering@lucent.com>
54681
54682         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
54683
54684 2000-07-01  Jim Meyering  <meyering@lucent.com>
54685
54686         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
54687         problem.
54688
54689 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
54690
54691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
54692         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
54693
54694 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
54695
54696         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
54697         per change in ../m4/ls-mntd-fs.m4.
54698         (read_filesystem_list): Ignore symbolic links.
54699
54700 2000-06-29  Jim Meyering  <meyering@lucent.com>
54701
54702         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
54703         for declaration of strcmp.
54704
54705         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
54706
54707         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
54708         Avoid warning by casting result to `char *' to remove `const'.
54709
54710 2000-06-28  Jim Meyering  <meyering@lucent.com>
54711
54712         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
54713         included by quotearg.c, for which we perform this test.  From
54714         Bruno Haible.
54715
54716 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
54717
54718         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
54719         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
54720         <utmpx.h> exists, put readutmp.o into LIBOBJS.
54721
54722 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
54723
54724         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
54725
54726 2000-06-26  Paul Eggert  <eggert@twinsun.com>
54727
54728         savedir now sets errno on failure and invokes xmalloc to get memory.
54729         Fix a couple of other minor bugs while we're at it.
54730
54731         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
54732         (NAMLEN): Remove macro.
54733         (malloc, realloc): Remove decls.
54734         (stpcpy): Likewise.
54735         ("xalloc.h"): Include.
54736         (NAME_SIZE_DEFAULT): New macro.
54737         (savedir): Use xmalloc / xrealloc to allocate memory.
54738         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
54739         Skip "" directory entries.
54740         Use strlen to calculate directory entry length, since the old method
54741         is rarely used these days and isn't worth supporting.
54742         Don't use a pointer after freeing it.
54743         Check for integer overflow when calculating allocation size.
54744         Use memcpy to copy entries, instead of stpcpy.
54745         Set errno properly when returning NULL.
54746         Check for readdir error.
54747
54748 2000-06-26  Jim Meyering  <meyering@lucent.com>
54749
54750         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
54751
54752 2000-06-25  Jim Meyering  <meyering@lucent.com>
54753
54754         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
54755         Linux header bug when _XOPEN_SOURCE is defined to 500.
54756
54757 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
54758
54759         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
54760         deficiency.
54761
54762 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
54763
54764         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
54765         Include xalloc.h.
54766         Don't include <stdlib.h>.  Don't declare malloc, realloc.
54767
54768 2000-06-24  Jim Meyering  <meyering@lucent.com>
54769
54770         * m4/strerror_r.m4: Revive this file -- to try out an experimental
54771         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
54772         for which strerror does return char*, but which lacks a conveniently
54773         accessible declaration of the function.  If the compile-test says
54774         strerror_r doesn't work, then resort to a `run'-test that works on
54775         BeOS and segfaults on DEC Unix.
54776
54777 2000-06-24  Jim Meyering  <meyering@lucent.com>
54778
54779         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
54780
54781 2000-06-23  Paul Eggert  <eggert@twinsun.com>
54782
54783         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
54784         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
54785
54786 2000-06-23  Paul Eggert  <eggert@twinsun.com>
54787
54788         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
54789         (mbrtowc, mbstate_t): Define substitutes if
54790         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
54791         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
54792         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
54793
54794 2000-06-23  Jim Meyering  <meyering@lucent.com>
54795
54796         * m4/afs.m4: Add missing AC_MSG_RESULT.
54797         Reported by Bruno Haible.
54798
54799         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
54800         Suggestion from Bruno Haible.
54801
54802 2000-06-23  Jim Meyering  <meyering@lucent.com>
54803
54804         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
54805
54806 2000-06-21  Jim Meyering  <meyering@lucent.com>
54807
54808         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
54809
54810 2000-06-21  Jim Meyering  <meyering@lucent.com>
54811
54812         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
54813         (noinst_HEADERS): Add getstr.h.
54814
54815         * lib/getline.c (getstr): Move into a separate file.
54816         * lib/getstr.c (getstr): New file, extracted from getline.c, with
54817         the following changes: new parameter, delim2; both delim[12]
54818         parameters have type `int', not `char'.  The latter would lose
54819         with 8-bit delimiters.
54820         * lib/getstr.h: New file.
54821
54822 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54823
54824         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
54825         than 1024, return a memory chunk of least possible size, instead
54826         of size PATH_MAX + 2. In the loop, increment the size proportionally.
54827         Use free/xmalloc instead of xrealloc to avoid copying for very long
54828         paths.
54829
54830 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54831
54832         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
54833         the empty string.
54834
54835 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54836
54837         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
54838         address, not strdup.  Include <stdlib.h> and don't declare free().
54839
54840 2000-06-19  Jim Meyering  <meyering@lucent.com>
54841
54842         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
54843
54844 2000-06-18  Jim Meyering  <meyering@lucent.com>
54845
54846         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
54847
54848         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
54849         `checking whether...' message to be consistent with that of the
54850         lstat test.
54851
54852 2000-06-18  Jim Meyering  <meyering@lucent.com>
54853
54854         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
54855         Besides, these days every porting target provides a mkdir function.
54856
54857         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
54858         needed. (this snippet comes from src/system.h).
54859
54860 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
54861
54862         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
54863
54864 2000-06-15  Paul Eggert  <eggert@twinsun.com>
54865
54866         * lib/human.c (adjust_value): New function.
54867         (human_readable_inexact): Apply rounding style even when
54868         printing approximate values.
54869
54870 2000-06-14  Paul Eggert  <eggert@twinsun.com>
54871
54872         * lib/human.c (human_readable_inexact): Allow an input block
54873         size that is not a multiple of the output block size, and vice versa.
54874         Reported by Piergiorgio Sartor.
54875
54876 2000-06-14  Paul Eggert  <eggert@twinsun.com>
54877
54878         * lib/getdate.y (get_date): Apply relative times after time
54879         zone indicator, not before.  Reported by Todd A. Jacobs.
54880
54881 2000-06-13  Jim Meyering  <meyering@lucent.com>
54882
54883         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
54884
54885         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
54886
54887 2000-06-12  Paul Eggert  <eggert@twinsun.com>
54888
54889         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
54890
54891 2000-06-12  Jim Meyering  <meyering@lucent.com>
54892
54893         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
54894         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
54895         optional argument.
54896         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
54897         the optional argument, `lib'.
54898
54899 2000-06-08  Jim Meyering  <meyering@lucent.com>
54900
54901         * m4/largefile.m4: Remove file (now that it's part of autoconf).
54902
54903 2000-06-04  Paul Eggert  <eggert@twinsun.com>
54904
54905         Rewrite largefile configuration so that we don't need to run
54906         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
54907         AC_CANONICAL_HOST in configure.in -- jmm]
54908
54909         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
54910         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
54911         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
54912         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
54913         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
54914         All uses changed.
54915         Instead of inspecting the output of getconf, try to compile the
54916         test program without and with the macro definition.
54917         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
54918         for getconf.  Instead, check for the needed flags by compiling
54919         test programs.
54920
54921 2000-06-04  Paul Eggert  <eggert@twinsun.com>
54922
54923         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
54924
54925 2000-06-04  Jim Meyering  <meyering@lucent.com>
54926
54927         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
54928         SunOS 4.1.4 for which gid_t is an unsigned type.
54929
54930 2000-06-03  Jim Meyering  <meyering@lucent.com>
54931
54932         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
54933         now that autoconf requires that.
54934
54935         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
54936         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
54937         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
54938
54939 2000-06-03  Jim Meyering  <meyering@lucent.com>
54940
54941         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
54942
54943 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
54944
54945         * m4/glibc21.m4: New file.
54946         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
54947
54948 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
54949
54950         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
54951         newer, don't install charset.alias.
54952         * lib/config.charset: Change the Linux/glibc rules so they become empty
54953         on glibc-2.1 or newer.
54954
54955 2000-06-02  Jim Meyering  <meyering@lucent.com>
54956
54957         * lib/mountlist.c: Back out last change.  Instead, do this...
54958         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
54959         me_dummy member using the same `ignore'-testing code.
54960         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
54961         fs_type strings.
54962         From Mark D. Roth.
54963
54964 2000-05-29  Jim Meyering  <meyering@lucent.com>
54965
54966         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
54967         mounts with the `ignore' attribute.  Based on a patch from
54968         Mark D. Roth.
54969
54970 2000-05-28  Jim Meyering  <meyering@lucent.com>
54971
54972         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
54973         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54974         * m4/stat.m4: Likewise.
54975         * m4/lstat.m4: Likewise.
54976         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
54977
54978         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
54979         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
54980
54981 2000-05-26  Jim Meyering  <meyering@lucent.com>
54982
54983         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
54984
54985 2000-05-24  Jim Meyering  <meyering@lucent.com>
54986
54987         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
54988         autoconf requires that.
54989         * m4/lib-check.m4: Likewise.
54990         * m4/jm-macros.m4: Likewise.
54991         * m4/strftime.m4: Likewise.
54992
54993         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
54994         AC_CHECK_DECLS, now that autoconf requires that.
54995
54996 2000-05-22  Jim Meyering  <meyering@lucent.com>
54997
54998         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54999         * m4/lstat.m4: Likewise.
55000
55001 2000-05-22  Jim Meyering  <meyering@lucent.com>
55002
55003         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
55004
55005 2000-05-20  Jim Meyering  <meyering@lucent.com>
55006
55007         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
55008         (jm_PREREQ): Use it.
55009
55010 2000-05-18  Jim Meyering  <meyering@lucent.com>
55011
55012         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
55013         back, too, since it may have been modified by allocate_entry.
55014         (hash_delete): Rewrite to use neither the assignment operator
55015         nor the comma operator in an if-expression.
55016
55017 2000-05-15  Paul Eggert  <eggert@twinsun.com>
55018
55019         * lib/closeout.c:
55020         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
55021         Remove; no longer needed.
55022         "quotearg.h": Add include.
55023         (file_name): Do not bother to explicitly initialize to NULL; it's less
55024         efficient on some hosts.
55025         (close_stdout_status): Remove test as to whether stdout was already
55026         closed; it breaks for the case "echo x | sort >&-".
55027         Quote file name colons.
55028         Do not assume that _("write error") lacks format strings.
55029
55030 2000-05-15  Jim Meyering  <meyering@lucent.com>
55031
55032         * lib/version-etc.c (version_etc_copyright): Update the copyright
55033         string used in all --version output.
55034
55035 2000-05-14  Jim Meyering  <meyering@lucent.com>
55036
55037         * lib/closeout.c (close_stdout_set_file_name): New function.
55038         (close_stdout_status): Use new file-scoped global.
55039         Return right away if fstat says the stdout file descriptor is invalid.
55040         * lib/closeout.h (close_stdout_set_file_name): Declare.
55041
55042 2000-05-10  Jim Meyering  <meyering@lucent.com>
55043
55044         * lib/closeout.c [default_exit_status]: New file-scoped variable.
55045         (close_stdout_set_status): New function.
55046         * lib/closeout.h (close_stdout_set_status): Declare.
55047
55048 2000-05-09  Jim Meyering  <meyering@lucent.com>
55049
55050         * m4/gettext.m4: Rename this...
55051         * m4/libintl.m4: ...to this.
55052
55053 2000-05-08  Jim Meyering  <meyering@lucent.com>
55054
55055         * lib/long-options.c: Don't include closeout.h.
55056         (parse_long_options): Don't call close_stdout for --version.
55057
55058 2000-05-06  Paul Eggert  <eggert@twinsun.com>
55059
55060         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
55061         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
55062         2.1.3 bug.  This avoids a clash when files like regex.c define
55063         _GNU_SOURCE.
55064
55065 2000-05-06  Jim Meyering  <meyering@lucent.com>
55066
55067         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
55068         (AC_REPLACE_FUNCS): Add strnlen.
55069
55070         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
55071         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
55072
55073         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
55074         AC_SEARCH_LIBS call for nanosleep.
55075         (LIB_NANOSLEEP): Set and AC_SUBST.
55076
55077 2000-05-06  Jim Meyering  <meyering@lucent.com>
55078
55079         * lib/strnlen.c: Undefine __strnlen and strnlen.
55080         [!weak_alias]: Define __strnlen to strnlen.
55081
55082         * lib/atexit.c: New file, from libiberty.
55083
55084 2000-05-06  Jim Meyering  <meyering@lucent.com>
55085
55086         * lib/closeout.c (close_stdout_status): Also check for errors on the
55087         stderr stream.
55088
55089 2000-05-05  Jim Meyering  <meyering@lucent.com>
55090
55091         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
55092         AC_SEARCH_LIBS call for clock_gettime.
55093         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
55094
55095         * m4/search-libs.m4: Update from autoconf.
55096
55097         su doesn't work on Solaris 2.6.
55098         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
55099         <shadow.h>.  Reported by Dragos Harabor.
55100
55101 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
55102
55103         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
55104         memcpy instead of xmalloc, xrealloc, path_concat.
55105         (locale_charset): Treat empty environment variables as absent.
55106         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
55107
55108 2000-05-04  Jim Meyering  <meyering@lucent.com>
55109
55110         * lib/getopt.c: Update from glibc.
55111         * lib/obstack.c: Likewise.
55112         * lib/obstack.h: Likewise.
55113         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
55114         file
55115
55116         * lib/regex.h: Likewise.
55117         * lib/strndup.c: Likewise.
55118         * lib/strnlen.c: New file, from glibc.
55119
55120 2000-05-03  Jim Meyering  <meyering@lucent.com>
55121
55122         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
55123
55124 2000-05-02  Paul Eggert  <eggert@twinsun.com>
55125
55126         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
55127         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
55128         compile-time test, rather than inspecting host and OS, to
55129         decide whether to define _LARGEFILE_SOURCE.
55130
55131 2000-05-01  Jim Meyering  <meyering@lucent.com>
55132
55133         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
55134
55135         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
55136         Based on a patch from Bruno Haible.
55137
55138 2000-05-01  Jim Meyering  <meyering@lucent.com>
55139
55140         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
55141
55142 2000-04-29  Jim Meyering  <meyering@lucent.com>
55143
55144         * lib/path-concat.c: Declare strdup only if it's not defined.
55145         * lib/canon-host.c: Likewise.
55146
55147 2000-04-28  Jim Meyering  <meyering@lucent.com>
55148
55149         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
55150         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
55151         is included first, then limits.h is included by locale.h by libintl.h.
55152         From John David Anglin.
55153
55154 2000-04-25  Jim Meyering  <meyering@lucent.com>
55155
55156         * lib/makepath.c (S_IRWXUGO): Define.
55157         (make_path): Always perform explicit chmod if MODE specifies any
55158         of the `special' permission bits.  Prompted by a bug report against
55159         install from Mate Wierdl and Joost van Baal.
55160
55161 2000-04-18  Jim Meyering  <meyering@lucent.com>
55162
55163         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
55164         (jm_PREREQ): Use it.
55165
55166 2000-04-18  Jim Meyering  <meyering@lucent.com>
55167
55168         * lib/README: New file.
55169
55170         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
55171         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
55172
55173 2000-04-17  Jim Meyering  <meyering@lucent.com>
55174
55175         Get it right :-)
55176         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
55177         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
55178         Suggestion from Akim Demaille.
55179
55180 2000-04-17  Jim Meyering  <meyering@lucent.com>
55181
55182         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
55183         the definition of it to rpl_strftime also defined-away the system's
55184         declaration.
55185
55186 2000-04-15  Jim Meyering  <meyering@lucent.com>
55187
55188         Use `C' to denote so-called `contiguous' files, the same way
55189         that tar does.
55190         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
55191         (ftypelet): Use S_ISCTG.
55192         From Michael Deutschmann.
55193
55194 2000-04-14  Jim Meyering  <meyering@lucent.com>
55195
55196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
55197         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
55198         clobbered.
55199
55200 2000-04-14  Jim Meyering  <meyering@lucent.com>
55201
55202         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
55203
55204 2000-04-13  Jim Meyering  <meyering@lucent.com>
55205
55206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
55207         AH_VERBATIM to insert required #ifndef into config.h.in.
55208         Suggestion from Akim Demaille.
55209
55210 2000-04-12  Jim Meyering  <meyering@lucent.com>
55211
55212         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
55213         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
55214         Christian Krackowizer.
55215
55216         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
55217         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
55218         (AC_SYS_LARGEFILE): Require.
55219         (AM_C_PROTOTYPES): Require.
55220
55221 2000-04-08  Jim Meyering  <meyering@lucent.com>
55222
55223         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
55224         names don't conflict.  Reported by Eli Zaretskii.
55225
55226 2000-04-07  Jim Meyering  <meyering@lucent.com>
55227
55228         * lib/putenv.c: Move inclusion of errno.h so it follows that of
55229         sys/types.h, to work around system header problems on AIX 3.2.5.
55230         From Bruno Haible.
55231
55232 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
55233
55234         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
55235         bug.  Deal with the different error behavior of Irix iconv.
55236
55237 2000-04-05  Paul Eggert  <eggert@twinsun.com>
55238
55239         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
55240         IRIX if the installer said otherwise.
55241
55242 2000-04-05  Jim Meyering  <meyering@lucent.com>
55243
55244         Portability tweaks required for ultrix4.3.
55245         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
55246         (jm_CHECK_DECLS): Add getutent to the list of functions.
55247         (_jm_DECL_HEADERS): Add utmpx.h.
55248         From John David Anglin.
55249
55250         * m4/strftime.m4: Back out the 2000-04-02 change.
55251         Instead of that change, simply undefine putenv in the test program.
55252
55253 2000-04-05  Jim Meyering  <meyering@lucent.com>
55254
55255         Portability tweaks required for ultrix4.3.
55256         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
55257         getutent.
55258         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
55259         * lib/canon-host.c: Declare strdup.
55260         * lib/path-concat.c: Likewise.
55261         From John David Anglin.
55262
55263 2000-04-04  Jim Meyering  <meyering@lucent.com>
55264
55265         Be more DOS 8.3-friendly.
55266         * lib/ref-add.sin: Renamed from ref-add.sed.in.
55267         * lib/ref-del.sin: Renamed from ref-del.sed.in.
55268         * lib/Makefile.am: Reflect renaming.
55269         Reported by Eli Zaretskii.
55270
55271         Use a temporary file name that won't clash with `charset.alias'
55272         in the DOS 8.3 name space.
55273         * lib/Makefile.am (charset_tmp): Define.
55274         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
55275         (uninstall-local): Likewise.
55276         Reported by Eli Zaretskii.
55277
55278 2000-04-03  Jim Meyering  <meyering@lucent.com>
55279
55280         * m4/gettext.m4: Fix typo in comment.
55281
55282         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
55283         textutils/configure.in).  Suggestion from Paul Eggert.
55284         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
55285
55286 2000-04-02  Paul Eggert  <eggert@twinsun.com>
55287
55288         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
55289         variable in the shell rather than using putenv, which isn't
55290         portable.  This avoids the configure-time inter-test dependency
55291         on the potentially-renamed putenv function.
55292
55293 2000-03-30  Paul Eggert  <eggert@twinsun.com>
55294
55295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
55296         before checking struct stat.st_blksize, so that
55297         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
55298
55299 2000-03-29  Paul Eggert  <eggert@twinsun.com>
55300
55301         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
55302         since strftime.c uses HAVE_STRFTIME to decide whether to use
55303         the underlying strftime.
55304
55305 2000-03-29  Paul Eggert  <eggert@twinsun.com>
55306
55307         * lib/time/strftime.c (my_strftime): Make sure we call the system
55308         strftime, not ourselves, when invoking the underlying strftime.
55309
55310 2000-03-24  Jim Meyering  <meyering@lucent.com>
55311
55312         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
55313         (charset_alias): Define.
55314         (install-exec-local): Factor out common code.
55315         (uninstall-local): Split lines longer than 80.
55316         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
55317         (SUFFIXES): Define.
55318         (.sed.in.sed): New rule.  Don't redirect directly to $@.
55319         (CLEANFILES): Add ref-add.sed and ref-del.sed.
55320
55321 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
55322
55323         * lib/config.charset: Output a line containing "Packages using this
55324         file".
55325         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
55326         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
55327         ref-del.sed): New rules.
55328
55329 2000-03-17  Jim Meyering  <meyering@lucent.com>
55330
55331         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
55332         Otherwise, include <strings.h>
55333
55334 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
55335
55336         * lib/unicodeio.c (utf8_wctomb): New function.
55337         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
55338         format instead of in UCS-4 with platform dependent endianness.
55339
55340 2000-03-10  Jim Meyering  <meyering@lucent.com>
55341
55342         * m4/lib-check.m4: Look for getspnam in -lgen, too.
55343         From Marco Franzen.
55344
55345 2000-03-07  Paul Eggert  <eggert@twinsun.com>
55346
55347         * lib/savedir.c (savedir): Work even if directory size is
55348         negative; this can happen with some screwy NFS configurations.
55349
55350 2000-03-06  Jim Meyering  <meyering@lucent.com>
55351
55352         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
55353         if it's NULL (because we ran out of memory).  From Bruno Haible.
55354
55355 2000-03-05  Jim Meyering  <meyering@lucent.com>
55356
55357         * lib/localcharset.c ("path-concat.h"): Include.
55358         (get_charset_aliases): Use path_concat instead of ANSI string
55359         concatenation.
55360
55361         * lib/unicodeio.h (PARAMS): Define.
55362         Use it to guard prototype.
55363
55364 2000-03-04  Jim Meyering  <meyering@lucent.com>
55365
55366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
55367         for lib/localcharset.c.
55368
55369 2000-03-04  Jim Meyering  <meyering@lucent.com>
55370
55371         * lib/Makefile.am (install-exec-local): Create $(libdir) before
55372         installing into it.
55373         (uninstall-local): Uncomment this rule so `make distcheck' works
55374         once again.
55375
55376         * lib/unicodeio.c (<errno.h>): Include it.
55377         (errno): Declare if not defined.
55378
55379         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
55380
55381         * lib/config.charset: New version, incorporating remarks from a linux
55382         i18n mailing list.  From Bruno Haible.
55383
55384 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
55385
55386         * m4/codeset.m4: New file.
55387         * m4/iconv.m4: New file.
55388         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
55389
55390 2000-03-03  Jim Meyering  <meyering@lucent.com>
55391
55392         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
55393
55394 2000-03-02  Jim Meyering  <meyering@lucent.com>
55395
55396         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
55397         the messages come out on separate lines.
55398
55399         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
55400         rather than jm_CHECK_DECLARATIONS.
55401         * m4/decl.m4: Remove now-unused file.
55402
55403         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
55404         geteuid.
55405
55406 2000-03-02  Jim Meyering  <meyering@lucent.com>
55407
55408         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
55409
55410 2000-03-01  Jim Meyering  <meyering@lucent.com>
55411
55412         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
55413         * lib/unicodeio.c: Likewise.
55414
55415 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
55416
55417         * lib/config.charset: New file.
55418         * lib/localcharset.c: New file.
55419         * lib/unicodeio.h, lib/unicodeio.c: New files.
55420         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
55421         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
55422         (noinst_HEADERS): Add unicodeio.h.
55423         (all-local, install-exec-local, charset.alias): New targets.
55424
55425 2000-02-28  Paul Eggert  <eggert@twinsun.com>
55426
55427         * lib/quotearg.c (ALERT_CHAR): New macro.
55428         (quotearg_buffer_restyled): Use it.
55429
55430 2000-02-27  Jim Meyering  <meyering@lucent.com>
55431
55432         * m4/check-decl.m4: Add getenv to the list.
55433
55434 2000-02-27  Jim Meyering  <meyering@lucent.com>
55435
55436         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
55437         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
55438
55439         * lib/backupfile.c: Guard inclusion of stdlib.h with
55440         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
55441         Declare malloc if needed.
55442
55443         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
55444         `#ifndef HAVE_DECL..'
55445         now that autoconf always defines the HAVE_DECL_ symbols.
55446         * lib/human.c: Likewise.
55447         * lib/same.c: Likewise.
55448         * lib/strtoumax.c: Likewise.
55449
55450         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
55451         declaration check was not run.
55452         * lib/hash.c: Likewise.
55453         * lib/human.c: Likewise.
55454         * lib/same.c: Likewise.
55455         * lib/strtoumax.c: Likewise.
55456
55457         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
55458         `.', then first look up the entire `.'-containing string as a login
55459         name.
55460
55461 2000-02-23  Jim Meyering  <meyering@lucent.com>
55462
55463         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
55464         in place of my hack.
55465
55466 2000-02-18  Paul Eggert  <eggert@twinsun.com>
55467
55468         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
55469         (textint): New typedef.
55470         (parser_control): Member year changed from int to textint.
55471         All uses changed.
55472         (YYSTYPE): Removed; replaced by %union with int and textint members.
55473         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
55474         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
55475         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
55476         (tSNUMBER, tUNUMBER): Now of type <textintval>.
55477         (date, number, to_year): Use width of number in digits, not its value,
55478         to determine whether it's a 2-digit year, or a 2-digit time.
55479         (yylex): Store number of digits of numeric tokens.
55480         Reported by John Kendall.
55481
55482         (parser_control): Changed from struct parser_control to typedef (for
55483         consistency).  All uses changed.
55484
55485         (tID): Removed; not used.
55486         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
55487
55488 2000-02-14  Paul Eggert  <eggert@twinsun.com>
55489
55490         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
55491         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
55492
55493 2000-02-12  Jim Meyering  <meyering@lucent.com>
55494
55495         * lib/userspec.c (ISDIGIT): Define it.
55496         (isdigit): Remove definition.
55497         (is_number): Use ISDIGIT, not isdigit.
55498         <libintl.h>: Include.
55499         (_ and N_): Define.
55500         (parse_user_spec): Mark translatable strings.
55501
55502 2000-02-10  Jim Meyering  <meyering@lucent.com>
55503
55504         With these changes, nanosleep.[ch] are finally enough like the other
55505         lib/* replacement files to compile on a few more losing systems.
55506
55507         * lib/nanosleep.h: Don't include config.h.
55508         Remove prototype from declaration of nanosleep.
55509         (PARAMS): Remove now-unneeded definition.
55510         * lib/nanosleep.c: #undef nanosleep.
55511         (rpl_nanosleep): Rename from nanosleep.
55512
55513 2000-02-10  Jim Meyering  <meyering@lucent.com>
55514
55515         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
55516         gnu_nanosleep to rpl_nanosleep.
55517
55518 2000-02-09  Jim Meyering  <meyering@lucent.com>
55519
55520         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
55521         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
55522
55523 2000-02-08  Akim Demaille  <akim@epita.fr>
55524
55525         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
55526         `[' and `]' and remove uses of `changequote'.
55527         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
55528         (AC_SYS_LARGEFILE): Likewise.
55529         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
55530         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
55531         of changequote.
55532         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
55533         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
55534         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
55535         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
55536
55537 2000-02-05  Jim Meyering  <meyering@lucent.com>
55538
55539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
55540         Remove explicit use of AC_HEADER_TIME.  It is required by
55541         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
55542         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
55543         in autoconf whereby the expansion of the latter ended up preceding
55544         the expansion of its prerequisite, AC_HEADER_TIME.
55545         Reported by Volker Borchert.
55546
55547 2000-02-03  Jim Meyering  <meyering@lucent.com>
55548
55549         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
55550
55551 2000-02-03  Jim Meyering  <meyering@lucent.com>
55552
55553         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
55554         rather than with `#if HAVE_UTMPNAME'.
55555
55556 2000-02-02  Jim Meyering  <meyering@lucent.com>
55557
55558         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
55559         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
55560         Reported by Eli Zaretskii.
55561
55562 2000-02-01  Jim Meyering  <meyering@lucent.com>
55563
55564         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
55565
55566 2000-01-31  Jim Meyering  <meyering@lucent.com>
55567
55568         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
55569         functions.  Add the time.h and sys/time.h headers along with the
55570         AC_REQUIRE'ment of AC_HEADER_TIME.
55571
55572 2000-01-31  Jim Meyering  <meyering@lucent.com>
55573
55574         * lib/nanosleep.h (nanosleep): Guard declaration with
55575         `#if ! HAVE_DECL_NANOSLEEP'.
55576         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
55577         the declaration in that vendor's sys/timers.h.
55578         Reported by Christian Krackowizer.
55579
55580         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
55581         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
55582         (ISPRINT): Likewise.
55583         Reported by Tom Tromey.
55584
55585 2000-01-30  Jim Meyering  <meyering@lucent.com>
55586
55587         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
55588
55589         * m4/prereq.m4 (utmp_includes): Define.
55590         Check for ut_user and ut_name members in both struct utmpx
55591         and struct utmp.
55592
55593 2000-01-30  Jim Meyering  <meyering@lucent.com>
55594
55595         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
55596         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
55597         header files where only utmpx.ut_user is declared.
55598
55599         * lib/readutmp.h (UT_USER): Define.
55600
55601 2000-01-29  Jim Meyering  <meyering@lucent.com>
55602
55603         * m4/lib-check.m4: New file containing library-related checks from
55604         fileutils and sh-utils (textutils had none).
55605
55606 2000-01-28  Jim Meyering  <meyering@lucent.com>
55607
55608         * m4/perl.m4: Change format of warning message to look more like that
55609         from the missing script.  Suggestion from François Pinard.
55610
55611 2000-01-25  Jim Meyering  <meyering@lucent.com>
55612
55613         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
55614         well as time.h in the compile check.
55615         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
55616         Fix typo in cross-compiling case: s/yes/no/.
55617
55618 2000-01-23  Jim Meyering  <meyering@lucent.com>
55619
55620         * m4/jm-macros.m4: Move df-related tests here from
55621         fileutils/configure.in
55622
55623         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
55624         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
55625
55626         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
55627         s/space/ac_fsusage_space/.
55628         (jm_FILE_SYSTEM_USAGE): Take two parameters.
55629
55630         * m4/ftruncate.m4: New file (derived from part of
55631         fileutils/configure.in).
55632         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
55633         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
55634
55635         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
55636         AC_SUBST these here, rather than just in sh-util/configure.in, so
55637         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
55638         all the same.
55639         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
55640         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
55641         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
55642         (AC_SUBST(POW_LIBM)): Likewise.
55643         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
55644
55645 2000-01-23  Jim Meyering  <meyering@lucent.com>
55646
55647         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
55648         obstack.c.
55649
55650 2000-01-22  Jim Meyering  <meyering@lucent.com>
55651
55652         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
55653
55654         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
55655
55656         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
55657         configure.in
55658         (AC_CHECK_HEADERS): Likewise for sh-utils.
55659         (AC_CHECK_HEADERS): Likewise for textutils.
55660         Merge the three lists of headers.
55661
55662         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
55663         from fileutils' configure.in.
55664
55665         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
55666         code. Moved tests into their own function (_jm_DECL_HEADERS) in
55667         check-decl.m4.
55668
55669         * m4/check-decl.m4: Use #if rather than #ifdef.
55670         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
55671         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
55672         (_jm_DECL_HEADERS): Define new function.
55673         (jm_CHECK_DECLARATIONS): Require it.
55674
55675 2000-01-22  Jim Meyering  <meyering@lucent.com>
55676
55677         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
55678         [! HAVE_DECL_STRTOULL]: Declare strtoull.
55679         Required for some AIX systems.  Reported by Christian Krackowizer.
55680         [TESTING] (main): New function.
55681
55682         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
55683         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
55684         letters.
55685
55686         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
55687         iswprint.
55688
55689         * lib/strverscmp.c (ISDIGIT): Define.
55690         (strverscmp): Use ISDIGIT, not isdigit.
55691
55692 2000-01-19  Jim Meyering  <meyering@lucent.com>
55693
55694         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
55695         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
55696         defines `struct timespec' in <sys/time.h>
55697
55698         * m4/c-bs-a.m4: Remove uses of changequote altogether.
55699         Thanks to Akim for explaining.
55700
55701 2000-01-17  Paul Eggert  <eggert@twinsun.com>
55702
55703         * lib/nanosleep.c (nanosleep):
55704         Don't use SA_INTERRUPT to decide whether to call sigaction, as
55705         POSIX.1 doesn't require SA_INTERRUPT and some systems
55706         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
55707         it's been part of POSIX.1 since day 1 (in 1988).
55708
55709 2000-01-17  Jim Meyering  <meyering@lucent.com>
55710
55711         * lib/interlock: Remove unused file.  Reported by François Pinard.
55712
55713 2000-01-16  Paul Eggert  <eggert@twinsun.com>
55714
55715         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
55716         alert, backslash, formfeed, and vertical tab unnecessarily in
55717         shell quoting style.
55718
55719 2000-01-16  Jim Meyering  <meyering@lucent.com>
55720
55721         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
55722         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
55723         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
55724         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
55725
55726 2000-01-16  Jim Meyering  <meyering@lucent.com>
55727
55728         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
55729         because the latter didn't work.
55730
55731 2000-01-15  Jim Meyering  <meyering@lucent.com>
55732
55733         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
55734         (AC_REPLACE_FUNCS): Add memcpy and memset.
55735         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
55736         Add strpbrk.
55737         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
55738
55739 2000-01-12  Jim Meyering  <meyering@lucent.com>
55740
55741         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
55742         (jm_PREREQ): Use it.
55743         (jm_PREREQ_READUTMP): New macro.
55744         (jm_PREREQ): Use it.
55745
55746 2000-01-11  Paul Eggert  <eggert@twinsun.com>
55747
55748         Quote multibyte characters correctly.
55749         * m4/c-bs-a.m4: New file.
55750         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
55751         (jm_PREREQ): Use it.
55752
55753 2000-01-11  Paul Eggert  <eggert@twinsun.com>
55754
55755         * m4/uintmax_t.m4: Port to autoconf 2.13.
55756
55757 2000-01-08  Jim Meyering  <meyering@ascend.com>
55758
55759         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
55760         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
55761
55762 2000-01-04  Jim Meyering  <meyering@ascend.com>
55763
55764         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
55765         jm_STRUCT_DIRENT_D_TYPE.
55766         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
55767         jm_STRUCT_DIRENT_D_INO.
55768         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
55769         jm_STRUCT_UTIMBUF.
55770         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
55771         renamings.
55772         * m4/utime.m4: Likewise.
55773
55774         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
55775         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
55776
55777 2000-01-03  Paul Eggert  <eggert@twinsun.com>
55778
55779         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
55780         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
55781
55782 2000-01-02  Jim Meyering  <meyering@ascend.com>
55783
55784         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
55785         remember if this is necessary.
55786
55787 1999-12-26  Jim Meyering  <meyering@ascend.com>
55788
55789         * m4/jm-macros.m4: Use it here.
55790         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
55791
55792 1999-12-23  Jim Meyering  <meyering@ascend.com>
55793
55794         * m4/jm-macros.m4: Check for clock_gettime (moved from
55795         fileutils/configure.in)
55796         Check for gettimeofday.
55797
55798 1999-12-20  Jim Meyering  <meyering@ascend.com>
55799
55800         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
55801         autoconf-2.14a-1999-12-20.
55802
55803 1999-12-19  Jim Meyering  <meyering@ascend.com>
55804
55805         * m4/lstat-slash.m4: New file.
55806         * m4/jm-macros.m4: Use the new macro:
55807         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55808
55809 1999-12-07  Jim Meyering  <meyering@ascend.com>
55810
55811         * m4/perl.m4: Require that File::Compare be available, too.
55812         Too many systems seem to lack it.
55813
55814         * m4/strftime.m4: Add checks for most of the cpp macros tested in
55815         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
55816
55817 1999-11-18  Paul Eggert  <eggert@twinsun.com>
55818
55819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
55820         problem with the QNX 4.25 shell, which doesn't propagate exit
55821         status of failed commands inside shell assignments.
55822
55823 1999-11-17  Jim Meyering  <meyering@ascend.com>
55824
55825         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
55826
55827 1999-11-07  Jim Meyering  <meyering@ascend.com>
55828
55829         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
55830
55831 1999-11-06  Jim Meyering  <meyering@ascend.com>
55832
55833         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
55834         * m4/jm-macros.m4 (jm_MACROS): Use it here.
55835
55836 1999-11-05  Jim Meyering  <meyering@ascend.com>
55837
55838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
55839         configure.in of textutils, fileutils, and sh-utils into this one
55840         (shared between those packages) file.
55841         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
55842         AC_STRUCT_ST_BLKSIZE.
55843
55844 1999-11-03  Jim Meyering  <meyering@ascend.com>
55845
55846         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
55847         of AC_CHECK_TYPE checks includes unistd.h.
55848         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
55849         Suggestion from Akim Demaille.
55850
55851 1999-10-30  Jim Meyering  <meyering@ascend.com>
55852
55853         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
55854         m4-quoted string.
55855         * m4/ls-mntd-fs.m4: Likewise.
55856         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
55857         * m4/jm-winsz1.m4: Likewise.
55858
55859         * m4/const.m4: Remove file, since the fix made it into the experimental
55860         version of autoconf.
55861         * m4/mktime.m4: Likewise.
55862
55863         * m4/check-type.m4: Remove file, now that the latest version of
55864         AC_CHECK_TYPE takes a third arg to specify additional #includes.
55865
55866         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
55867         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
55868         AC_CHECK_TYPE.
55869
55870 1999-10-04  Jim Meyering  <meyering@ascend.com>
55871
55872         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
55873
55874 1999-09-22  Paul Eggert  <eggert@twinsun.com>
55875
55876         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
55877         2.95.1 bug with HP-UX 10.20.
55878
55879 1999-09-17  Jim Meyering  <meyering@ascend.com>
55880
55881         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
55882         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
55883         due to missing strdup (against sh-utils-2.0).
55884
55885 1999-08-29  Jim Meyering  <meyering@ascend.com>
55886
55887         * m4/jm-macros.m4: Require jm_BISON.
55888         * m4/bison.m4: New file.
55889
55890 1999-08-17  Paul Eggert  <eggert@twinsun.com>
55891
55892         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
55893         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
55894
55895 1999-08-05  Jim Meyering  <meyering@ascend.com>
55896
55897         * m4/getline.m4: Rename test file from conftestdata to conftest.data
55898         to avoid conflicts with `conftest' on 8+3 filesystems.
55899         Suggestion from Eli Zaretskii.
55900
55901 1999-08-04  Jim Meyering  <meyering@ascend.com>
55902
55903         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
55904         fileutils and sh-utils (textutils's getline test was inadequate).
55905         (AM_FUNC_GETLINE): Run this test.
55906         (AC_CHECK_FUNCS): Check for getdelim.
55907         Reported by Bob Proulx.
55908
55909 1999-08-02  Jim Meyering  <meyering@ascend.com>
55910
55911         * m4/jm-macros.m4: Add a comment.
55912
55913 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55914
55915         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
55916         <inttypes.h> defines strtoumax as a macro (and not as a
55917         function).
55918
55919 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55920
55921         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
55922         that we can shift, multiply and divide unsigned long long
55923         values; Ultrix cc can't do it.
55924
55925 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55926
55927         * m4/mktime.m4: New file, which is a preview of what should appear
55928         in the next public autoconf release.
55929
55930 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55931
55932         * m4/lfs.m4: Remove this file.
55933         * m4/largefile.m4: New file.  It contains the old contents of
55934         lfs.m4, except that all names with prefix AC_LFS have been
55935         changed to use the prefix AC_SYS_LARGEFILE instead, to be
55936         compatible with future autoconf versions.  Also, some minor m4
55937         quoting problems have been fixed.
55938
55939 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55940
55941         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
55942         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
55943         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
55944         and simplify the shell code.
55945
55946 1999-08-01  Jim Meyering  <meyering@ascend.com>
55947
55948         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
55949         m4.
55950
55951 1999-07-20  Jim Meyering  <meyering@ascend.com>
55952
55953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
55954
55955 1999-07-15  Jim Meyering  <meyering@ascend.com>
55956
55957         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
55958
55959 1999-05-22  Jim Meyering  <meyering@ascend.com>
55960
55961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
55962
55963 1999-05-20  Jim Meyering  <meyering@ascend.com>
55964
55965         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
55966         Add a colon after each `then' in case $4 is empty.
55967
55968 1999-05-16  Jim Meyering  <meyering@ascend.com>
55969
55970         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
55971
55972 1999-05-10  Jim Meyering  <meyering@ascend.com>
55973
55974         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
55975
55976         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
55977         AC_FUNC_MKTIME.
55978
55979 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
55980
55981         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
55982
55983 1999-05-04  Paul Eggert  <eggert@twinsun.com>
55984
55985         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
55986         not CPPFLAGS, so that linking works correctly in IRIX.
55987
55988 1999-04-30  Paul Eggert  <eggert@twinsun.com>
55989
55990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
55991
55992 1999-04-20  Paul Eggert  <eggert@twinsun.com>
55993
55994         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
55995         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
55996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
55997         jm_AC_TYPE_UNSIGNED_LONG_LONG.
55998         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
55999
56000         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
56001
56002 1999-04-20  Jim Meyering  <meyering@ascend.com>
56003
56004         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
56005         AC_REPLACE xstroull if necessary.  From Paul Eggert.
56006         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
56007
56008 1999-04-18  Jim Meyering  <meyering@ascend.com>
56009
56010         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
56011         * m4/jm-macros.m4: Use it.
56012
56013 1999-04-06  Jim Meyering  <meyering@ascend.com>
56014
56015         * m4/strftime.m4: Remove test for %f.
56016
56017 1999-03-29  Jim Meyering  <meyering@ascend.com>
56018
56019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
56020         superset of the AC_TYPE_* checks in the textutils, fileutils,
56021         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
56022         AC_TYPE_PID_T.
56023
56024 1999-03-28  Jim Meyering  <meyering@ascend.com>
56025
56026         * m4/jm-macros.m4: Define GNU_PACKAGE here.
56027         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
56028         replaced e.g., in the *.sh files of the sh-utils.
56029
56030 1999-03-20  Jim Meyering  <meyering@ascend.com>
56031
56032         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
56033         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
56034         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
56035
56036 1999-03-19  Jim Meyering  <meyering@ascend.com>
56037
56038         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
56039
56040 1999-03-12  Jim Meyering  <meyering@ascend.com>
56041
56042         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
56043
56044 1999-03-07  Jim Meyering  <meyering@ascend.com>
56045
56046         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
56047         declared.
56048
56049 1999-02-17  Jim Meyering  <meyering@ascend.com>
56050
56051         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
56052         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
56053
56054 1999-02-07  Jim Meyering  <meyering@ascend.com>
56055
56056         * m4/group-member.m4: New file -- extracted from sh-utils'
56057         configure.in.
56058
56059         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
56060         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
56061
56062 1999-02-06  Jim Meyering  <meyering@ascend.com>
56063
56064         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
56065         * m4/fnmatch.m4: Likewise.
56066         * m4/getgroups.m4: Likewise.
56067         * m4/lstat.m4: Likewise.
56068         * m4/malloc.m4: Likewise.
56069         * m4/putenv.m4: Likewise.
56070         * m4/realloc.m4: Likewise.
56071         * m4/regex.m4: Likewise.
56072         * m4/stat.m4: Likewise.
56073         * m4/strftime.m4: Likewise.
56074         Suggestion from Alain Magloire.
56075
56076         * m4/chown.m4: Use `.$ac_objext', not `.o'.
56077         * m4/fnmatch.m4: Likewise.
56078         * m4/getgroups.m4: Likewise.
56079         * m4/getline.m4: Likewise.
56080         * m4/lstat.m4: Likewise.
56081         * m4/malloc.m4: Likewise.
56082         * m4/memcmp.m4: Likewise.
56083         * m4/putenv.m4: Likewise.
56084         * m4/realloc.m4: Likewise.
56085         * m4/regex.m4: Likewise.
56086         * m4/stat.m4: Likewise.
56087         * m4/strftime.m4: Likewise.
56088         Suggestion from Alain Magloire.
56089
56090         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
56091         an argument.
56092
56093         * m4/regex.m4: Add a run-time Test for proper operation of
56094         re_compile_pattern.
56095
56096 1999-01-31  Jim Meyering  <meyering@ascend.com>
56097
56098         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
56099
56100 1999-01-30  Jim Meyering  <meyering@ascend.com>
56101
56102         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
56103
56104         * m4/jm-mktime.m4: Make this a wrapper around the official
56105         AM_FUNC_MKTIME rather than my private copy, now that the official one
56106         is up to date.
56107         * m4/mktime.m4: Remove file.
56108
56109         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
56110         * m4/uptime.m4: Likewise.
56111         * m4/uintmax_t.m4: Likewise.
56112
56113 1999-01-28  Jim Meyering  <meyering@ascend.com>
56114
56115         * m4/jm-macros.m4: Use jm_AFS.
56116         * m4/afs.m4: New file (from fileutils' configure.in).
56117
56118         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
56119         * m4/chown.m4: Likewise.
56120         * m4/d-ino.m4: Likewise.
56121         * m4/d-type.m4: Likewise.
56122         * m4/fnmatch.m4: Likewise.
56123         * m4/getgroups.m4: Likewise.
56124         * m4/gettext.m4: Likewise.
56125         * m4/jm-mktime.m4: Likewise.
56126         * m4/jm-winsz2.m4: Likewise.
56127         * m4/lcmessage.m4: Likewise.
56128         * m4/ls-mntd-fs.m4: Likewise.
56129         * m4/malloc.m4: Likewise.
56130         * m4/memcmp.m4: Likewise.
56131         * m4/putenv.m4: Likewise.
56132         * m4/realloc.m4: Likewise.
56133         * m4/st_mtim.m4: Likewise.
56134         * m4/strftime.m4: Likewise.
56135
56136 1999-01-16  Jim Meyering  <meyering@ascend.com>
56137
56138         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
56139         (ARGMATCH_DIE_DECL): Define.
56140
56141 1999-01-12  Jim Meyering  <meyering@ascend.com>
56142
56143         * m4/Makefile.am.in: Rewrite to avoid using fmt.
56144         Reported by Lars Hecking.
56145
56146 1999-01-10  Jim Meyering  <meyering@ascend.com>
56147
56148         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
56149         gross kludge.
56150         * m4/inttypes_h.m4: Likewise.
56151         * m4/lstat.m4: Likewise.
56152         * m4/malloc.m4: Likewise.
56153         * m4/readdir.m4: Likewise.
56154         * m4/realloc.m4: Likewise.
56155         * m4/st_dm_mode.m4: Likewise.
56156         * m4/stat.m4: Likewise.
56157         * m4/utimbuf.m4: Likewise.
56158         * m4/utimes.m4: Likewise.
56159
56160         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
56161         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
56162         comments in config.h.in are meaningful.
56163
56164         * m4/jm-macros.m4: Require autoconf-2.13 here.
56165
56166         * m4/regex.m4: By default, don't use the included regex.c on systems
56167         with glibc 2.  Suggestion from Uli Drepper.
56168
56169 1999-01-02  Jim Meyering  <meyering@ascend.com>
56170
56171         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
56172
56173 1998-12-18  Jim Meyering  <meyering@ascend.com>
56174
56175         * m4/Makefile.am.in (Makefile.am): Simplify rule.
56176         Based on a suggestion from Lars Hecking.
56177
56178 1998-11-16  Paul Eggert  <eggert@twinsun.com>
56179
56180         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
56181
56182 1998-11-16  Jim Meyering  <meyering@ascend.com>
56183
56184         * m4/lfs.m4: Double-quote the `uname...` expression.
56185
56186 1998-11-14  Jim Meyering  <meyering@ascend.com>
56187
56188         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
56189         * m4/stat.m4: Likewise.
56190
56191 1998-11-03  Jim Meyering  <meyering@ascend.com>
56192
56193         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
56194         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
56195
56196 1998-10-18  Jim Meyering  <meyering@ascend.com>
56197
56198         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
56199
56200 1998-10-17  Jim Meyering  <meyering@ascend.com>
56201
56202         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
56203         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
56204         calls for those previously hard-coded headers.  Instead, take a new
56205         parameter.
56206         (jm_CHECK_DECLARATIONS): Reflect interface change.
56207         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
56208         (jm_CHECK_DECL_LOCALTIME_R): New macro.
56209
56210         * m4/mktime.m4: Test for spring-forward gap before long-running test.
56211
56212 1998-10-14  Jim Meyering  <meyering@ascend.com>
56213
56214         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
56215         instead of "TZ=America/Vancouver".  From Paul Eggert.
56216
56217 1998-10-11  Jim Meyering  <meyering@ascend.com>
56218
56219         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
56220         This adds a test for a recently added compatibility fix for mktime.c.
56221         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
56222
56223 1998-09-27  Jim Meyering  <meyering@ascend.com>
56224
56225         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
56226
56227         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
56228         ../configure.in, including a change from Gordon Matzigkeit to allow
56229         cross-compiling for the Hurd.
56230
56231         * m4/glibc.m4: New file/macro to test for the GNU C Library
56232         versions 1 and 2.  From Gordon Matzigkeit.
56233         Indent.
56234
56235 1998-09-21  Jim Meyering  <meyering@ascend.com>
56236
56237         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
56238
56239 1998-08-18  Paul Eggert  <eggert@twinsun.com>
56240
56241         Port nanosecond-resolution times to UnixWare 2.1.2 and
56242         pedantic Solaris 2.6.
56243
56244         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
56245         AC_STRUCT_ST_MTIM.
56246         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
56247         Generate name of ns member, instead of just 1 or undef.
56248         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
56249
56250 1998-08-15  Jim Meyering  <meyering@ascend.com>
56251
56252         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
56253         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
56254         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
56255         instead of jm_TYPE_SSIZE_T.
56256
56257 1998-08-12  Jim Meyering  <meyering@ascend.com>
56258
56259         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
56260
56261 1998-08-02  Jim Meyering  <meyering@ascend.com>
56262
56263         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
56264         in acconfig.h manually.
56265
56266 1998-07-31  Paul Eggert  <eggert@twinsun.com>
56267
56268         * m4/st_mtim.m4: New file.
56269
56270 1998-07-28  Jim Meyering  <meyering@ascend.com>
56271
56272         * m4/utimes.m4: Undef stat.
56273
56274 1998-07-25  Jim Meyering  <meyering@ascend.com>
56275
56276         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
56277         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
56278
56279 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
56280
56281         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
56282         uid and gid actually remain unchanged.
56283
56284 1998-07-07  Jim Meyering  <meyering@ascend.com>
56285
56286         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
56287
56288 1998-07-04  Jim Meyering  <meyering@ascend.com>
56289
56290         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
56291         to prove that this macro can be used in packages without regex.c.
56292
56293 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
56294
56295         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
56296         is to be used.
56297
56298 1998-07-03  Jim Meyering  <meyering@ascend.com>
56299
56300         * m4/gettext.m4: Add -lintl if it's found to be necessary.
56301
56302         * m4/gettext.m4: New file -- from gettext-0.10.35.
56303         * m4/lcmessage.m4: Likewise.
56304         * m4/progtest.m4: Likewise.
56305
56306         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
56307         * m4/jm-macros.m4: Require the new macro.
56308
56309 1998-06-29  Jim Meyering  <meyering@ascend.com>
56310
56311         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
56312         for the definition of NGROUPS (used in a system header included
56313         by sys/mount.h).
56314
56315 1998-06-28  Jim Meyering  <meyering@ascend.com>
56316
56317         * m4/ls-mntd-fs.m4: New file.
56318         * m4/fstypename.m4: New file.
56319
56320         * m4/jm-macros.m4: Require the new macro.
56321         * m4/jm-glibc-io.m4: New file.
56322
56323 1998-05-19  Jim Meyering  <meyering@ascend.com>
56324
56325         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
56326         * m4/lchown.m4: New file.
56327
56328         * m4/Makefile.am.in: New file.
56329         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
56330
56331 1998-05-14  Jim Meyering  <meyering@ascend.com>
56332
56333         * m4/Makefile.am (EXTRA_DIST): Add them.
56334         * m4/jm-macros.m4: New file.
56335         * m4/utimbuf.m4: New file.
56336
56337 1998-05-12  Jim Meyering  <meyering@ascend.com>
56338
56339         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
56340
56341 1998-05-11  Jim Meyering  <meyering@ascend.com>
56342
56343         * m4/isc-posix.m4: New file.
56344
56345 1998-05-10  Jim Meyering  <meyering@ascend.com>
56346
56347         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
56348
56349 1998-05-09  Jim Meyering  <meyering@ascend.com>
56350
56351         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
56352         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
56353         with automake.
56354
56355         * m4/ssize_t.m4: New file.
56356         * m4/mktime.m4: Remove file -- the new automake has this now.
56357
56358 1998-04-26  Jim Meyering  <meyering@ascend.com>
56359
56360         * m4/assert.m4: New file.
56361         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
56362
56363 1998-04-05  Jim Meyering  <meyering@ascend.com>
56364
56365         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
56366         (jm_PREREQ): Use it here.
56367
56368 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
56369
56370         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
56371         in acconfig.h.
56372
56373 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
56374
56375         * m4/prereq.m4: New file.
56376         * m4/error.m4: New file.
56377         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
56378
56379 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
56380
56381         * m4/getline.m4: Don't set am_cv_func_working_getline before the
56382         cache-check for the same variable -- that defeated the purpose of
56383         the test; the test program was never run.  This was a problem only
56384         on systems with losing getline functions -- HP-UX 10.20 is one.
56385         Reported by Bjorn Helgaas.
56386
56387 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
56388
56389         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
56390
56391 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
56392
56393         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
56394
56395         * m4/const.m4: New file.  Use an initializer in this declaration
56396         typedef int charset[2]; const charset x;
56397         Reported by Bob Glickstein.
56398
56399 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
56400
56401         * m4/chown.m4: Fix reversed types on -1 args to chown.
56402         From Kaveh Ghazi.
56403
56404 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
56405
56406         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
56407         Add lseek and memchr.
56408
56409         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
56410         T.E.Dickey <dickey@clark.net> said that some older preprocessors
56411         have a 20-character limit on names.
56412
56413 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
56414
56415         * m4/inttypes_h.m4: New file.
56416         * m4/uintmax_t.m4: New file.
56417         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
56418
56419
56420         -----
56421
56422         Local Variables:
56423         coding: utf-8
56424         End:
56425
56426         Copyright (C) 1997-2009 Free Software Foundation, Inc.
56427
56428         Copying and distribution of this file, with or without
56429         modification, are permitted provided the copyright notice
56430         and this notice are preserved.