build: don't try to run autoheader if we don't use it
[gnulib.git] / ChangeLog
1 2009-09-08  Jim Meyering  <meyering@redhat.com>
2
3         build: don't try to run autoheader if we don't use it
4         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
5         is not used in configure.ac.
6
7 2009-09-08  Eric Blake  <ebb9@byu.net>
8
9         euidaccess: fix compilation error
10         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11
12         rawmemchr: relax license
13         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14         okay.
15         Reported by Jim Meyering.
16
17         mkfifoat: new module
18         * modules/mkfifoat: New file.
19         * lib/mkfifoat.c: Likewise.
20         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
21         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22         * modules/sys_stat (Makefile.am): Use them.
23         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24         * MODULES.html.sh (File system functions): Mention module.
25         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27         * modules/mkfifoat-tests: New test.
28         * tests/test-mkfifoat.c: Likewise.
29
30         strchrnul: relax license
31         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32         okay.
33         Reported by Jim Meyering.
34
35 2009-09-08  Eric Blake  <ebb9@byu.net>
36
37         fstatat: fix compilation on Solaris
38         * lib/fstatat.c (includes): Add fcntl.h.
39         Reported by Pádraig Brady.
40
41 2009-09-07  Eric Blake  <ebb9@byu.net>
42
43         rename: modernize replacement
44         * modules/rename (Depends-on): Add stdio.
45         (configure.ac): Declare witness.
46         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
47         stdio take care of replacement.
48         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49         * modules/stdio (Makefile.am): Substitute them.
50         * lib/stdio.in.h (rename): Declare replacement.
51         * lib/rename.c (includes): Allow cross-compilation to non-windows
52         machines.
53         * doc/posix-functions/rename.texi (rename): Improve
54         documentation.
55
56         stdio: sort witness names
57         * modules/stdio (Makefile.am): Sort replacements.
58         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59         * lib/stdio.in.h: Likewise.
60
61         getcwd: minor cleanups
62         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
63         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64
65         openat: provide more convenience names
66         * modules/faccessat (configure.ac): Add C witness.
67         * lib/unistd.in.h (readlinkat): Fix typo.
68         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
69         convenience wrappers.
70         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
71         wrappers in syntax checks.
72
73 2009-09-06  Eric Blake  <ebb9@byu.net>
74
75         doc: fix comments in recent patches
76         * lib/faccessat.c: Mention correct function.
77         * lib/fchmodat.c: Likewise.
78         * lib/fchownat.c: Likewise.
79         * lib/symlinkat.c: Likewise.
80         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
81         constants.
82
83         faccessat, symlinkat: continue cleanup of previous patch
84         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
85         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
86         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
87         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
88         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
89         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
90         set.
91
92 2009-09-06  Bruno Haible  <bruno@clisp.org>
93
94         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
95         (fstatat): Declare if GNULIB_FSTATAT is set.
96         (mkdirat): Declare if GNULIB_MKDIRAT is set.
97         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
98         (unlinkat): Declare if GNULIB_UNLINKAT is set.
99         * modules/fcntl-h (Files): Remove m4/openat.m4.
100         * modules/sys_stat (Files): Remove m4/openat.m4.
101         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
102         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
103         * modules/unistd (Files): Remove m4/openat.m4.
104         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
105         GNULIB_OPENAT.
106         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
107         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
109         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
110         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
111         gl_OPENAT_DEFAULTS.
112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
113         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
114         Don't require gl_OPENAT_DEFAULTS.
115         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
116         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
117         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
118         (gl_OPENAT_DEFAULTS): Remove macro.
119
120 2009-09-06  Bruno Haible  <bruno@clisp.org>
121
122         * modules/openat (configure.ac): Remove unneeded witness.
123
124 2009-09-06  Bruno Haible  <bruno@clisp.org>
125
126         Set errno to ENOSYS when a function is entirely unsupported.
127         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
128         EOPNOTSUPP.
129         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
130         * modules/chown (Depends-on): Remove errno.
131
132 2009-09-06  Bruno Haible  <bruno@clisp.org>
133
134         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
135
136 2009-09-06  Bruno Haible  <bruno@clisp.org>
137
138         * lib/sys_stat.in.h: Fix preprocessor command indentation.
139
140 2009-09-06  Ben Pfaff  <blp@gnu.org>
141             Bruno Haible  <bruno@clisp.org>
142
143         Work around a glibc bug in strtok_r.
144         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
145         Undefine if UNDEFINE_STRTOK_R is set.
146         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
148         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
149         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
150         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
151         UNDEFINE_STRTOK_R.
152         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
153
154 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
155
156         exclude: minor fix
157         * lib/exclude.c: Include wctype.h
158
159 2009-09-06  Akim Demaille  <demaille@gostai.com>
160
161         bootstrap: improve error message
162         * build-aux/bootstrap (find_tool): Upon failure, report the list
163         of candidates.
164         Honor the initial value of the envvar.
165
166 2009-09-05  Eric Blake  <ebb9@byu.net>
167
168         symlinkat: new module
169         * modules/symlinkat: New file.
170         * lib/symlinkat.c: Likewise.
171         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
173         * modules/unistd (Makefile.am): Use them.
174         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
175         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
176         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
177         * MODULES.html.sh (File system functions): Mention module.
178         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
179         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
180         * modules/symlinkat-tests: New test.
181         * tests/test-symlinkat.c: Likewise.
182
183         test-openat-safer: add more checks
184         * tests/test-openat-safer.c (main): Check more code paths.
185
186 2009-09-05  Jim Meyering  <meyering@redhat.com>
187
188         syntax-check: detect unnecessary inclusion of openat.h
189         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
190
191 2009-09-05  Bruno Haible  <bruno@clisp.org>
192
193         Support towlower, towupper.
194         * doc/posix-functions/towlower.texi: Mention module wctype.
195         * doc/posix-functions/towupper.texi: Likewise.
196         * lib/wctype.in.h (towlower, towupper): New functions.
197         * tests/test-wctype.c: Include stdio.h, stdlib.h.
198         (ASSERT): New macro.
199         (e): New variable.
200         (main): Test also towlower, towupper. Test WEOF argument.
201         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
202
203 2009-09-05  Bruno Haible  <bruno@clisp.org>
204
205         Fix conversion behaviour when the input is invalid.
206         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
207         mark occurring in first pass of indirect conversion.
208         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
209         input.
210         Found by clang's static analyzer.
211
212 2009-09-05  Bruno Haible  <bruno@clisp.org>
213
214         * tests/test-striconveh.c (main): Test indirect conversion on platforms
215         where direct conversion is possible.
216
217 2009-09-04  Eric Blake  <ebb9@byu.net>
218
219         openat: fail with ENOENT on empty name
220         * lib/openat-proc.c (openat_proc_name): Special-case the empty
221         buffer.
222
223         link-follow: fix logic bug in prior patch
224         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
225         reversed sense of yes and no in prior patch.  Avoid confusing
226         compilation failure with desired semantics.
227
228         link-follow: accomodate mingw and cross-compilation
229         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
230         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
231         cross-compilation results to -1, to make linkat easier to
232         implement when cross-compiling.  Trivially support mingw.
233         * modules/link-follow (configure.ac): Call new name.
234         * NEWS: Mention this.
235
236 2009-09-03  Eric Blake  <ebb9@byu.net>
237
238         faccessat: compile replacement
239         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
240         needed.
241
242         fts: fix compilation error
243         * lib/fts.c (includes): Re-add "openat.h", for
244         openat_needs_fchdir.
245
246         faccessat: new module
247         * modules/faccessat: New file.
248         * lib/faccessat.c: Likewise.
249         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
251         * modules/unistd (Makefile.am): Use it.
252         * lib/unistd.in.h (faccessat): Declare it.
253         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
254         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
255         * MODULES.html.sh (File system functions): Mention it.
256         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
257         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
258
259         euidaccess: prefer POSIX over non-standard implementation
260         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
261         * lib/euidaccess.c (euidaccess): Use it if available.
262
263         openat: make template easier to use
264         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
265         AT_FUNC_F2 to be undefined.
266         (VALIDATE_FLAG): New macro; use it to reject bad flags.
267         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
268         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
269         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
270         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
271         Likewise.
272         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
273         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
274         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
275         Likewise.
276
277         openat: declare in POSIX headers
278         * NEWS: Mention this.
279         * modules/openat (configure.ac): Declare witnesses.
280         (Depends-on): Add fcntl-h, sys_stat, unistd.
281         (Include): Mention correct headers.
282         * modules/fcntl-h (Depends-on): Add link-warning.
283         (Files): Add openat.m4.
284         (Makefile.am): Substitute witnesses.
285         * modules/sys_stat (Files, Makefile.am): Likewise.
286         * modules/unistd (Files, Makefile.am): Likewise.
287         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
288         (gl_OPENAT_DEFAULTS): New macro.
289         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
291         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
292         (SYS_STAT_H): Remove unused variable.
293         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
294         * lib/fcntl--.h (includes): Remove unneeded header.
295         * lib/openat-safer.c (includes): Likewise.
296         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
297         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
298         appropriate headers.
299         (__OPENAT_PREFIX): Delete.
300         * lib/fcntl.in.h (openat): Provide declaration.
301         (AT_FDCWD): Fix Solaris bug.
302         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
303         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
304         * lib/fchmodat.c (includes):  Adjust to find declaration.
305         * lib/fchownat.c (includes): Likewise.
306         * lib/mkdirat.c (includes): Likewise.
307         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
308         still visible.
309
310 2009-09-02  Eric Blake  <ebb9@byu.net>
311
312         errno: use consistently
313         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
314         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
315         * lib/canonicalize.c (ELOOP): Likewise.
316         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
317         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
318         * lib/lchown.c (EOPNOTSUPP): Likewise.
319         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
320         * lib/savewd.c (ESTALE): Likewise.
321         * lib/settime.c (ENOSYS): Likewise.
322         * lib/utimens.c (ENOSYS): Likewise.
323         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
324         * lib/chdir-safer.c (ELOOP): Likewise.
325         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
326         * modules/c-stack (Depends-on): Add errno.
327         * modules/canonicalize (Depends-on): Likewise.
328         * modules/chdir-safer (Depends-on): Likewise.
329         * modules/fdopendir (Depends-on): Likewise.
330         * modules/inet_ntop (Depends-on): Likewise.
331         * modules/inet_pton (Depends-on): Likewise.
332         * modules/lchown (Depends-on): Likewise.
333         * modules/openat (Depends-on): Likewise.
334         * modules/savewd (Depends-on): Likewise.
335         * modules/settime (Depends-on): Likewise.
336         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
337
338         fts: avoid leaking fds
339         * modules/fts (Depends-on): Add cloexec.
340         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
341         flag.
342
343         fts: make directory fds more robust
344         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
345         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
346
347         backupfile, chdir-long, fts, savedir: make safer
348         * lib/backupfile.c (includes): Use "dirent--.h", since
349         numbered_backup can write to stderr during readdir.
350         * lib/savedir.c (includes): Likewise.
351         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
352         emulation can write to stderr on failure.
353         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
354         * lib/getcwd.c: Document why opendir_safer is unused.
355         * lib/glob.c: Likewise.
356         * lib/scandir.c: Likewise.
357         * lib/openat-proc.c: Likewise, for open_safer.
358         * modules/backupfile (Depends-on): Add dirent-safer.
359         * modules/savedir (Depends-on): Likewise.
360         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
361         * modules/chdir-long (Depends-on): Add openat-safer.
362
363         openat-safer: new module
364         * modules/openat-safer: New file.
365         * lib/openat-safer.c: Likewise.
366         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
367         * lib/fcntl-safer.h (openat_safer): Declare.
368         * lib/fcntl--.h (openat): Override.
369         * MODULES.html.sh (File descriptor based I/O): Mention it.
370         * lib/openat.h: Add double-inclusion guards.
371         * lib/openat.c (includes): Only include "fcntl-safer.h", not
372         "fcntl--.h", so we can implement openat.
373         * modules/openat-safer-tests: New test.
374         * tests/test-openat-safer.c: New file.
375
376         dirent-safer: new module
377         * modules/dirent-safer: New file.
378         * lib/dirent--.h: Likewise.
379         * lib/dirent-safer.h: Likewise.
380         * lib/opendir-safer.c: Likewise.
381         * m4/dirent-safer.m4: Likewise.
382         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
383         * modules/dirent-safer-tests: New test.
384         * tests/test-dirent-safer.c: New file.
385         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
386
387         fdopendir: optimize on mingw
388         * lib/unistd.in.h (_gl_directory_name): New prototype.
389         * lib/fchdir.c (_gl_directory_name): Implement it.
390         (fchdir): Use it to simplify implementation.
391         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
392         fchdir, when available, to avoid calling [f]chdir().
393
394         fdopendir: split into its own module
395         * lib/openat.c (fdopendir): Move...
396         * lib/fdopendir.c: ...into new file.
397         * modules/fdopendir: New module.
398         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
399         * modules/openat (Depends-on): Add fdopendir.
400         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
401         fdopendir here.
402         * modules/savedir (Depends-on): Only need fdopendir, not full
403         openat.
404         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
405         * lib/openat.h (fdopendir): Drop prototype.
406         * lib/dirent.in.h (fdopendir): Provide prototype.
407         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
408         * modules/dirent (Makefile.am): Substitute them.
409         * MODULES.html.sh (File system functions): Mention it.
410         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
411         * modules/fdopendir-tests: New file.
412         * tests/test-fdopendir.c: Likewise.
413
414         fchdir: use more consistent macro convention
415         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
416         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
417         REPLACE_FCHDIR, rather than relying on config.h macros.
418         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
419         inside a single make-time REPLACE_FCHDIR block, rather than using
420         the config.h FCHDIR_REPLACEMENT.
421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
422         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
423         Manage fstat replacement.
424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
425         REPLACE_FCHDIR.
426         * modules/sys_stat (Files): Add m4/unistd_h.m4.
427         (Makefile.am): Substitute REPLACE_FCHDIR.
428         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
429         FCHDIR_REPLACEMENT.
430         * lib/dup-safer.c (dup_safer): Likewise.
431         * lib/dup2.c (rpl_dup2): Likewise.
432         * lib/dup3.c (rpl_dup3): Likewise.
433         * lib/open.c (rpl_open): Likewise.
434
435         fchdir: simplify error handling, and support dup3
436         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
437         stdbool, malloc-posix, realloc-posix.
438         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
439         (ensure_dirs_slot): Return false on allocation failure.
440         (rpl_dup2): Delete.
441         (_gl_register_dup): New function.
442         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
443         (_gl_register_fd): Close fd on allocation failure.
444         * lib/fcntl.in.h (_gl_register_fd): Update signature.
445         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
446         prototype.
447         (rpl_dup2_fchdir): Delete prototype.
448         * lib/open.c (open): Update caller.
449         * lib/dup2.c (dup2): Track fchdir metadata.
450         * lib/dup3.c (dup3): Likewise.
451         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
453
454 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
455
456         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
457         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
458         don't pass arguments to AC_OUTPUT.
459
460 2009-09-02  Bruno Haible  <bruno@clisp.org>
461
462         * modules/mkdtemp (License): Relicense under LGPLv2+.
463         Reported by Paolo Bonzini.
464
465 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
466
467         Replace uses of obsolete autoconf macros in Jim's modules.
468         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
469         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
470         can evoke a warning from autoconf when run with -Wobsolete
471         enabled.  They were declared obsolete for good reasons (see
472         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
473         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
474         should not continue using the deprecated macros.
475         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
476         obsolete Autoconf macros with modern counterparts.
477         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
478         * m4/dos.m4 (gl_AC_DOS): Likewise.
479         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
481         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
482         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
483         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
485         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
486         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
487         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
488         Likewise.
489         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
490         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
491         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
492         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
493         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
494         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
495
496 2009-09-01  Eric Blake  <ebb9@byu.net>
497
498         fchdir: fix off-by-one bug in previous patch
499         * lib/fchdir.c (rpl_fstat): Use correct bounds.
500         (_gl_unregister_fd): Delete useless if.
501
502 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
503
504         maint.mk: sort the list of syntax-check rules
505         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
506         easier to get a sense of progress when the rules are run sequentially
507         and take a long time.
508
509 2009-09-01  Simon Josefsson  <simon@josefsson.org>
510
511         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
512         * modules/netinet_in: Likewise.
513         * modules/sys_file: Likewise.
514         * modules/sys_ioctl: Likewise.
515         * modules/sys_select: Likewise.
516         * modules/sys_socket: Likewise.
517         * modules/sys_stat: Likewise.
518         * modules/sys_time: Likewise.
519         * modules/sys_times: Likewise.
520         * modules/sys_utsname: Likewise.
521         * modules/sys_wait: Likewise.
522
523 2009-09-01  Jim Meyering  <meyering@redhat.com>
524
525         fts: help ensure that return values are not ignored
526         * lib/fts_.h (__GNUC_PREREQ): Define.
527         (__attribute_warn_unused_result__): Define.
528         (fts_children, fts_close, fts_open, fts_read): Declare with
529         __attribute_warn_unused_result__.
530
531         fts: fts_close now fails also when closing a dir file descriptor fails
532         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
533         and propagate to caller, along with errno.
534
535         announce-gen: correct formatting in --help output
536         * build-aux/announce-gen (usage): Move the one-line description in
537         --help output "up", to where it belongs, just after Usage:.
538
539 2009-08-31  Eric Blake  <ebb9@byu.net>
540
541         fchdir: port to mingw
542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
543         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
544         opened, then use a substitute.
545         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
546         replacement.
547         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
548         (_gl_register_fd): No need to check stat if open already filters
549         all directories.
550         (fchdir): Fix error condition to match POSIX.
551         * modules/fchdir (Depends-on): Add sys_stat.
552         * doc/posix-functions/open.texi (open): Document the limitation.
553         * modules/fchdir-tests: New file.
554         * tests/test-fchdir.c: Likewise.
555
556         canonicalize: allow cross-testing from cygwin to mingw
557         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
558         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
559         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
560         Likewise.
561         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
562         target does not support symlinks.
563         * tests/test-canonicalize-lgpl.sh: Likewise.
564
565         chown: avoid compilation warning on mingw
566         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
567         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
568         mingw.
569         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
570         * modules/chown (Depends-on): Add errno.
571
572 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
573
574         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
575         command.
576
577 2009-08-31  Jim Meyering  <meyering@redhat.com>
578
579         canonicalize: remove useless initialization
580         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
581         initialization of local, "end".
582
583 2009-08-30  Bruno Haible  <bruno@clisp.org>
584
585         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
586         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
587         ENOSYS.
588
589 2009-08-30  Bruno Haible  <bruno@clisp.org>
590
591         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
592         /usr/xpg4/bin/tr when it exists.
593         * tests/test-pipe-filter-gi1.sh: Likewise.
594
595 2009-08-30  Bruno Haible  <bruno@clisp.org>
596
597         Work around deficient /usr/bin/id program on Solaris.
598         * tests/test-file-has-acl.sh (ID): New variable.
599         * tests/test-set-mode-acl.sh (ID): Likewise.
600         * tests/test-copy-acl.sh (ID): Likewise.
601         * tests/test-copy-file.sh (ID): Likewise.
602
603 2009-08-30  Bruno Haible  <bruno@clisp.org>
604
605         New module 'xstriconveh'.
606         * lib/xstriconveh.h: New file.
607         * lib/xstriconveh.c: New file.
608         * modules/xstriconveh: New file.
609
610 2009-08-30  Bruno Haible  <bruno@clisp.org>
611
612         Make it easier to use mem_cd_iconveh.
613         * lib/striconveh.h (iconveh_t): New type.
614         (iconveh_open, iconveh_close): New declarations.
615         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
616         with a single 'const iconveh_t *' argument.
617         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
618         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
619         with a single 'const iconveh_t *' argument.
620         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
621         * tests/test-striconveh.c (main): Update.
622         * NEWS: Mention the change.
623
624 2009-08-30  Bruno Haible  <bruno@clisp.org>
625
626         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
627         problem.
628
629 2009-08-30  Bruno Haible  <bruno@clisp.org>
630
631         Work around iconv_open problem on Solaris.
632         * lib/iconv_open-solaris.gperf: New file.
633         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
634         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
635         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
636         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
637         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
638         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
639
640 2009-08-29  Jim Meyering  <meyering@redhat.com>
641
642         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
643         * top/maint.mk (cvs-check): Remove target; it was just an alias
644         to the better-named vc-diff-check.
645         (maintainer-distcheck): Remove rule.  It was used only from
646         the (alpha/beta/major) target, and all of its commands but one
647         were coreutils-specific.
648         (vc-dist): Remove rule.
649         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
650         Run vc-diff-check, not vc-dist.
651         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
652
653 2009-08-27  Bruno Haible  <bruno@clisp.org>
654
655         * tests/test-bitrotate.c (main): Remove test that uses a shift count
656         of 0.
657
658 2009-08-27  Bruno Haible  <bruno@clisp.org>
659
660         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
661         compilers.
662         * doc/func.texi: Document the SunPRO C bug.
663
664 2009-08-27  Bruno Haible  <bruno@clisp.org>
665
666         Fix link error on Solaris.
667         * tests/test-parse-duration.c (xstrdup): Remove function.
668
669 2009-08-26  Pádraig Brady  <P@draigbrady.com>
670
671         ignore-value: handle pointer types, too
672         * lib/ignore-value.h (__attribute__): Remove definition.
673         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
674         of a more concise and more-often effective "(void) i" statement.
675         (ignore_ptr): New function to suppress warnings from functions that
676         return pointers, and to make it explicit that one function doesn't
677         handle all cases.
678
679 2009-08-25  Bruno Haible  <bruno@clisp.org>
680
681         dup2: work around a Linux bug.
682         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
683         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
684         * doc/posix-functions/dup2.texi: Mention the Linux bug.
685         Reported by Simon Josefsson.
686
687 2009-08-25  Jim Meyering  <meyering@redhat.com>
688
689         libguestfs uses gnulib
690         * users.txt: Add libguestfs.
691
692 2009-08-24  Eric Blake  <ebb9@byu.net>
693
694         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
695         * lib/pipe2.c (includes): Add binary-io.h.
696         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
697
698 2009-08-24  Bruno Haible  <bruno@clisp.org>
699
700         Tolerate declared but missing accept4 syscall.
701         * lib/accept4.c (accept4): Invoke original accept4 function first, if
702         available.
703         * lib/sys_socket.in.h (accept4): If the function is already present,
704         override it.
705         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
706         * modules/accept4 (Makefile.am): Compile accept4.c always.
707         Reported by Paolo Bonzini and Eric Blake.
708
709 2009-08-23  Bruno Haible  <bruno@clisp.org>
710
711         New module 'accept4'.
712         * lib/sys_socket.in.h (accept4): New declaration.
713         * lib/accept4.c: New file.
714         * m4/accept4.m4: New file.
715         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
716         GNULIB_ACCEPT4, HAVE_ACCEPT4.
717         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
718         HAVE_ACCEPT4.
719         * modules/accept4: New file.
720         * doc/glibc-functions/accept4.texi: Mention the new module.
721
722 2009-08-24  Jim Meyering  <meyering@redhat.com>
723
724         progname: also set global program_invocation_name, when possible
725         Before this change, a libtool-enabled program that calls glibc's
726         error function would report the program name as
727         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
728         * modules/progname (configure.ac): Check for a declaration of
729         program_invocation_name.
730         * lib/progname.c:  Include <errno.h>.
731         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
732         Set program_invocation_name.
733
734 2009-08-23  Bruno Haible  <bruno@clisp.org>
735
736         * lib/dup3.c: Include <string.h>.
737
738 2009-08-23  Bruno Haible  <bruno@clisp.org>
739
740         * lib/dup3.c (dup3): Test only once whether the system actually exists.
741         * lib/pipe2.c (pipe2): Likewise.
742         Suggested by Eric Blake.
743
744 2009-08-23  Bruno Haible  <bruno@clisp.org>
745
746         Tolerate declared but missing dup3 syscall.
747         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
748         * lib/unistd.in.h (dup3): If the function is already present,
749         override it.
750         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
751         * modules/dup3 (Makefile.am): Compile dup3.c always.
752         Reported by Paolo Bonzini.
753
754 2009-08-23  Bruno Haible  <bruno@clisp.org>
755
756         Tolerate declared but missing pipe2 syscall.
757         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
758         available.
759         * lib/unistd.in.h (pipe2): If the function is already present,
760         override it.
761         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
762         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
763         Reported by Paolo Bonzini.
764
765 2009-08-23  Bruno Haible  <bruno@clisp.org>
766
767         * lib/pipe2.c (pipe2): Move #ifs inside function.
768
769 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
770
771         quotearg: document limitations of quote_these_too
772         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
773         those limitations are created.
774         * lib/quotearg.h (set_char_quoting): Document that digits and
775         letters that are special after backslash are not permitted.
776         (quotearg_char): Cross-reference set_char_quoting documentation.
777
778 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
779
780         quotearg: implement custom_quoting_style
781         * lib/quotearg.c: (struct quoting_options): Add left_quote and
782         right_quote fields.
783         (set_custom_quoting): New public function.
784         (quotearg_buffer_restyled): Add left_quote and right_quote
785         arguments, handle them very much like locale quoting, and update
786         all uses.
787         (quotearg_n_custom): New public function.
788         (quotearg_n_custom_mem): New public function.
789         (quotearg_custom): New public function.
790         (quotearg_custom_mem): New public function.
791         * lib/quotearg.h: Prototype and document new public functions.
792         (enum quoting_style): For escape_quoting_style and
793         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
794         ignored even though they're otherwise like c_quoting_style.
795         Add custom_quoting_style member and document with comparison to
796         clocale_quoting_style.
797         * tests/test-quotearg.c (custom_quotes): New array.
798         (custom_results): New array.
799         (main): Extend to test custom quoting.
800
801 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
802
803         quotearg: fix right quote escaping when it's in quote_these_too
804         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
805         quote, be sure to prepend only one backslash.
806         * tests/test-quotearg.c (use_quote_double_quotes): New function.
807         (main): Test it.
808
809 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
810
811         quotearg-tests: test escaping of embedded locale quotes
812         * tests/test-quotearg.c (struct result_strings): Add member for
813         new input.
814         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
815         (inputs): Add new input.
816         (results_g): Add expected results.
817         (flag_results): Likewise.
818         (locale_results): Likewise.
819         (compare_strings): Check those.
820
821 2009-08-23  Bruno Haible  <bruno@clisp.org>
822
823         Tests for module 'dup3'.
824         * modules/dup3-tests: New file.
825         * tests/test-dup3.c: New file.
826
827         New module 'dup3'.
828         * lib/unistd.in.h (dup3): New declaration.
829         * lib/dup3.c: New file.
830         * m4/dup3.m4: New file.
831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
832         HAVE_DUP3.
833         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
834         * modules/dup3: New file.
835         * doc/glibc-functions/dup3.texi: Mention the new module.
836
837 2009-08-23  Bruno Haible  <bruno@clisp.org>
838
839         Tweak the dup2 test.
840         * tests/test-dup2.c (main): Create the test file empty. Verify that an
841         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
842         the test file is still empty. Fix argument order of lseek.
843
844 2009-08-23  Bruno Haible  <bruno@clisp.org>
845
846         Avoid test link errors when the modules getopt-gnu, gettext are used.
847         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
849
850 2009-08-23  Bruno Haible  <bruno@clisp.org>
851
852         Fix getdtablesize() on mingw.
853         * lib/getdtablesize.c (getdtablesize): Implement differently.
854         * lib/unistd.in.h (getdtablesize): Improve comment.
855
856 2009-08-23  Bruno Haible  <bruno@clisp.org>
857
858         New module 'mkostemp'.
859         Based on Ulrich Drepper's 2007-08-10 change in glibc.
860         * lib/stdlib.in.h (mksotemp): New declaration.
861         * lib/mkostemp.c: New file, from glibc with modifications.
862         * lib/tempname.h (GT_FILE): Remove outdated comment.
863         (gen_tempname): Add flags argument.
864         * lib/tempname.c (__GT_BIGFILE): Remove macro.
865         (__GT_FILE): Map to 1.
866         (small_open, large_open): Remove macros.
867         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
868         * lib/mkstemp.c (mkstemp): Update.
869         * lib/mkdtemp.c (mkdtemp): Likewise.
870         * m4/mkostemp.m4: New file.
871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
872         HAVE_MKOSTEMP.
873         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
874         HAVE_MKOSTEMP.
875         * modules/mkostemp: New file, based on modules/mkstemp.
876         * doc/glibc-functions/mkostemp.texi: Mention the new module.
877         * NEWS: Mention the change.
878
879 2009-08-23  Bruno Haible  <bruno@clisp.org>
880
881         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
882         Reported by Eric Blake.
883
884 2009-08-23  Bruno Haible  <bruno@clisp.org>
885
886         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
887         Reported by Eric Blake.
888
889 2009-08-23  Bruno Haible  <bruno@clisp.org>
890
891         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
892         * modules/pipe2 (Depends-on): Likewise.
893
894 2009-08-23  Eric Blake  <ebb9@byu.net>
895
896         fcntl-h: add O_TTY_INIT support
897         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
898         * tests/test-fcntl-h.c (o): Test it.
899         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
900
901         fcntl-h: rename from fcntl, in preparation for fcntl(2)
902         * modules/fcntl: Move <fcntl.h> header replacement...
903         * modules/fcntl-h: ...to new name, so as not to collide with
904         like-named function.
905         * tests/test-fcntl.c: Rename...
906         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
907         * modules/fcntl-tests: Rename...
908         * modules/fcntl-h-tests: ...to this.  Update test file name.
909         * modules/chdir-long (Depends-on): Update clients.
910         * modules/chdir-safer (Depends-on): Likewise.
911         * modules/fcntl-safer (Depends-on): Likewise.
912         * modules/fts (Depends-on): Likewise.
913         * modules/mkancesdirs (Depends-on): Likewise.
914         * modules/mkdir-p (Depends-on): Likewise.
915         * modules/open (Depends-on): Likewise.
916         * modules/savewd (Depends-on): Likewise.
917         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
918         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
919
920 2009-08-22  Bruno Haible  <bruno@clisp.org>
921
922         * modules/binary-io (License): Relicense under LGPL.
923         * modules/pipe2 (License): Likewise.
924
925 2009-08-22  Bruno Haible  <bruno@clisp.org>
926
927         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
928         return value.
929         * lib/pipe-filter-gi.c (filter_init): Likewise.
930         Reported by Eric Blake.
931
932 2009-08-22  Bruno Haible  <bruno@clisp.org>
933
934         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
935         * modules/pipe (Depends-on): Add pipe2.
936
937 2009-08-22  Bruno Haible  <bruno@clisp.org>
938
939         Tests for module 'pipe2'.
940         * modules/pipe2-tests: New file.
941         * tests/test-pipe2.c: New file.
942
943         New module 'pipe2'.
944         * lib/unistd.in.h (pipe2): New declaration.
945         * lib/pipe2.c: New file.
946         * m4/pipe2.m4: New file.
947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
948         HAVE_PIPE2.
949         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
950         * modules/pipe2: New file.
951         * doc/glibc-functions/pipe2.texi: Mention the new module.
952
953 2009-08-22  Bruno Haible  <bruno@clisp.org>
954
955         Reference some new glibc functions.
956         * doc/glibc-functions/accept4.texi: New file.
957         * doc/glibc-functions/dup3.texi: New file.
958         * doc/glibc-functions/mkostemp.texi: New file.
959         * doc/glibc-functions/pipe2.texi: New file.
960         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
961         (Glibc sys/socket.h): Refer to accept4.
962         (Glibc unistd.h): Refer to dup3, pipe2.
963         Reported by Eric Blake.
964
965 2009-08-22  Jim Meyering  <meyering@redhat.com>
966             Bruno Haible  <bruno@clisp.org>
967
968         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
969         This makes it so packages using automake-1.11's silent-rules option
970         can print e.g., a single "GEN    configmake.h" line, rather than
971         the 30+ statements that perform the job.  If you want to see the
972         actual commands, you can still run "make V=1".
973         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
974         so that make output is abbreviated when those variables are defined
975         appropriately.
976         * modules/argz: Likewise.
977         * modules/arpa_inet: Likewise.
978         * modules/byteswap: Likewise.
979         * modules/configmake: Likewise.
980         * modules/dirent: Likewise.
981         * modules/errno: Likewise.
982         * modules/fcntl: Likewise.
983         * modules/float: Likewise.
984         * modules/fnmatch: Likewise.
985         * modules/getopt-posix: Likewise.
986         * modules/glob: Likewise.
987         * modules/iconv_open: Likewise.
988         * modules/inttypes: Likewise.
989         * modules/localcharset: Likewise.
990         * modules/locale: Likewise.
991         * modules/math: Likewise.
992         * modules/netdb: Likewise.
993         * modules/netinet_in: Likewise.
994         * modules/poll: Likewise.
995         * modules/posix_spawnp-tests: Likewise.
996         * modules/sched: Likewise.
997         * modules/search: Likewise.
998         * modules/selinux-h: Likewise.
999         * modules/signal: Likewise.
1000         * modules/spawn: Likewise.
1001         * modules/stdarg: Likewise.
1002         * modules/stdbool: Likewise.
1003         * modules/stddef: Likewise.
1004         * modules/stdint: Likewise.
1005         * modules/stdio: Likewise.
1006         * modules/stdlib: Likewise.
1007         * modules/string: Likewise.
1008         * modules/strings: Likewise.
1009         * modules/sys_file: Likewise.
1010         * modules/sys_ioctl: Likewise.
1011         * modules/sys_select: Likewise.
1012         * modules/sys_socket: Likewise.
1013         * modules/sys_stat: Likewise.
1014         * modules/sys_time: Likewise.
1015         * modules/sys_times: Likewise.
1016         * modules/sys_utsname: Likewise.
1017         * modules/sys_wait: Likewise.
1018         * modules/sysexits: Likewise.
1019         * modules/time: Likewise.
1020         * modules/unistd: Likewise.
1021         * modules/wchar: Likewise.
1022         * modules/wctype: Likewise.
1023
1024 2009-08-22  Jim Meyering  <meyering@redhat.com>
1025
1026         announce-gen: detect write failure
1027         * build-aux/announce-gen: Add Coda at end.
1028         Remove equivalent-but-more-verbose block at top.
1029
1030 2009-08-19  Akim Demaille  <demaille@gostai.com>
1031
1032         bootstrap: --help to stdout.
1033         * bootstrap (usage): Don't send --help to stderr.
1034         Use a here doc instead of a long string.
1035
1036 2009-08-21  Eric Blake  <ebb9@byu.net>
1037
1038         test-popen-safer: split from test-popen
1039         * tests/test-popen.c (main): Move...
1040         * tests/test-popen.h: ...into new file.
1041         * tests/test-popen-safer2.c: New file.
1042         * modules/popen-tests (Files): Add test-popen.h.
1043         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
1044         Suggested by Bruno Haible.
1045
1046         test-fcntl-safer: split from test-open
1047         * tests/test-open.c (main): Move...
1048         * tests/test-open.h: ...into new file.
1049         * tests/test-fcntl-safer.c: New file.
1050         * modules/open-tests (Files): Add test-open.h.
1051         * modules/fcntl-safer-tests: New file.
1052         Suggested by Bruno Haible.
1053
1054         test-fopen-safer: split from test-fopen
1055         * tests/test-fopen.c (main): Move...
1056         * tests/test-fopen.h: ...into new file.
1057         * tests/test-fopen-safer.c: New file.
1058         * modules/fopen-tests (Files): Add test-fopen.h.
1059         * modules/fopen-safer-tests: New file.
1060         Suggested by Bruno Haible.
1061
1062 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
1063
1064         popen-safer: test O_CLOEXEC at run-time.
1065         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
1066
1067 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
1068
1069         fcntl: move more flags to the header
1070         * lib/cloexec.c: Do not define FD_CLOEXEC here.
1071         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
1072         * lib/fcntl.in.h: Do both things here.
1073
1074 2009-08-21  Jim Meyering  <meyering@redhat.com>
1075
1076         consistently remove $@-t before redirecting to it
1077         * modules/argz: Remove $@-t and $@ before redirecting to the former.
1078         * modules/alloca-opt: Likewise.
1079         * modules/byteswap: Likewise.
1080         * modules/fnmatch: Likewise.
1081         * modules/getopt-posix: Likewise.
1082         * modules/glob: Likewise.
1083         * modules/poll: Likewise.
1084         * modules/posix_spawnp-tests: Likewise.
1085         * modules/sys_socket: Likewise.
1086         * modules/sysexits: Likewise.
1087
1088 2009-08-21  Eric Blake  <ebb9@byu.net>
1089
1090         popen: simplify access to original popen
1091         * lib/popen.c (rpl_popen): No need to worry about popen being a
1092         macro.
1093         Reported by Bruno Haible.
1094
1095 2009-08-20  Eric Blake  <ebb9@byu.net>
1096
1097         build: avoid some compiler warnings
1098         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
1099         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
1100         type.
1101         (new_exclude_segment, excluded_file_pattern_p)
1102         (excluded_file_name_p): Reduce scope.
1103         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
1104         old-style declaration.
1105
1106 2009-08-20  Simon Josefsson  <simon@josefsson.org>
1107
1108         * tests/test-exclude1.sh: Handle Windows EOL.
1109         * tests/test-exclude2.sh: Likewise.
1110         * tests/test-exclude3.sh: Likewise.
1111         * tests/test-exclude4.sh: Likewise.
1112         * tests/test-exclude5.sh: Likewise.
1113         * tests/test-exclude6.sh: Likewise.
1114         * tests/test-exclude7.sh: Likewise.
1115
1116 2009-08-19  Akim Demaille  <demaille@gostai.com>
1117
1118         bootstrap: find sha1sum when named gsha1sum.
1119         * bootstrap (find_tool): New.
1120         ($SHA1SUM): New.
1121         Use it.
1122
1123 2009-08-20  Jim Meyering  <meyering@redhat.com>
1124
1125         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
1126         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
1127         expression that converts "." in a file name to "\." in the resulting
1128         regexp.  Start with a dummy statement, so that prior shell variable
1129         definitions are expanded portably.  Reported by Simon Josefsson.
1130
1131 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
1132
1133         Fix polling for writeability of a screen buffer.
1134         * lib/poll.c: Distinguish input and screen buffers for the
1135         Win32 implementation.
1136         * lib/select.c: Likewise.
1137
1138 2009-08-19  Eric Blake  <ebb9@byu.net>
1139
1140         popen-safer: prevent popen from clobbering std descriptors
1141         * modules/popen-safer: New file.
1142         * lib/popen-safer.c: Likewise.
1143         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
1144         * lib/stdio--.h (popen): Provide override.
1145         * lib/stdio-safer.h (popen_safer): Provide declaration.
1146         * tests/test-popen.c (includes): Partially test this.
1147         * modules/popen-safer-tests: New file, for more tests.
1148         * tests/test-popen-safer.c: Likewise.
1149         * MODULES.html.sh (file stream based Input/Output): Mention it.
1150
1151         tests: test some of the *-safer modules
1152         * modules/fopen-safer (Depends-on): Add fopen.
1153         * modules/fcntl-safer (Depends-on): Add fcntl.
1154         * modules/stdlib-safer (Depends-on): Add stdlib.
1155         (configure.ac): Set indicator.
1156         * modules/unistd-safer (configure.ac): Likewise.
1157         * modules/tmpfile-safer (configure.ac): Likewise.
1158         (Depends-on): Add tmpfile.
1159         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
1160         active.
1161         * tests/test-fopen.c (includes): Test safer versions when they are
1162         in use.
1163         * tests/test-open.c (includes): Likewise.
1164
1165         popen: fix cygwin 1.5 bug when stdin closed
1166         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
1167         * modules/popen: New file.
1168         * modules/popen-tests: Likewise.
1169         * tests/test-popen.c: Likewise.
1170         * m4/popen.m4: Likewise.
1171         * lib/popen.c: Likewise.
1172         * lib/stdio.in.h (popen): New declaration.
1173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
1174         * modules/stdio (Makefile.am): Likewise.
1175         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
1176
1177 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
1178
1179         maint.mk: give full control over update-copyright exclusions
1180         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
1181         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
1182         (update-copyright): Don't force inclusion of top-level
1183         ChangeLog.  Don't force exclusion of all COPYING files, but make
1184         them the default exclusion instead.
1185
1186 2009-08-16  Bruno Haible  <bruno@clisp.org>
1187
1188         Fix test failures on Solaris 10.
1189         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
1190         tests when Solaris iconv() is used.
1191         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1192         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1193         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1194         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1195         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1196
1197 2009-08-16  Bruno Haible  <bruno@clisp.org>
1198
1199         Fix test failures on Solaris 10.
1200         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
1201         'tr' program and pass it as first argument.
1202         * tests/test-pipe-filter-gi1.sh: Likewise.
1203         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
1204         program as first argument.
1205         * tests/test-pipe-filter-gi1.c (main): Likewise.
1206
1207 2009-08-16  Eric Blake  <ebb9@byu.net>
1208
1209         fpurge: fix previous commits
1210         * modules/fpurge (Makefile.am): Make replacement conditional,
1211         partially reverting 2007-04-29 change; missed in previous
1212         attempt.
1213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
1214         is missing.
1215
1216 2009-08-16  Bruno Haible  <bruno@clisp.org>
1217
1218         Clarify fpurge's effect on the file position.
1219         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
1220         * tests/test-fpurge.c (main): Make a second pass for checking the file
1221         position.
1222
1223 2009-08-16  Bruno Haible  <bruno@clisp.org>
1224
1225         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
1226         declaration of fpurge is missing.
1227         * tests/test-fpurge.c (main): Check that the file has not more contents
1228         than expected. Close the file before removing it.
1229
1230 2009-08-15  Eric Blake  <ebb9@byu.net>
1231
1232         fpurge: don't wrap working cygwin implementation
1233         * lib/fpurge.c (fpurge): Fix comment typo.
1234         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
1235         1.7 to avoid replacement.
1236         * tests/test-fpurge.c (main): Enhance test.
1237
1238 2009-08-15  Eric Blake  <ebb9@byu.net>
1239         and Jim Meyering  <meyering@redhat.com>
1240
1241         test-update-copyright: skip if perl is insufficient
1242         * tests/test-update-copyright.sh: Failure to run maintainer tool
1243         should not cause testsuite failure on cygwin 1.5.
1244
1245 2009-08-14  Eric Blake  <ebb9@byu.net>
1246
1247         doc: mention more functions added in cygwin 1.7.0
1248         * doc/posix-headers/limits.texi (limits.h): Update for recent
1249         cygwin additions.
1250         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
1251         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1252         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
1253         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
1254         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
1255
1256 2009-08-14  Eric Blake  <ebb9@byu.net>
1257
1258         maint.mk: simplify update-copyright rule
1259         * top/maint.mk (update-copyright-local): Delete, and document how
1260         to do it in cfg.mk instead.
1261         (update-copyright-exclude-regexp): Delete, and document how to do
1262         it in .x-update-copyright instead.
1263         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
1264         exclude ChangeLog.
1265
1266 2009-08-14  Bruno Haible  <bruno@clisp.org>
1267
1268         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
1269
1270 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1271
1272         maint.mk: support update-copyright-env
1273         * top/maint.mk (update-copyright-env): Define place-holder.
1274         (update-copyright): Expand $(update-copyright-env) before
1275         invoking update-copyright.
1276
1277 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1278
1279         update-copyright: implement forced reformatting
1280         * build-aux/update-copyright: Implement and document
1281         UPDATE_COPYRIGHT_FORCE.
1282         * tests/test-update-copyright.sh: Test it.
1283
1284 2009-08-14  Eric Blake  <ebb9@byu.net>
1285         and Bruno Haible  <bruno@clisp.org>
1286
1287         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
1288         * tests/test-locale.c: Revert previous patch related to NULL.
1289         * tests/test-stdio.c: Likewise.
1290         * tests/test-stdlib.c: Likewise.
1291         * tests/test-string.c: Likewise.
1292         * tests/test-unistd.c: Likewise.
1293         * modules/time-tests (Depends-on): Add verify.
1294         * modules/wchar-tests (Depends-on): Likewise.
1295         * tests/test-time.c: Test for NULL compliance.
1296         * tests/test-wchar.c: Likewise.
1297         * modules/locale (Depends-on): Add stddef.
1298         * modules/stdio (Depends-on): Likewise.
1299         * modules/stdlib (Depends-on): Likewise.
1300         * modules/string (Depends-on): Likewise.
1301         * modules/time (Depends-on): Likewise.
1302         * modules/unistd (Depends-on): Likewise.
1303         * modules/wchar (Depends-on): Likewise.
1304         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
1305         * lib/stdlib.in.h (includes): Likewise.
1306         * lib/string.in.h (includes): Likewise.
1307         * lib/time.in.h (includes): Likewise.
1308         * lib/unistd.in.h (includes): Likewise.
1309         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
1310         replaced.
1311         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1312         * m4/stddef_h.m4: New file.
1313         * modules/stddef: Likewise.
1314         * lib/stddef.in.h: Likewise.
1315         * modules/stddef-tests: Likewise.
1316         * tests/test-stddef.c: Likewise.
1317         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
1318         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
1319         * doc/posix-headers/locale.texi (locale.h): Likewise.
1320         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
1321         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1322         * doc/posix-headers/string.texi (string.h): Likewise.
1323         * doc/posix-headers/time.texi (time.h): Likewise.
1324         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
1325         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
1326
1327 2009-08-14  Eric Blake  <ebb9@byu.net>
1328
1329         doc: improve git diff of texinfo files
1330         * .gitattributes: Add rule for *.texi files, with hint on how to
1331         use it.
1332         Copied from m4, and based on a report by Bruno Haible.
1333
1334 2009-08-14  Bruno Haible  <bruno@clisp.org>
1335
1336         Disable multithread support by default on Cygwin 1.5.x for real.
1337         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
1338
1339 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1340
1341         update-copyright: much ado about intervals
1342         * build-aux/update-copyright: Implement and document
1343         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
1344         of copyright year intervals.
1345         Also, document UPDATE_COPYRIGHT_YEAR.
1346         * tests/test-update-copyright.sh: Test it.
1347
1348         update-copyright: convert 2-digit to 4-digit years
1349         * build-aux/update-copyright: Implement and document.
1350         * tests/test-update-copyright.sh: Update.
1351
1352 2009-08-14  Jim Meyering  <meyering@redhat.com>
1353
1354         test-exclude: avoid coreutils "make check" failure
1355         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
1356         just as in test-argmatch.c.
1357
1358 2009-08-13  Eric Blake  <ebb9@byu.net>
1359
1360         test-dup2: fix bad assumption
1361         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
1362         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
1363
1364         test-version-etc: fix CRLF portability issue
1365         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
1366         recognize \r.
1367         * tests/test-argp-version-etc-1.sh: Likewise.
1368
1369         getopt: update client modules
1370         * modules/argp (Depends-on): Use getopt-gnu.
1371         * modules/git-merge-changelog (Depends-on): Likewise.
1372         * modules/long-options (Depends-on): Likewise.
1373         * modules/xstrtol (Depends-on): Likewise.
1374
1375 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1376
1377         * tests/test-version-etc.sh: Don't fail on different
1378         project/version.  Don't fail on CRLF differences.  Rewrite to use
1379         multiple -e instead of multiple sed forks, suggested by Eric Blake
1380         <ebb9@byu.net>.
1381         * tests/test-argp-version-etc-1.sh: Likewise.
1382
1383 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1384
1385         * tests/test-version-etc.sh: Don't fail on different
1386         project/version.
1387
1388 2009-08-12  Bruno Haible  <bruno@clisp.org>
1389
1390         Tests for modules 'getopt-posix', 'getopt-gnu'.
1391         * modules/getopt-posix-tests: New file.
1392         * tests/test-getopt.c: New file.
1393         * tests/test-getopt.h: New file.
1394         * tests/test-getopt_long.h: New file.
1395
1396         New modules 'getopt-posix', 'getopt-gnu'.
1397         * modules/getopt-gnu: New file, renamed from modules/getopt.
1398         * modules/getopt-posix: New file.
1399         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
1400         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
1401         (gl_GETOPT): Remove macro.
1402         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
1403         Disable the test against BSD systems that declare optreset. Test
1404         against mingw bug. Test against lack of support of optional arguments
1405         on many platforms.
1406         * doc/glibc-headers/getopt.texi: Update module name and list of
1407         relevant platforms.
1408         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
1409         'getopt-gnu' and more portability problems.
1410         * NEWS: Mention the changes.
1411
1412 2009-08-12  Bruno Haible  <bruno@clisp.org>
1413
1414         Ensure that optarg etc. get declared by <unistd.h>.
1415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
1416         AC_USE_SYSTEM_EXTENSIONS.
1417         * modules/getopt (Depends-on): Add 'extensions'.
1418
1419 2009-08-12  Bruno Haible  <bruno@clisp.org>
1420
1421         Avoid test link errors.
1422         * modules/pipe-filter-ii-tests (Makefile.am): Define
1423         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
1424         * modules/pipe-filter-gi-tests (Makefile.am): Define
1425         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
1426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1427
1428 2009-08-12  Bruno Haible  <bruno@clisp.org>
1429
1430         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
1431         gl_GETOPT_SUBSTITUTE before.
1432         (gl_GETOPT): Use it.
1433         * m4/argp.m4 (gl_ARGP): Update.
1434         Reported by Sergey Poznyakoff.
1435
1436         * m4/getopt.m4: Reorder macros.
1437         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
1438         (gl_GETOPT_SUBSTITUTE): Remove macro.
1439
1440 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1441
1442         Minor improvement in gitlog-to-changelog
1443
1444         * build-aux/gitlog-to-changelog: New option `--format' makes
1445         output format string configurable.
1446
1447 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1448
1449         Optimize exclude: use hash tables for non-wildcard patterns.
1450
1451         * lib/exclude.c: Include hash.h and mbuiter.h
1452         (struct exclude_pattern, exclude_segment): New data types.
1453         (struct exclude): Rewrite.
1454         (fnmatch_pattern_has_wildcards): New function.
1455         (new_exclude_segment, free_exclude_segment): New functions.
1456         (excluded_file_pattern_p, excluded_file_name_p): New functions.
1457         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
1458         * lib/exclude.h (is_fnmatch_pattern): New prototype.
1459         * modules/exclude: Depend on hash and mbuiter.
1460
1461         * modules/exclude-tests: New file.
1462         * tests/test-exclude.c: New file.
1463         * tests/test-exclude1.sh: New file.
1464         * tests/test-exclude2.sh: New file.
1465         * tests/test-exclude3.sh: New file.
1466         * tests/test-exclude4.sh: New file.
1467         * tests/test-exclude5.sh: New file.
1468         * tests/test-exclude6.sh: New file.
1469         * tests/test-exclude7.sh: New file.
1470
1471 2009-08-12  Bruno Haible  <bruno@clisp.org>
1472
1473         Ensure that getopt() gets declared by <unistd.h>.
1474         * lib/unistd.in.h: Conditionally include getopt.h.
1475         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
1476         Set GNULIB_UNISTD_H_GETOPT.
1477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1478         GNULIB_UNISTD_H_GETOPT.
1479         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
1480
1481 2009-08-12  Bruno Haible  <bruno@clisp.org>
1482
1483         Clarify logic.
1484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
1485         gl_replace_getopt instead of GETOPT_H.
1486
1487 2009-08-12  Bruno Haible  <bruno@clisp.org>
1488
1489         * m4/getopt.m4: Add comments.
1490
1491 2009-08-12  Bruno Haible  <bruno@clisp.org>
1492
1493         Disable multithread support by default on Cygwin 1.5.x.
1494         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
1495         set gl_use_threads=no if not specified otherwise.
1496
1497 2009-08-11  Bruno Haible  <bruno@clisp.org>
1498
1499         Avoid compilation error on NetBSD 5.0.
1500         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
1501         * tests/test-stdio.c: Likewise.
1502         * tests/test-stdlib.c: Likewise.
1503         * tests/test-string.c: Likewise.
1504         * tests/test-unistd.c: Likewise.
1505         Reported by Greg Troxel <gdt@ir.bbn.com>
1506         at <https://savannah.gnu.org/support/?106973>.
1507
1508 2009-08-11  Bruno Haible  <bruno@clisp.org>
1509
1510         * modules/dup2-tests (Depends-on): Remove close.
1511
1512         Undo 2009-07-19 commit.
1513         * modules/acl-tests (Depends-on): Remove close.
1514         * modules/binary-io-tests (Depends-on): Likewise.
1515         * modules/closein-tests (Depends-on): Likewise.
1516         * modules/flock-tests (Depends-on): Likewise.
1517         * modules/fsync-tests (Depends-on): Likewise.
1518         * modules/lseek-tests (Depends-on): Likewise.
1519         * modules/pipe-tests (Depends-on): Likewise.
1520         * modules/posix_spawn-tests (Depends-on): Likewise.
1521         * modules/posix_spawnp-tests (Depends-on): Likewise.
1522         * modules/stat-time-tests (Depends-on): Likewise.
1523         * modules/yesno-tests (Depends-on): Likewise.
1524
1525 2009-08-10  Bruno Haible  <bruno@clisp.org>
1526
1527         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
1528
1529 2009-08-10  Bruno Haible  <bruno@clisp.org>
1530
1531         Fix a gcc warning.
1532         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
1533
1534 2009-08-10  Bruno Haible  <bruno@clisp.org>
1535
1536         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
1537         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
1538         not only the first time.
1539         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
1540         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
1541         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
1542         is 1, not only the the first time.
1543
1544 2009-08-10  Bruno Haible  <bruno@clisp.org>
1545
1546         Make it possible to use module 'gethostname' without module 'close'.
1547         * lib/unistd.in.h (close): Evoke a link error only if
1548         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1550         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1551         * modules/unistd (Makefile.am): Substitute
1552         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1553         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
1554         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1555         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1556         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1557         * modules/sys_ioctl (Makefile.am): Substitute
1558         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1559         * modules/socket (configure.ac): On native Windows, set
1560         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
1561         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1562         Reported by Sam Steingold <sds@gnu.org>.
1563
1564 2009-08-10  Bruno Haible  <bruno@clisp.org>
1565
1566         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
1567         * modules/ioctl (configure.ac): Likewise.
1568
1569 2009-08-10  Bruno Haible  <bruno@clisp.org>
1570
1571         Avoid collision between gnulib wrapper and libintl wrapper.
1572         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
1573         already defined in intl/printf.c.
1574         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
1575         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
1576
1577 2009-08-09  Bruno Haible  <bruno@clisp.org>
1578
1579         Make <sys/select.h> really self-contained, also on Solaris 10.
1580         * lib/sys_select.in.h: Include <string.h>.
1581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
1582         Solaris 10 problem.
1583         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
1584         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
1585         Reported by Jim Meyering.
1586
1587 2009-08-09  Bruno Haible  <bruno@clisp.org>
1588
1589         Avoid warnings from 'aclocal' that are due to a use of macro name
1590         AM_XGETTEXT_OPTION that is not defined in automake.
1591         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
1592         automake.
1593         * modules/error (configure.ac): Likewise.
1594         * modules/propername (configure.ac): Likewise.
1595         * modules/vasprintf (configure.ac): Likewise.
1596         * modules/verror (configure.ac): Likewise.
1597         * modules/xprintf (configure.ac): Likewise.
1598         * modules/xvasprintf (configure.ac): Likewise.
1599
1600 2009-08-08  Bruno Haible  <bruno@clisp.org>
1601
1602         Avoid compilation error in C++ mode.
1603         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
1604         Reported by Sam Steingold <sds@gnu.org>.
1605
1606 2009-08-08  Bruno Haible  <bruno@clisp.org>
1607
1608         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
1609         for the various Unix platforms.
1610         * doc/posix-headers/limits.texi: Update platforms list regarding
1611         HOST_NAME_MAX.
1612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1613
1614 2009-08-07  Jim Meyering  <meyering@redhat.com>
1615
1616         selinux-at: fix typo in a comment
1617         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
1618         Spotted by Paolo Bonzini.
1619
1620         selinux-at: remove redundant m4 code, add documentation
1621         * modules/selinux-at (configure.ac): Remove redundant code.
1622         LIB_SELINUX is already set via the dependent module, selinux-h.
1623         (Include): Add quotes around selinux-at.h.
1624         * lib/selinux-at.h: Add documentation.
1625         Reported by Bruno Haible in
1626         http://marc.info/?l=gnulib-bug&m=124958988300749
1627
1628 2009-08-07  Bruno Haible  <bruno@clisp.org>
1629
1630         Avoid link error on MacOS X 10.3 and 10.4.
1631         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
1632         on non-ELF systems.
1633         * lib/argp-pv.c (argp_program_version): Likewise.
1634         Reported by Simon Josefsson.
1635
1636 2009-08-07  Simon Josefsson  <simon@josefsson.org>
1637
1638         * tests/test-version-etc.sh: Use $EXEEXT.
1639
1640 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
1641
1642         update-copyright: update documentation to point to maint.mk
1643         * build-aux/update-copyright: Here.
1644
1645 2009-08-06  Jim Meyering  <meyering@redhat.com>
1646
1647         maint.mk: support update-copyright-local
1648         * top/maint.mk (update-copyright-local): Define place-holder.
1649         (update-copyright): Depend on $(update-copyright-local).
1650
1651 2009-08-06  Jim Meyering  <meyering@redhat.com>
1652
1653         selinux-at: new module
1654         Initially written for coreutils, this module will soon be
1655         used by findutils, too.
1656         * MODULES.html.sh [Misc]: Add selinux-at.
1657         * lib/selinux-at.h: New file, from coreutils.
1658         * lib/selinux-at.c: Likewise.
1659         * modules/selinux-at: Likewise.
1660         (License): Change from LGPL to GPL, since it depends
1661         on the GPL'd openat module.
1662
1663         doc: update README
1664         * README: Remove references to cogito.
1665         Remove cvs-repo-updating instructions from 2007.
1666         Don't imply that CVS is better if you have limited disk space.
1667
1668 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1669
1670         update-copyright: support C-style comments
1671         * build-aux/update-copyright: Implement and document.
1672         * tests/test-update-copyright.sh: Test.
1673
1674 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1675
1676         update-copyright: support omitted "(C)"
1677         * build-aux/update-copyright: Implement and document.  Also,
1678         allow variable whitespace before "(C)".
1679         * tests/test-update-copyright.sh: Test.
1680
1681 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1682
1683         update-copyright: don't trip on non-FSF copyright statements
1684         * build-aux/update-copyright: Fix so that the first correctly
1685         formatted FSF copyright statement is recognized no matter what
1686         appears before it.  Update documentation.
1687         * tests/test-update-copyright.sh: Test that.
1688
1689 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1690
1691         update-copyright: clean up code a little
1692         * build-aux/update-copyright: Append "_re" to the name of any
1693         variable holding a regular expression.
1694         Replace "old" and "new" with "stmt" in variable names.
1695         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
1696         handled correctly.
1697         Format code more consistently.
1698
1699 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1700
1701         update-copyright-tests: improve portability
1702         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
1703         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
1704
1705 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1706
1707         update-copyright: support @copyright{} and &copy;
1708         * build-aux/update-copyright: Implement and document.
1709         * tests/test-update-copyright.sh: Test.
1710
1711 2009-08-04  Jim Meyering  <meyering@redhat.com>
1712
1713         update-copyright-tests: correctly test EOL=\r\n handling
1714         * tests/test-update-copyright.sh: Put \r at the end of some lines
1715         for the dos-eol tests.  Based on a patch by Joel E. Denny.
1716
1717         maint.mk: make update-copyright exclusion list more configurable
1718         * top/maint.mk (update-copyright): Default to excluding COPYING,
1719         but allow an override, in case someone does want to update that file.
1720
1721         maint.mk: don't update copyright date in COPYING
1722         * top/maint.mk (update-copyright): Exclude COPYING.
1723
1724         maint.mk: add a copyright-updating rule
1725         * top/maint.mk (update-copyright): New rule.
1726         Derived from coreutils/Makefile.am.
1727
1728         update-copyright: rename some variables
1729         * build-aux/update-copyright: Rename a few variables for clarity.
1730         Tweak syntax.  List Joel E. Denny as coauthor.
1731
1732 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1733
1734         update-copyright: fix bug for 2-digit last year and add tests
1735         * build-aux/update-copyright: Fix bug.
1736         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
1737         specified.
1738         * modules/update-copyright-tests: New
1739         * tests/test-update-copyright.sh: New.
1740
1741 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1742
1743         update-copyright: handle leading tabs in line prefix
1744         * build-aux/update-copyright: Count leading tabs as 8 spaces
1745         when computing margin.  This helps with the formatting of
1746         ChangeLogs, for example.
1747         Fix documentation a little.
1748
1749 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1750
1751         update-copyright: support EOL=\r\n
1752         * build-aux/update-copyright: Implement that.
1753
1754 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1755
1756         update-copyright: automatically format copyright statements
1757         * build-aux/update-copyright: Implement that.
1758         Also, be a little more predictable and safer by always failing
1759         when the full copyright format is not perfectly recognized as an
1760         unbroken whole.  Discussed at
1761         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
1762         Rewrite documentation.
1763
1764 2009-08-03  Bruno Haible  <bruno@clisp.org>
1765
1766         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
1767
1768 2009-08-02  Bruno Haible  <bruno@clisp.org>
1769
1770         Tests for module 'uname'.
1771         * modules/uname-tests: New file.
1772         * tests/test-uname.c: New file.
1773
1774         New module 'uname'.
1775         * lib/uname.c: New file.
1776         * m4/uname.m4: New file.
1777         * modules/uname: New file.
1778         * doc/posix-functions/uname.texi: Mention the new module.
1779
1780 2009-08-02  Bruno Haible  <bruno@clisp.org>
1781
1782         Tests for module 'sys_utsname'.
1783         * modules/sys_utsname-tests: New file.
1784         * tests/test-sys_utsname.c: New file.
1785
1786         New module 'sys_utsname'.
1787         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
1788         * m4/sys_utsname_h.m4: New file.
1789         * modules/sys_utsname: New file.
1790         * doc/posix-headers/sys_utsname.texi: Mention the new module.
1791
1792 2009-08-02  Bruno Haible  <bruno@clisp.org>
1793
1794         Implicitly initialize the sockets library.
1795         * lib/gethostname.c: Include sockets.h.
1796         (rpl_gethostname): Invoke gl_sockets_startup.
1797         * lib/socket.c: Include sockets.h.
1798         (rpl_socket): Invoke gl_sockets_startup.
1799         * modules/gethostname (Depends-on): Add sockets.
1800         * modules/socket (Depends-on): Likewise.
1801         * tests/test-poll.c: Don't include sockets.h.
1802         (main): Don't invoke gl_sockets_startup.
1803         * tests/test-select.c: Don't include sockets.h.
1804         (main): Don't invoke gl_sockets_startup.
1805
1806 2009-08-02  Bruno Haible  <bruno@clisp.org>
1807
1808         Allow multiple calls to gl_sockets_startup.
1809         * lib/sockets.c (initialized_sockets_version): New variable.
1810         (gl_sockets_startup): Do nothing if already called for this or a higher
1811         version.
1812         (gl_sockets_cleanup): Reset initialized_sockets_version.
1813
1814 2009-08-03  Simon Josefsson  <simon@josefsson.org>
1815
1816         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
1817         different project/version.
1818
1819 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
1820             Bruno Haible  <bruno@clisp.org>
1821
1822         Tests for module 'pipe-filter-gi'.
1823         * modules/pipe-filter-gi-tests: New file.
1824         * tests/test-pipe-filter-gi1.sh: New file.
1825         * tests/test-pipe-filter-gi1.c: New file.
1826         * tests/test-pipe-filter-gi2.sh: New file.
1827         * tests/test-pipe-filter-gi2-main.c: New file.
1828         * tests/test-pipe-filter-gi2-child.c: New file.
1829
1830         New module 'pipe-filter-gi'.
1831         * lib/pipe-filter-gi.c: New file.
1832         * modules/pipe-filter-gi: New file.
1833
1834 2009-08-02  Bruno Haible  <bruno@clisp.org>
1835             Paolo Bonzini  <bonzini@gnu.org>
1836
1837         Tests for module 'pipe-filter-ii'.
1838         * modules/pipe-filter-ii-tests: New file.
1839         * tests/test-pipe-filter-ii1.sh: New file.
1840         * tests/test-pipe-filter-ii1.c: New file.
1841         * tests/test-pipe-filter-ii2.sh: New file.
1842         * tests/test-pipe-filter-ii2-main.c: New file.
1843         * tests/test-pipe-filter-ii2-child.c: New file.
1844
1845         New module 'pipe-filter-ii'.
1846         * lib/pipe-filter.h: New file.
1847         * lib/pipe-filter-ii.c: New file.
1848         * lib/pipe-filter-aux.h: New file.
1849         * modules/pipe-filter-ii: New file.
1850
1851 2009-08-02  Simon Josefsson  <simon@josefsson.org>
1852
1853         * lib/gc-libgcrypt.c: Change copyright to FSF.
1854         * lib/gc-gnulib.c: Likewise.
1855
1856 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
1857
1858         * lib/gethostname.c: Include limits.h.
1859
1860 2009-08-02  Simon Josefsson  <simon@josefsson.org>
1861             Bruno Haible  <bruno@clisp.org>
1862
1863         Ensure HOST_NAME_MAX as part of the gethostname module.
1864         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
1865         define also HOST_NAME_MAX.
1866         * tests/test-gethostname.c: Include <limits.h>.
1867         (main): Check also HOST_NAME_MAX.
1868         * doc/posix-headers/limits.texi: Document the mingw problem.
1869
1870 2009-08-02  Bruno Haible  <bruno@clisp.org>
1871
1872         * lib/gethostname.c (gethostname): Fix handling of large len argument.
1873         Add comments.
1874
1875 2009-03-31  Simon Josefsson  <simon@josefsson.org>
1876
1877         * lib/gethostname.c: Add Windows wrapper.
1878         * m4/gethostname.m4: Look for gethostname in -lws2_32.
1879         * modules/gethostname: Depend on sys_socket & errno, for also
1880         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
1881         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
1882
1883 2009-07-31  Jim Meyering  <meyering@redhat.com>
1884
1885         getloadavg: fix symbol name in comment
1886         * lib/getloadavg.c: Correct a typo I introduced when adding
1887         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
1888         Matt Kraai spotted the problem.
1889
1890 2009-07-29  Matt Kraai  <mkraai@beckman.com>
1891
1892         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
1893         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
1894         code also if ! defined N_NAME_POINTER.
1895         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
1896         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
1897         but the n_name member is a 12-byte array.
1898
1899 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
1900
1901         update-copyright: generalize comment handling
1902         * build-aux/update-copyright: Handle copyright statements
1903         within more comment styles.
1904         Document usage.
1905         Report any file with an external copyright holder or parse failure.
1906
1907 2009-07-29  Jim Meyering  <meyering@redhat.com>
1908
1909         mktime: correct setting of REPLACE_MKTIME
1910         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
1911
1912         update-copyright: new module
1913         * modules/update-copyright: New file.
1914         * build-aux/update-copyright: New file.
1915         * MODULES.html.sh (maint+release support): Add update-copyright.
1916
1917 2009-07-27  Bruno Haible  <bruno@clisp.org>
1918
1919         Fix compilation error when <ctime> is used and mktime is replaced.
1920         * lib/time.in.h (mktime): New declaration.
1921         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
1922         REPLACE_MKTIME instead of defining mktime in config.h.
1923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
1924         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
1925         Reported by Ross McFarland <rwmcfa1@neces.com>.
1926
1927 2009-07-27  Bruno Haible  <bruno@clisp.org>
1928
1929         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
1930         Reported by Matt Kraai <mkraai@beckman.com>.
1931
1932 2009-07-25  Jim Meyering  <meyering@redhat.com>
1933
1934         maint.mk: avoid warnings about missing files
1935         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
1936         diagnostic when .prev-version does not exist.
1937         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
1938         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
1939         nonexistent cfg.mk.
1940         Suggestions from Simon Josefsson.
1941
1942 2009-07-25  Bruno Haible  <bruno@clisp.org>
1943
1944         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
1945         defined as macros. Needed on QNX 6.4.1.
1946         Reported by Matt Kraai <mkraai@beckman.com>.
1947
1948 2009-07-23  Jim Meyering  <meyering@redhat.com>
1949
1950         maint.mk: invoke "make dist" with a working value of XZ_OPT
1951         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
1952
1953 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
1954
1955         Make fseeko.c compile on QNX.
1956         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
1957
1958 2009-07-22  Peter Simons  <simons@cryp.to>
1959
1960         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
1961         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
1962         * lib/md4.h: Likewise.
1963         * lib/md5.h: Likewise.
1964         * lib/sha1.h: Likewise.
1965         * lib/sha256.h: Likewise.
1966         * lib/sha512.h: Likewise.
1967
1968         tests-sha1: don't assign literal string to 'char *' variable
1969         * tests/test-sha1.c (main): Declare locals with "const" to match
1970         attributes of the right hand side.
1971
1972 2009-07-21  Eric Blake  <ebb9@byu.net>
1973
1974         dup2: fix more mingw problems
1975         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
1976         fd to itself.
1977         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1978         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
1979         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
1980         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
1981         care of mingw bugs.
1982
1983 2009-07-21  Jim Meyering  <meyering@redhat.com>
1984
1985         vc-list-files: avoid failure when /bin/sh is dash
1986         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
1987         On some Debian based systems, /bin/sh is a symlink to dash, and running
1988         this command would omit the "/" following each 'tests' prefix:
1989           dash -x build-aux/vc-list-files -C . tests
1990         That is because bash and dash work differently:
1991           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
1992           bash ok
1993           dash odd
1994
1995 2009-07-21  Eric Blake  <ebb9@byu.net>
1996
1997         dup2-tests: test previous patch
1998         * modules/dup2-tests: New file.
1999         * tests/test-dup2.c: Likewise.
2000         * tests/test-open.c (main): Avoid unspecified behavior.
2001         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
2002         test.
2003
2004         dup2: work around mingw and cygwin 1.5 bug
2005         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
2006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2007         * modules/unistd (Makefile.am): Substitute it.
2008         * lib/unistd.in.h (dup2): Declare the replacement.
2009         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
2010         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
2011         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
2012         * modules/execute (Depends-on): Add dup2.
2013         * modules/fseterr (Depends-on): Likewise.
2014         * modules/pipe (Depends-on): Likewise.
2015         * modules/posix_spawn-internal (Depends-on): Likewise.
2016
2017 2009-07-21  Bruno Haible  <bruno@clisp.org>
2018
2019         * modules/.gitattributes: New file.
2020
2021 2009-07-20  Bruno Haible  <bruno@clisp.org>
2022
2023         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
2024         (main): Use it.
2025
2026 2009-07-20  Eric Blake  <ebb9@byu.net>
2027
2028         test-pipe: make a bit more robust.
2029         * tests/test-pipe.c (myerr): Allow error messages regardless of
2030         what we do to stderr.
2031         (test_pipe): Rearrange to avoid deadlock.
2032         (child_main): Try a larger read, to ensure we avoided deadlock.
2033         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
2034         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
2035         if misused.
2036
2037 2009-07-19  Jim Meyering  <meyering@redhat.com>
2038
2039         fts: avoid false-positive cycle-detection
2040         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
2041         for each new command line argument.
2042
2043 2009-07-19  Bruno Haible  <bruno@clisp.org>
2044
2045         Fix build error on mingw with the modules sys_select and unistd.
2046         * modules/acl-tests (Depends-on): Add close.
2047         * modules/binary-io-tests (Depends-on): Likewise.
2048         * modules/closein-tests (Depends-on): Likewise.
2049         * modules/flock-tests (Depends-on): Likewise.
2050         * modules/fsync-tests (Depends-on): Likewise.
2051         * modules/lseek-tests (Depends-on): Likewise.
2052         * modules/pipe-tests (Depends-on): Likewise.
2053         * modules/posix_spawn-tests (Depends-on): Likewise.
2054         * modules/posix_spawnp-tests (Depends-on): Likewise.
2055         * modules/stat-time-tests (Depends-on): Likewise.
2056         * modules/yesno-tests (Depends-on): Likewise.
2057
2058 2009-07-19  Bruno Haible  <bruno@clisp.org>
2059
2060         Unify conditionals.
2061         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
2062         macros, not at the compiler macros.
2063         * lib/pipe.c: Likewise.
2064         * lib/execute.c: Likewise.
2065         * lib/spawni.c: Likewise.
2066
2067 2009-07-19  Bruno Haible  <bruno@clisp.org>
2068
2069         Fix handling of closed stdin/stdout/stderr on mingw.
2070         * lib/w32spawn.h: Include unistd.h.
2071         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
2072         file descriptor with O_NOINHERIT flag.
2073         (fd_safer_noinherit): New function, based on fd-safer.c.
2074         (dup_safer_noinherit): New function, based on dup-safer.c.
2075         (undup_safer_noinherit): New function.
2076         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
2077         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
2078         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
2079         instead of fd_safer.
2080         * tests/test-pipe.c: Include <windows.h>.
2081         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
2082
2083         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
2084         from main.
2085         (test_pipe): Pass an extra argument for disambiguation.
2086         (main): Invoke parent_main or child_main.
2087
2088         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
2089         consistently.
2090
2091 2009-07-18  Eric Blake  <ebb9@byu.net>
2092
2093         test-pipe: fix mingw build
2094         * tests/test-pipe.c (main): Avoid fcntl on mingw.
2095
2096 2009-07-18  Bruno Haible  <bruno@clisp.org>
2097
2098         * modules/pipe-tests (Makefile.am): Fix typo.
2099
2100 2009-07-18  Eric Blake  <ebb9@byu.net>
2101
2102         error: fix mingw build
2103         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
2104         Reported by Bruno Haible.
2105
2106         error: avoid undefined use of stdout
2107         * lib/error.c (error, error_at_line): Check that fd 1 is open
2108         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
2109         is handling faults and the close_stdout module wants to report the
2110         detection of closed stdout as an error.
2111
2112 2009-07-17  Eric Blake  <ebb9@byu.net>
2113
2114         pipe: be robust in face of closed fds
2115         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
2116         should cause child to misbehave.
2117         * modules/pipe-tests: New module.
2118         * tests/test-pipe.c: New file.
2119         * tests/test-pipe.sh: New file.
2120         Reported by Akim Demaille.
2121
2122 2009-07-14  Bruno Haible  <bruno@clisp.org>
2123
2124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
2125         Reported by anonymous kc.
2126
2127 2009-07-07  Jim Meyering  <meyering@redhat.com>
2128
2129         maint.mk: don't look for translatable strings in *.m4 or *.mk
2130         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
2131         when searching for translatable strings.
2132
2133 2009-07-05  Jim Meyering  <meyering@redhat.com>
2134
2135         remove superfluous parentheses in STREQ definition
2136         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
2137         * lib/getugroups.c (STREQ): Likewise.
2138         * lib/fnmatch.c (STREQ): Likewise.
2139         Spotted by Bruno Haible.
2140
2141 2009-07-04  Jim Meyering  <meyering@redhat.com>
2142
2143         argv-iter: new module
2144         * MODULES.html.sh: Add argv-iter.
2145         * lib/argv-iter.c, lib/argv-iter.h: New files.
2146         * modules/argv-iter: New file.
2147         * modules/argv-iter-tests: New file.
2148         * tests/test-argv-iter.c: Test it.
2149
2150 2009-07-04  Bruno Haible  <bruno@clisp.org>
2151
2152         Fix assertion.
2153         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
2154         contains more exact copies of a given entry than file2, leave the extra
2155         copies unpaired rather than aborting.
2156         Reported by Eric Blake.
2157
2158 2009-07-02  Bruno Haible  <bruno@clisp.org>
2159
2160         Speedup git-merge-changelog for git cherry-pick.
2161         * lib/git-merge-changelog.c (struct entries_mapping): New type.
2162         (entries_mapping_get): New function, extracted from compute_mapping.
2163         (entries_mapping_reverse_get): New function.
2164         (compute_mapping): Add a 'full' argument. Return the result in a
2165         'struct entries_mapping'.
2166         (main): Update. Access the mappings through entries_mapping_get.
2167         Reported by Eric Blake.
2168
2169 2009-07-02  Bruno Haible  <bruno@clisp.org>
2170
2171         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
2172         best_i.
2173
2174 2009-07-02  Bruno Haible  <bruno@clisp.org>
2175
2176         Speed up approximate search for matching ChangeLog entries.
2177         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
2178         argument. Call fstrcmp_bounded instead of fstrcmp.
2179         (compute_mapping, try_split_merged_entry, main): Update callers.
2180
2181 2009-07-02  Bruno Haible  <bruno@clisp.org>
2182
2183         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
2184
2185 2009-06-30  Bruno Haible  <bruno@clisp.org>
2186
2187         Reduce the number of uc_is_cased calls.
2188         * lib/unicase.h (casing_suffix_context_t): Add
2189         'first_char_except_ignorable' field.
2190         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
2191         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
2192         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
2193         Update initializer.
2194         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
2195         case-ignorable characters.
2196         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
2197         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
2198         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
2199         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
2200         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
2201
2202 2009-06-30  Bruno Haible  <bruno@clisp.org>
2203
2204         Tests for module 'unicase/ignorable'.
2205         * modules/unicase/ignorable-tests: New file.
2206         * tests/unicase/test-ignorable.c: New file, generated by
2207         gen-uni-tables.
2208
2209         Tests for module 'unicase/cased'.
2210         * modules/unicase/cased-tests: New file.
2211         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
2212         * tests/unicase/test-predicate-part1.h: New file, derived from
2213         tests/unictype/test-predicate-part1.h.
2214         * tests/unicase/test-predicate-part2.h: New file, same as
2215         tests/unictype/test-predicate-part2.h.
2216
2217         Fix evaluation of "Before C" condition of FINAL_SIGMA.
2218         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
2219         (output_casing_properties): New function.
2220         (main): Call it.
2221         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
2222         * lib/unicase/cased.c: Include unictype/bitmap.h.
2223         (uc_is_cased): Define through a bitmap lookup.
2224         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
2225         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
2226         (uc_is_case_ignorable): Define through a bitmap lookup.
2227         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
2228         lib/unictype/bitmap.h.
2229         (Depends-on): Add inline. Clean up.
2230         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
2231         lib/unictype/bitmap.h.
2232         (Depends-on): Add inline. Clean up.
2233         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
2234         recognition.
2235         * tests/unicase/test-u16-tolower.c (main): Likewise.
2236         * tests/unicase/test-u32-tolower.c (main): Likewise.
2237
2238 2009-06-30  Bruno Haible  <bruno@clisp.org>
2239
2240         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
2241         * lib/unicase/u16-casemap.c: Likewise.
2242         * lib/unicase/u32-casemap.c: Likewise.
2243
2244 2009-06-29  Bruno Haible  <bruno@clisp.org>
2245
2246         Define u32_casefold as a wrapper around u32_ct_casefold.
2247         * lib/unicase/u32-casefold.c: Update.
2248         * modules/unicase/u32-casefold (Depends-on): Add
2249         unicase/u32-ct-casefold, unicase/empty-prefix-context,
2250         unicase/empty-suffix-context. Clean up.
2251
2252         Define u16_casefold as a wrapper around u16_ct_casefold.
2253         * lib/unicase/u16-casefold.c: Update.
2254         * modules/unicase/u16-casefold (Depends-on): Add
2255         unicase/u16-ct-casefold, unicase/empty-prefix-context,
2256         unicase/empty-suffix-context. Clean up.
2257
2258         Define u8_casefold as a wrapper around u8_ct_casefold.
2259         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
2260         * lib/unicase/u8-casefold.c: Update.
2261         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
2262         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2263
2264         Define u32_totitle as a wrapper around u32_ct_totitle.
2265         * lib/unicase/u32-totitle.c: Update.
2266         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
2267         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2268
2269         Define u16_totitle as a wrapper around u16_ct_totitle.
2270         * lib/unicase/u16-totitle.c: Update.
2271         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
2272         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2273
2274         Define u8_totitle as a wrapper around u8_ct_totitle.
2275         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
2276         functions.
2277         (FUNC): Delegate to U_CT_TOTITLE.
2278         * lib/unicase/u8-totitle.c: Update.
2279         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
2280         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2281
2282         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
2283         invocation.
2284         * modules/unicase/u32-tolower (Depends-on): Add
2285         unicase/empty-prefix-context, unicase/empty-suffix-context.
2286
2287         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
2288         invocation.
2289         * modules/unicase/u16-tolower (Depends-on): Add
2290         unicase/empty-prefix-context, unicase/empty-suffix-context.
2291
2292         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
2293         * modules/unicase/u8-tolower (Depends-on): Add
2294         unicase/empty-prefix-context, unicase/empty-suffix-context.
2295
2296         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
2297         invocation.
2298         * modules/unicase/u32-toupper (Depends-on): Add
2299         unicase/empty-prefix-context, unicase/empty-suffix-context.
2300
2301         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
2302         invocation.
2303         * modules/unicase/u16-toupper (Depends-on): Add
2304         unicase/empty-prefix-context, unicase/empty-suffix-context.
2305
2306         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
2307         * modules/unicase/u8-toupper (Depends-on): Add
2308         unicase/empty-prefix-context, unicase/empty-suffix-context.
2309
2310         New module 'unicase/u32-ct-casefold'.
2311         * lib/unicase/u32-ct-casefold.c: New file.
2312         * modules/unicase/u32-ct-casefold: New file.
2313
2314         New module 'unicase/u16-ct-casefold'.
2315         * lib/unicase/u16-ct-casefold.c: New file.
2316         * modules/unicase/u16-ct-casefold: New file.
2317
2318         New module 'unicase/u8-ct-casefold'.
2319         * lib/unicase/u8-ct-casefold.c: New file.
2320         * lib/unicase/u-ct-casefold.h: New file, derived from
2321         lib/unicase/u-casefold.h.
2322         * modules/unicase/u8-ct-casefold: New file.
2323
2324         New module 'unicase/u32-ct-totitle'.
2325         * lib/unicase/u32-ct-totitle.c: New file.
2326         * modules/unicase/u32-ct-totitle: New file.
2327
2328         New module 'unicase/u16-ct-totitle'.
2329         * lib/unicase/u16-ct-totitle.c: New file.
2330         * modules/unicase/u16-ct-totitle: New file.
2331
2332         New module 'unicase/u8-ct-totitle'.
2333         * lib/unicase/u8-ct-totitle.c: New file.
2334         * lib/unicase/u-ct-totitle.h: New file, derived from
2335         lib/unicase/u-totitle.h.
2336         * modules/unicase/u8-ct-totitle: New file.
2337
2338         New module 'unicase/u32-ct-tolower'.
2339         * lib/unicase/u32-ct-tolower.c: New file.
2340         * modules/unicase/u32-ct-tolower: New file.
2341
2342         New module 'unicase/u16-ct-tolower'.
2343         * lib/unicase/u16-ct-tolower.c: New file.
2344         * modules/unicase/u16-ct-tolower: New file.
2345
2346         New module 'unicase/u8-ct-tolower'.
2347         * lib/unicase/u8-ct-tolower.c: New file.
2348         * modules/unicase/u8-ct-tolower: New file.
2349
2350         New module 'unicase/u32-ct-toupper'.
2351         * lib/unicase/u32-ct-toupper.c: New file.
2352         * modules/unicase/u32-ct-toupper: New file.
2353
2354         New module 'unicase/u16-ct-toupper'.
2355         * lib/unicase/u16-ct-toupper.c: New file.
2356         * modules/unicase/u16-ct-toupper: New file.
2357
2358         New module 'unicase/u8-ct-toupper'.
2359         * lib/unicase/u8-ct-toupper.c: New file.
2360         * modules/unicase/u8-ct-toupper: New file.
2361
2362         Add context arguments to u*_casemap functions.
2363         * lib/unicase/unicasemap.h: Include unicase.h.
2364         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
2365         suffix_context arguments.
2366         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
2367         functions.
2368         (FUNC): Add prefix_context and suffix_context arguments. Use
2369         uc_is_cased and uc_is_case_ignorable.
2370         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
2371         * lib/unicase/u16-casemap.c: Likewise.
2372         * lib/unicase/u32-casemap.c: Likewise.
2373         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
2374         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2375         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
2376         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2377         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
2378         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2379
2380         New module 'unicase/u32-suffix-context'.
2381         * lib/unicase/u32-suffix-context.c: New file.
2382         * modules/unicase/u32-suffix-context: New file.
2383
2384         New module 'unicase/u16-suffix-context'.
2385         * lib/unicase/u16-suffix-context.c: New file.
2386         * modules/unicase/u16-suffix-context: New file.
2387
2388         New module 'unicase/u8-suffix-context'.
2389         * lib/unicase/u8-suffix-context.c: New file.
2390         * lib/unicase/u-suffix-context.h: New file.
2391         * modules/unicase/u8-suffix-context: New file.
2392
2393         New module 'unicase/empty-suffix-context'.
2394         * lib/unicase/empty-suffix-context.c: New file.
2395         * modules/unicase/empty-suffix-context: New file.
2396
2397         New module 'unicase/u32-prefix-context'.
2398         * lib/unicase/u32-prefix-context.c: New file.
2399         * modules/unicase/u32-prefix-context: New file.
2400
2401         New module 'unicase/u16-prefix-context'.
2402         * lib/unicase/u16-prefix-context.c: New file.
2403         * modules/unicase/u16-prefix-context: New file.
2404
2405         New module 'unicase/u8-prefix-context'.
2406         * lib/unicase/u8-prefix-context.c: New file.
2407         * lib/unicase/u-prefix-context.h: New file.
2408         * lib/unicase/context.h: New file.
2409         * modules/unicase/u8-prefix-context: New file.
2410
2411         New module 'unicase/empty-prefix-context'.
2412         * lib/unicase/empty-prefix-context.c: New file.
2413         * modules/unicase/empty-prefix-context: New file.
2414
2415         New module 'unicase/ignorable'.
2416         * lib/unicase/ignorable.c: New file.
2417         * modules/unicase/ignorable: New file.
2418
2419         New module 'unicase/cased'.
2420         * lib/unicase/caseprop.h: New file.
2421         * lib/unicase/cased.c: New file.
2422         * modules/unicase/cased: New file.
2423
2424         New functions for case mapping of substrings.
2425         * lib/unicase.h (casing_prefix_context_t): New type.
2426         (unicase_empty_prefix_context): New variable.
2427         (u8_casing_prefix_context, u16_casing_prefix_context,
2428         u32_casing_prefix_context, u8_casing_prefixes_context,
2429         u16_casing_prefixes_context, u32_casing_prefixes_context): New
2430         declarations.
2431         (casing_suffix_context_t): New type.
2432         (unicase_empty_suffix_context): New variable.
2433         (u8_casing_suffix_context, u16_casing_suffix_context,
2434         u32_casing_suffix_context, u8_casing_suffixes_context,
2435         u16_casing_suffixes_context, u32_casing_suffixes_context,
2436         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
2437         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
2438         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
2439         declarations.
2440
2441 2009-06-28  Jim Meyering  <meyering@redhat.com>
2442
2443         boostrap: indent only with spaces
2444         * build-aux/bootstrap: Indent only with spaces, never TABs.
2445
2446         bootstrap: split long lines
2447         * build-aux/bootstrap: Keep line length < 80.
2448
2449         bootstrap: sync from coreutils
2450         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
2451         just as autoreconf does.  Verify a list of prerequisite
2452         package-name,version-number pairs if defined in bootstrap.conf.
2453         Refer to README-prereq, if prerequisites are not satisfied.
2454
2455 2009-06-27  Eric Blake  <ebb9@byu.net>
2456
2457         tests: add test for bogus NULL definition
2458         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
2459         * tests/test-stdlib.c: Likewise.
2460         * tests/test-string.c: Likewise.
2461         * tests/test-locale.c: Likewise.
2462         * tests/test-unistd.c: Likewise.
2463         * modules/stdio-tests (Depends-on): Add verify.
2464         * modules/stdlib-tests (Depends-on): Likewise.
2465         * modules/string-tests (Depends-on): Likewise.
2466         * modules/locale-tests (Depends-on): Likewise.
2467         * modules/unistd-tests (Depends-on): Likewise.
2468
2469 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2470
2471         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
2472         self-explaining comment.
2473         * m4/selinux-selinux-h: Update serial.
2474         (gl_LIBSELINUX): New macro, adding a warning for missing development
2475         packages to code extracted from...
2476         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
2477         Add warning for missing development packages here, too.
2478
2479 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
2480
2481         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
2482
2483 2009-06-25  Eric Blake  <ebb9@byu.net>
2484
2485         version-etc: fix regression
2486         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
2487         gcc.
2488         (version_etc): Use it, to catch bugs with trailing NULL.
2489         * lib/version-etc.c (version_etc_arn): Delete unused argument.
2490         (version_etc_va): Fix logic bug.
2491         * modules/version-etc-tests: Add test.
2492         * tests/test-version-etc.c: New file.
2493         * tests/test-version-etc.sh: Likewise.
2494
2495 2009-06-25  Sam Steingold  <sds@gnu.org>
2496
2497         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
2498         mbtowc declaration.
2499
2500 2009-06-25  Eric Blake  <ebb9@byu.net>
2501
2502         fpurge: migrate into <stdio.h>
2503         * lib/fpurge.h: Delete...
2504         * lib/stdio.in.h (fpurge): ...and declare here, instead.
2505         * lib/fpurge.c (fpurge): Change declaring header.
2506         * modules/fpurge (Files): Drop deleted file.
2507         (Depends-on): Add stdio.
2508         (configure.ac): Set witness.
2509         * modules/stdio (Makefile.am): Support fpurge macros.
2510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2511         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
2512         * lib/fflush.c: Update client.
2513         * tests/test-fpurge.c: Likewise.
2514         * NEWS: Mention the change.
2515
2516 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2517
2518        * lib/argp-version-etc.c (program_authors): Add const
2519        qualifier.
2520        * lib/version-etc.c: Fix typos in the comments.
2521        * modules/argp-version-etc: Depends on version-etc.
2522
2523 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2524
2525         argp-version-etc: new module.
2526
2527         * lib/argp-version-etc.c: New file.
2528         * lib/argp-version-etc.h: New file.
2529         * modules/argp-version-etc: New file.
2530         * modules/argp-version-etc-tests: New file.
2531         * tests/test-argp-version-etc.c: New test.
2532         * tests/test-argp-version-etc-1.sh: New test.
2533
2534 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2535
2536         Provide additional interfaces and documentation for version-etc
2537         module.
2538
2539         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
2540         interfaces.
2541         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
2542         prototypes.
2543
2544 2009-06-24  Bruno Haible  <bruno@clisp.org>
2545
2546         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
2547         HAVE_LIB${NAME} macro.
2548         Reported by Sam Steingold <sds@gnu.org>.
2549
2550 2009-06-23  Simon Josefsson  <simon@josefsson.org>
2551
2552         * modules/hash-tests (test_hash_LDADD): Link to libintl when
2553         needed.
2554
2555 2009-06-21  Bruno Haible  <bruno@clisp.org>
2556
2557         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
2558         work.
2559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
2560         together with LIB${NAME}, LTLIB${NAME}.
2561         Reported by Sam Steingold <sds@gnu.org>.
2562
2563 2009-06-20  Jim Meyering  <meyering@redhat.com>
2564
2565         tests: make sc_require_test_exit_idiom more generic
2566         * top/maint.mk (Exit_witness_file): New overridable variable.
2567         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
2568         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
2569
2570 2009-06-19  Jim Meyering  <meyering@redhat.com>
2571
2572         hash: reverse order of src/dst parameters in an internal interface
2573         * lib/hash.c (transfer_entries): Reverse order of parameters to
2574         put DST before SRC.  Adjust callers.
2575
2576         tests: test-hash: avoid wholesale duplication
2577         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
2578         Instead, use a loop and add a single conditional.
2579
2580         tests: test-hash: allow seed selection via a command line argument
2581         * tests/test-hash.c (get_seed): New function.
2582         (main): Use it.
2583
2584 2009-06-19  Eric Blake  <ebb9@byu.net>
2585
2586         hash: avoid memory leak on allocation failure
2587         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
2588         failure.  Factor repeated algorithm...
2589         (transfer_entries): ...into new helper routine.
2590         (hash_delete): React to hash_rehash return value.
2591
2592         hash: reduce memory pressure in hash_rehash no-op case
2593         * lib/hash.c (next_prime): Avoid overflow.
2594         (hash_initialize): Factor bucket size computation...
2595         (compute_bucket_size): ...into new helper function.
2596         (hash_rehash): Use new function and open coding to reduce memory
2597         pressure, and avoid a memory leak in USE_OBSTACK code.
2598         Reported by Jim Meyering.
2599
2600 2009-06-18  Eric Blake  <ebb9@byu.net>
2601
2602         hash: make rotation more obvious
2603         * modules/hash (Depends-on): Add bitrotate and stdint.
2604         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
2605         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
2606         (SIZE_MAX): Rely on headers for definition.
2607         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
2608         (raw_hasher): Use rotr_sz.
2609         Suggested by Jim Meyering.
2610
2611         hash: fix memory leak in last patch
2612         * lib/hash.c (hash_rehash): Avoid memory leak.
2613
2614         hash: avoid no-op rehashing
2615         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
2616
2617         hash: provide default callback functions
2618         * lib/hash.c (raw_hasher, raw_comparator): New functions.
2619         (hash_initialize): Use them as defaults.
2620         * tests/test-hash.c (main): Test this.
2621
2622         hash: minor optimization
2623         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
2624         when possible.
2625         (hash_initialize): Document this promise.
2626         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
2627         * tests/test-hash.c (hash_compare_strings): Test this.
2628
2629 2009-06-18  Bruno Haible  <bruno@clisp.org>
2630
2631         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
2632         going to be replaced anyway.
2633
2634 2009-06-18  Bruno Haible  <bruno@clisp.org>
2635
2636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
2637         in one place.
2638         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
2639         be replaced anyway.
2640
2641 2009-06-18  Eric Blake  <ebb9@byu.net>
2642
2643         hash: check for resize before insertion
2644         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
2645         threshold before insertion, so that a pathological hash_rehash
2646         that fills every bucket can still trigger another rehash.
2647
2648 2009-06-18  Jim Meyering  <meyering@redhat.com>
2649
2650         hash-tests: add a loop around the small tests
2651         * tests/test-hash.c (main): Repeat small tests with selected
2652         small initial table sizes.
2653
2654 2009-06-17  Eric Blake  <ebb9@byu.net>
2655
2656         hash: minor cleanups
2657         * lib/hash.h (hash_entry): Make opaque, by moving...
2658         * lib/hash.c (hash_entry): ...here.
2659         (hash_insert): Clarify restrictions on what can be inserted.
2660         (hash_get_next): Clarify when it is safe to remove an element
2661         during traversal.
2662         (check_tuning): Skip verification when tuning is known safe.
2663         (hash_initialize): Clarify restrictions on tuning.
2664
2665 2009-06-17  Jim Meyering  <jim@meyering.net>
2666         and Eric Blake  <ebb9@byu.net>
2667
2668         hash-tests: new module
2669         * modules/hash-tests: New file.
2670         * tests/test-hash.c: New file.
2671
2672 2009-06-17  Eric Blake  <ebb9@byu.net>
2673
2674         strstr-simple: document new module
2675         * MODULES.html.sh: Document new module.
2676
2677         strstr, strcasestr: replace on platforms with broken memchr
2678         * modules/strstr: Split into...
2679         * modules/strstr-simple: ...new module that does not care about
2680         performance, but does care about glibc bug.
2681         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
2682         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
2683         if platform memchr is broken, per Debian bug 521737.
2684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
2685         memchr.
2686         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
2687         * doc/posix-functions/strstr.texi (strstr): Document the fix.
2688         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2689         * modules/mountlist (Depends-on): Add strstr-simple.
2690         * modules/gen-uni-tables (Depends-on): Likewise.
2691         * modules/argz (Depends-on): Add strstr.
2692
2693 2009-06-17  Bruno Haible  <bruno@clisp.org>
2694
2695         * modules/posix_spawn-internal (Depends-on): Add errno.
2696
2697 2009-06-17  Bruno Haible  <bruno@clisp.org>
2698
2699         Define missing ESTALE on Interix 3.5.
2700         * lib/errno.in.h (ESTALE): Assign a value if missing.
2701         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
2702         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
2703         missing.
2704         * doc/posix-headers/errno.texi: Mention the Interix bug.
2705         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
2706
2707 2009-06-15  Eric Blake  <ebb9@byu.net>
2708
2709         memchr, memchr2: add valgrind exception
2710         * lib/memchr.valgrind: New file.
2711         * lib/memchr2.valgrind: New file.
2712         * modules/memchr (Files): Distribute valgrind file.
2713         * modules/memchr2 (Files): Likewise.
2714
2715         docs: memchr is no longer obsolete
2716         * MODULES.html.sh: Move memchr from obsolete to string.h section.
2717         * lib/string.in.h (memchr): Simplify logic.
2718
2719 2009-06-14  Jim Meyering  <meyering@redhat.com>
2720
2721         link-follow: fix the "checking..." message to not mention trailing slash
2722         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
2723         never considered trailing slashes.
2724
2725 2009-06-14  Bruno Haible  <bruno@clisp.org>
2726
2727         * m4/memchr.m4: Mention also the bug on IA-64.
2728         * doc/posix-functions/memchr.texi: Likewise.
2729
2730 2009-06-12  Eric Blake  <ebb9@byu.net>
2731
2732         memchr: detect broken x86_64 and alpha implementations
2733         * modules/memchr-tests (Depends-on): Move mmap detection...
2734         * modules/memchr (Depends-on): ...here.
2735         (configure.ac): Set indicator.
2736         * lib/string.in.h (memchr): Declare replacement.
2737         * modules/string (Makefile.am): Trigger replacement.
2738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
2739         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
2740         bugs.
2741         * doc/posix-functions/memchr.texi (memchr): Document the bug.
2742         * modules/getpagesize (License): Relax license.
2743
2744 2009-06-11  Bruno Haible  <bruno@clisp.org>
2745
2746         * lib/idpriv.h: Add more references.
2747
2748 2009-06-08  Bruno Haible  <bruno@clisp.org>
2749
2750         Tests for module 'idpriv-droptemp'.
2751         * modules/idpriv-droptemp-tests: New file.
2752         * tests/test-idpriv-droptemp.sh: New file.
2753         * tests/test-idpriv-droptemp.su.sh: New file.
2754         * tests/test-idpriv-droptemp.c: New file.
2755
2756         New module 'idpriv-droptemp'.
2757         * lib/idpriv-droptemp.c: New file.
2758         * modules/idpriv-droptemp: New file.
2759
2760 2009-06-08  Bruno Haible  <bruno@clisp.org>
2761
2762         Tests for module 'idpriv-drop'.
2763         * modules/idpriv-drop-tests: New file.
2764         * tests/test-idpriv-drop.sh: New file.
2765         * tests/test-idpriv-drop.su.sh: New file.
2766         * tests/test-idpriv-drop.c: New file.
2767
2768         New module 'idpriv-drop'.
2769         * lib/idpriv.h: New file.
2770         * lib-idpriv-drop.c: New file.
2771         * m4/idpriv.m4: New file.
2772         * modules/idpriv-drop: New file.
2773
2774 2009-06-08  Bruno Haible  <bruno@clisp.org>
2775
2776         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
2777         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2778         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2779         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2781         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2782         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2783
2784 2009-06-08  Eric Blake  <ebb9@byu.net>
2785
2786         test-strstr: use memory fence, when possible
2787         * tests/test-strstr.c (main): Use memory fence, in order to be
2788         more likely to trigger Debian bug 521737.
2789         * modules/strstr-tests (Files): Pull in additional files.
2790
2791         memchr: no longer obsolete, for wider field testing
2792         * modules/memchr (Status, Notice): Delete, this module is no
2793         longer obsolete.
2794         * modules/vasnprintf (Depends-on): Add memchr.
2795
2796 2009-06-07  Jim Meyering  <meyering@redhat.com>
2797
2798         hash: declare some functions with the warn_unused_result attribute
2799         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
2800
2801 2009-06-07  Bruno Haible  <bruno@clisp.org>
2802
2803         * tests/test-alignof.c: Don't test int64_t if it does not exist.
2804         Reported by Eric Blake.
2805
2806 2009-06-06  Eric Blake  <ebb9@byu.net>
2807
2808         test-alignof: fix typo with long double
2809         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
2810         compiler error.
2811
2812 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
2813
2814         Escape non-texinfo { and }s.
2815         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
2816         markup error.
2817
2818 2009-06-04  Jim Meyering  <meyering@redhat.com>
2819
2820         gitlog-to-changelog: don't infloop on an empty commit log
2821         * build-aux/gitlog-to-changelog: Warn about an empty log message.
2822         Reported by Boris Petersen <transacid@centerim.org>.
2823
2824 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
2825
2826         version-etc: extend for packagers
2827         Add three new configure options, intended for packagers:
2828           --with-packager="packager name"
2829           --with-packager-version="packager-specific version"
2830           --with-packager-bug-reports="packager bug reporting"
2831         An example with coreutils:
2832           $ ./configure \
2833             --with-packager=Gentoo \
2834             --with-packager-bug-report=http://bugs.gentoo.org/ \
2835             --with-packager-version="patchset 1.6"
2836           $ ./src/ls --version | head -n3
2837           ls (GNU coreutils) 7.1-dirty
2838           Packaged by Gentoo (patchset 1.6)
2839           Copyright (C) 2009 Free Software Foundation, Inc.
2840         Note that the bug reporting info via --help doesn't show up because
2841         coreutils uses its own custom emit_bug_reporting_address() implementation
2842         in src/system.h.  If it didn't, it'd look like:
2843           $ ./src/ls --help | tail -n4
2844           Report bugs to <bug-coreutils@gnu.org>.
2845           Report Gentoo bugs to <http://bugs.gentoo.org/>.
2846           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
2847           General help using GNU software: <http://www.gnu.org/gethelp/>.
2848         * lib/version-etc.c: Print new information, if provided.
2849         * m4/version-etc.m4: New file.
2850         * modules/version-etc (Files): Add m4/version-etc.m4.
2851         (configure.ac): Add gl_VERSION_ETC.
2852
2853 2009-05-31  Bruno Haible  <bruno@clisp.org>
2854
2855         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
2856         and 'int64_t'.
2857         * modules/alignof-tests (Dependencies): Add stdint.
2858         Reported by Eric Blake.
2859
2860 2009-05-31  Bruno Haible  <bruno@clisp.org>
2861
2862         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
2863         restriction due to compiler bugs.
2864         Reported by Eric Blake.
2865
2866 2009-05-31  Simon Josefsson  <simon@josefsson.org>
2867             Bruno Haible  <bruno@clisp.org>
2868
2869         Fix test-alignof failure.
2870         * lib/alignof.h (alignof_slot): New macro.
2871         (alignof_type): New macro, with the same semantics as the previous
2872         'alignof'.
2873         (alignof): Alias to alignof_slot.
2874         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
2875         check that the results are usable as constant expressions.
2876
2877 2009-05-31  Bruno Haible  <bruno@clisp.org>
2878
2879         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
2880         * tests/test-memchr.c (main): Check that memchr does not read past the
2881         first occurrence of the byte.
2882         * tests/test-strstr.c (main): Update comment.
2883         Suggested by Eric Blake.
2884
2885 2009-05-30  Bruno Haible  <bruno@clisp.org>
2886
2887         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
2888         detail how to use dumpbin.
2889         Reported by David Byron <dbyron@dbyron.com>.
2890
2891 2009-06-02  Simon Josefsson  <simon@josefsson.org>
2892
2893         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
2894
2895 2009-06-02  Simon Josefsson  <simon@josefsson.org>
2896
2897         * m4/manywarnings.m4: Add GCC 4.4 warnings.
2898
2899 2009-05-28  Bruno Haible  <bruno@clisp.org>
2900
2901         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
2902         build-aux/ files.
2903
2904 2009-05-28  Simon Josefsson  <simon@josefsson.org>
2905
2906         * gnulib-tool (func_import): Transform license on build-aux/ files too.
2907
2908 2009-05-27  Simon Josefsson  <simon@josefsson.org>
2909
2910         * gnulib-tool (sed_transform_main_lib_file)
2911         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
2912         regexps.
2913
2914 2009-05-26  Simon Josefsson  <simon@josefsson.org>
2915
2916         * tests/test-strstr.c: Add another self-test.
2917         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
2918         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
2919
2920 2009-05-23  Bruno Haible  <bruno@clisp.org>
2921
2922         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
2923         change.
2924
2925 2009-05-21  Bruno Haible  <bruno@clisp.org>
2926
2927         Simplify use of mode_t varargs.
2928         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
2929         uses 'mode_t' or 'int'.
2930         * lib/openat.c (openat): Likewise.
2931         * lib/open-safer.c (open_safer): Likewise.
2932         * m4/mode_t.m4: New file.
2933         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
2934         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
2935         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
2936         * modules/open (Files): Add m4/mode_t.m4.
2937         * modules/openat (Files): Likewise.
2938         * modules/fcntl-safer (Files): Likewise.
2939         Suggested by Eric Blake.
2940
2941 2009-05-21  Pádraig Brady  <P@draigbrady.com>
2942
2943         * doc/glibc-functions/fallocate.texi: New file.
2944         * doc/gnulib.texi: Include it.
2945
2946 2009-05-21  Eric Blake  <ebb9@byu.net>
2947             Bruno Haible  <bruno@clisp.org>
2948
2949         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
2950         invocations.
2951         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2952
2953 2009-05-21  Eric Blake  <ebb9@byu.net>
2954             Bruno Haible  <bruno@clisp.org>
2955
2956         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
2957         include_next. Fix of 2008-11-20 commit.
2958         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
2959         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
2960         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
2961         NEXT_MATH_H.
2962         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
2963         instead of NEXT_MATH_H.
2964
2965 2009-05-21  Bruno Haible  <bruno@clisp.org>
2966
2967         Avoid redefinition warnings for SIZE_MAX.
2968         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
2969         Reported by Simon Josefsson.
2970
2971 2009-05-21  Bruno Haible  <bruno@clisp.org>
2972
2973         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
2974         AC_CACHE_VAL.
2975
2976 2009-05-20  Bruno Haible  <bruno@clisp.org>
2977
2978         Make zeroptr.h work on mingw.
2979         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
2980         mprotect.
2981         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
2982         * modules/memchr2-tests (configure.ac): Likewise.
2983         * modules/memcmp-tests (configure.ac): Likewise.
2984         * modules/memmem-tests (configure.ac): Likewise.
2985         * modules/memrchr-tests (configure.ac): Likewise.
2986         Reported by Simon Josefsson.
2987
2988 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2989
2990         * tests/test-glob.c: Include string.h for strcmp prototype.
2991
2992 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2993
2994         * modules/getdelim (Depends-on): Add explicit stdint, although it
2995         was implicitly already pulled in via realloc-posix.
2996         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
2997
2998 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2999
3000         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
3001         G. Christensen" <tgc@jupiterrise.com>.
3002         * m4/sys_socket_h.m4: Check for sa_family_t.
3003         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
3004         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
3005         * tests/test-sys_socket.c: Check that sa_family_t works.
3006
3007 2009-05-18  Eric Blake  <ebb9@byu.net>
3008
3009         maint.mk: allow gnulib_dir in VPATH build
3010         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
3011
3012 2009-05-15  Jim Meyering  <meyering@redhat.com>
3013
3014         maint.mk: Give gnulib_dir a default definition.
3015         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
3016         Thus, most packages no longer need to specify this variable in cfg.mk
3017
3018 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
3019
3020         rename.m4: fix typos that would make non-mingw cross-configure fail
3021         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
3022
3023 2009-05-13  Eric Blake  <ebb9@byu.net>
3024
3025         mmap-anon: avoid out-of-order autoconf expansion
3026         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
3027         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
3028         * modules/memchr-tests (Depends-on): Add extensions.
3029         * modules/memchr2-tests (Depends-on): Add extensions.
3030         * modules/memcmp-tests (Depends-on): Add extensions.
3031         * modules/memmem-tests (Depends-on): Add extensions.
3032         * modules/memrchr-tests (Depends-on): Add extensions.
3033
3034 2009-05-13  Bruno Haible  <bruno@clisp.org>
3035
3036         Make some tests ISO C 99 compliant.
3037         * tests/zerosize-ptr.h: New file.
3038         * tests/test-memchr.c: Include zerosize-ptr.h.
3039         (main): Use a zero-size object pointer instead of NULL.
3040         * tests/test-memchr2.c: Include zerosize-ptr.h.
3041         (main): Use a zero-size object pointer instead of NULL.
3042         * tests/test-memcmp.c: Include zerosize-ptr.h.
3043         (main): Use a zero-size object pointer instead of NULL.
3044         * tests/test-memmem.c: Include zerosize-ptr.h.
3045         (main): Use a zero-size object pointer instead of NULL.
3046         * tests/test-memrchr.c: Include zerosize-ptr.h.
3047         (main): Use a zero-size object pointer instead of NULL.
3048         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
3049         m4/mmap-anon.m4.
3050         (Depends-on): Add getpagesize.
3051         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3052         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
3053         m4/mmap-anon.m4.
3054         (Depends-on): Add getpagesize.
3055         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3056         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
3057         m4/mmap-anon.m4.
3058         (Depends-on): Add getpagesize.
3059         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3060         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
3061         m4/mmap-anon.m4.
3062         (Depends-on): Add getpagesize.
3063         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3064         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
3065         m4/mmap-anon.m4.
3066         (Depends-on): Add getpagesize.
3067         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3068
3069 2009-05-12  Bruno Haible  <bruno@clisp.org>
3070
3071         Tests for module 'alignof'.
3072         * modules/alignof-tests: New file.
3073         * tests/test-alignof.c: New file.
3074
3075 2009-05-12  Bruno Haible  <bruno@clisp.org>
3076
3077         Fix alignof macro.
3078         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
3079         vendor compilers that are always correct.
3080
3081 2009-05-12  Bruno Haible  <bruno@clisp.org>
3082
3083         Make the MAP_ANONYMOUS detection work on HP-UX 11.
3084         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
3085         not whether its fully works.
3086
3087 2009-05-12  Bruno Haible  <bruno@clisp.org>
3088
3089         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
3090
3091 2009-05-12  Jim Meyering  <meyering@redhat.com>
3092
3093         * top/maint.mk: Adjust backslash alignment.
3094
3095 2009-05-11  Simon Josefsson  <simon@josefsson.org>
3096
3097         * top/maint.mk: Make $(srcdir)/build-aux configurable.
3098
3099 2009-05-11  Eric Blake  <ebb9@byu.net>
3100
3101         argp: avoid undefined behavior
3102         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
3103         macros.
3104
3105 2009-05-08  Simon Josefsson  <simon@josefsson.org>
3106
3107         * tests/test-vc-list-files-git.sh: Do git config of user.email and
3108         user.name to prevent git commit from complaining.
3109
3110 2009-05-10  Bruno Haible  <bruno@clisp.org>
3111
3112         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
3113         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
3114         it rewrites every file name only once.
3115         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
3116
3117 2009-05-08  Bruno Haible  <bruno@clisp.org>
3118
3119         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
3120         instead of 'max'.
3121
3122 2009-05-08  Simon Josefsson  <simon@josefsson.org>
3123
3124         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
3125         sockaddr_storage test.
3126
3127 2009-05-07  Simon Josefsson  <simon@josefsson.org>
3128
3129         * modules/sys_socket (Makefile.am): Substitute
3130         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
3131         * m4/sys_socket_h.m4: Check for sockaddr_storage.
3132         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
3133         * tests/test-sys_socket.c: Check sockaddr_storage.
3134
3135 2009-05-08  Bruno Haible  <bruno@clisp.org>
3136
3137         New module 'alignof'.
3138         * lib/alignof.h: New file.
3139         * modules/alignof: New file.
3140
3141 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3142             Bruno Haible  <bruno@clisp.org>
3143
3144         Fix test-file-has-acl on FreeBSD.
3145         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
3146         mask is implicitly added.
3147         * tests/test-file-has-acl.c: Include <signal.h>.
3148         (main): Terminate the test after 5 seconds.
3149         * modules/acl-tests (configure.ac): Check for alarm function.
3150
3151 2009-05-04  Bruno Haible  <bruno@clisp.org>
3152
3153         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
3154         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
3155         * modules/errno (configure.ac): Drop AC_REQUIRE.
3156         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
3157         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
3158
3159 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3160
3161         * modules/glob-tests: New module.
3162         * tests/test-glob.c: Add.
3163
3164 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3165
3166         * modules/fnmatch-tests: New module.
3167         * tests/test-fnmatch.c: Add.
3168
3169 2009-05-04  Eric Blake  <ebb9@byu.net>
3170
3171         maint: make the new no-submodule-changes rule VPATH-safe
3172         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
3173
3174 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3175             Bruno Haible  <bruno@clisp.org>
3176
3177         acl: Fix infinite loop on FreeBSD.
3178         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
3179         of return value from acl_get_entry.
3180         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
3181         Likewise.
3182
3183 2009-05-03  Bruno Haible  <bruno@clisp.org>
3184
3185         * lib/acl-internal.h (acl_entries): Clarify return value.
3186         * lib/acl_entries.c (acl_entries): Likewise.
3187
3188 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3189
3190         Bug fix in acl module.
3191         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
3192
3193 2009-05-03  Bruno Haible  <bruno@clisp.org>
3194
3195         Create gperf-generated file in the source dir, not in the build dir.
3196         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
3197         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
3198         * modules/unicase/locale-language (unicase/locale-languages.h):
3199         Likewise.
3200         * modules/unicase/special-casing (unicase/special-casing-table.h):
3201         Likewise.
3202         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
3203         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
3204         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
3205         Reported by Ralf Wildenhues.
3206
3207 2009-05-03  Bruno Haible  <bruno@clisp.org>
3208
3209         * modules/fnmatch (Description, configure.ac): Taken from
3210         fnmatch-posix.
3211         * modules/fnmatch-posix: Turn into a symbolic reference to the
3212         'fnmatch' module, and deprecate.
3213         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
3214
3215 2009-05-03  Bruno Haible  <bruno@clisp.org>
3216
3217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
3218         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
3219         Reported by Ralf Wildenhues.
3220
3221 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3222
3223         * m4/fnmatch.m4: Fix fnmatch re-define.
3224
3225 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3226
3227         priv-set: new module and tests; adapt write-any-file
3228         * lib/priv-set.c: New file.
3229         * lib/priv-set.h: New file.
3230         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
3231         * lib/write-any-file.c: Simplify by using priv-set module.
3232         * m4/priv-set.m4: New file.
3233         * modules/priv-set: New file.
3234         * modules/unlinkdir: Add dependency on priv-set module.
3235         * modules/write-any-file: Likewise.
3236
3237         Tests for module 'priv-set'.
3238         * modules/priv-set-tests: New file.
3239         * tests/test-priv-set.c: New file.
3240
3241 2009-05-03  Jim Meyering  <meyering@redhat.com>
3242             Bruno Haible  <bruno@clisp.org>
3243
3244         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
3245         use the converted UTF-8 variant of the name instead.
3246
3247 2009-05-03  Jim Meyering  <meyering@redhat.com>
3248
3249         tests: tighten some getdate tests
3250         * tests/test-getdate.c (main): Tighten tests: require equality,
3251         not just greater than.  Set TZ envvar to UTC0.
3252
3253 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3254
3255         getdate: correctly interpret "next monday" when run on a Monday
3256         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
3257         that e.g., "next tues" (when run on a tuesday) results in a date
3258         that is one week in the future, and not today's date.
3259         I.e., add a week when the wday is the same as the current one.
3260         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
3261         and earlier by Martin Bernreuther and Jan Minář.
3262         * tests/test-getdate.c (main): Check that "next DAY" is always in
3263         the future and that "last DAY" is always in the past.
3264
3265 2009-05-02  Jim Meyering  <meyering@redhat.com>
3266
3267         build: ensure that a release build fails when a submodule is unclean
3268         * top/maint.mk (no-submodule-changes): New rule.
3269         (alpha beta major): Depend on it.
3270
3271 2009-05-02  Bruno Haible  <bruno@clisp.org>
3272
3273         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
3274         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
3275         shell variable gl_fnmatch_required to detect which variant is
3276         requested.
3277         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
3278         gl_FUNC_FNMATCH_POSIX.
3279         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
3280         exclude fnmatch-posix.
3281
3282 2009-05-02  Bruno Haible  <bruno@clisp.org>
3283
3284         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
3285         * modules/mbsrtowcs (License): Change to LGPLv2+.
3286         * modules/strnlen1 (License): Likewise.
3287         Reported by Simon Josefsson.
3288
3289 2009-05-02  Bruno Haible  <bruno@clisp.org>
3290
3291         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
3292         "cross".
3293         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
3294         gnulib-tool was called with option --source-base=lib.
3295
3296 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3297
3298         Use automake *-local hooks without commands, for extensibility.
3299         * modules/localcharset (Makefile.am): Rename install-exec-local
3300         rule to install-exec-localcharset, and make it a prerequisite of
3301         install-exec-local.  Likewise, rename the uninstall-local rule to
3302         uninstall-localcharset, and make it a prerequisite of the former.
3303
3304 2009-05-01  Bruno Haible  <bruno@clisp.org>
3305
3306         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
3307         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
3308         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
3309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
3310         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
3311         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
3312         m4/locale-zh.m4, m4/codeset.m4.
3313
3314         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
3315         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
3316         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
3317         m4/locale-zh.m4.
3318
3319         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
3320         REPLACE_WCRTOMB if mbstate_t must be replaced.
3321         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
3322         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
3323
3324 2009-05-01  Bruno Haible  <bruno@clisp.org>
3325
3326         Avoid compiler warnings when redefining macros defined by <libintl.h>.
3327         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
3328         dngettext, dcngettext, textdomain, bindtextdomain,
3329         bind_textdomain_codeset): Undefine before redefining.
3330
3331 2009-04-30  Bruno Haible  <bruno@clisp.org>
3332
3333         Fix bug introduced on 2009-04-25.
3334         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
3335         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
3336         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
3337         is defined.
3338         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
3339         is defined.
3340         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
3341         is defined.
3342         Reported by Elbert_Pol <elbert.pol@gmail.com>.
3343
3344 2009-04-28  Bruno Haible  <bruno@clisp.org>
3345
3346         Comment tweaks.
3347         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
3348         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
3349         * lib/unicase.h (u*_casexfrm): Likewise.
3350         Reported by Paolo Bonzini.
3351
3352 2009-04-28  Bruno Haible  <bruno@clisp.org>
3353
3354         Fix a compilation error.
3355         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
3356         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
3357         Reported by Jim Meyering.
3358
3359 2009-04-27  Bruno Haible  <bruno@clisp.org>
3360
3361         New module 'libunistring'.
3362         * modules/libunistring: New file.
3363         * m4/libunistring.m4: New file.
3364         * MODULES.html.sh (Unicode string functions): Add it.
3365
3366 2009-04-27  Eric Blake  <ebb9@byu.net>
3367
3368         maint.mk: allow package-specific header to provide <config.h>
3369         * top/maint.mk (sc_require_config_h): New variable.
3370         (sc_require_config_h, sc_require_config_h_first): Use it.
3371
3372 2009-04-27  Simon Josefsson  <simon@josefsson.org>
3373
3374         * top/maint.mk (sc_avoid_if_before_free): Except
3375         useless-if-before-free script.
3376
3377 2009-04-27  Eric Blake  <ebb9@byu.net>
3378
3379         maintainer-makefile: depend on all required helper scripts
3380         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
3381         useless-if-before-free.
3382         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
3383         version, rather than assuming gnulib checkout is available.
3384         Reported by Simen Josefsson.
3385
3386 2009-04-26  Bruno Haible  <bruno@clisp.org>
3387
3388         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
3389         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
3390         "../" or "..".
3391
3392 2009-04-26  Bruno Haible  <bruno@clisp.org>
3393
3394         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
3395         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
3396         AC_LIB_HAVE_LINKFLAGS.
3397
3398 2009-04-26  Bruno Haible  <bruno@clisp.org>
3399
3400         Simplify calling convention of u*_conv_from_encoding.
3401         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
3402         u32_conv_from_encoding): Expect a resultbuf argument and return the
3403         result directly as a pointer.
3404         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
3405         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
3406         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
3407         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
3408         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
3409         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3410         Update.
3411         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
3412         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
3413         * lib/vasnprintf.c (VASNPRINTF): Update.
3414         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
3415         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
3416         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
3417         * NEWS: Mention the change.
3418
3419 2009-04-26  Bruno Haible  <bruno@clisp.org>
3420
3421         Simplify calling convention of u*_conv_to_encoding.
3422         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
3423         u32_conv_to_encoding): Expect a resultbuf argument and return the
3424         result directly as a pointer.
3425         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3426         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
3427         freeing scaled_offsets if mem_iconveha failed.
3428         * lib/unicase/u-casexfrm.h (FUNC): Update.
3429         * lib/uninorm/u-normxfrm.h (FUNC): Update.
3430         * lib/vasnprintf.c (VASNPRINTF): Update.
3431         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
3432         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
3433         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
3434         * NEWS: Mention the change.
3435
3436 2009-04-26  Bruno Haible  <bruno@clisp.org>
3437
3438         Avoid test failures on AIX and OSF/1.
3439         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
3440         malloc(0).
3441         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3442         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3443         Likewise.
3444         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
3445         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
3446         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
3447         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
3448         * doc/posix-functions/malloc.texi: Document the portability problem
3449         related to malloc(0).
3450
3451 2009-04-26  Bruno Haible  <bruno@clisp.org>
3452
3453         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
3454         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
3455         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
3456
3457 2009-04-25  Bruno Haible  <bruno@clisp.org>
3458
3459         Avoid link error when creating a namespace clean library.
3460         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
3461         as macro with arguments if already defined as an alias.
3462         * lib/signbitf.c (gl_signbitf): Don't undefine.
3463         * lib/signbitd.c (gl_signbitd): Don't undefine.
3464         * lib/signbitl.c (gl_signbitl): Don't undefine.
3465
3466 2009-04-25  Jim Meyering  <meyering@redhat.com>
3467
3468         vc-list-files: fix another quoting bug
3469         * build-aux/vc-list-files: Avoid sed backslash expansion
3470         of pathological directory names.
3471
3472 2009-04-25  Eric Blake  <ebb9@byu.net>
3473
3474         vc-list-files: fix shell quoting error
3475         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
3476         timestamp.
3477
3478 2009-04-25  Jim Meyering  <meyering@redhat.com>
3479
3480         vc-list-files: restore lost functionality with subdir argument
3481         * build-aux/vc-list-files: When given a non-"." sub-directory
3482         argument, substitute the $dir/ prefix back onto each resulting name.
3483         Otherwise, coreutils' root_tests check would fail.
3484
3485 2009-04-24  Eric Blake  <ebb9@byu.net>
3486
3487         vc-list-files: ignore git symlinks
3488         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
3489         than ls-files, to ignore git symlinks.
3490
3491         maint.mk: import improvements from m4
3492         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
3493         (move_if_change): Delete unused macro.
3494         (news-date-check, vc-diff-check): Support VPATH builds.
3495         (announcement): Likewise.  Split --bootstrap-tools list...
3496         (boostrap-tools): ...into separate list, which can be overridden
3497         in cfg.mk.
3498         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
3499         requiring dependency on useless-if-before-free module.
3500         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
3501         Support VPATH builds.
3502
3503 2009-04-24  Jim Meyering  <meyering@redhat.com>
3504
3505         maint.mk: remove coreutils-specific rules and variables
3506         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
3507         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
3508         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
3509
3510         maint.mk: remove obsolete rule
3511         * top/maint.mk (rel-check): Remove rule.
3512         (WGET, WGETFLAGS): Remove now-unused variables.
3513
3514 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3515
3516         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
3517         consistency.
3518
3519         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
3520         '$(PATH_SEPARATOR)' instead of ':'.
3521
3522 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3523
3524         * lib/getopt1.c (main): Use 'const' for static array.
3525
3526 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3527
3528         * top/maint.mk: Sync with coreutils.
3529         * NEWS: Explain incompatibilities.
3530
3531 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3532             Bruno Haible  <bruno@clisp.org>
3533
3534         Fix cross-compilation results.
3535         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
3536         statement, as third argument of AC_TRY_RUN.
3537         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3538         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3539         Likewise.
3540         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3541         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3542         Likewise.
3543         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3544         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
3545         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
3546
3547 2009-04-20  Bruno Haible  <bruno@clisp.org>
3548
3549         Avoid test failure on mingw.
3550         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
3551
3552 2009-04-20  Bruno Haible  <bruno@clisp.org>
3553
3554         Avoid compilation error on mingw.
3555         * modules/localename-tests (Depends-on): Add locale.
3556
3557 2009-04-19  Bruno Haible  <bruno@clisp.org>
3558
3559         Support for building a shared library on Windows platforms.
3560         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
3561         (main): Test the presence of UNINORM_NFC here.
3562         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
3563         (main): Test the presence of UNINORM_NFD here.
3564         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
3565         (main): Test the presence of UNINORM_NFKC here.
3566         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
3567         (main): Test the presence of UNINORM_NFKD here.
3568
3569 2009-04-19  Bruno Haible  <bruno@clisp.org>
3570
3571         Avoid a compiler warning.
3572         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
3573         Change type of variable 'sequence'.
3574
3575 2009-04-19  Bruno Haible  <bruno@clisp.org>
3576
3577         * modules/configmake (Makefile.am): When the contents of configmake.h
3578         does not change, arrange to preserve its modification time.
3579
3580 2009-04-17  Simon Josefsson  <simon@josefsson.org>
3581
3582         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
3583         gettext domain.
3584
3585 2009-04-16  Jim Meyering  <meyering@redhat.com>
3586
3587         useless-if-before-free: improve conversion code
3588         * build-aux/useless-if-before-free: Adjust code-in-comment to match
3589         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
3590
3591 2009-04-14  Bruno Haible  <bruno@clisp.org>
3592
3593         * modules/fcntl (Depends-on): Add extensions.
3594         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
3595
3596 2009-04-12  Ben Pfaff  <blp@gnu.org>
3597
3598         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
3599         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
3600
3601 2009-03-20  Ben Pfaff  <blp@gnu.org>
3602
3603         Make rename replace existing destinations on Windows.
3604         * m4/rename.m4: Add test for Mingw.
3605         * lib/rename.c: Add rename replacement that uses MoveFileEx with
3606         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
3607         * doc/posix-functions/rename.texi: Document.
3608
3609 2009-04-10  Bruno Haible  <bruno@clisp.org>
3610
3611         New include file "iconveh.h".
3612         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
3613         * lib/striconveh.h: Include it.
3614         (enum iconv_ilseq_handler): Remove definition.
3615         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
3616         striconveh.h.
3617         * lib/striconveha.c: Include striconveh.h.
3618         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
3619         * modules/striconveh (Files): Add lib/iconveh.h.
3620         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
3621         lib/striconveh.h.
3622
3623 2009-04-10  Bruno Haible  <bruno@clisp.org>
3624
3625         * lib/uniconv.h: Update comment.
3626
3627 2009-04-10  Bruno Haible  <bruno@clisp.org>
3628
3629         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
3630         always.
3631         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
3632         * lib/unistr/u16-mbtouc-aux.c: Likewise.
3633         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
3634         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
3635         "unistring-notinline.h", so that the function gets defined always.
3636         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
3637         * lib/unistr/u8-uctomb.c: Likewise.
3638         * lib/unistr/u16-mbtouc.c: Likewise.
3639         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
3640         * lib/unistr/u16-uctomb.c: Likewise.
3641         * lib/unistr/u32-mbtouc.c: Likewise.
3642         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
3643         * lib/unistr/u32-uctomb.c: Likewise.
3644
3645 2009-04-10  Bruno Haible  <bruno@clisp.org>
3646
3647         Mark 'utime' obsolete.
3648         * modules/utime (Status, Notice): New sections.
3649         Suggested by Jim Meyering.
3650
3651         Fix cross-compile guess for utime test.
3652         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
3653         autoconf.
3654         * doc/posix-functions/utime.texi: Give more precisions.
3655         Reported by Jan <ipif@ymail.com>.
3656
3657 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
3658
3659         filevercmp: correct today's change
3660         * lib/filevercmp.c: Also handle coreutils' test inputs.
3661         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
3662
3663         Fix regression in 'filevercmp' module. Thanks Sven Joachim
3664         for reporting it.
3665         * lib/filevercmp.c: Special handle for "", "." and "..".
3666         * tests/test-filevercmp.c: Enlarge the set suite.
3667
3668 2009-04-07  Jim Meyering  <meyering@redhat.com>
3669
3670         useless-if-before-free: show how to remove braced useless free, too
3671         * build-aux/useless-if-before-free: still only in a comment, though.
3672
3673 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
3674
3675         maint.mk: import changes to syntax-check macros from coreutils
3676         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
3677         Use them in the relevant macros.
3678
3679 2009-04-06  Bruno Haible  <bruno@clisp.org>
3680
3681         Fix unportable use of bit-fields.
3682         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
3683         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
3684         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
3685
3686 2009-04-06  Bruno Haible  <bruno@clisp.org>
3687
3688         Avoid test failures on AIX and OSF/1.
3689         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
3690         that malloc(0) = NULL.
3691         * tests/unicase/test-u8-tolower.c (check): Likewise.
3692         * tests/unicase/test-u8-totitle.c (check): Likewise.
3693         * tests/unicase/test-u8-toupper.c (check): Likewise.
3694         * tests/unicase/test-u16-casefold.c (check): Likewise.
3695         * tests/unicase/test-u16-tolower.c (check): Likewise.
3696         * tests/unicase/test-u16-totitle.c (check): Likewise.
3697         * tests/unicase/test-u16-toupper.c (check): Likewise.
3698         * tests/unicase/test-u32-casefold.c (check): Likewise.
3699         * tests/unicase/test-u32-tolower.c (check): Likewise.
3700         * tests/unicase/test-u32-totitle.c (check): Likewise.
3701         * tests/unicase/test-u32-toupper.c (check): Likewise.
3702         * tests/uninorm/test-u8-nfc.c (check): Likewise.
3703         * tests/uninorm/test-u8-nfd.c (check): Likewise.
3704         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
3705         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
3706         * tests/uninorm/test-u16-nfc.c (check): Likewise.
3707         * tests/uninorm/test-u16-nfd.c (check): Likewise.
3708         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
3709         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
3710         * tests/uninorm/test-u32-nfc.c (check): Likewise.
3711         * tests/uninorm/test-u32-nfd.c (check): Likewise.
3712         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
3713         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
3714
3715 2009-04-05  Bruno Haible  <bruno@clisp.org>
3716
3717         Work around an autoconf limitation.
3718         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
3719         comment line if it would be longer than 3 KB.
3720
3721 2009-04-05  Bruno Haible  <bruno@clisp.org>
3722
3723         Avoid test failure with libiconv-1.13.
3724         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
3725         of the expected test results.
3726
3727 2009-04-05  Bruno Haible  <bruno@clisp.org>
3728
3729         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
3730         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
3731         that it should be installed.
3732
3733 2009-04-05  Bruno Haible  <bruno@clisp.org>
3734
3735         * gnulib-tool: New option --copy-file.
3736         (func_usage): Document it.
3737         (func_dest_tmpfilename): Moved out of func_import.
3738         (func_add_file, func_update_file): New functions, extracted from
3739         func_import.
3740         (func_import): Update.
3741
3742 2009-04-05  Karl Berry  <karl@gnu.org>
3743
3744         * README: prominently mention gnulib-tool.
3745         Rearrange sections so getting the code is near the top.
3746
3747 2009-04-05  Bruno Haible  <bruno@clisp.org>
3748
3749         * lib/unicase.h: Mention u*_cmp2.
3750         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3751         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
3752         * lib/unicase/ulc-casecmp.c: Likewise.
3753         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
3754         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
3755         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
3756         unistr/u8-cmp.
3757         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
3758         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
3759         unistr/u16-cmp.
3760         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
3761         unistr/u32-cmp.
3762
3763         * lib/uninorm.h: Mention u*_cmp2.
3764         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3765         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
3766         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
3767         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
3768         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
3769         unistr/u8-cmp.
3770         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
3771         unistr/u16-cmp.
3772         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
3773         unistr/u32-cmp.
3774
3775         New module 'unistr/u32-cmp2'.
3776         * lib/unistr/u32-cmp2.c: New file.
3777         * modules/unistr/u32-cmp2: New file.
3778
3779         New module 'unistr/u16-cmp2'.
3780         * lib/unistr/u16-cmp2.c: New file.
3781         * modules/unistr/u16-cmp2: New file.
3782
3783         New module 'unistr/u8-cmp2'.
3784         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
3785         * lib/unistr/u8-cmp2.c: New file.
3786         * lib/unistr/u-cmp2.h: New file.
3787         * modules/unistr/u8-cmp2: New file.
3788
3789 2009-04-05  Bruno Haible  <bruno@clisp.org>
3790
3791         * lib/unictype.h (uc_property_is_valid): New macro.
3792         * tests/unictype/test-pr_byname.c (main): Use it.
3793
3794         * lib/unistr.h: Doc fixes.
3795         * lib/uniconv.h: Doc fixes.
3796         * lib/unictype.h: Doc fixes.
3797
3798 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
3799
3800         Port coreutils 7.2 to Solaris 8.
3801
3802         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
3803         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
3804         for Solaris 8.  This is a bit of a hack, as it means it's the
3805         caller's responsibility to add -lnsl if needed, but most likely it
3806         won't be needed since only getaddrinfo uses this and getaddrinfo
3807         isn't needed on Solaris 8.
3808
3809         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
3810         problem to Solaris 8 encountered with coreutils 7.2, which
3811         resulted in a message "fnmatch.c:292: warning: passing argument 4
3812         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
3813         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
3814
3815 2009-04-03  Simon Josefsson  <simon@josefsson.org>
3816
3817         * m4/ld-version-script.m4: Add FIXME comment.
3818
3819 2009-04-02  Simon Josefsson  <simon@josefsson.org>
3820
3821         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
3822         SOVERSION variable.
3823
3824 2009-04-02  Bruno Haible  <bruno@clisp.org>
3825
3826         * Makefile (info, html, dvi, pdf): Combine the rules.
3827         Suggested by Jim Meyering.
3828
3829 2009-04-01  Bruno Haible  <bruno@clisp.org>
3830
3831         * Makefile (info, html, dvi, pdf): New targets.
3832         Reported by Reuben Thomas <rrt@sc3d.org>.
3833
3834 2009-04-01  Bruno Haible  <bruno@clisp.org>
3835
3836         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
3837         can be put into PATH.
3838         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
3839
3840 2009-04-01  Bruno Haible  <bruno@clisp.org>
3841
3842         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
3843
3844 2009-04-01  Bruno Haible  <bruno@clisp.org>
3845
3846         Rename module 'visibility'.
3847         * modules/lib-symbol-visibility: Renamed from modules/visibility.
3848         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
3849         * doc/gnulib.texi: Update.
3850         * MODULES.html.sh (Misc): Update.
3851         * NEWS: Mention the change.
3852
3853 2009-04-01  Simon Josefsson  <simon@josefsson.org>
3854
3855         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
3856         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
3857         Eric Blake <ebb9@byu.net> for review.
3858         * MODULES.html.sh: Add lib-msvc-compat.
3859         * doc/gnulib.texi: Link to new section.
3860         * m4/ld-output-def.m4: New file.
3861         * doc/ld-output-def.texi: New file.
3862
3863 2009-04-01  Simon Josefsson  <simon@josefsson.org>
3864
3865         Rename ld-version-script to lib-symbol-versions.  Suggested by
3866         Bruno Haible <bruno@clisp.org>.
3867         * modules/ld-version-script: Renamed to lib-symbol-versions.
3868         * doc/ld-version-script.texi: Fix module name.
3869         * MODULES.html.sh: Add lib-symbol-versions.
3870
3871 2009-03-31  Simon Josefsson  <simon@josefsson.org>
3872
3873         * modules/u64-tests: New file.
3874         * tests/test-u64.c: New file.
3875
3876 2009-03-04  Simon Josefsson  <simon@josefsson.org>
3877
3878         * MODULES.html.sh: Mention u64.
3879         * modules/u64: New module.
3880         * modules/crypto/sha512: Depend on u64 module instead of providing
3881         u64.h.
3882
3883 2009-03-27  Eric Blake  <ebb9@byu.net>
3884
3885         test-strerror: make debugging EAI_SYSTEM easier
3886         * modules/getaddrinfo-tests (Depends-on): Add strerror.
3887         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
3888         failure was EAI_SYSTEM.
3889
3890 2009-03-25  Bruno Haible  <bruno@clisp.org>
3891
3892         Fix a problem with --enable-relocatable on Solaris 7.
3893         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
3894         since 2008-02-24.
3895
3896 2009-03-25  Eric Blake  <ebb9@byu.net>
3897
3898         test-sockets: avoid gcc warning
3899         * tests/test-sockets.c (main): Silence compiler warning.
3900
3901 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3902
3903         New modules nproc, pthread, contributed by Glen Lenker.
3904
3905         * MODULES.html.sh: Add pthread, nproc.
3906         * lib/nproc.c: New file.
3907         * lib/nproc.h: New file.
3908         * lib/pthread.in.h: New file.
3909         * m4/pthread.m4: New file.
3910         * modules/nproc: New file.
3911         * modules/pthread: New file.
3912
3913 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3914
3915         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
3916         New variable.
3917
3918 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
3919
3920         filevercmp: handle simple~ and numbered.~3~ backup suffixes
3921         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
3922         * tests/test-filevercmp.c: Add tests for backup suffixes.
3923
3924 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3925
3926         * modules/stdlib (Depends-on): Add stdint, needed when defining
3927         struct random_data on, for example, HP-UX 10.20.  Reported by
3928         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3929
3930 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3931
3932         * lib/readline.c (readline): Call fflush on stdout after printing
3933         prompt.
3934
3935 2009-03-20  Bruno Haible  <bruno@clisp.org>
3936
3937         Remove dependency from 'close' module to -lws2_32 on native Windows.
3938         * lib/close-hook.h: New file.
3939         * lib/close-hook.c: New file.
3940         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
3941         w32sock.h.
3942         (_gl_close_fd_maybe_socket): Remove function.
3943         (rpl_close): Invoke execute_all_close_hooks instead of
3944         _gl_close_fd_maybe_socket.
3945         * lib/sockets.c: Include close-hook.h, w32sock.h.
3946         (close_fd_maybe_socket): New function, essentially from lib/close.c.
3947         (close_sockets_hook): New variable.
3948         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
3949         (gl_sockets_cleanup): Unregister it.
3950         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
3951         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
3952         * modules/close-hook: New file.
3953         * modules/close (Files): Remove lib/w32sock.h.
3954         (Depends-on): Add close-hook.
3955         (Link): Remove section.
3956         * modules/sockets (Files): Add lib/w32sock.h.
3957         (Depends-on): Add close-hook.
3958         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
3959         invocation.
3960         * NEWS: Mention that LIB_CLOSE is gone.
3961
3962 2009-03-23  Eric Blake  <ebb9@byu.net>
3963
3964         signal-tests: test previous patch
3965         * tests/test-signal.c: New file.
3966         * modules/signal-tests: Likewise.
3967
3968         signal.h: always support 'volatile sig_atomic_t'
3969         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
3970         (gl_SIGNAL_H_DEFAULTS): Add a default.
3971         * modules/signal (Makefile.am): Substitute if needed.
3972         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
3973         users can blindly add volatile.
3974         * doc/posix-headers/signal.texi (signal.h): Document it.
3975         Reported by Matthew Woehlke.
3976
3977 2009-03-23  Jim Meyering  <meyering@redhat.com>
3978
3979         pathmax: PATH_MAX: use pathconf only when available
3980         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
3981         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
3982         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
3983         This avoids a link failure in a PSP cross-compilation environment
3984         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
3985
3986         * lib/vasnprintf.c (divide): Fix typo in comment.
3987
3988 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3989
3990         * gnulib-tool (func_filter_filelist): Fix comment.
3991
3992 2009-03-20  Bruno Haible  <bruno@clisp.org>
3993
3994         Make sockets.h self-contained.
3995         * lib/sockets.c: Include sockets.h first.
3996         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
3997
3998 2009-03-19  Eric Blake  <ebb9@byu.net>
3999
4000         doc: mention more functions added in cygwin 1.7.0
4001         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
4002         addition.
4003         * doc/posix-functions/log2f.texi: Likewise.
4004
4005 2009-03-19  Jim Meyering  <meyering@redhat.com>
4006
4007         fsusage: avoid syntax error due to statement-before-declaration
4008         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
4009         after all declarations.  Reported by Matthew Woehlke in
4010         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
4011
4012 2009-03-18  Eric Blake  <ebb9@byu.net>
4013
4014         build-aux/compile: sync from automake
4015         * build-aux/compile: New file, from automake.
4016         * config/srclist.txt: Mention build-aux/compile.
4017
4018 2009-03-17  Bruno Haible  <bruno@clisp.org>
4019
4020         * lib/git-merge-changelog.c: Fix typo in comment.
4021         Reported by Reuben Thomas <rrt@sc3d.org>.
4022
4023 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
4024
4025         * m4/regex.m4: update and improve help for
4026         --without-included-regex.
4027
4028 2009-03-17  Simon Josefsson  <simon@josefsson.org>
4029
4030         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
4031         failure on missing include files.
4032
4033 2009-03-17  Eric Blake  <ebb9@byu.net>
4034
4035         doc: mention more functions added in cygwin 1.7.0
4036         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
4037         addition.
4038         * doc/posix-functions/fwscanf.texi: Likewise.
4039         * doc/posix-functions/swprintf.texi: Likewise.
4040         * doc/posix-functions/swscanf.texi: Likewise.
4041         * doc/posix-functions/vfwprintf.texi: Likewise.
4042         * doc/posix-functions/vfwscanf.texi: Likewise.
4043         * doc/posix-functions/vswprintf.texi: Likewise.
4044         * doc/posix-functions/vswscanf.texi: Likewise.
4045         * doc/posix-functions/vwprintf.texi: Likewise.
4046         * doc/posix-functions/vwscanf.texi: Likewise.
4047         * doc/posix-functions/wcscasecmp.texi: Likewise.
4048         * doc/posix-functions/wcsdup.texi: Likewise.
4049         * doc/posix-functions/wcsftime.texi: Likewise.
4050         * doc/posix-functions/wcsncasecmp.texi: Likewise.
4051         * doc/posix-functions/wprintf.texi: Likewise.
4052         * doc/posix-functions/wscanf.texi: Likewise.
4053         * doc/glibc-functions/gethostbyname2.texi: Likewise.
4054
4055 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4056
4057         maint.mk: really add $(AM_MAKEFLAGS)
4058         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
4059         was inadvertently omitted in the last commit.
4060         Spotted by Bruno Haible.
4061
4062         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
4063         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
4064         $(AM_MAKEFLAGS)' rather than plain `make'.
4065
4066         gnulib-tool: execute $MAKE not make
4067         * gnulib-tool: Default $MAKE to 'make'.
4068         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
4069         than make.  Initialize $MAKE in the do-autobuild script.
4070
4071         gnulib-tool: use $MAKE not make in generated files
4072         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
4073         make, in generated files.  Initialize $MAKE in the do-autobuild
4074         script.
4075
4076         * top/GNUmakefile (_have-git-version-gen): Fix typo.
4077
4078         GNUmakefile: disable parallelism only for multiple, recursive targets
4079         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
4080         additions in the Makefile.
4081         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
4082         by Automake.
4083         (.NOTPARALLEL): Only disable parallel builds if multiple targets
4084         are listed on the command line and at least one of them is
4085         listed in $(ALL_RECURSIVE_TARGETS).
4086
4087 2009-03-14  Bruno Haible  <bruno@clisp.org>
4088
4089         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
4090         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
4091         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
4092         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
4093         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
4094         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
4095         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
4096         unistr/u8-uctomb.
4097         * modules/unistr/u8-strchr (Depends-on): Likewise.
4098         * modules/unistr/u8-strrchr (Depends-on): Likewise.
4099         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
4100         unistr/u16-uctomb.
4101         * modules/unistr/u16-strchr (Depends-on): Likewise.
4102         * modules/unistr/u16-strrchr (Depends-on): Likewise.
4103
4104 2009-03-12  Bruno Haible  <bruno@clisp.org>
4105
4106         Work around select() bug on Interix 3.5.
4107         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
4108         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
4109         * m4/select.m4: New file.
4110         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
4111         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
4112         * modules/select (Files): Add m4/select.m4.
4113         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
4114         * modules/nanosleep (Depends-on): Add select.
4115         * modules/poll (Depends-on): Likewise.
4116         * doc/posix-functions/select.texi: Mention the Interix bug.
4117         Reported by Markus Duft <mduft@gentoo.org>.
4118
4119         * lib/select.c: Renamed from lib/winsock-select.c.
4120         * modules/select (Files): Add lib/select.c, remove
4121         lib/winsock-select.c.
4122         (configure.ac): Update.
4123
4124 2009-03-12  Jim Meyering  <meyering@redhat.com>
4125
4126         avoid gcc warnings about unused macro definitions
4127         * lib/readtokens.c (STREQ): Remove unused definition.
4128         * lib/xmalloc.c (SIZE_MAX): Likewise.
4129         * lib/openat-die.c (N_): Likewise.
4130         * lib/mountlist.c (SIZE_MAX): Remove definition.
4131         Instead, include <stdint.h>.
4132         * lib/readutmp.c: Likewise.
4133         * modules/readutmp (Depends-on): Add stdint.
4134         * modules/mountlist (Depends-on): Add stdint.
4135         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
4136
4137 2009-03-10  Bruno Haible  <bruno@clisp.org>
4138
4139         Tests for module 'mbmemcasecoll'.
4140         * modules/mbmemcasecoll-tests: New file.
4141         * tests/test-mbmemcasecoll1.sh: New file.
4142         * tests/test-mbmemcasecoll2.sh: New file.
4143         * tests/test-mbmemcasecoll3.sh: New file.
4144         * tests/test-mbmemcasecoll.c: New file.
4145
4146         New module 'mbmemcasecoll'.
4147         * lib/mbmemcasecoll.h: New file.
4148         * lib/mbmemcasecoll.c: New file.
4149         * modules/mbmemcasecoll: New file.
4150
4151         * tests/test-mbmemcasecmp.h: New file, extracted from
4152         tests/test-mbmemcasecmp.c.
4153         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
4154         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
4155         (main): Update.
4156         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
4157
4158 2009-03-09  Bruno Haible  <bruno@clisp.org>
4159
4160         Tests for module 'mbmemcasecmp'.
4161         * modules/mbmemcasecmp-tests: New file.
4162         * tests/test-mbmemcasecmp1.sh: New file.
4163         * tests/test-mbmemcasecmp2.sh: New file.
4164         * tests/test-mbmemcasecmp3.sh: New file.
4165         * tests/test-mbmemcasecmp.c: New file.
4166
4167         New module 'mbmemcasecmp'.
4168         * lib/mbmemcasecmp.h: New file.
4169         * lib/mbmemcasecmp.c: New file.
4170         * modules/mbmemcasecmp: New file.
4171
4172 2009-03-09  Bruno Haible  <bruno@clisp.org>
4173
4174         Tests for module 'unicase/ulc-casecoll'.
4175         * modules/unicase/ulc-casecoll-tests: New file.
4176         * tests/unicase/test-ulc-casecoll1.sh: New file.
4177         * tests/unicase/test-ulc-casecoll2.sh: New file.
4178         * tests/unicase/test-ulc-casecoll.c: New file.
4179
4180         New module 'unicase/ulc-casecoll'.
4181         * lib/unicase.h (ulc_casecoll): New declaration.
4182         * lib/unicase/ulc-casecoll.c: New file.
4183         * modules/unicase/ulc-casecoll: New file.
4184
4185         New module 'unicase/ulc-casexfrm'.
4186         * lib/unicase.h (ulc_casexfrm): New declaration.
4187         * lib/unicase/ulc-casexfrm.c: New file.
4188         * modules/unicase/ulc-casexfrm: New file.
4189
4190 2009-03-09  Bruno Haible  <bruno@clisp.org>
4191
4192         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
4193         invocations.
4194
4195         * m4/mbscasecmp.m4: Remove file.
4196         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
4197         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
4198
4199         * m4/mbscasestr.m4: Remove file.
4200         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
4201         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
4202
4203         * m4/mbschr.m4: Remove file.
4204         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
4205         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
4206
4207         * m4/mbscspn.m4: Remove file.
4208         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
4209         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
4210
4211         * m4/mbslen.m4: Remove file.
4212         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
4213         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
4214
4215         * m4/mbsncasecmp.m4: Remove file.
4216         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
4217         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
4218
4219         * m4/mbsnlen.m4: Remove file.
4220         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
4221         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
4222
4223         * m4/mbspbrk.m4: Remove file.
4224         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
4225         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
4226
4227         * m4/mbspcasecmp.m4: Remove file.
4228         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
4229         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
4230
4231         * m4/mbsrchr.m4: Remove file.
4232         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
4233         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
4234
4235         * m4/mbssep.m4: Remove file.
4236         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
4237         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
4238
4239         * m4/mbsspn.m4: Remove file.
4240         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
4241         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
4242
4243         * m4/mbsstr.m4: Remove file.
4244         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
4245         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
4246
4247         * m4/mbstok_r.m4: Remove file.
4248         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
4249         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
4250
4251         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
4252
4253         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
4254         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
4255
4256         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
4257
4258 2009-03-08  Bruno Haible  <bruno@clisp.org>
4259
4260         Tests for module 'unicase/ulc-casecmp'.
4261         * modules/unicase/ulc-casecmp-tests: New file.
4262         * tests/unicase/test-ulc-casecmp1.sh: New file.
4263         * tests/unicase/test-ulc-casecmp2.sh: New file.
4264         * tests/unicase/test-ulc-casecmp.c: New file.
4265
4266         New module 'unicase/ulc-casecmp'.
4267         * lib/unicase.h (ulc_casecmp): New declaration.
4268         * lib/unicase/ulc-casecmp.c: New file.
4269         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
4270         'const SRC_UNIT *'.
4271         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
4272         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
4273         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
4274         * modules/unicase/ulc-casecmp: New file.
4275
4276         Tests for module 'unicase/u32-is-cased'.
4277         * modules/unicase/u32-is-cased-tests: New file.
4278         * tests/unicase/test-u32-is-cased.c: New file.
4279
4280         Tests for module 'unicase/u16-is-cased'.
4281         * modules/unicase/u16-is-cased-tests: New file.
4282         * tests/unicase/test-u16-is-cased.c: New file.
4283
4284         Tests for module 'unicase/u8-is-cased'.
4285         * modules/unicase/u8-is-cased-tests: New file.
4286         * tests/unicase/test-u8-is-cased.c: New file.
4287         * tests/unicase/test-is-cased.h: New file.
4288
4289         New module 'unicase/u32-is-cased'.
4290         * lib/unicase/u32-is-cased.c: New file.
4291         * modules/unicase/u32-is-cased: New file.
4292
4293         New module 'unicase/u16-is-cased'.
4294         * lib/unicase/u16-is-cased.c: New file.
4295         * modules/unicase/u16-is-cased: New file.
4296
4297         New module 'unicase/u8-is-cased'.
4298         * lib/unicase/u8-is-cased.c: New file.
4299         * lib/unicase/u-is-cased.h: New file.
4300         * modules/unicase/u8-is-cased: New file.
4301
4302         Tests for module 'unicase/u32-is-casefolded'.
4303         * modules/unicase/u32-is-casefolded-tests: New file.
4304         * tests/unicase/test-u32-is-casefolded.c: New file.
4305
4306         Tests for module 'unicase/u16-is-casefolded'.
4307         * modules/unicase/u16-is-casefolded-tests: New file.
4308         * tests/unicase/test-u16-is-casefolded.c: New file.
4309
4310         Tests for module 'unicase/u8-is-casefolded'.
4311         * modules/unicase/u8-is-casefolded-tests: New file.
4312         * tests/unicase/test-u8-is-casefolded.c: New file.
4313         * tests/unicase/test-is-casefolded.h: New file.
4314
4315         New module 'unicase/u32-is-casefolded'.
4316         * lib/unicase/u32-is-casefolded.c: New file.
4317         * modules/unicase/u32-is-casefolded: New file.
4318
4319         New module 'unicase/u16-is-casefolded'.
4320         * lib/unicase/u16-is-casefolded.c: New file.
4321         * modules/unicase/u16-is-casefolded: New file.
4322
4323         New module 'unicase/u8-is-casefolded'.
4324         * lib/unicase/u8-is-casefolded.c: New file.
4325         * modules/unicase/u8-is-casefolded: New file.
4326
4327         Tests for module 'unicase/u32-is-titlecase'.
4328         * modules/unicase/u32-is-titlecase-tests: New file.
4329         * tests/unicase/test-u32-is-titlecase.c: New file.
4330
4331         Tests for module 'unicase/u16-is-titlecase'.
4332         * modules/unicase/u16-is-titlecase-tests: New file.
4333         * tests/unicase/test-u16-is-titlecase.c: New file.
4334
4335         Tests for module 'unicase/u8-is-titlecase'.
4336         * modules/unicase/u8-is-titlecase-tests: New file.
4337         * tests/unicase/test-u8-is-titlecase.c: New file.
4338         * tests/unicase/test-is-titlecase.h: New file.
4339
4340         New module 'unicase/u32-is-titlecase'.
4341         * lib/unicase/u32-is-titlecase.c: New file.
4342         * modules/unicase/u32-is-titlecase: New file.
4343
4344         New module 'unicase/u16-is-titlecase'.
4345         * lib/unicase/u16-is-titlecase.c: New file.
4346         * modules/unicase/u16-is-titlecase: New file.
4347
4348         New module 'unicase/u8-is-titlecase'.
4349         * lib/unicase/u8-is-titlecase.c: New file.
4350         * modules/unicase/u8-is-titlecase: New file.
4351
4352         Tests for module 'unicase/u32-is-lowercase'.
4353         * modules/unicase/u32-is-lowercase-tests: New file.
4354         * tests/unicase/test-u32-is-lowercase.c: New file.
4355
4356         Tests for module 'unicase/u16-is-lowercase'.
4357         * modules/unicase/u16-is-lowercase-tests: New file.
4358         * tests/unicase/test-u16-is-lowercase.c: New file.
4359
4360         Tests for module 'unicase/u8-is-lowercase'.
4361         * modules/unicase/u8-is-lowercase-tests: New file.
4362         * tests/unicase/test-u8-is-lowercase.c: New file.
4363         * tests/unicase/test-is-lowercase.h: New file.
4364
4365         New module 'unicase/u32-is-lowercase'.
4366         * lib/unicase/u32-is-lowercase.c: New file.
4367         * modules/unicase/u32-is-lowercase: New file.
4368
4369         New module 'unicase/u16-is-lowercase'.
4370         * lib/unicase/u16-is-lowercase.c: New file.
4371         * modules/unicase/u16-is-lowercase: New file.
4372
4373         New module 'unicase/u8-is-lowercase'.
4374         * lib/unicase/u8-is-lowercase.c: New file.
4375         * modules/unicase/u8-is-lowercase: New file.
4376
4377         Tests for module 'unicase/u32-is-uppercase'.
4378         * modules/unicase/u32-is-uppercase-tests: New file.
4379         * tests/unicase/test-u32-is-uppercase.c: New file.
4380
4381         Tests for module 'unicase/u16-is-uppercase'.
4382         * modules/unicase/u16-is-uppercase-tests: New file.
4383         * tests/unicase/test-u16-is-uppercase.c: New file.
4384
4385         Tests for module 'unicase/u8-is-uppercase'.
4386         * modules/unicase/u8-is-uppercase-tests: New file.
4387         * tests/unicase/test-u8-is-uppercase.c: New file.
4388         * tests/unicase/test-is-uppercase.h: New file.
4389
4390         New module 'unicase/u32-is-uppercase'.
4391         * lib/unicase/u32-is-uppercase.c: New file.
4392         * modules/unicase/u32-is-uppercase: New file.
4393
4394         New module 'unicase/u16-is-uppercase'.
4395         * lib/unicase/u16-is-uppercase.c: New file.
4396         * modules/unicase/u16-is-uppercase: New file.
4397
4398         New module 'unicase/u8-is-uppercase'.
4399         * lib/unicase/u8-is-uppercase.c: New file.
4400         * modules/unicase/u8-is-uppercase: New file.
4401
4402         New module 'unicase/u32-is-invariant'.
4403         * lib/unicase/u32-is-invariant.c: New file.
4404         * modules/unicase/u32-is-invariant: New file.
4405
4406         New module 'unicase/u16-is-invariant'.
4407         * lib/unicase/u16-is-invariant.c: New file.
4408         * modules/unicase/u16-is-invariant: New file.
4409
4410         New module 'unicase/u8-is-invariant'.
4411         * lib/unicase/u8-is-invariant.c: New file.
4412         * lib/unicase/invariant.h: New file.
4413         * lib/unicase/u-is-invariant.h: New file.
4414         * modules/unicase/u8-is-invariant: New file.
4415
4416         Tests for module 'unicase/u32-casecoll'.
4417         * modules/unicase/u32-casecoll-tests: New file.
4418         * tests/unicase/test-u32-casecoll.c: New file.
4419
4420         Tests for module 'unicase/u16-casecoll'.
4421         * modules/unicase/u16-casecoll-tests: New file.
4422         * tests/unicase/test-u16-casecoll.c: New file.
4423
4424         Tests for module 'unicase/u8-casecoll'.
4425         * modules/unicase/u8-casecoll-tests: New file.
4426         * tests/unicase/test-u8-casecoll.c: New file.
4427
4428         New module 'unicase/u32-casecoll'.
4429         * lib/unicase/u32-casecoll.c: New file.
4430         * modules/unicase/u32-casecoll: New file.
4431
4432         New module 'unicase/u16-casecoll'.
4433         * lib/unicase/u16-casecoll.c: New file.
4434         * modules/unicase/u16-casecoll: New file.
4435
4436         New module 'unicase/u8-casecoll'.
4437         * lib/unicase/u8-casecoll.c: New file.
4438         * lib/unicase/u-casecoll.h: New file.
4439         * modules/unicase/u8-casecoll: New file.
4440
4441         New module 'unicase/u32-casexfrm'.
4442         * lib/unicase/u32-casexfrm.c: New file.
4443         * modules/unicase/u32-casexfrm: New file.
4444
4445         New module 'unicase/u16-casexfrm'.
4446         * lib/unicase/u16-casexfrm.c: New file.
4447         * modules/unicase/u16-casexfrm: New file.
4448
4449         New module 'unicase/u8-casexfrm'.
4450         * lib/unicase/u8-casexfrm.c: New file.
4451         * lib/unicase/u-casexfrm.h: New file.
4452         * modules/unicase/u8-casexfrm: New file.
4453
4454         Tests for module 'unicase/u32-casecmp'.
4455         * modules/unicase/u32-casecmp-tests: New file.
4456         * tests/unicase/test-u32-casecmp.c: New file.
4457
4458         Tests for module 'unicase/u16-casecmp'.
4459         * modules/unicase/u16-casecmp-tests: New file.
4460         * tests/unicase/test-u16-casecmp.c: New file.
4461
4462         Tests for module 'unicase/u8-casecmp'.
4463         * modules/unicase/u8-casecmp-tests: New file.
4464         * tests/unicase/test-u8-casecmp.c: New file.
4465         * tests/unicase/test-casecmp.h: New file.
4466
4467         New module 'unicase/u32-casecmp'.
4468         * lib/unicase/u32-casecmp.c: New file.
4469         * modules/unicase/u32-casecmp: New file.
4470
4471         New module 'unicase/u16-casecmp'.
4472         * lib/unicase/u16-casecmp.c: New file.
4473         * modules/unicase/u16-casecmp: New file.
4474
4475         New module 'unicase/u8-casecmp'.
4476         * lib/unicase/u8-casecmp.c: New file.
4477         * lib/unicase/u-casecmp.h: New file.
4478         * modules/unicase/u8-casecmp: New file.
4479
4480         Tests for module 'unicase/u32-casefold'.
4481         * modules/unicase/u32-casefold-tests: New file.
4482         * tests/unicase/test-u32-casefold.c: New file.
4483
4484         Tests for module 'unicase/u16-casefold'.
4485         * modules/unicase/u16-casefold-tests: New file.
4486         * tests/unicase/test-u16-casefold.c: New file.
4487
4488         Tests for module 'unicase/u8-casefold'.
4489         * modules/unicase/u8-casefold-tests: New file.
4490         * tests/unicase/test-u8-casefold.c: New file.
4491
4492         New module 'unicase/u32-casefold'.
4493         * lib/unicase/u32-casefold.c: New file.
4494         * modules/unicase/u32-casefold: New file.
4495
4496         New module 'unicase/u16-casefold'.
4497         * lib/unicase/u16-casefold.c: New file.
4498         * modules/unicase/u16-casefold: New file.
4499
4500         New module 'unicase/u8-casefold'.
4501         * lib/unicase/u8-casefold.c: New file.
4502         * lib/unicase/u-casefold.h: New file.
4503         * modules/unicase/u8-casefold: New file.
4504
4505         New module 'unicase/tocasefold'.
4506         * lib/unicase/casefold.h: New file.
4507         * lib/unicase/tocasefold.c: New file.
4508         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
4509         * modules/unicase/tocasefold: New file.
4510
4511         Tests for module 'unicase/u32-totitle'.
4512         * modules/unicase/u32-totitle-tests: New file.
4513         * tests/unicase/test-u32-totitle.c: New file.
4514
4515         Tests for module 'unicase/u16-totitle'.
4516         * modules/unicase/u16-totitle-tests: New file.
4517         * tests/unicase/test-u16-totitle.c: New file.
4518
4519         Tests for module 'unicase/u8-totitle'.
4520         * modules/unicase/u8-totitle-tests: New file.
4521         * tests/unicase/test-u8-totitle.c: New file.
4522
4523         New module 'unicase/u32-totitle'.
4524         * lib/unicase/u32-totitle.c: New file.
4525         * modules/unicase/u32-totitle: New file.
4526
4527         New module 'unicase/u16-totitle'.
4528         * lib/unicase/u16-totitle.c: New file.
4529         * modules/unicase/u16-totitle: New file.
4530
4531         New module 'unicase/u8-totitle'.
4532         * lib/unicase/u8-totitle.c: New file.
4533         * lib/unicase/u-totitle.h: New file.
4534         * modules/unicase/u8-totitle: New file.
4535
4536         Tests for module 'unicase/u32-tolower'.
4537         * modules/unicase/u32-tolower-tests: New file.
4538         * tests/unicase/test-u32-tolower.c: New file.
4539
4540         Tests for module 'unicase/u16-tolower'.
4541         * modules/unicase/u16-tolower-tests: New file.
4542         * tests/unicase/test-u16-tolower.c: New file.
4543
4544         Tests for module 'unicase/u8-tolower'.
4545         * modules/unicase/u8-tolower-tests: New file.
4546         * tests/unicase/test-u8-tolower.c: New file.
4547
4548         New module 'unicase/u32-tolower'.
4549         * lib/unicase/u32-tolower.c: New file.
4550         * modules/unicase/u32-tolower: New file.
4551
4552         New module 'unicase/u16-tolower'.
4553         * lib/unicase/u16-tolower.c: New file.
4554         * modules/unicase/u16-tolower: New file.
4555
4556         New module 'unicase/u8-tolower'.
4557         * lib/unicase/u8-tolower.c: New file.
4558         * modules/unicase/u8-tolower: New file.
4559
4560         Tests for module 'unicase/u32-toupper'.
4561         * modules/unicase/u32-toupper-tests: New file.
4562         * tests/unicase/test-u32-toupper.c: New file.
4563
4564         Tests for module 'unicase/u16-toupper'.
4565         * modules/unicase/u16-toupper-tests: New file.
4566         * tests/unicase/test-u16-toupper.c: New file.
4567
4568         Tests for module 'unicase/u8-toupper'.
4569         * modules/unicase/u8-toupper-tests: New file.
4570         * tests/unicase/test-u8-toupper.c: New file.
4571
4572         New module 'unicase/u32-toupper'.
4573         * lib/unicase/u32-toupper.c: New file.
4574         * modules/unicase/u32-toupper: New file.
4575
4576         New module 'unicase/u16-toupper'.
4577         * lib/unicase/u16-toupper.c: New file.
4578         * modules/unicase/u16-toupper: New file.
4579
4580         New module 'unicase/u8-toupper'.
4581         * lib/unicase/u8-toupper.c: New file.
4582         * modules/unicase/u8-toupper: New file.
4583
4584         New module 'unicase/u32-casemap'.
4585         * lib/unicase/u32-casemap.c: New file.
4586         * modules/unicase/u32-casemap: New file.
4587
4588         New module 'unicase/u16-casemap'.
4589         * lib/unicase/u16-casemap.c: New file.
4590         * modules/unicase/u16-casemap: New file.
4591
4592         New module 'unicase/u8-casemap'.
4593         * lib/unicase/unicasemap.h: New file.
4594         * lib/unicase/u8-casemap.c: New file.
4595         * lib/unicase/u-casemap.h: New file.
4596         * modules/unicase/u8-casemap: New file.
4597
4598         New module 'unicase/special-casing'.
4599         * lib/unicase/special-casing.h: New file.
4600         * lib/unicase/special-casing.c: New file.
4601         * lib/unicase/special-casing-table.gperf: New file, generated by
4602         gen-uni-tables.c.
4603         * modules/unicase/special-casing: New file.
4604
4605         Tests for module 'unicase/locale-language'.
4606         * modules/unicase/locale-language-tests: New file.
4607         * tests/unicase/test-locale-language.sh: New file.
4608         * tests/unicase/test-locale-language.c: New file.
4609
4610         New module 'unicase/locale-language'.
4611         * lib/unicase/locale-language.c: New file.
4612         * lib/unicase/locale-languages.gperf: New file.
4613         * modules/unicase/locale-language: New file.
4614
4615         Generate more tables for case conversion and case folding.
4616         * lib/gen-uni-tables.c (SCC_*): New enum items.
4617         (struct special_casing_rule): New type.
4618         (casing_rules, num_casing_rules, allocated_casing_rules): New
4619         variables.
4620         (add_casing_rule, fill_casing_rules): New functions.
4621         (struct casefold_rule): New type.
4622         (casefolding_rules, num_casefolding_rules,
4623         allocated_casefolding_rules): New variables.
4624         (fill_casefolding_rules): New function.
4625         (unicode_casefold): New variable.
4626         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
4627         sort_casing_rules, output_casing_rules): New functions.
4628         (main): Accept to more arguments: SpecialCasing.txt and
4629         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
4630         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
4631         Output mapping for casefolding.
4632
4633         * lib/unicase.h: Include stdbool.h, uninorm.h.
4634         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
4635         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
4636         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
4637         arguments.
4638         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
4639         resultp arguments.
4640         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
4641         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
4642         resultp arguments.
4643         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
4644         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
4645         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
4646         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
4647         declarations.
4648         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
4649
4650 2009-03-08  Bruno Haible  <bruno@clisp.org>
4651
4652         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4653         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
4654         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
4655         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4656
4657 2009-03-07  Bruno Haible  <bruno@clisp.org>
4658
4659         Adjust u*_normcmp, u*_normcoll API.
4660         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4661         u16_normcoll, u32_normcoll): Change failure conventions.
4662         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
4663         errno and return -1.
4664         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4665
4666 2009-03-07  Bruno Haible  <bruno@clisp.org>
4667
4668         Tests for module 'uninorm/u32-normcoll'.
4669         * modules/uninorm/u32-normcoll-tests: New file.
4670         * tests/uninorm/test-u32-normcoll.c: New file.
4671
4672         Tests for module 'uninorm/u16-normcoll'.
4673         * modules/uninorm/u16-normcoll-tests: New file.
4674         * tests/uninorm/test-u16-normcoll.c: New file.
4675
4676         Tests for module 'uninorm/u8-normcoll'.
4677         * modules/uninorm/u8-normcoll-tests: New file.
4678         * tests/uninorm/test-u8-normcoll.c: New file.
4679
4680 2009-03-07  Bruno Haible  <bruno@clisp.org>
4681
4682         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
4683         tests/uninorm/test-u32-normcmp.c.
4684         * tests/uninorm/test-u32-normcmp.c: Include it.
4685         (test_nonascii): New function, extracted from main. Add some more
4686         tests.
4687         (main): Invoke test_ascii and test_nonascii.
4688         * modules/uninorm/u32-normcmp-tests (Files): Add
4689         tests/uninorm/test-u32-normcmp.h.
4690         (Depends-on): Remove uninorm/u32-normcmp.
4691
4692         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
4693         tests/uninorm/test-u16-normcmp.c.
4694         * tests/uninorm/test-u16-normcmp.c: Include it.
4695         (test_nonascii): New function, extracted from main. Add some more
4696         tests.
4697         (main): Invoke test_ascii and test_nonascii.
4698         * modules/uninorm/u16-normcmp-tests (Files): Add
4699         tests/uninorm/test-u16-normcmp.h.
4700         (Depends-on): Remove uninorm/u16-normcmp.
4701
4702         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
4703         tests/uninorm/test-u8-normcmp.c.
4704         * tests/uninorm/test-u8-normcmp.c: Include it.
4705         (test_nonascii): New function, extracted from main. Add some more
4706         tests.
4707         (main): Invoke test_ascii and test_nonascii.
4708         * modules/uninorm/u8-normcmp-tests (Files): Add
4709         tests/uninorm/test-u8-normcmp.h.
4710         (Depends-on): Remove uninorm/u8-normcmp.
4711
4712 2009-03-07  Bruno Haible  <bruno@clisp.org>
4713
4714         New module 'uninorm/u32-normcoll'.
4715         * lib/uninorm/u32-normcoll.c: New file.
4716         * modules/uninorm/u32-normcoll: New file.
4717
4718         New module 'uninorm/u16-normcoll'.
4719         * lib/uninorm/u16-normcoll.c: New file.
4720         * modules/uninorm/u16-normcoll: New file.
4721
4722         New module 'uninorm/u8-normcoll'.
4723         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
4724         declarations.
4725         * lib/uninorm/u8-normcoll.c: New file.
4726         * lib/uninorm/u-normcoll.h: New file.
4727         * modules/uninorm/u8-normcoll: New file.
4728
4729         New module 'uninorm/u32-normxfrm'.
4730         * lib/uninorm/u32-normxfrm.c: New file.
4731         * modules/uninorm/u32-normxfrm: New file.
4732
4733         New module 'uninorm/u16-normxfrm'.
4734         * lib/uninorm/u16-normxfrm.c: New file.
4735         * modules/uninorm/u16-normxfrm: New file.
4736
4737         New module 'uninorm/u8-normxfrm'.
4738         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
4739         declarations.
4740         * lib/uninorm/u8-normxfrm.c: New file.
4741         * lib/uninorm/u-normxfrm.h: New file.
4742         * modules/uninorm/u8-normxfrm: New file.
4743
4744 2009-03-07  Bruno Haible  <bruno@clisp.org>
4745
4746         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
4747         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
4748         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
4749
4750 2009-03-07  Bruno Haible  <bruno@clisp.org>
4751
4752         New module 'memxfrm'.
4753         * lib/memxfrm.h: New file.
4754         * lib/memxfrm.c: New file.
4755         * modules/memxfrm: New file.
4756
4757 2009-03-07  Bruno Haible  <bruno@clisp.org>
4758
4759         New module 'memcmp2'.
4760         * lib/memcmp2.h: New file.
4761         * lib/memcmp2.c: New file.
4762         * modules/memcmp2: New file.
4763
4764 2009-03-07  Bruno Haible  <bruno@clisp.org>
4765
4766         Tests for module 'uninorm/decomposing-form'.
4767         * modules/uninorm/decomposing-form-tests: New file.
4768         * tests/uninorm/test-decomposing-form.c: New file.
4769
4770         New module 'uninorm/decomposing-form'.
4771         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
4772         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
4773         Add 'decomposing_variant' field.
4774         * lib/uninorm/decomposing-form.c: New file.
4775         * lib/uninorm/nfc.c (uninorm_nfc): Update.
4776         * lib/uninorm/nfd.c (uninorm_nfd): Update.
4777         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
4778         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
4779         * modules/uninorm/decomposing-form: New file.
4780         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
4781         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
4782
4783 2009-03-07  Bruno Haible  <bruno@clisp.org>
4784
4785         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
4786         strings.
4787
4788 2009-03-06  Bruno Haible  <bruno@clisp.org>
4789
4790         Tests for module 'uninorm/u32-normcmp'.
4791         * tests/uninorm/test-u32-normcmp.c: New file.
4792         * modules/uninorm/u32-normcmp-tests: New file.
4793
4794         Tests for module 'uninorm/u16-normcmp'.
4795         * tests/uninorm/test-u16-normcmp.c: New file.
4796         * modules/uninorm/u16-normcmp-tests: New file.
4797
4798         Tests for module 'uninorm/u8-normcmp'.
4799         * tests/uninorm/test-u8-normcmp.c: New file.
4800         * modules/uninorm/u8-normcmp-tests: New file.
4801
4802         New module 'uninorm/u32-normcmp'.
4803         * lib/uninorm/u32-normcmp.c: New file.
4804         * modules/uninorm/u32-normcmp: New file.
4805
4806         New module 'uninorm/u16-normcmp'.
4807         * lib/uninorm/u16-normcmp.c: New file.
4808         * modules/uninorm/u16-normcmp: New file.
4809
4810         New module 'uninorm/u8-normcmp'.
4811         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
4812         declarations.
4813         * lib/uninorm/u8-normcmp.c: New file.
4814         * lib/uninorm/u-normcmp.h: New file.
4815         * modules/uninorm/u8-normcmp: New file.
4816
4817 2009-03-06  Bruno Haible  <bruno@clisp.org>
4818
4819         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
4820         Reported by Eric Blake.
4821
4822 2009-03-06  Eric Blake  <ebb9@byu.net>
4823             Bruno Haible  <bruno@clisp.org>
4824
4825         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
4826         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
4827         condition.
4828         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
4829         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
4830         condition.
4831         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
4832
4833 2009-03-06  Eric Blake  <ebb9@byu.net>
4834
4835         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
4836         to avoid compiler warnings.
4837         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
4838
4839 2009-03-05  Bruno Haible  <bruno@clisp.org>
4840
4841         * tests/test-ftell.c (main): Disable test beyond end of file on
4842         FreeMiNT.
4843         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
4844
4845 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
4846
4847         * lib/filevercmp.c: Move hidden files up in ordering.
4848         * tests/test-filevercmp.c: Add tests for hidden files.
4849
4850 2009-03-04  Bruno Haible  <bruno@clisp.org>
4851
4852         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
4853         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
4854         AM_CFLAGS.
4855         Reported by Simon Josefsson.
4856
4857 2009-03-03  Bruno Haible  <bruno@clisp.org>
4858
4859         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
4860         Reported by Simon Josefsson.
4861
4862         * doc/ld-version-script.texi: Update node reference.
4863
4864 2009-03-03  Bruno Haible  <bruno@clisp.org>
4865
4866         * modules/visibility (License): Change to 'unlimited'.
4867         Suggested by Simon Josefsson.
4868
4869 2009-03-03  Jim Meyering  <meyering@redhat.com>
4870
4871         unlinkdir: cannot_unlink_dir may modify process state
4872         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
4873         it's neither thread-safe nor appropriate for use in a library.
4874
4875 2009-03-03  Eric Blake  <ebb9@byu.net>
4876
4877         test-closein: silence test under Darwin
4878         * tests/test-closein.sh: Ignore stderr from cat, since we don't
4879         care if it dies from EPIPE or EBADF.
4880
4881 2009-03-03  Bruno Haible  <bruno@clisp.org>
4882
4883         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
4884         earlier.
4885         * doc/visibility.texi: Fix @node and @section.
4886
4887 2009-03-03  Simon Josefsson  <simon@josefsson.org>
4888
4889         * doc/gnulib.texi: Link to sections for ld version script and
4890         visibility.
4891         * doc/visibility.texi: Add @node and @section.
4892         * modules/ld-version-script: New module.
4893         * m4/ld-version-script.m4: New file.
4894         * doc/ld-version-script.texi: New file.
4895
4896 2009-03-02  David Lutterkort  <lutter@redhat.com>
4897
4898         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
4899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4900
4901 2009-03-02  Bruno Haible  <bruno@clisp.org>
4902
4903         * doc/visibility.texi: Mention libtool's -export-symbols option.
4904
4905 2009-03-02  Jim Meyering  <meyering@redhat.com>
4906
4907         announce-gen: new option: --no-print-checksums
4908         * build-aux/announce-gen (usage): Describe it.
4909         (print_checksums): Print a newline here, not in the [*] footnote.
4910         (main): Honor it.
4911
4912 2009-03-01  Bruno Haible  <bruno@clisp.org>
4913
4914         Use socklen_t in the native Windows replacements prototypes.
4915         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
4916         instead of 'int'.
4917         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4918         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4919         * modules/getsockopt (Depends-on): Add socklen.
4920         * modules/setsockopt (Depends-on): Add socklen.
4921
4922 2009-03-01  Bruno Haible  <bruno@clisp.org>
4923
4924         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
4925         least 4.2.
4926
4927 2009-03-01  Eric Blake  <ebb9@byu.net>
4928             Bruno Haible  <bruno@clisp.org>
4929
4930         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
4931         error messages.
4932         * lib/wait-process.c (wait_subprocess): Omit error message about
4933         deadly signal sent to the child of termsigp != NULL.
4934
4935 2009-03-01  Eric Blake  <ebb9@byu.net>
4936
4937         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
4938
4939 2009-03-01  Bruno Haible  <bruno@clisp.org>
4940
4941         Avoid a gcc warning.
4942         * tests/test-sched.c (b): Make global.
4943         Reported by Eric Blake.
4944
4945 2009-01-19  Martin Lambers  <marlam@marlam.de>
4946
4947         Provide POSIX semantics for socket timeout options on W32.
4948         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
4949         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
4950         * modules/setsockopt: Depend on sys_time module for struct timeval.
4951         * modules/getsockopt: Depend on sys_time module for struct timeval.
4952
4953 2009-03-01  Simon Josefsson  <simon@josefsson.org>
4954
4955         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
4956         __USE_GNU, for consistency with netdb.in.h.
4957         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4958
4959 2009-03-01  Bruno Haible  <bruno@clisp.org>
4960
4961         More support for FreeMiNT.
4962         * lib/fseeko.c (rpl_fseeko): Complete last commit.
4963         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4964
4965 2009-03-01  Bruno Haible  <bruno@clisp.org>
4966
4967         More support for FreeMiNT.
4968         * lib/fpurge.c (fpurge): Correct last commit.
4969         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4970
4971 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4972
4973         Fix unportable awk script in vc-list-files.
4974         * build-aux/vc-list-files: In the replacement awk script, use
4975         substr with a second argument of 1, not zero.
4976         Report by Simon Josefsson.
4977
4978 2009-02-28  Bruno Haible  <bruno@clisp.org>
4979
4980         More support for FreeMiNT.
4981         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
4982         to FreeMiNT today.
4983         * lib/fwriting.c (fwriting): Likewise.
4984         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
4985
4986 2009-02-28  Bruno Haible  <bruno@clisp.org>
4987
4988         * tests/test-freadseek.c (main): Disable test beyond end of file on
4989         FreeMiNT.
4990         * tests/test-ftello.c (main): Likewise.
4991         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
4992
4993 2009-02-28  Bruno Haible  <bruno@clisp.org>
4994
4995         Add tentative support for FreeMiNT.
4996         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
4997         * lib/fpurge.c (fpurge): Likewise.
4998         * lib/freadable.c (freadable): Likewise.
4999         * lib/freading.c (freading): Likewise.
5000         * lib/freadptr.c (freadptr): Likewise.
5001         * lib/freadseek.c (freadptrinc): Likewise.
5002         * lib/fseeko.c (rpl_fseeko): Likewise.
5003         * lib/fseterr.c (fseterr): Likewise.
5004         * lib/fwritable.c (fwritable): Likewise.
5005         * lib/fwriting.c (fwriting): Likewise.
5006         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
5007         Hourihane.
5008         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5009
5010 2009-02-28  Bruno Haible  <bruno@clisp.org>
5011
5012         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
5013         SIGCHLD.
5014         Reported by Jim Meyering.
5015
5016 2009-02-28  Bruno Haible  <bruno@clisp.org>
5017
5018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
5019         Mention the results of these tests on various platforms.
5020         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
5021         order.
5022         * doc/posix-functions/printf.texi: Likewise.
5023         * doc/posix-functions/snprintf.texi: Likewise.
5024         * doc/posix-functions/sprintf.texi: Likewise.
5025         * doc/posix-functions/vfprintf.texi: Likewise.
5026         * doc/posix-functions/vprintf.texi: Likewise.
5027         * doc/posix-functions/vsnprintf.texi: Likewise.
5028         * doc/posix-functions/vsprintf.texi: Likewise.
5029         * doc/glibc-functions/obstack_printf.texi: Likewise.
5030         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5031
5032 2009-02-28  Bruno Haible  <bruno@clisp.org>
5033
5034         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
5035         Reported by Loïc Minier <lool@dooz.org>.
5036
5037 2009-02-27  Bruno Haible  <bruno@clisp.org>
5038
5039         * gnulib-tool (func_import): Make the sed expression used to create the
5040         sed script for updating the .gitignore file POSIX compliant.
5041         Reported by Eric Blake.
5042
5043 2009-02-27  Bruno Haible  <bruno@clisp.org>
5044
5045         * gnulib-tool (sed): Don't alias as "sed --posix".
5046         Reported by Eric Blake.
5047
5048 2009-02-27  Bruno Haible  <bruno@clisp.org>
5049
5050         Avoid test link errors.
5051         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
5052         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
5053         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
5054         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
5055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5056
5057 2009-02-27  Bruno Haible  <bruno@clisp.org>
5058
5059         Avoid spurious "(cached)" in configure output.
5060         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
5061         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
5062         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5063         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5064         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5065         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5066         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5067         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5068         Reported by Eric Blake.
5069
5070 2009-02-27  Eric Blake  <ebb9@byu.net>
5071
5072         printf: fix regression in previous patch
5073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
5074
5075 2009-02-27  Bruno Haible  <bruno@clisp.org>
5076
5077         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
5078         value.
5079         * lib/stdint.in.h: Likewise.
5080         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
5081
5082 2009-02-27  Eric Blake  <ebb9@byu.net>
5083
5084         doc: mention more functions added in cygwin 1.7.0
5085         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
5086         addition.
5087         * doc/posix-functions/open_wmemstream.texi: Likewise.
5088         * doc/posix-functions/wcsnlen.texi: Likewise.
5089         * doc/posix-functions/wcsnrtombs.texi: Likewise.
5090         * doc/posix-functions/wcstod.texi: Likewise.
5091         * doc/posix-functions/wcstof.texi: Likewise.
5092         * doc/posix-functions/wcstoimax.texi: Likewise.
5093         * doc/posix-functions/wcstok.texi: Likewise.
5094         * doc/posix-functions/wcstoumax.texi: Likewise.
5095
5096         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
5097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
5098         * doc/posix-functions/fprintf.texi: Update.
5099         * doc/posix-functions/printf.texi: Update.
5100         * doc/posix-functions/snprintf.texi: Update.
5101         * doc/posix-functions/sprintf.texi: Update.
5102         * doc/posix-functions/vfprintf.texi: Update.
5103         * doc/posix-functions/vprintf.texi: Update.
5104         * doc/posix-functions/vsnprintf.texi: Update.
5105         * doc/posix-functions/vsprintf.texi: Update.
5106         * doc/glibc-functions/obstack_printf.texi: Update.
5107         * doc/glibc-functions/obstack_vprintf.texi: Update.
5108
5109 2009-02-26  Eric Blake  <ebb9@byu.net>
5110
5111         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
5112         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
5113         compilation bug by using runtime conversion.
5114         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5115         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
5116         * modules/ceill-tests (Files): Use nan.h.
5117         * modules/floorl-tests (Files): Likewise.
5118         * modules/frexpl-tests (Files): Likewise.
5119         * modules/isnanl-tests (Files): Likewise.
5120         * modules/ldexpl-tests (Files): Likewise.
5121         * modules/roundl-tests (Files): Likewise.
5122         * modules/truncl-tests (Files): Likewise.
5123         * tests/test-ceill.c (main): Use a working NaN.
5124         * tests/test-floorl.c (main): Likewise.
5125         * tests/test-frexpl.c (main): Likewise.
5126         * tests/test-isnan.c (test_long_double): Likewise.
5127         * tests/test-isnanl.h (main): Likewise.
5128         * tests/test-ldexpl.h (main): Likewise.
5129         * tests/test-roundl.h (main): Likewise.
5130         * tests/test-truncl.h (main): Likewise.
5131         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
5132
5133 2009-02-26  Eric Blake  <ebb9@byu.net>
5134             Bruno Haible  <bruno@clisp.org>
5135
5136         Work around a *printf bug with %ls on Solaris.
5137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
5138         precision is specified, sprintf stops converting the wide string
5139         argument when the number of bytes that have been produced by this
5140         conversion equals or exceeds the precision.
5141         * doc/posix-functions/fprintf.texi: Update.
5142         * doc/posix-functions/printf.texi: Update.
5143         * doc/posix-functions/snprintf.texi: Update.
5144         * doc/posix-functions/sprintf.texi: Update.
5145         * doc/posix-functions/vfprintf.texi: Update.
5146         * doc/posix-functions/vprintf.texi: Update.
5147         * doc/posix-functions/vsnprintf.texi: Update.
5148         * doc/posix-functions/vsprintf.texi: Update.
5149         * doc/glibc-functions/obstack_printf.texi: Update.
5150         * doc/glibc-functions/obstack_vprintf.texi: Update.
5151
5152 2009-02-26  Eric Blake  <ebb9@byu.net>
5153
5154         stdlib: favor compiler check of random.h
5155         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
5156         to avoid an ObjC random.h installed by Swarm.
5157
5158 2009-02-26  Bruno Haible  <bruno@clisp.org>
5159
5160         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
5161         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
5162         Reported by Gary V. Vaughan <gary@gnu.org>.
5163
5164 2009-02-26  Bruno Haible  <bruno@clisp.org>
5165
5166         Fix *printf behaviour regarding the %ls directive.
5167         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
5168         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
5169         NEED_PRINTF_DIRECTIVE_LS.
5170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
5171         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5173         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
5174         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
5175         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
5176         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
5177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5181         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
5182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5185         * doc/posix-functions/fprintf.texi: Update.
5186         * doc/posix-functions/printf.texi: Update.
5187         * doc/posix-functions/snprintf.texi: Update.
5188         * doc/posix-functions/sprintf.texi: Update.
5189         * doc/posix-functions/vfprintf.texi: Update.
5190         * doc/posix-functions/vprintf.texi: Update.
5191         * doc/posix-functions/vsnprintf.texi: Update.
5192         * doc/posix-functions/vsprintf.texi: Update.
5193         * doc/glibc-functions/obstack_printf.texi: Update.
5194         * doc/glibc-functions/obstack_vprintf.texi: Update.
5195         Reported by Eric Blake.
5196
5197 2009-02-25  Bruno Haible  <bruno@clisp.org>
5198
5199         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
5200         with known value.
5201         Reported by Gary V. Vaughan <gary@gnu.org>.
5202
5203 2009-02-25  Bruno Haible  <bruno@clisp.org>
5204
5205         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
5206         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
5207         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
5208         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
5209         Reported by Gary V. Vaughan <gary@gnu.org>.
5210
5211 2009-02-25  Bruno Haible  <bruno@clisp.org>
5212
5213         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
5214         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
5215         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
5216         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
5217         Reported by Gary V. Vaughan <gary@gnu.org>.
5218
5219 2009-02-25  Eric Blake  <ebb9@byu.net>
5220
5221         tests: skip fseek/ftell tests if ungetc is broken
5222         * m4/ungetc.m4: New file.
5223         * modules/fseek-tests: Split test, so ungetc dependency is
5224         separate from rest of test.
5225         * modules/fseeko-tests: Likewise.
5226         * modules/ftell-tests: Likewise.
5227         * modules/ftello-tests: Likewise.
5228         * tests/test-fseek.c (main): Isolate ungetc dependency.
5229         * tests/test-fseeko.c (main): Likewise.
5230         * tests/test-ftell.c (main): Likewise.
5231         * tests/test-ftello.c (main): Likewise.
5232         * tests/test-fseek2.sh: New file.
5233         * tests/test-fseeko2.sh: Likewise.
5234         * tests/test-ftell2.sh: Likewise.
5235         * tests/test-ftello2.sh: Likewise.
5236
5237 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
5238
5239         test-getaddrinfo: fix usage of skip return code 77
5240         * tests/test-gettaddrinfo.c: Return skip code 77 only
5241         for first occurance of skip (4x77 is not 77)
5242
5243 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
5244
5245         strtod: avoid C99 decl-after-statement
5246         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
5247
5248 2009-02-24  Eric Blake  <ebb9@byu.net>
5249
5250         strtod: detect HP-UX 11.31 bug
5251         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
5252         Reported by Gary V. Vaughan.
5253
5254 2009-02-23  Bruno Haible  <bruno@clisp.org>
5255
5256         Fix invalid read past end of memory block.
5257         * lib/vasnprintf.c (DCHAR_SET): Define.
5258         (local_wcslen): Define only when needed.
5259         (local_strnlen, local_wcsnlen): New functions.
5260         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
5261         directives that involve a conversion ourselves.
5262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
5263         wcsnlen, mbrtowc, wcrtomb.
5264         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
5265         * tests/test-vasprintf-posix.c (test_function): Likewise.
5266         * tests/test-snprintf-posix.h (test_function): Likewise.
5267         * tests/test-sprintf-posix.h (test_function): Likewise.
5268         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5269
5270 2009-02-22  Bruno Haible  <bruno@clisp.org>
5271
5272         Implement new clarified decomposition of Hangul syllables.
5273         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
5274         of type LTV, return only a pairwise decomposition.
5275         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
5276         Likewise.
5277         * tests/uninorm/test-decomposition.c (main): Updated expected result.
5278         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
5279         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
5280
5281 2009-02-22  Bruno Haible  <bruno@clisp.org>
5282
5283         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
5284         zero-length results and shrink excess allocated memory.
5285         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
5286         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
5287         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
5288         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
5289         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
5290         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
5291         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
5292         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
5293         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
5294         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
5295         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
5296         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
5297
5298 2009-02-21  Bruno Haible  <bruno@clisp.org>
5299
5300         * doc/gnulib.texi: Include safe-alloc.texi earlier.
5301         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
5302         spaces after a period. Put a space between a macro name and its
5303         argument list. Trivial rewordings.
5304         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
5305         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
5306         (main): Return 0 explicitly.
5307
5308 2009-02-21  Bruno Haible  <bruno@clisp.org>
5309
5310         Tests for module 'uninorm/filter'.
5311         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
5312         * modules/uninorm/filter-tests: New file.
5313
5314         New module 'uninorm/filter'.
5315         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
5316         uninorm_filter_flush, uninorm_filter_free): New declarations.
5317         * lib/uninorm/uninorm-filter.c: New file.
5318         * modules/uninorm/filter: New file.
5319
5320 2009-02-21  Bruno Haible  <bruno@clisp.org>
5321
5322         Tests for module 'uninorm/nfkc'.
5323         * tests/uninorm/test-nfkc.c: New file.
5324         * tests/uninorm/test-u8-nfkc.c: New file.
5325         * tests/uninorm/test-u16-nfkc.c: New file.
5326         * tests/uninorm/test-u32-nfkc.c: New file.
5327         * tests/uninorm/test-u32-nfkc-big.sh: New file.
5328         * tests/uninorm/test-u32-nfkc-big.c: New file.
5329         * modules/uninorm/nfkc-tests: New file.
5330
5331         New module 'uninorm/nfkc'.
5332         * lib/uninorm/nfkc.c: New file.
5333         * modules/uninorm/nfkc: New file.
5334
5335         Tests for module 'uninorm/nfkd'.
5336         * tests/uninorm/test-nfkd.c: New file.
5337         * tests/uninorm/test-u8-nfkd.c: New file.
5338         * tests/uninorm/test-u16-nfkd.c: New file.
5339         * tests/uninorm/test-u32-nfkd.c: New file.
5340         * tests/uninorm/test-u32-nfkd-big.sh: New file.
5341         * tests/uninorm/test-u32-nfkd-big.c: New file.
5342         * modules/uninorm/nfkd-tests: New file.
5343
5344         New module 'uninorm/nfkd'.
5345         * lib/uninorm/nfkd.c: New file.
5346         * modules/uninorm/nfkd: New file.
5347
5348         Tests for module 'uninorm/nfc'.
5349         * tests/uninorm/test-nfc.c: New file.
5350         * tests/uninorm/test-u8-nfc.c: New file.
5351         * tests/uninorm/test-u16-nfc.c: New file.
5352         * tests/uninorm/test-u32-nfc.c: New file.
5353         * tests/uninorm/test-u32-nfc-big.sh: New file.
5354         * tests/uninorm/test-u32-nfc-big.c: New file.
5355         * modules/uninorm/nfc-tests: New file.
5356
5357         New module 'uninorm/nfc'.
5358         * lib/uninorm/nfc.c: New file.
5359         * modules/uninorm/nfc: New file.
5360
5361         Tests for module 'uninorm/nfd'.
5362         * tests/uninorm/test-nfd.c: New file.
5363         * tests/uninorm/test-u8-nfd.c: New file.
5364         * tests/uninorm/test-u16-nfd.c: New file.
5365         * tests/uninorm/test-u32-nfd.c: New file.
5366         * tests/uninorm/test-u32-nfd-big.sh: New file.
5367         * tests/uninorm/test-u32-nfd-big.c: New file.
5368         * tests/uninorm/test-u32-normalize-big.h: New file.
5369         * tests/uninorm/test-u32-normalize-big.c: New file.
5370         * tests/uninorm/NormalizationTest.txt: New file, created from
5371         Unicode 5.1.0 NormalizationTest.txt.
5372         * modules/uninorm/nfd-tests: New file.
5373
5374         New module 'uninorm/nfd'.
5375         * lib/uninorm/nfd.c: New file.
5376         * modules/uninorm/nfd: New file.
5377
5378         New module 'uninorm/u32-normalize'.
5379         * lib/uninorm/u32-normalize.c: New file.
5380         * modules/uninorm/u32-normalize: New file.
5381
5382         New module 'uninorm/u16-normalize'.
5383         * lib/uninorm/u16-normalize.c: New file.
5384         * modules/uninorm/u16-normalize: New file.
5385
5386         New module 'uninorm/u8-normalize'.
5387         * lib/uninorm/u8-normalize.c: New file.
5388         * lib/uninorm/normalize-internal.h: New file.
5389         * lib/uninorm/u-normalize-internal.h: New file.
5390         * modules/uninorm/u8-normalize: New file.
5391
5392         New module 'uninorm/decompose-internal'.
5393         * lib/uninorm/decompose-internal.c: New file.
5394         * modules/uninorm/decompose-internal: New file.
5395
5396         Tests for module 'uninorm/composition'.
5397         * tests/uninorm/test-composition.c: New file.
5398         * modules/uninorm/composition-tests: New file.
5399
5400         New module 'uninorm/composition'.
5401         * lib/uninorm/composition.c: New file.
5402         * lib/uninorm/composition-table.gperf: New file, generated by
5403         gen-uni-tables.
5404         * modules/uninorm/composition: New file.
5405
5406         Tests for module 'uninorm/compat-decomposition'.
5407         * tests/uninorm/test-compat-decomposition.c: New file.
5408         * modules/uninorm/compat-decomposition-tests: New file.
5409
5410         New module 'uninorm/compat-decomposition'.
5411         * lib/uninorm/decompose-internal.h: New file.
5412         * lib/uninorm/compat-decomposition.c: New file.
5413         * modules/uninorm/compat-decomposition: New file.
5414
5415         Tests for module 'uninorm/canonical-decomposition'.
5416         * tests/uninorm/test-canonical-decomposition.c: New file.
5417         * modules/uninorm/canonical-decomposition-tests: New file.
5418
5419         New module 'uninorm/canonical-decomposition'.
5420         * lib/uninorm/canonical-decomposition.c: New file.
5421         * modules/uninorm/canonical-decomposition: New file.
5422
5423         Tests for module 'uninorm/decomposition'.
5424         * tests/uninorm/test-decomposition.c: New file.
5425         * modules/uninorm/decomposition-tests: New file.
5426
5427         New module 'uninorm/decomposition'.
5428         * lib/uninorm/decomposition.c: New file.
5429         * modules/uninorm/decomposition: New file.
5430
5431         New module 'uninorm/decomposition-table'.
5432         * lib/uninorm/decomposition-table.h: New file.
5433         * lib/uninorm/decomposition-table.c: New file.
5434         * lib/uninorm/decomposition-table1.h: New file, generated by
5435         gen-uni-tables.
5436         * lib/uninorm/decomposition-table2.h: New file, generated by
5437         gen-uni-tables.
5438         * modules/uninorm/decomposition-table: New file.
5439
5440         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
5441         (UC_DECOMP_*): New enumeration items.
5442         (get_decomposition): New function.
5443         (struct decomp_table): New type.
5444         (output_decomposition, output_decomposition_tables): New functions.
5445         (unicode_composition_exclusions): New variable.
5446         (fill_composition_exclusions, debug_output_composition_tables): New
5447         functions.
5448         (main): Accept one more argument. Invoke fill_composition_exclusions.
5449         Output decomposition and composition tables.
5450
5451         New module 'uninorm/base'.
5452         * lib/uninorm.h: New file.
5453         * lib/unictype.h: Update comment.
5454         * modules/uninorm/base: New file.
5455
5456 2009-02-21  David Lutterkort  <lutter@redhat.com>
5457
5458         Tests for module 'safe-alloc'.
5459         * tests/test-safe-alloc.c: New file.
5460         * modules/safe-alloc-tests: New file.
5461
5462         New module 'safe-alloc'.
5463         * lib/safe-alloc.h: New file.
5464         * lib/safe-alloc.c: New file.
5465         * m4/safe-alloc.m4: New file.
5466         * modules/safe-alloc: New file.
5467         * doc/safe-alloc.texi: New file.
5468         * doc/gnulib.texi: Include it.
5469         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5470         safe-alloc.
5471
5472 2009-02-18  Bruno Haible  <bruno@clisp.org>
5473
5474         Fix link error on non-glibc systems.
5475         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
5476         variable.
5477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5478
5479 2009-02-18  Jim Meyering  <meyering@redhat.com>
5480
5481         fts: avoid used-uninitialized error due to recent change
5482         * lib/fts.c (fts_read): Guard uses of the new member,
5483         parent->fts_n_dirs_remaining, since it's not relevant for
5484         the parent of a directory specified on the command-line.
5485
5486 2009-02-17  James Youngman  <jay@gnu.org>
5487             Bruno Haible  <bruno@clisp.org>
5488
5489         * m4/include_next.m4: Reformulate comment.
5490
5491 2009-02-16  Jim Meyering  <meyering@redhat.com>
5492
5493         fts: add #if guards so that the fts_lgpl module still builds
5494         * lib/fts.c: Guard just-added hash-table-using parts with
5495         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
5496         Reported by Simon Josefsson.
5497
5498 2009-02-15  Bruno Haible  <bruno@clisp.org>
5499
5500         * modules/array-mergesort-tests: New file.
5501         * tests/test-array-mergesort.c: New file.
5502
5503         New module 'array-mergesort'.
5504         * modules/array-mergesort: New file.
5505         * lib/array-mergesort.h: New file.
5506
5507 2009-02-15  Bruno Haible  <bruno@clisp.org>
5508
5509         Fix 2009-02-07 commit.
5510         * lib/gen-uni-tables.c (output_predicate, output_category,
5511         output_combclass, output_bidi_category, output_decimal_digit,
5512         output_digit, output_numeric, output_mirror, output_scripts,
5513         output_ident_category, output_simple_mapping): Fix format directives.
5514         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
5515
5516 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
5517
5518         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
5519         fixes are available from IBM.
5520
5521 2009-02-13  Jim Meyering  <meyering@redhat.com>
5522
5523         fts: arrange not to stat non-directories in more cases
5524         This makes GNU find (when it doesn't need to stat each file)
5525         *much* more efficient at traversing reiserfs file systems.
5526         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
5527         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
5528         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
5529         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
5530         (leaf_optimization_applies): New function.
5531         (LCO_hash, LCO_compare): New helper functions.
5532         (link_count_optimize_ok): New function.
5533         (fts_stat): Initialize new member (if dir).
5534         (fts_read): Decrement parent's fts_n_dirs_remaining count if
5535         we've just stat'ed a directory.  Skip the stat call when possible.
5536         ---
5537         Note this AFS-related exchange:
5538         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
5539         and note find's pioctl call in find/fstype.c.
5540         But that is necessary only if you want to enable the
5541         optimization for AFS, and for now, I don't.
5542
5543         fts: move a function definition "up" (no semantic change)
5544         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
5545         "up" to precede upcoming use of a related function.
5546
5547 2009-02-11  Jim Meyering  <meyering@redhat.com>
5548
5549         fts: correct internal computation of nlinks (optimization-related)
5550         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
5551         whether the current entry is a directory, so don't test it.
5552
5553 2009-02-10  Bruno Haible  <bruno@clisp.org>
5554
5555         Tests for module 'uniwbrk/ulc-wordbreaks'.
5556         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
5557         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
5558         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
5559
5560         Tests for module 'uniwbrk/u32-wordbreaks'.
5561         * modules/uniwbrk/u32-wordbreaks-tests: New file.
5562         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
5563
5564         Tests for module 'uniwbrk/u16-wordbreaks'.
5565         * modules/uniwbrk/u16-wordbreaks-tests: New file.
5566         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
5567
5568         Tests for module 'uniwbrk/u8-wordbreaks'.
5569         * modules/uniwbrk/u8-wordbreaks-tests: New file.
5570         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
5571
5572 2009-02-10  Bruno Haible  <bruno@clisp.org>
5573
5574         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
5575         property.
5576         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
5577         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
5578         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
5579
5580 2009-02-10  Simon Josefsson  <simon@josefsson.org>
5581
5582         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
5583         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
5584
5585 2009-02-10  Bruno Haible  <bruno@clisp.org>
5586
5587         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
5588         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
5589         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
5590         * lib/unilbrk/u8-possible-linebreaks.c: Update.
5591         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
5592         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
5593
5594 2009-02-09  Simon Josefsson  <simon@josefsson.org>
5595
5596         * lib/sockets.h (gl_fd_to_handle): New function.
5597
5598         * tests/test-sockets.c: Call gl_fd_to_handle.
5599
5600 2009-02-09  Bruno Haible  <bruno@clisp.org>
5601
5602         * doc/havelib.texi: Document the conventions on bi-arch systems.
5603
5604 2009-02-08  Bruno Haible  <bruno@clisp.org>
5605
5606         Document the AC_LIB_LINKFLAGS macro.
5607         * doc/havelib.texi: New file, mostly written on 2005-05-24.
5608         * doc/gnulib.texi: Include it.
5609
5610 2009-02-08  Bruno Haible  <bruno@clisp.org>
5611
5612         Fix wrong order of sections, compared to TOC.
5613         * doc/gnulib.texi: Include relocatable-maint.texi after the
5614         "Regular expressions" node, not before.
5615
5616 2009-02-08  Bruno Haible  <bruno@clisp.org>
5617
5618         Tests for module 'unicase/totitle'.
5619         * modules/unicase/totitle-tests: New file.
5620
5621         Tests for module 'unicase/tolower'.
5622         * modules/unicase/tolower-tests: New file.
5623
5624         Tests for module 'unicase/toupper'.
5625         * modules/unicase/toupper-tests: New file.
5626         * tests/unicase/test-mapping-part1.h: New file.
5627         * tests/unicase/test-mapping-part2.h: New file.
5628
5629         New module 'unicase/totitle'.
5630         * modules/unicase/totitle: New file.
5631         * lib/unicase/totitle.c: New file.
5632
5633         New module 'unicase/tolower'.
5634         * modules/unicase/tolower: New file.
5635         * lib/unicase/tolower.c: New file.
5636
5637         New module 'unicase/toupper'.
5638         * modules/unicase/toupper: New file.
5639         * lib/unicase/toupper.c: New file.
5640         * lib/unicase/simple-mapping.h: New file.
5641
5642         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
5643         (mapping_table): New structure.
5644         (output_simple_mapping): New function.
5645         (main): Invoke output_simple_mapping_test and output_simple_mapping.
5646         * modules/gen-uni-tables (Description): Update.
5647         * lib/unicase/toupper.h: New file, automatically generated by
5648         gen-uni-tables.
5649         * lib/unicase/tolower.h: New file, automatically generated by
5650         gen-uni-tables.
5651         * lib/unicase/totitle.h: New file, automatically generated by
5652         gen-uni-tables.
5653         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
5654         gen-uni-tables.
5655         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
5656         gen-uni-tables.
5657         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
5658         gen-uni-tables.
5659
5660         New module 'unicase/base'.
5661         * modules/unicase/base: New file.
5662         * lib/unicase.h: New file.
5663
5664 2009-02-08  Bruno Haible  <bruno@clisp.org>
5665
5666         New module 'uniwbrk/ulc-wordbreaks'.
5667         * modules/uniwbrk/ulc-wordbreaks: New file.
5668         * lib/uniwbrk/ulc-wordbreaks.c: New file.
5669
5670         New module 'uniwbrk/u32-wordbreaks'.
5671         * modules/uniwbrk/u32-wordbreaks: New file.
5672         * lib/uniwbrk/u32-wordbreaks.c: New file.
5673
5674         New module 'uniwbrk/u16-wordbreaks'.
5675         * modules/uniwbrk/u16-wordbreaks: New file.
5676         * lib/uniwbrk/u16-wordbreaks.c: New file.
5677
5678         New module 'uniwbrk/u8-wordbreaks'.
5679         * modules/uniwbrk/u8-wordbreaks: New file.
5680         * lib/uniwbrk/u8-wordbreaks.c: New file.
5681         * lib/uniwbrk/u-wordbreaks.h: New file.
5682
5683         New module 'uniwbrk/table'.
5684         * modules/uniwbrk/table: New file.
5685         * lib/uniwbrk/wbrktable.h: New file.
5686         * lib/uniwbrk/wbrktable.c: New file.
5687
5688         New module 'uniwbrk/wordbreak-property'.
5689         * modules/uniwbrk/wordbreak-property: New file.
5690         * lib/uniwbrk/wordbreak-property.c: New file.
5691
5692         * lib/gen-uni-tables.c (WBP_*): New enum items.
5693         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
5694         (unicode_org_wbp): New variable.
5695         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
5696         New functions.
5697         (wbp_table): New structure.
5698         (output_wbp, output_wbrk_tables): New functions.
5699         (main): Accept additional argument. Invoke fill_org_wbp,
5700         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
5701         output_wbrk_tables.
5702         * modules/gen-uni-tables (Description): Update.
5703         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
5704         gen-uni-tables.
5705
5706         New module 'uniwbrk/base'.
5707         * modules/uniwbrk/base: New file.
5708         * lib/uniwbrk.h: New file.
5709
5710 2009-02-08  Bruno Haible  <bruno@clisp.org>
5711
5712         Update to Unicode 5.1.0.
5713         * lib/gen-uni-tables.c (is_property_alphabetic): Include
5714         U+2185..U+2188.
5715         (is_property_default_ignorable_code_point): Don't include characters
5716         of category Cc or Cs and not-a-characters.
5717         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
5718         U+0D79, U+109E, U+109F, U+A60C.
5719         * lib/unictype/bidi_of.h: Regenerated.
5720         * lib/unictype/blocks.h: Regenerated.
5721         * lib/unictype/categ_C.h: Regenerated.
5722         * lib/unictype/categ_Cf.h: Regenerated.
5723         * lib/unictype/categ_Cn.h: Regenerated.
5724         * lib/unictype/categ_L.h: Regenerated.
5725         * lib/unictype/categ_Ll.h: Regenerated.
5726         * lib/unictype/categ_Lm.h: Regenerated.
5727         * lib/unictype/categ_Lo.h: Regenerated.
5728         * lib/unictype/categ_Lu.h: Regenerated.
5729         * lib/unictype/categ_M.h: Regenerated.
5730         * lib/unictype/categ_Mc.h: Regenerated.
5731         * lib/unictype/categ_Me.h: Regenerated.
5732         * lib/unictype/categ_Mn.h: Regenerated.
5733         * lib/unictype/categ_N.h: Regenerated.
5734         * lib/unictype/categ_Nd.h: Regenerated.
5735         * lib/unictype/categ_Nl.h: Regenerated.
5736         * lib/unictype/categ_No.h: Regenerated.
5737         * lib/unictype/categ_P.h: Regenerated.
5738         * lib/unictype/categ_Pd.h: Regenerated.
5739         * lib/unictype/categ_Pe.h: Regenerated.
5740         * lib/unictype/categ_Pf.h: Regenerated.
5741         * lib/unictype/categ_Pi.h: Regenerated.
5742         * lib/unictype/categ_Po.h: Regenerated.
5743         * lib/unictype/categ_Ps.h: Regenerated.
5744         * lib/unictype/categ_S.h: Regenerated.
5745         * lib/unictype/categ_Sk.h: Regenerated.
5746         * lib/unictype/categ_Sm.h: Regenerated.
5747         * lib/unictype/categ_So.h: Regenerated.
5748         * lib/unictype/categ_of.h: Regenerated.
5749         * lib/unictype/combining.h: Regenerated.
5750         * lib/unictype/ctype_alnum.h: Regenerated.
5751         * lib/unictype/ctype_alpha.h: Regenerated.
5752         * lib/unictype/ctype_graph.h: Regenerated.
5753         * lib/unictype/ctype_lower.h: Regenerated.
5754         * lib/unictype/ctype_print.h: Regenerated.
5755         * lib/unictype/ctype_punct.h: Regenerated.
5756         * lib/unictype/ctype_upper.h: Regenerated.
5757         * lib/unictype/decdigit.h: Regenerated.
5758         * lib/unictype/digit.h: Regenerated.
5759         * lib/unictype/mirror.h: Regenerated.
5760         * lib/unictype/numeric.h: Regenerated.
5761         * lib/unictype/pr_alphabetic.h: Regenerated.
5762         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
5763         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
5764         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
5765         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
5766         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
5767         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
5768         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
5769         * lib/unictype/pr_combining.h: Regenerated.
5770         * lib/unictype/pr_dash.h: Regenerated.
5771         * lib/unictype/pr_decimal_digit.h: Regenerated.
5772         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
5773         * lib/unictype/pr_deprecated.h: Regenerated.
5774         * lib/unictype/pr_diacritic.h: Regenerated.
5775         * lib/unictype/pr_extender.h: Regenerated.
5776         * lib/unictype/pr_format_control.h: Regenerated.
5777         * lib/unictype/pr_grapheme_base.h: Regenerated.
5778         * lib/unictype/pr_grapheme_extend.h: Regenerated.
5779         * lib/unictype/pr_grapheme_link.h: Regenerated.
5780         * lib/unictype/pr_id_continue.h: Regenerated.
5781         * lib/unictype/pr_id_start.h: Regenerated.
5782         * lib/unictype/pr_ideographic.h: Regenerated.
5783         * lib/unictype/pr_ignorable_control.h: Regenerated.
5784         * lib/unictype/pr_lowercase.h: Regenerated.
5785         * lib/unictype/pr_math.h: Regenerated.
5786         * lib/unictype/pr_numeric.h: Regenerated.
5787         * lib/unictype/pr_other_alphabetic.h: Regenerated.
5788         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
5789         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
5790         * lib/unictype/pr_other_id_continue.h: Regenerated.
5791         * lib/unictype/pr_other_lowercase.h: Regenerated.
5792         * lib/unictype/pr_other_math.h: Regenerated.
5793         * lib/unictype/pr_punctuation.h: Regenerated.
5794         * lib/unictype/pr_sentence_terminal.h: Regenerated.
5795         * lib/unictype/pr_soft_dotted.h: Regenerated.
5796         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
5797         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
5798         * lib/unictype/pr_unified_ideograph.h: Regenerated.
5799         * lib/unictype/pr_uppercase.h: Regenerated.
5800         * lib/unictype/pr_xid_continue.h: Regenerated.
5801         * lib/unictype/pr_xid_start.h: Regenerated.
5802         * lib/unictype/pr_zero_width.h: Regenerated.
5803         * lib/unictype/scripts.h: Regenerated.
5804         * lib/unictype/scripts_byname.gperf: Regenerated.
5805         * lib/unictype/sy_java_ident.h: Regenerated.
5806         * lib/unilbrk/lbrkprop1.h: Regenerated.
5807         * lib/unilbrk/lbrkprop2.h: Regenerated.
5808         * tests/unictype/test-categ_C.c: Regenerated.
5809         * tests/unictype/test-categ_Cf.c: Regenerated.
5810         * tests/unictype/test-categ_Cn.c: Regenerated.
5811         * tests/unictype/test-categ_L.c: Regenerated.
5812         * tests/unictype/test-categ_Ll.c: Regenerated.
5813         * tests/unictype/test-categ_Lm.c: Regenerated.
5814         * tests/unictype/test-categ_Lo.c: Regenerated.
5815         * tests/unictype/test-categ_Lu.c: Regenerated.
5816         * tests/unictype/test-categ_M.c: Regenerated.
5817         * tests/unictype/test-categ_Mc.c: Regenerated.
5818         * tests/unictype/test-categ_Me.c: Regenerated.
5819         * tests/unictype/test-categ_Mn.c: Regenerated.
5820         * tests/unictype/test-categ_N.c: Regenerated.
5821         * tests/unictype/test-categ_Nd.c: Regenerated.
5822         * tests/unictype/test-categ_Nl.c: Regenerated.
5823         * tests/unictype/test-categ_No.c: Regenerated.
5824         * tests/unictype/test-categ_P.c: Regenerated.
5825         * tests/unictype/test-categ_Pd.c: Regenerated.
5826         * tests/unictype/test-categ_Pe.c: Regenerated.
5827         * tests/unictype/test-categ_Pf.c: Regenerated.
5828         * tests/unictype/test-categ_Pi.c: Regenerated.
5829         * tests/unictype/test-categ_Po.c: Regenerated.
5830         * tests/unictype/test-categ_Ps.c: Regenerated.
5831         * tests/unictype/test-categ_S.c: Regenerated.
5832         * tests/unictype/test-categ_Sk.c: Regenerated.
5833         * tests/unictype/test-categ_Sm.c: Regenerated.
5834         * tests/unictype/test-categ_So.c: Regenerated.
5835         * tests/unictype/test-ctype_alnum.c: Regenerated.
5836         * tests/unictype/test-ctype_alpha.c: Regenerated.
5837         * tests/unictype/test-ctype_graph.c: Regenerated.
5838         * tests/unictype/test-ctype_lower.c: Regenerated.
5839         * tests/unictype/test-ctype_print.c: Regenerated.
5840         * tests/unictype/test-ctype_punct.c: Regenerated.
5841         * tests/unictype/test-ctype_upper.c: Regenerated.
5842         * tests/unictype/test-decdigit.h: Regenerated.
5843         * tests/unictype/test-digit.h: Regenerated.
5844         * tests/unictype/test-numeric.h: Regenerated.
5845         * tests/unictype/test-pr_alphabetic.c: Regenerated.
5846         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
5847         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
5848         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
5849         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
5850         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
5851         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
5852         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
5853         * tests/unictype/test-pr_combining.c: Regenerated.
5854         * tests/unictype/test-pr_dash.c: Regenerated.
5855         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
5856         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
5857         * tests/unictype/test-pr_deprecated.c: Regenerated.
5858         * tests/unictype/test-pr_diacritic.c: Regenerated.
5859         * tests/unictype/test-pr_extender.c: Regenerated.
5860         * tests/unictype/test-pr_format_control.c: Regenerated.
5861         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
5862         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
5863         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
5864         * tests/unictype/test-pr_id_continue.c: Regenerated.
5865         * tests/unictype/test-pr_id_start.c: Regenerated.
5866         * tests/unictype/test-pr_ideographic.c: Regenerated.
5867         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
5868         * tests/unictype/test-pr_lowercase.c: Regenerated.
5869         * tests/unictype/test-pr_math.c: Regenerated.
5870         * tests/unictype/test-pr_numeric.c: Regenerated.
5871         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
5872         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
5873         Regenerated.
5874         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
5875         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
5876         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
5877         * tests/unictype/test-pr_other_math.c: Regenerated.
5878         * tests/unictype/test-pr_punctuation.c: Regenerated.
5879         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
5880         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
5881         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
5882         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
5883         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
5884         * tests/unictype/test-pr_uppercase.c: Regenerated.
5885         * tests/unictype/test-pr_xid_continue.c: Regenerated.
5886         * tests/unictype/test-pr_xid_start.c: Regenerated.
5887         * tests/unictype/test-pr_zero_width.c: Regenerated.
5888
5889         Update to Unicode 5.1.0.
5890         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
5891         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
5892         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
5893         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
5894         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
5895         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
5896         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
5897         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
5898         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
5899         (nonspacing_table_ind): Update.
5900         * tests/uniwidth/test-uc_width2.sh: Update expected result.
5901
5902         Update to Unicode 5.1.0.
5903         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
5904         code transform.
5905         * lib/uniname/uniname.c (unicode_character_name,
5906         unicode_name_character): Add the range 0x1Fxxx to the code transform.
5907         * lib/uniname/uninames.h: Regenerated.
5908         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
5909
5910 2009-02-07  Bruno Haible  <bruno@clisp.org>
5911
5912         Merge gen-ctype and gen-lbrk into a single program.
5913         * lib/gen-uni-tables.c: New file, incorporating
5914         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
5915         Add directory prefixes to the names of the generated files.
5916         * lib/unictype/gen-ctype.c: Remove file.
5917         * lib/unilbrk/gen-lbrk.c: Remove file.
5918         * modules/gen-uni-tables: New file.
5919         * modules/unictype/gen-ctype: Remove file.
5920         * modules/unilbrk/gen-lbrk: Remove file.
5921
5922 2009-02-07  Bruno Haible  <bruno@clisp.org>
5923
5924         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
5925
5926         New module 'unistr/u32-strcoll'.
5927         * modules/unistr/u32-strcoll: New file.
5928         * lib/unistr/u32-strcoll.c: New file.
5929
5930         New module 'unistr/u16-strcoll'.
5931         * modules/unistr/u16-strcoll: New file.
5932         * lib/unistr/u16-strcoll.c: New file.
5933
5934         New module 'unistr/u8-strcoll'.
5935         * modules/unistr/u8-strcoll: New file.
5936         * lib/unistr/u8-strcoll.c: New file.
5937         * lib/unistr/u-strcoll.h: New file.
5938
5939 2009-02-07  Bruno Haible  <bruno@clisp.org>
5940
5941         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
5942         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5943         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5944         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
5945         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
5946         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
5947
5948 2009-02-07  Bruno Haible  <bruno@clisp.org>
5949
5950         Make 64-bit clean.
5951         * lib/unictype/gen-ctype.c (output_predicate, output_category,
5952         output_combclass, output_bidi_category, output_decimal_digit,
5953         output_digit, output_numeric, output_mirror, output_scripts,
5954         output_ident_category): Use proper width specifier in format strings.
5955
5956 2009-02-07  Bruno Haible  <bruno@clisp.org>
5957
5958         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
5959         failure behaviour.
5960
5961 2009-02-07  Jim Meyering  <meyering@redhat.com>
5962
5963         regex: avoid compilation failure with upcoming gcc-4.4
5964         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
5965         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
5966         "... error: integer overflow in preprocessor expression".
5967
5968 2009-02-05  Ben Pfaff  <blp@gnu.org>
5969
5970         Fix link errors on Windows when close module is used.
5971         * modules/close: Add $(LIB_CLOSE) to Link section.
5972         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
5973         $(LIB_CLOSE) on Windows.
5974
5975 2009-02-05  Jim Meyering  <meyering@redhat.com>
5976
5977         still avoid unused-parameter warnings, but do it cleanly
5978         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
5979         (get_fs_usage): Cast to void instead.
5980         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
5981         (dev_from_mount_options, read_file_system_list): Cast to void.
5982         Prompted by Bruno Haible.
5983
5984 2009-02-04  Jim Meyering  <meyering@redhat.com>
5985
5986         fsusage.c: correct copyright year
5987         * lib/fsusage.c: Reflect year in which the change is pushed into
5988
5989         avoid misc. warnings
5990         * lib/fsusage.c (UNUSED_PARAM): Define.
5991         (get_fs_usage): Mark parameter "disk" as unused.
5992         * lib/getugroups.c (getgrent): Use "void" in prototype.
5993         * lib/mountlist.c: Mark unused parameters.
5994         (read_file_system_list): Declare a local with "const".
5995         * lib/nanosleep.c (getnow): Declare static.
5996         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
5997
5998         dirfd: set errno upon failure
5999         * lib/dirfd.c: Include <errno.h>.
6000         Set errno to ENOTSUP when returning -1.
6001         * modules/dirfd (Depends-on): Add errno.
6002         Suggested by John Kodis <kodis@comcast.net>.
6003
6004 2009-02-01  Bruno Haible  <bruno@clisp.org>
6005
6006         Don't assume sizeof (long) >= sizeof (void *).
6007         * lib/memcmp.c: Include stdint.h.
6008         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
6009         srcp2 to 'const byte *'.
6010         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
6011         types to uintptr_t.
6012         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
6013         * modules/memcmp (Depends-on): Add stdint.
6014         Reported by Ozkan Sezer <sezeroz@gmail.com>.
6015
6016 2009-01-30  Eric Blake  <ebb9@byu.net>
6017
6018         fix more require-before-expand issues
6019         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
6020         expand, AC_PROG_AWK.
6021         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
6022
6023 2009-01-28  Eric Blake  <ebb9@byu.net>
6024
6025         version-etc: use consistent URL formatting
6026         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
6027         Improve formatting.  Use fputs for string without %.
6028
6029 2009-01-28  Jim Meyering  <meyering@redhat.com>
6030
6031         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
6032         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
6033         "underquoted definition of NAME" from autoconf-2.59.
6034
6035 2009-01-28  Bruno Haible  <bruno@clisp.org>
6036
6037         * doc/gnulib.texi: Add "Obsolete modules" to index.
6038
6039 2009-01-28  Jim Meyering  <meyering@redhat.com>
6040
6041         useless-if-before-free: recognize more variants
6042         * build-aux/useless-if-before-free: Also recognize e.g.,
6043         if (NULL != p) free (p);
6044
6045 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
6046
6047         test-getaddrinfo: skip (don't fail) this test when there's no network
6048         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
6049         on the presumption that it means you lack network access.
6050
6051 2009-01-26  Jim Meyering  <meyering@redhat.com>
6052
6053         fflush: avoid warnings on modern systems
6054         * lib/fflush.c (rpl_fflush): Move declarations of locals,
6055         pos and result, into scopes where they're used.
6056
6057 2009-01-26  Eric Blake  <ebb9@byu.net>
6058
6059         Silence warning reintroduced by recent extensions patch.
6060         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
6061         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
6062         autoconf.
6063
6064         Backport improved autoconf semantics of AC_DEFUN_ONCE.
6065         * m4/00gnulib.m4: New file.
6066         * gnulib-tool (func_get_filelist): Always use it.
6067         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
6068         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
6069
6070 2009-01-25  Bruno Haible  <bruno@clisp.org>
6071
6072         Make test-quotearg work on MacOS X and AIX.
6073         * tests/test-quotearg.sh: New file.
6074         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
6075         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
6076         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
6077         include <libintl.h>.
6078         (fake_locale): Remove variable.
6079         (gettext, dgettext, dcgettext): Remove functions.
6080         (main): Instead of setting a fake locale, set a real locale. Call
6081         textdomain and bindtextdomain.
6082         * modules/quotearg-tests (Files): Add the new files.
6083         (Depends-on): Add gettext, setenv, unsetenv.
6084         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
6085         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
6086         Augment TESTS_ENVIRONMENT.
6087
6088 2009-01-25  Bruno Haible  <bruno@clisp.org>
6089
6090         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
6091         fr_FR.ISO8859-1 locale on MacOS X.
6092         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
6093         ja_JP.eucJP locale on MacOS X.
6094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
6095         zh_CN.GB18030 locale on MacOS X.
6096
6097 2009-01-25  Bruno Haible  <bruno@clisp.org>
6098
6099         Avoid link errors on MacOS X 10.3.
6100         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
6101         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
6102
6103 2009-01-25  Bruno Haible  <bruno@clisp.org>
6104
6105         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
6106         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
6107         * modules/pipe (Files): Remove m4/posix_spawn.m4.
6108         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
6109         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
6110         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
6111         posix_spawnattr_init, posix_spawnattr_setsigmask,
6112         posix_spawnattr_setflags, posix_spawnattr_destroy.
6113
6114         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
6115         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
6116         * modules/execute (Files): Remove m4/posix_spawn.m4.
6117         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
6118         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
6119         posix_spawnattr_init, posix_spawnattr_setsigmask,
6120         posix_spawnattr_setflags, posix_spawnattr_destroy.
6121
6122 2009-01-25  Bruno Haible  <bruno@clisp.org>
6123
6124         * lib/glthread/threadlib.c: Include <stdlib.h>.
6125
6126 2009-01-25  Bruno Haible  <bruno@clisp.org>
6127
6128         * lib/glthread/threadlib.c (dummy): New declaration.
6129
6130 2009-01-25  Bruno Haible  <bruno@clisp.org>
6131
6132         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
6133         multibyte characters also for the GB18030 encoding. Don't crash when
6134         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
6135
6136 2009-01-25  Bruno Haible  <bruno@clisp.org>
6137
6138         Avoid redefining 'struct random_data' on OSF/1 5.1.
6139         * lib/stdlib.in.h: Include <random.h> if it exists.
6140         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
6141         HAVE_RANDOM_H. Include <random.h> when testing whether
6142         'struct random_data' exists.
6143         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
6144
6145 2009-01-25  Bruno Haible  <bruno@clisp.org>
6146
6147         Don't install charset.alias on MacOS X >= 10.3.
6148         * lib/localcharset.c (DARWIN7): New macro.
6149         (get_charset_aliases): Hardcode the result for Darwin7.
6150         * modules/localcharset (install-exec-local): Don't install
6151         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
6152
6153 2009-01-25  Bruno Haible  <bruno@clisp.org>
6154
6155         Don't install charset.alias on mingw and Cygwin.
6156         * modules/localcharset (install-exec-local): Don't install
6157         charset.alias on mingw and Cygwin, if the file does not yet exist.
6158         The result for these platforms is hardcoded in localcharset.c.
6159
6160 2009-01-25  Bruno Haible  <bruno@clisp.org>
6161
6162         Make it possible again to use AC_GNU_SOURCE together with gnulib.
6163         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
6164         before requiring AC_USE_SYSTEM_EXTENSIONS.
6165
6166 2009-01-25  Jim Meyering  <meyering@redhat.com>
6167
6168         c-strtod: avoid warnings
6169         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
6170         "assignment discards qualifiers from pointer target type" warnings.
6171
6172 2009-01-24  Bruno Haible  <bruno@clisp.org>
6173
6174         Add support for non-UTF-8 locales on MacOS X.
6175         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
6176         canonical encodings. For Darwin 7 and newer, don't map traditional
6177         encodings to UTF-8.
6178         Reported by Vincent Lefevre <vincent@vinc17.org>
6179         at <http://savannah.gnu.org/bugs/?25235>.
6180
6181 2009-01-24  Bruno Haible  <bruno@clisp.org>
6182
6183         * doc/gnulib.texi (Obsolete modules): New section.
6184         Reported by Mike Frysinger <vapier@gentoo.org>.
6185
6186 2009-01-24  Bruno Haible  <bruno@clisp.org>
6187
6188         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
6189         (%.dvi): New rule.
6190
6191 2009-01-24  Bruno Haible  <bruno@clisp.org>
6192
6193         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
6194         Reported by Eric Blake.
6195
6196 2009-01-24  Bruno Haible  <bruno@clisp.org>
6197
6198         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
6199         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
6200         Reported by Gary V. Vaughan <gary@gnu.org>.
6201
6202 2009-01-24  Bruno Haible  <bruno@clisp.org>
6203
6204         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
6205
6206 2009-01-23  Bruno Haible  <bruno@clisp.org>
6207
6208         Make c-strtod, c-strtold usable in libraries.
6209         * lib/c-strtod.c: Include string.h instead of xalloc.h.
6210         (C_STRTOD): Call strdup instead of xstrdup.
6211         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
6212         * modules/c-strtold (Depends-on): Likewise.
6213         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
6214         * NEWS: Mention the change.
6215         Reported by Michael Gold <mgold@ncf.ca>.
6216
6217 2009-01-23  Jim Meyering  <meyering@redhat.com>
6218
6219         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
6220         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
6221         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
6222
6223 2009-01-23  Simon Josefsson  <simon@josefsson.org>
6224
6225         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
6226         GNU CoreUtils.
6227         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
6228         * modules/version-etc (Description): Update.
6229
6230 2009-01-22  Bruno Haible  <bruno@clisp.org>
6231
6232         Cache the C locale object.
6233         * lib/c-strtod.c (c_locale_cache): New variable.
6234         (c_locale): New function.
6235         (C_STRTOD): Use it, and don't call freelocale.
6236         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
6237         Suggested by Paolo Bonzini.
6238
6239 2009-01-21  Bruno Haible  <bruno@clisp.org>
6240
6241         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
6242         conditions other than overflow.
6243
6244 2009-01-21  Bruno Haible  <bruno@clisp.org>
6245
6246         * lib/c-strtod.c: Include errno.h.
6247         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
6248         value from STRTOD_L and STRTOD.
6249
6250 2009-01-21  Bruno Haible  <bruno@clisp.org>
6251         and Jim Meyering  <meyering@redhat.com>
6252
6253         nanosleep: skip configure test (fail it) for apple universal builds
6254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
6255         universal builds, assume that nanosleep does not work.
6256         * modules/nanosleep (Depends-on): Add multiarch.
6257
6258         mktime: skip configure test (fail it) for apple universal builds
6259         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
6260         universal builds, assume that mktime does not work.
6261         * modules/mktime (Depends-on): Add multiarch.
6262
6263 2009-01-21  Eric Blake  <ebb9@byu.net>
6264
6265         multiarch: avoid expand-before-require warning
6266         * modules/multiarch (configure.ac): Require, rather than expand,
6267         gl_MULTIARCH.
6268         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
6269         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
6270         enforce that all clients require it.  Partial reversion of
6271         2008-12-29 patch.
6272
6273         error: avoid expand-before-require warning
6274         * modules/errno (configure.ac): Require, rather than expand,
6275         gl_HEADER_ERRNO_H.
6276         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
6277         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
6278         enforce that all clients require it.
6279
6280         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
6281         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
6282         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
6283         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
6284
6285 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
6286
6287         Revert:
6288         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
6289
6290         regex: do not depend on obsolete modules.
6291         * modules/regex: Remove memcmp and memmove.
6292
6293 2009-01-20  Bruno Haible  <bruno@clisp.org>
6294
6295         Make the 'link' module link on Windows NT 4.
6296         * lib/link.c (_WIN32_WINNT): Don't define.
6297         (CreateHardLinkFuncType): New type.
6298         (CreateHardLinkFunc, initialized): New variables.
6299         (initialize): New function.
6300         (link): Invoke CreateHardLink indirectly through the function pointer.
6301
6302 2009-01-20  Bruno Haible  <bruno@clisp.org>
6303
6304         Fix compilation failure on mingw.
6305         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
6306
6307 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
6308
6309         * doc/c-strtod.texi: Mention a couple of restrictions.
6310
6311 2009-01-20  Jim Meyering  <meyering@redhat.com>
6312
6313         gettimeofday: move more declarations out of functions
6314         * lib/gettimeofday.c: Move extern declarations of tzset and
6315         gmtime out of containing functions.  Prompted by Bruno Haible.
6316
6317 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
6318
6319         regex: do not depend on obsolete modules.
6320         * modules/regex: Remove memcmp and memmove.
6321
6322 2009-01-19  Bruno Haible  <bruno@clisp.org>
6323
6324         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
6325         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
6326         gl_BIGENDIAN, not AC_C_BIGENDIAN.
6327         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
6328         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
6329
6330 2009-01-19  Bruno Haible  <bruno@clisp.org>
6331
6332         * tests/test-link.c: Include <errno.h>.
6333         (main): Exit with code 77 when a hard link cannot be created due to
6334         the file system.
6335         * tests/test-link.sh: Skip test when a hard link cannot be created due
6336         to the file system.
6337         Suggested by Eric Blake.
6338
6339 2009-01-19  Martin Lambers  <marlam@marlam.de>
6340
6341         * modules/link-tests: New file.
6342         * tests/test-link.sh: New file.
6343         * tests/test-link.c: New file.
6344
6345 2009-01-19  Eric Blake  <ebb9@byu.net>
6346
6347         doc: mention another function added in cygwin 1.7.0
6348         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
6349         Another new function in cygwin 1.7.
6350
6351 2009-01-19  Bruno Haible  <bruno@clisp.org>
6352
6353         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
6354         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
6355         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
6356         gl_BIGENDIAN, not AC_C_BIGENDIAN.
6357         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6358         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6359         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6360         * m4/md4.m4 (gl_MD4): Likewise.
6361         * m4/md5.m4 (gl_MD5): Likewise.
6362         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
6363         * m4/sha1.m4 (gl_SHA1): Likewise.
6364         * m4/sha256.m4 (gl_SHA256): Likewise.
6365         * m4/sha512.m4 (gl_SHA512): Likewise.
6366
6367 2009-01-19  Bruno Haible  <bruno@clisp.org>
6368
6369         * modules/uniname/uniname-tests (Depends-on): Add progname.
6370         * tests/uniname/test-uninames.c: Include progname.h.
6371         (main): Call set_program_name.
6372
6373         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
6374         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
6375         (main): Call set_program_name.
6376
6377         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
6378         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
6379         (main): Call set_program_name.
6380
6381         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
6382         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
6383         (main): Call set_program_name.
6384
6385         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
6386         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
6387         (main): Call set_program_name.
6388
6389         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
6390         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
6391         (main): Call set_program_name.
6392
6393         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
6394         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
6395         (main): Call set_program_name.
6396
6397         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
6398         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
6399         (main): Call set_program_name.
6400
6401         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
6402         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
6403         (main): Call set_program_name.
6404
6405 2009-01-19  Eric Blake  <ebb9@byu.net>
6406
6407         test-unistd: test previous patch
6408         * tests/test-unistd.c: Test *_FILENO macros.
6409
6410         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
6411         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6412         Guarantee a definition.
6413         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
6414         * modules/unistd-safer (Depends-on): Add dependency on unistd.
6415         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
6416         * lib/dup-safer.c (STDERR_FILENO): Likewise.
6417         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6418         Likewise.
6419         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
6420         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
6421         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6422         Likewise.
6423         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
6424         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
6425         (STDERR_FILENO): Likewise.
6426         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
6427         (STDERR_FILENO): Likewise.
6428         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
6429         (STDERR_FILENO): Likewise.
6430         Reported by Elbert Pol.
6431
6432 2009-01-19  Eric Blake  <ebb9@byu.net>
6433
6434         doc: mention more functions added in cygwin 1.7.0
6435         * doc/posix-functions/abort.texi (abort): Update wording related
6436         to cygwin.
6437         * doc/posix-functions/daylight.texi (daylight): Likewise.
6438         * doc/posix-functions/optarg.texi (optarg): Likewise.
6439         * doc/posix-functions/optarg.texi (opterr): Likewise.
6440         * doc/posix-functions/optarg.texi (optind): Likewise.
6441         * doc/posix-functions/optarg.texi (optopt): Likewise.
6442         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
6443         worked in 1.5.x, and was withdrawn in 1.7.
6444         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6445         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
6446         cygwin versions.
6447         * doc/posix-functions/perror.texi (perror): Likewise.
6448         * doc/posix-functions/printf.texi (printf): Likewise.
6449         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
6450         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
6451         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6452         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6453         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6454         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
6455         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
6456         Likewise.
6457         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
6458         Likewise.
6459         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
6460         this function.
6461         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
6462         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
6463         Likewise.
6464         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
6465         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
6466         * doc/posix-functions/confstr.texi (confstr): Likewise.
6467         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
6468         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
6469         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
6470         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
6471         * doc/posix-functions/fputws.texi (fputws): Likewise.
6472         * doc/posix-functions/fwide.texi (fwide): Likewise.
6473         * doc/posix-functions/getwc.texi (getwc): Likewise.
6474         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
6475         * doc/posix-functions/putwc.texi (putwc): Likewise.
6476         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6477         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
6478         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
6479         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6480         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
6481         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
6482         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
6483         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
6484         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
6485         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
6486         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
6487
6488 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6489
6490         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
6491         * lib/ioctl.c: Include <sys/ioctl.h>.
6492
6493 2009-01-19  Simon Josefsson  <simon@josefsson.org>
6494
6495         * modules/getdate-tests (Depends-on): Add progname.
6496         * tests/test-getdate.c: Use progname module, to avoid link errors
6497         on non-glibc systems.
6498
6499 2009-01-18  Simon Josefsson  <simon@josefsson.org>
6500
6501         * modules/filenamecat-tests (Depends-on): Add progname.
6502         * modules/fstrcmp-tests (Depends-on): Likewise.
6503
6504         * tests/test-filenamecat.c: Use progname module, to avoid link
6505         errors on non-glibc systems.
6506         * tests/test-fstrcmp.c: Likewise.
6507
6508 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6509
6510         gettimeofday: avoid warning: nested extern declaration of 'localtime'
6511         * lib/gettimeofday.c: Move extern declaration out of function.
6512
6513 2009-01-18  Bruno Haible  <bruno@clisp.org>
6514
6515         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
6516         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
6517         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
6518
6519 2009-01-18  Bruno Haible  <bruno@clisp.org>
6520
6521         * lib/strftime.c (MEMPCPY): Remove unused macro.
6522         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
6523
6524 2009-01-18  Martin Lambers  <marlam@marlam.de>
6525
6526         New module 'link'.
6527         * lib/unistd.in.h (link): New declaration.
6528         * lib/link.c: New file.
6529         * m4/link.m4: New file.
6530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
6531         HAVE_LINK.
6532         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
6533         * modules/link: New file.
6534         * doc/posix-functions/link.texi: Mention the new module.
6535
6536 2009-01-18  Bruno Haible  <bruno@clisp.org>
6537
6538         * tests/test-avltree_list.c (main): Call set_program_name.
6539         * tests/test-avltree_oset.c (main): Likewise.
6540         * tests/test-obstack-printf.c: Include progname.h.
6541         (main): Call set_program_name.
6542         * tests/test-quotearg.c: Include progname.h.
6543         (main): Call set_program_name.
6544         * tests/test-xmemdup0.c: Include progname.h.
6545         (main): Call set_program_name.
6546
6547 2009-01-18  Bruno Haible  <bruno@clisp.org>
6548
6549         New module 'alphasort'.
6550         * lib/dirent.in.h (alphasort): New declaration.
6551         * lib/alphasort.c: New file, from glibc with modifications.
6552         * m4/alphasort.m4: New file.
6553         * modules/alphasort: New file.
6554         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
6555         HAVE_ALPHASORT.
6556         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
6557         HAVE_ALPHASORT.
6558         * doc/posix-functions/alphasort.texi: Mention the new module and the
6559         portability problems.
6560
6561 2009-01-18  Bruno Haible  <bruno@clisp.org>
6562
6563         New module 'scandir'.
6564         * lib/dirent.in.h (scandir): New declaration.
6565         * lib/scandir.c: New file, from glibc with modifications.
6566         * m4/scandir.m4: New file.
6567         * modules/scandir: New file.
6568         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
6569         HAVE_SCANDIR.
6570         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
6571         HAVE_SCANDIR.
6572         * doc/posix-functions/scandir.texi: Mention the new module and the
6573         portability problems.
6574
6575 2009-01-17  Bruno Haible  <bruno@clisp.org>
6576
6577         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
6578         Update documentation.
6579         (func_remove_suffix): Escape all dots in the suffix. Update
6580         documentation.
6581         (func_filter_filelist): Update documentation.
6582         Reported by Ralf Wildenhues.
6583
6584 2009-01-17  Bruno Haible  <bruno@clisp.org>
6585
6586         * modules/dprintf-posix-tests: New file.
6587         * tests/test-dprintf-posix.sh: New file.
6588         * tests/test-dprintf-posix.c: New file.
6589
6590         New modules 'dprintf', 'dprintf-posix'.
6591         * lib/stdio.in.h (dprintf): New declaration.
6592         * lib/dprintf.c: New file.
6593         * m4/dprintf.m4: New file.
6594         * m4/dprintf-posix.m4: New file.
6595         * modules/dprintf: New file.
6596         * modules/dprintf-posix: New file.
6597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
6598         HAVE_DPRINTF, REPLACE_DPRINTF.
6599         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
6600         HAVE_DPRINTF, REPLACE_DPRINTF.
6601         * doc/posix-functions/dprintf.texi: Mention the new modules.
6602
6603 2009-01-17  Bruno Haible  <bruno@clisp.org>
6604
6605         * modules/vdprintf-posix-tests: New file.
6606         * tests/test-vdprintf-posix.sh: New file.
6607         * tests/test-vdprintf-posix.c: New file.
6608
6609         New modules 'vdprintf', 'vdprintf-posix'.
6610         * lib/stdio.in.h (vdprintf): New declaration.
6611         * lib/vdprintf.c: New file.
6612         * m4/vdprintf.m4: New file.
6613         * m4/vdprintf-posix.m4: New file.
6614         * modules/vdprintf: New file.
6615         * modules/vdprintf-posix: New file.
6616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
6617         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6618         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
6619         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6620         * doc/posix-functions/vdprintf.texi: Mention the new modules.
6621
6622 2009-01-17  Bruno Haible  <bruno@clisp.org>
6623
6624         Fix replacement of fopen on mingw.
6625         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
6626         mingw.
6627
6628 2009-01-17  Bruno Haible  <bruno@clisp.org>
6629
6630         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
6631         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
6632
6633 2009-01-17  Bruno Haible  <bruno@clisp.org>
6634
6635         Avoid test-fflush2.sh failure on mingw.
6636         * tests/test-fflush2.c: Include binary-io.h.
6637         (main): Put standard input into binary mode.
6638         * modules/fflush-tests (Depends-on): Add binary-io.
6639
6640 2009-01-17  Bruno Haible  <bruno@clisp.org>
6641
6642         * lib/wchar.in.h: In another particular situation, include only the
6643         system's <wchar.h> file.
6644         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
6645         Reported by Albert Chin-A-Young <china@thewrittenword.com>
6646         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
6647
6648 2009-01-17  Bruno Haible  <bruno@clisp.org>
6649
6650         Support for stripping executables in --enable-relocatable.
6651         * build-aux/install-reloc: Expect one more argument, or an environment
6652         variable RELOC_STRIP_PROG. If set, strip the destination program and
6653         its wrapper.
6654         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
6655         RELOC_STRIP_PROG.
6656         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
6657         to set RELOCATABLE_STRIP.
6658         * NEWS: Mention the new Makefile requirement.
6659
6660 2009-01-17  Bruno Haible  <bruno@clisp.org>
6661
6662         * build-aux/install-reloc: Remove debugging information left over by
6663         C compiler on MacOS X.
6664
6665 2009-01-17  Bruno Haible  <bruno@clisp.org>
6666
6667         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
6668         * lib/progreloc.c (find_executable): Fix type of pointer passed to
6669         _NSGetExecutablePath.
6670
6671 2009-01-16  Jim Meyering  <meyering@redhat.com>
6672
6673         strerror: avoid warnings about discarding "const"
6674         * lib/strerror.c (rpl_strerror): Instead of returning a const
6675         string from each and every "case", use a variable, and add a single
6676         cast after the switch.
6677
6678 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
6679
6680         * lib/arpa_inet.in.h: Add extern "C" block for C++.
6681
6682 2009-01-16  Bruno Haible  <bruno@clisp.org>
6683
6684         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
6685         array initializer syntax that also works in C++ mode.
6686         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6687
6688 2009-01-16  Jim Meyering  <meyering@redhat.com>
6689
6690         poll: suppress a warning
6691         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
6692         to ignore "...unsigned expression < 0 is always false" warnings.
6693
6694 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
6695
6696         poll: remove declarations of unused variables
6697         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
6698         sockbuf and optlen.
6699
6700 2009-01-15  Bruno Haible  <bruno@clisp.org>
6701
6702         Make fflush-after-ungetc POSIX compliant on BSD systems.
6703         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
6704         (clear_ungetc_buffer): Implement also for other systems.
6705         (rpl_fflush): On glibc systems, invoke
6706         clear_ungetc_buffer_preserving_position. Otherwise, invoke
6707         clear_ungetc_buffer after fetching the stream's position, not before.
6708
6709 2009-01-15  Bruno Haible  <bruno@clisp.org>
6710
6711         Make fflush-after-ungetc POSIX compliant on glibc systems.
6712         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
6713         after ungetc.
6714         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
6715         (rpl_fflush): On glibc systems, simply call the system's fflush
6716         function after clearing the ungetc buffer.
6717         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
6718         Instead, lseek only to the end of file, then use the system's fseeko
6719         for the rest. On glibc systems, reset the EOF indicator bit.
6720
6721 2009-01-15  Jim Meyering  <meyering@redhat.com>
6722
6723         openmp.m4: revert quote-adding change, for portability to older autoconf
6724         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
6725         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
6726         Simon Josefsson noticed the problem when using autoconf-2.61.
6727
6728 2009-01-15  Bruno Haible  <bruno@clisp.org>
6729
6730         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
6731         * tests/test-fflush2.c (ASSERT): Always fail.
6732         (main): Add two tests for fflush() after ungetc(), taking into account
6733         the Austin Group's clarification.
6734         Suggested by Eric Blake.
6735
6736 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
6737
6738         mktime.m4: remove K&R-style function prototypes
6739         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
6740         for the Sun C++ compiler.
6741
6742 2009-01-14  Bruno Haible  <bruno@clisp.org>
6743
6744         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
6745         while including <wchar.h>.
6746         * lib/wchar.in.h: In two particular situations on HP-UX, include only
6747         the system's <wchar.h> file.
6748         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6749
6750 2009-01-14  Bruno Haible  <bruno@clisp.org>
6751
6752         * m4/csharp.m4: Don't mention gettext on the serial number line.
6753         * m4/csharpexec.m4: Likewise.
6754         * m4/eaccess.m4: Likewise.
6755         * m4/javaexec.m4: Likewise.
6756         * m4/sig_atomic_t.m4: Likewise.
6757         * m4/tmpdir.m4: Likewise.
6758         * m4/intldir.m4: Bump gettext version.
6759         * m4/lib-ld.m4: Likewise.
6760
6761 2009-01-14  Bruno Haible  <bruno@clisp.org>
6762
6763         * lib/progname.c (set_program_name): Add more comments.
6764         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6765
6766 2009-01-14  Simon Josefsson  <simon@josefsson.org>
6767
6768         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
6769         were sys/stat.h does not define it.
6770
6771 2009-01-14  Jim Meyering  <meyering@redhat.com>
6772
6773         many *.m4 files: improve m4 quoting
6774         99% of this change was performed by running the following commands:
6775         git ls-files | grep '\.m4$' | xargs perl -pi \
6776           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
6777           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6778           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6779           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
6780         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
6781         The remainder were to add Copyright dates, increment serial numbers,
6782         undo some changes in comments, exclude m4/intl.m4, and add quotes
6783         around the "1" in ",1" where the unusual spacing prohibited the
6784         above regexps from doing the job.  For more details, see
6785         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
6786         * m4/acl.m4: Modified.
6787         * m4/afs.m4: Likewise.
6788         * m4/alloca.m4: Likewise.
6789         * m4/argp.m4: Likewise.
6790         * m4/argz.m4: Likewise.
6791         * m4/atexit.m4: Likewise.
6792         * m4/bison-i18n.m4: Likewise.
6793         * m4/bison.m4: Likewise.
6794         * m4/byteswap.m4: Likewise.
6795         * m4/c-stack.m4: Likewise.
6796         * m4/c-strtod.m4: Likewise.
6797         * m4/calloc.m4: Likewise.
6798         * m4/canonicalize-lgpl.m4: Likewise.
6799         * m4/chown.m4: Likewise.
6800         * m4/clock_time.m4: Likewise.
6801         * m4/codeset.m4: Likewise.
6802         * m4/copy-file.m4: Likewise.
6803         * m4/csharp.m4: Likewise.
6804         * m4/csharpcomp.m4: Likewise.
6805         * m4/csharpexec.m4: Likewise.
6806         * m4/d-ino.m4: Likewise.
6807         * m4/d-type.m4: Likewise.
6808         * m4/dirfd.m4: Likewise.
6809         * m4/double-slash-root.m4: Likewise.
6810         * m4/eaccess.m4: Likewise.
6811         * m4/eealloc.m4: Likewise.
6812         * m4/environ.m4: Likewise.
6813         * m4/errno_h.m4: Likewise.
6814         * m4/euidaccess.m4: Likewise.
6815         * m4/execute.m4: Likewise.
6816         * m4/fatal-signal.m4: Likewise.
6817         * m4/fchdir.m4: Likewise.
6818         * m4/fcntl_h.m4: Likewise.
6819         * m4/fileblocks.m4: Likewise.
6820         * m4/filenamecat.m4: Likewise.
6821         * m4/findprog.m4: Likewise.
6822         * m4/flexmember.m4: Likewise.
6823         * m4/fnmatch.m4: Likewise.
6824         * m4/fopen.m4: Likewise.
6825         * m4/fpending.m4: Likewise.
6826         * m4/fprintf-posix.m4: Likewise.
6827         * m4/free.m4: Likewise.
6828         * m4/frexp.m4: Likewise.
6829         * m4/frexpl.m4: Likewise.
6830         * m4/fsusage.m4: Likewise.
6831         * m4/ftruncate.m4: Likewise.
6832         * m4/gc-camellia.m4: Likewise.
6833         * m4/gc-random.m4: Likewise.
6834         * m4/gc.m4: Likewise.
6835         * m4/getaddrinfo.m4: Likewise.
6836         * m4/getcwd-abort-bug.m4: Likewise.
6837         * m4/getcwd-path-max.m4: Likewise.
6838         * m4/getdate.m4: Likewise.
6839         * m4/getdomainname.m4: Likewise.
6840         * m4/getgroups.m4: Likewise.
6841         * m4/gethostname.m4: Likewise.
6842         * m4/gethrxtime.m4: Likewise.
6843         * m4/getline.m4: Likewise.
6844         * m4/getloadavg.m4: Likewise.
6845         * m4/getndelim2.m4: Likewise.
6846         * m4/getpass.m4: Likewise.
6847         * m4/gettext.m4: Likewise.
6848         * m4/gettime.m4: Likewise.
6849         * m4/gettimeofday.m4: Likewise.
6850         * m4/gnulib-common.m4: Likewise.
6851         * m4/group-member.m4: Likewise.
6852         * m4/host-os.m4: Likewise.
6853         * m4/iconv.m4: Likewise.
6854         * m4/iconv_open.m4: Likewise.
6855         * m4/inet_ntop.m4: Likewise.
6856         * m4/inet_pton.m4: Likewise.
6857         * m4/inline.m4: Likewise.
6858         * m4/intldir.m4: Likewise.
6859         * m4/intlmacosx.m4: Likewise.
6860         * m4/intmax.m4: Likewise.
6861         * m4/intmax_t.m4: Likewise.
6862         * m4/inttypes.m4: Likewise.
6863         * m4/inttypes_h.m4: Likewise.
6864         * m4/inttypes-pri.m4: Likewise.
6865         * m4/isapipe.m4: Likewise.
6866         * m4/isnand.m4: Likewise.
6867         * m4/isnanf.m4: Likewise.
6868         * m4/isnanl.m4: Likewise.
6869         * m4/javacomp.m4: Likewise.
6870         * m4/javaexec.m4: Likewise.
6871         * m4/jm-winsz1.m4: Likewise.
6872         * m4/jm-winsz2.m4: Likewise.
6873         * m4/lchown.m4: Likewise.
6874         * m4/lcmessage.m4: Likewise.
6875         * m4/ldexpl.m4: Likewise.
6876         * m4/lib-ld.m4: Likewise.
6877         * m4/lib-link.m4: Likewise.
6878         * m4/libsigsegv.m4: Likewise.
6879         * m4/link-follow.m4: Likewise.
6880         * m4/localcharset.m4: Likewise.
6881         * m4/locale-fr.m4: Likewise.
6882         * m4/locale-ja.m4: Likewise.
6883         * m4/locale-tr.m4: Likewise.
6884         * m4/locale-zh.m4: Likewise.
6885         * m4/lock.m4: Likewise.
6886         * m4/longlong.m4: Likewise.
6887         * m4/ls-mntd-fs.m4: Likewise.
6888         * m4/lstat.m4: Likewise.
6889         * m4/malloc.m4: Likewise.
6890         * m4/mathl.m4: Likewise.
6891         * m4/mbrtowc.m4: Likewise.
6892         * m4/mbstate_t.m4: Likewise.
6893         * m4/mbswidth.m4: Likewise.
6894         * m4/memchr.m4: Likewise.
6895         * m4/memcmp.m4: Likewise.
6896         * m4/memcpy.m4: Likewise.
6897         * m4/memmem.m4: Likewise.
6898         * m4/memmove.m4: Likewise.
6899         * m4/mempcpy.m4: Likewise.
6900         * m4/memrchr.m4: Likewise.
6901         * m4/memset.m4: Likewise.
6902         * m4/minmax.m4: Likewise.
6903         * m4/mkdir-slash.m4: Likewise.
6904         * m4/mkdtemp.m4: Likewise.
6905         * m4/mktime.m4: Likewise.
6906         * m4/mmap-anon.m4: Likewise.
6907         * m4/mountlist.m4: Likewise.
6908         * m4/nanosleep.m4: Likewise.
6909         * m4/nls.m4: Likewise.
6910         * m4/nocrash.m4: Likewise.
6911         * m4/open.m4: Likewise.
6912         * m4/openat.m4: Likewise.
6913         * m4/openmp.m4: Likewise.
6914         * m4/pathmax.m4: Likewise.
6915         * m4/perl.m4: Likewise.
6916         * m4/physmem.m4: Likewise.
6917         * m4/pipe.m4: Likewise.
6918         * m4/po.m4: Likewise.
6919         * m4/poll.m4: Likewise.
6920         * m4/posixtm.m4: Likewise.
6921         * m4/posixver.m4: Likewise.
6922         * m4/printf-frexp.m4: Likewise.
6923         * m4/printf-frexpl.m4: Likewise.
6924         * m4/printf-posix.m4: Likewise.
6925         * m4/printf-posix-rpl.m4: Likewise.
6926         * m4/printf.m4: Likewise.
6927         * m4/progtest.m4: Likewise.
6928         * m4/putenv.m4: Likewise.
6929         * m4/readline.m4: Likewise.
6930         * m4/readlink.m4: Likewise.
6931         * m4/readutmp.m4: Likewise.
6932         * m4/realloc.m4: Likewise.
6933         * m4/regex.m4: Likewise.
6934         * m4/relocatable.m4: Likewise.
6935         * m4/relocatable-lib.m4: Likewise.
6936         * m4/rename-dest-slash.m4: Likewise.
6937         * m4/rename.m4: Likewise.
6938         * m4/rmdir-errno.m4: Likewise.
6939         * m4/rmdir.m4: Likewise.
6940         * m4/roundf.m4: Likewise.
6941         * m4/roundl.m4: Likewise.
6942         * m4/rpmatch.m4: Likewise.
6943         * m4/save-cwd.m4: Likewise.
6944         * m4/selinux-selinux-h.m4: Likewise.
6945         * m4/setenv.m4: Likewise.
6946         * m4/settime.m4: Likewise.
6947         * m4/sig2str.m4: Likewise.
6948         * m4/sig_atomic_t.m4: Likewise.
6949         * m4/signalblocking.m4: Likewise.
6950         * m4/signbit.m4: Likewise.
6951         * m4/sigpipe.m4: Likewise.
6952         * m4/sockets.m4: Likewise.
6953         * m4/sockpfaf.m4: Likewise.
6954         * m4/st_dm_mode.m4: Likewise.
6955         * m4/stat-time.m4: Likewise.
6956         * m4/stdbool.m4: Likewise.
6957         * m4/stdint.m4: Likewise.
6958         * m4/stdint_h.m4: Likewise.
6959         * m4/stpcpy.m4: Likewise.
6960         * m4/stpncpy.m4: Likewise.
6961         * m4/strcase.m4: Likewise.
6962         * m4/strchrnul.m4: Likewise.
6963         * m4/strcspn.m4: Likewise.
6964         * m4/strdup.m4: Likewise.
6965         * m4/strftime.m4: Likewise.
6966         * m4/strndup.m4: Likewise.
6967         * m4/strnlen.m4: Likewise.
6968         * m4/strpbrk.m4: Likewise.
6969         * m4/strptime.m4: Likewise.
6970         * m4/strsep.m4: Likewise.
6971         * m4/strtod.m4: Likewise.
6972         * m4/strtoimax.m4: Likewise.
6973         * m4/strtok_r.m4: Likewise.
6974         * m4/strtol.m4: Likewise.
6975         * m4/strtoll.m4: Likewise.
6976         * m4/strtoul.m4: Likewise.
6977         * m4/strtoull.m4: Likewise.
6978         * m4/strtoumax.m4: Likewise.
6979         * m4/strverscmp.m4: Likewise.
6980         * m4/threadlib.m4: Likewise.
6981         * m4/timegm.m4: Likewise.
6982         * m4/tm_gmtoff.m4: Likewise.
6983         * m4/tmpdir.m4: Likewise.
6984         * m4/tmpfile.m4: Likewise.
6985         * m4/tzset.m4: Likewise.
6986         * m4/uintmax_t.m4: Likewise.
6987         * m4/unlinkdir.m4: Likewise.
6988         * m4/unlocked-io.m4: Likewise.
6989         * m4/uptime.m4: Likewise.
6990         * m4/userspec.m4: Likewise.
6991         * m4/utimbuf.m4: Likewise.
6992         * m4/utime.m4: Likewise.
6993         * m4/utimes-null.m4: Likewise.
6994         * m4/utimes.m4: Likewise.
6995         * m4/vararrays.m4: Likewise.
6996         * m4/vasnprintf.m4: Likewise.
6997         * m4/vfprintf-posix.m4: Likewise.
6998         * m4/vprintf-posix.m4: Likewise.
6999         * m4/wait-process.m4: Likewise.
7000         * m4/wchar_t.m4: Likewise.
7001         * m4/wint_t.m4: Likewise.
7002         * m4/write-any-file.m4: Likewise.
7003         * m4/yield.m4: Likewise.
7004
7005 2009-01-13  Bruno Haible  <bruno@clisp.org>
7006
7007         Avoid test-copy-file.sh failures when ACL support insufficient.
7008         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
7009         TESTS_ENVIRONMENT.
7010         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
7011         Reported by Jim Meyering.
7012
7013 2009-01-13  Bruno Haible  <bruno@clisp.org>
7014
7015         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
7016         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
7017         * modules/unistdio/u8-printf-parse (Files): Likewise.
7018         * modules/unistdio/u32-printf-parse (Files): Likewise.
7019         * modules/unistdio/ulc-printf-parse (Files): Likewise.
7020
7021 2009-01-13  Simon Josefsson  <simon@josefsson.org>
7022
7023         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
7024         and m4/inttypes_h.m4 too.
7025
7026 2009-01-12  Eric Blake  <ebb9@byu.net>
7027
7028         tests: IRIX 6.2 cc can't compile -0.0 into .data
7029         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
7030         rather than at compile-time.
7031         * tests/test-floorl.c (minus_zero): Likewise.
7032         * tests/test-frexpl.c (minus_zero): Likewise.
7033         * tests/test-isnan.c (minus_zerol): Likewise.
7034         * tests/test-isnanl.h (minus_zero): Likewise.
7035         * tests/test-ldexpl.c (minus_zero): Likewise.
7036         * tests/test-roundl.c (minus_zero): Likewise.
7037         * tests/test-signbit.c (minus_zerol): Likewise.
7038         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
7039         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
7040         * tests/test-truncl.c (minus_zero): Likewise.
7041         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
7042         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
7043         Reported by Tom G. Christensen and Nelson H. F. Beebe.
7044
7045 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7046
7047         regex: fix glibc bug 9697
7048         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
7049         handling.
7050
7051 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7052
7053         regex: fix glibc bug 697
7054         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
7055         being NULL also if there are no backreferences.
7056
7057 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7058
7059         regex: merge glibc changes
7060         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
7061         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
7062         re_string_skip_chars, re_string_reconstruct): Likewise.
7063         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
7064
7065 2009-01-07  Jim Meyering  <meyering@redhat.com>
7066
7067         poll: filter through cppi
7068         * lib/poll.c: Indent cpp directives to reflect nesting.
7069
7070 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
7071
7072         poll: don't return uninitialized
7073         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
7074
7075 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
7076
7077         avoid compile failure on AIX 6.1
7078         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
7079         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
7080
7081 2009-01-04  Jim Meyering  <meyering@redhat.com>
7082
7083         remove duplicate inclusion of <stdio.h>
7084         * tests/test-fprintf-posix.c: Likewise.
7085         * tests/test-printf-posix.c: Likewise.
7086         * tests/test-snprintf-posix.c: Likewise.
7087         * tests/test-sprintf-posix.c: Likewise.
7088         * tests/test-vasprintf-posix.c: Likewise.
7089         * tests/test-vfprintf-posix.c: Likewise.
7090         * tests/test-vprintf-posix.c: Likewise.
7091         * tests/test-vsnprintf-posix.c: Likewise.
7092         * tests/test-vsprintf-posix.c: Likewise.
7093
7094 2009-01-03  Jim Meyering  <meyering@redhat.com>
7095
7096         gnulib-tool: fix sed-based filtering
7097         * gnulib-tool (func_filter_filelist): Remove extra backslash
7098         in sed_fff_filter definition.
7099
7100 2009-01-02  Jim Meyering  <meyering@redhat.com>
7101
7102         strftime: avoid compilation failure on Solaris 2.6
7103         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
7104         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
7105         Don't #define mbrlen or mbsinit, since now they're guaranteed to
7106         be available.  Reported by Tom G. Christensen.  Details in
7107         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
7108
7109 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7110             Bruno Haible  <bruno@clisp.org>
7111
7112         Speed up gnulib-tool by doing more string processing through shell
7113         built-ins.
7114         * gnulib-tool (fast_func_append): New variable.
7115         (func_remove_prefix, func_remove_suffix): New functions.
7116         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
7117         (func_filter_filelist): New function.
7118         (func_get_dependencies): Use func_remove_suffix instead of sed.
7119         (func_get_automake_snippet): Use func_filter_filelist instead of a
7120         subshell and sed invocation.
7121
7122 2009-01-01  Bruno Haible  <bruno@clisp.org>
7123
7124         Fix a security bug.
7125         * gnulib-tool (func_import, import, update): Don't allow the characters
7126         '"', '$', '`', '\' in macro arguments that become part of commands that
7127         are evaluated.
7128
7129 2009-01-01  Bruno Haible  <bruno@clisp.org>
7130
7131         * gnulib-tool (func_reset_sigpipe): Add more comments.
7132
7133 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7134
7135         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
7136         func_emit_tests_Makefile_am, func_import): Abort loops early if we
7137         already know the answer.
7138
7139 2009-01-01  Jim Meyering  <meyering@redhat.com>
7140
7141         * lib/version-etc.c (version_etc_va): Update copyright year.
7142
7143 2008-12-30  Bruno Haible  <bruno@clisp.org>
7144
7145         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
7146         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
7147         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
7148
7149 2008-12-29  Eric Blake  <ebb9@byu.net>
7150
7151         multiarch: avoid autoconf AC_REQUIRE bug
7152         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
7153         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
7154         2.63 and older.
7155         Reported by Bruno Haible, and analyzed in
7156         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
7157
7158 2008-12-29  Bruno Haible  <bruno@clisp.org>
7159
7160         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
7161         files in subdirectories correctly.
7162         Reported by Ralf Wildenhues.
7163
7164 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7165
7166         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
7167         rather than 'join FILE -', for Solaris join.
7168
7169 2008-12-29  Bruno Haible  <bruno@clisp.org>
7170
7171         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
7172         quoting.
7173         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
7174         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7175         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7176         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
7177         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7178         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
7179         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
7180         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
7181         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7182         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
7183         * m4/nls.m4 (AM_NLS): Likewise.
7184         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
7185         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
7186         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7187         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
7188         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
7189         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7190         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
7191         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
7192         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
7193         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7194         * m4/xsize.m4 (gl_XSIZE): Likewise.
7195         Suggested by Jim Meyering.
7196
7197 2008-11-17  Bruce Korb  <bkorb@gnu.org>
7198
7199         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
7200         * lib/parse-duration.c: use a switch instead of cascading if's.
7201
7202 2008-12-29  Eric Blake  <ebb9@byu.net>
7203
7204         wchar.h: supply WEOF on Irix 5.3
7205         * lib/wchar.in.h (wint_t): Also supply WEOF.
7206         * lib/wctype.in.h (wint_t): Likewise.
7207         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
7208         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
7209         Reported by Tom G. Christensen.
7210
7211 2008-12-26  Bruno Haible  <bruno@clisp.org>
7212
7213         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
7214         i486, i586, i686.
7215
7216 2008-12-26  Bruno Haible  <bruno@clisp.org>
7217
7218         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
7219
7220 2008-12-26  Bruno Haible  <bruno@clisp.org>
7221
7222         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
7223         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
7224         not __STDC_CONSTANT_MACROS.
7225         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
7226
7227 2008-12-25  Bruno Haible  <bruno@clisp.org>
7228
7229         Add support for universal builds to vasnprintf.
7230         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
7231         universal builds, guess no.
7232         * modules/vasnprintf-posix (Depends-on): Add multiarch.
7233         * modules/vasprintf-posix (Depends-on): Likewise.
7234         * modules/fprintf-posix (Depends-on): Likewise.
7235         * modules/vfprintf-posix (Depends-on): Likewise.
7236         * modules/snprintf-posix (Depends-on): Likewise.
7237         * modules/vsnprintf-posix (Depends-on): Likewise.
7238         * modules/sprintf-posix (Depends-on): Likewise.
7239         * modules/vsprintf-posix (Depends-on): Likewise.
7240         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7241         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7242         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7243         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7244         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7245         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7246         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7247
7248         Add support for universal builds to <inttypes.h>.
7249         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
7250         _SCNu64_PREFIX): In Apple
7251         universal builds, define directly, using _LP64.
7252         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
7253         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
7254         * modules/inttypes (Depends-on): Add multiarch.
7255         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
7256
7257         Add support for universal builds to <stdint.h>.
7258         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
7259         universal builds, define directly, using _LP64.
7260         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
7261         Apple universal builds, don't test for the size and suffix of ptrdiff_t
7262         and size_t.
7263         * modules/stdint (Depends-on): Add multiarch.
7264         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
7265
7266         New module 'multiarch'.
7267         * modules/multiarch: New file.
7268         * m4/multiarch.m4: New file.
7269
7270 2008-12-25  Bruno Haible  <bruno@clisp.org>
7271
7272         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
7273
7274 2008-12-25  Bruno Haible  <bruno@clisp.org>
7275
7276         * modules/btowc (License): Relicense under LGPLv2+.
7277         * modules/mbsinit (License): Likewise.
7278         * modules/mbrtowc (License): Likewise.
7279         * modules/wcrtomb (License): Likewise.
7280         * modules/streq (License): Likewise.
7281         Reported by David Lutterkort <lutter@redhat.com>.
7282
7283 2008-12-23  Bruno Haible  <bruno@clisp.org>
7284
7285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
7286
7287 2008-12-23  Bruno Haible  <bruno@clisp.org>
7288
7289         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
7290         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
7291         GETADDRINFO_LIB, not in LIBS.
7292         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
7293         * modules/canon-host (Link): Likewise.
7294         * NEWS: Mention the change.
7295         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
7296         GETADDRINFO_LIB.
7297
7298 2008-12-22  Bruno Haible  <bruno@clisp.org>
7299
7300         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
7301         * doc/posix-functions/iswalpha_l.texi: Likewise.
7302         * doc/posix-functions/iswblank_l.texi: Likewise.
7303         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7304         * doc/posix-functions/iswctype_l.texi: Likewise.
7305         * doc/posix-functions/iswdigit_l.texi: Likewise.
7306         * doc/posix-functions/iswgraph_l.texi: Likewise.
7307         * doc/posix-functions/iswlower_l.texi: Likewise.
7308         * doc/posix-functions/iswprint_l.texi: Likewise.
7309         * doc/posix-functions/iswpunct_l.texi: Likewise.
7310         * doc/posix-functions/iswspace_l.texi: Likewise.
7311         * doc/posix-functions/iswupper_l.texi: Likewise.
7312         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7313         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
7314         * doc/posix-functions/open_wmemstream.texi: Likewise.
7315         * doc/posix-functions/swscanf.texi: Likewise.
7316         * doc/posix-functions/towctrans_l.texi: Likewise.
7317         * doc/posix-functions/towlower.texi: Likewise.
7318         * doc/posix-functions/towlower_l.texi: Likewise.
7319         * doc/posix-functions/towupper.texi: Likewise.
7320         * doc/posix-functions/towupper_l.texi: Likewise.
7321         * doc/posix-functions/vfwprintf.texi: Likewise.
7322         * doc/posix-functions/vfwscanf.texi: Likewise.
7323         * doc/posix-functions/vswscanf.texi: Likewise.
7324         * doc/posix-functions/vwprintf.texi: Likewise.
7325         * doc/posix-functions/vwscanf.texi: Likewise.
7326         * doc/posix-functions/wcpcpy.texi: Likewise.
7327         * doc/posix-functions/wcpncpy.texi: Likewise.
7328         * doc/posix-functions/wcscasecmp.texi: Likewise.
7329         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
7330         * doc/posix-functions/wcscoll_l.texi: Likewise.
7331         * doc/posix-functions/wcsdup.texi: Likewise.
7332         * doc/posix-functions/wcsncasecmp.texi: Likewise.
7333         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
7334         * doc/posix-functions/wcsnlen.texi: Likewise.
7335         * doc/posix-functions/wcsnrtombs.texi: Likewise.
7336         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7337         * doc/posix-functions/wctrans_l.texi: Likewise.
7338         * doc/posix-functions/wctype_l.texi: Likewise.
7339         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
7340         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
7341         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
7342         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
7343         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
7344         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
7345         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
7346         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
7347         * doc/glibc-functions/wcschrnul.texi: Likewise.
7348         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7349         * doc/glibc-functions/wcstod_l.texi: Likewise.
7350         * doc/glibc-functions/wcstof_l.texi: Likewise.
7351         * doc/glibc-functions/wcstol_l.texi: Likewise.
7352         * doc/glibc-functions/wcstold_l.texi: Likewise.
7353         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7354         * doc/glibc-functions/wcstoq.texi: Likewise.
7355         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7356         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7357         * doc/glibc-functions/wcstouq.texi: Likewise.
7358         * doc/glibc-functions/wmempcpy.texi: Likewise.
7359
7360 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
7361             Eric Blake  <ebb9@byu.net>
7362             Paolo Bonzini  <bonzini@gnu.org>
7363             Bruno Haible  <bruno@clisp.org>
7364
7365         Make c-stack work on Haiku.
7366         * lib/c-stack.c (SA_ONSTACK): Define fallback.
7367         (c_stack_action): Use SA_ONSTACK flag.
7368
7369 2008-12-22  Bruno Haible  <bruno@clisp.org>
7370
7371         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
7372
7373 2008-12-22  Bruno Haible  <bruno@clisp.org>
7374
7375         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
7376         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
7377         being overridden.
7378         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
7379         New macros.
7380         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
7381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
7382         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
7383         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
7384
7385 2008-12-22  Bruno Haible  <bruno@clisp.org>
7386
7387         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
7388         from test code.
7389
7390 2008-12-22  Eric Blake  <ebb9@byu.net>
7391
7392         Avoid gcc warnings on cygwin.
7393         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
7394         Avoid unused variable.
7395         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
7396         Likewise.
7397
7398 2008-12-22  Bruno Haible  <bruno@clisp.org>
7399
7400         Remove HAVE_MBRTOWC conditionals.
7401         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
7402         (mbscasecmp): Assume mbrtowc function.
7403         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
7404         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
7405         * lib/mbschr.c: Include mbuiter.h unconditionally.
7406         (mbschr): Assume mbrtowc function.
7407         * lib/mbscspn.c: Include mbuiter.h unconditionally.
7408         (mbscspn): Assume mbrtowc function.
7409         * lib/mbslen.c: Include mbuiter.h unconditionally.
7410         (mbslen): Assume mbrtowc function.
7411         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
7412         (mbsncasecmp): Assume mbrtowc function.
7413         * lib/mbsnlen.c: Include mbiter.h unconditionally.
7414         (mbsnlen): Assume mbrtowc function.
7415         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
7416         (mbspbrk): Assume mbrtowc function.
7417         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
7418         (mbspcasecmp): Assume mbrtowc function.
7419         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
7420         (mbsrchr): Assume mbrtowc function.
7421         * lib/mbssep.c: Include mbuiter.h unconditionally.
7422         (mbssep): Assume mbrtowc function.
7423         * lib/mbsspn.c: Include mbuiter.h unconditionally.
7424         (mbsspn): Assume mbrtowc function.
7425         * lib/mbsstr.c: Include mbuiter.h unconditionally.
7426         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
7427         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
7428         (mbstok_r): Assume mbrtowc function.
7429         * lib/propername.c: Include mbuiter.h unconditionally.
7430         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
7431         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
7432         (trim2): Assume mbrtowc function.
7433         * lib/mbswidth.c (mbsinit): Remove fallback definition.
7434         (mbsnwidth): Assume mbrtowc function.
7435         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
7436         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
7437         fallback definitions.
7438         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
7439
7440 2008-12-22  Bruno Haible  <bruno@clisp.org>
7441
7442         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
7443
7444 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
7445
7446         * modules/regex: Request emulations for the mb*/wc* functions we need.
7447         * m4/regex.m4: Don't look for those functions here.
7448         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
7449
7450 2008-12-22  Bruno Haible  <bruno@clisp.org>
7451
7452         * modules/fnmatch (Depends-on): Remove duplicated dependency.
7453
7454 2008-12-21  Bruno Haible  <bruno@clisp.org>
7455
7456         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
7457         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
7458         (Include): Remove conditionalization.
7459         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
7460         (Include): Remove conditionalization.
7461         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
7462         (Include): Remove conditionalization.
7463         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
7464         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7465         * NEWS: Mention the change.
7466         Reported by Alan Hourihane <alanh@fairlite.co.uk>
7467         via Sergey Poznyakoff <gray@gnu.org.ua>.
7468
7469 2008-12-21  Bruno Haible  <bruno@clisp.org>
7470
7471         * MODULES.html.sh (Extended multibyte and wide character utilities
7472         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
7473         wcrtomb, wcsrtombs.
7474         (Support for systems lacking POSIX:2008): Add accept, bind, close,
7475         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
7476         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
7477         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
7478
7479 2008-12-21  Bruno Haible  <bruno@clisp.org>
7480
7481         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
7482
7483 2008-12-21  Bruno Haible  <bruno@clisp.org>
7484
7485         * modules/wcsnrtombs-tests: New file.
7486         * tests/test-wcsnrtombs1.sh: New file.
7487         * tests/test-wcsnrtombs2.sh: New file.
7488         * tests/test-wcsnrtombs3.sh: New file.
7489         * tests/test-wcsnrtombs4.sh: New file.
7490         * tests/test-wcsnrtombs.c: New file.
7491
7492         New module 'wcsnrtombs'.
7493         * lib/wchar.in.h (wcsnrtombs): New declaration.
7494         * lib/wcsnrtombs.c: New file.
7495         * lib/wcsrtombs-state.c: New file.
7496         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
7497         (internal_state): Remove variable.
7498         * m4/wcsnrtombs.m4: New file.
7499         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
7500         compilation units.
7501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
7502         HAVE_WCSNRTOMBS.
7503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
7504         HAVE_WCSNRTOMBS.
7505         * modules/wcsnrtombs: New file.
7506         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
7507         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7508
7509 2008-12-21  Bruno Haible  <bruno@clisp.org>
7510
7511         * modules/wcsrtombs-tests: New file.
7512         * tests/test-wcsrtombs1.sh: New file.
7513         * tests/test-wcsrtombs2.sh: New file.
7514         * tests/test-wcsrtombs3.sh: New file.
7515         * tests/test-wcsrtombs4.sh: New file.
7516         * tests/test-wcsrtombs.c: New file.
7517
7518         New module 'wcsrtombs'.
7519         * lib/wchar.in.h (wcsrtombs): New declaration.
7520         * lib/wcsrtombs.c: New file.
7521         * m4/wcsrtombs.m4: New file.
7522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
7523         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
7525         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7526         * modules/wcsrtombs: New file.
7527         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
7528         bugs.
7529
7530 2008-12-21  Bruno Haible  <bruno@clisp.org>
7531
7532         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
7533         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
7534         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
7535         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
7536         if not correct.
7537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
7538         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
7539         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7540         m4/locale-zh.m4, m4/codeset.m4.
7541         * doc/posix-functions/wcrtomb.texi: Document the bug.
7542
7543 2008-12-21  Bruno Haible  <bruno@clisp.org>
7544
7545         Work around a btowc() bug on IRIX 6.5.
7546         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
7547         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
7548         REPLACE_WTOBC if not.
7549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
7550         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
7551         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
7552
7553 2008-12-21  Bruno Haible  <bruno@clisp.org>
7554
7555         * modules/wcrtomb-tests: New file.
7556         * tests/test-wcrtomb.sh: New file.
7557         * tests/test-wcrtomb.c: New file.
7558
7559         New module 'wcrtomb'.
7560         * lib/wchar.in.h (wcrtomb): New declaration.
7561         * lib/wcrtomb.c: New file.
7562         * m4/wcrtomb.m4: New file.
7563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
7564         HAVE_WCRTOMB.
7565         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
7566         HAVE_WCRTOMB.
7567         * modules/wcrtomb: New file.
7568         * doc/posix-functions/wcrtomb.texi: Mention the new module.
7569
7570 2008-12-21  Bruno Haible  <bruno@clisp.org>
7571
7572         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
7573         * modules/mbsrtowcs (Files): Likewise.
7574         * modules/wctob (Files): Likewise.
7575         * modules/c-strcase-tests (Files): Likewise.
7576         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
7577         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
7578         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
7579         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
7580         * modules/vasnprintf-posix-tests (Files): Likewise.
7581
7582 2008-12-21  William Pursell  <bill.pursell@gmail.com>
7583
7584         gitlog-to-changelog: pass all command-line arguments to git-log
7585         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
7586         it is sometimes convenient to filter the commits in various ways.
7587         gitlog-to-changelog only allows --since to specify a start date,
7588         but git-log itself supports many other filtering mechanisms.
7589         At the moment, I want to filter by branch name.  Rather than
7590         adding a --branch option to gitlog-to-changelog, it seems more
7591         flexible to simply pass all options directly to git-log and let
7592         git do the work.  Notice that this effectively makes --since a
7593         redundant option for gitlog-to-changelog, but removing it would
7594         require current usage to change since calls would then require
7595         an additional '--'.
7596
7597 2008-12-21  Bruno Haible  <bruno@clisp.org>
7598
7599         * modules/mbsnrtowcs-tests: New file.
7600         * tests/test-mbsnrtowcs1.sh: New file.
7601         * tests/test-mbsnrtowcs2.sh: New file.
7602         * tests/test-mbsnrtowcs3.sh: New file.
7603         * tests/test-mbsnrtowcs4.sh: New file.
7604         * tests/test-mbsnrtowcs.c: New file.
7605
7606         New module 'mbsnrtowcs'.
7607         * lib/wchar.in.h (mbsnrtowcs): New declaration.
7608         * lib/mbsnrtowcs.c: New file.
7609         * lib/mbsrtowcs-state.c: New file.
7610         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
7611         (internal_state): Remove variable.
7612         * m4/mbsnrtowcs.m4: New file.
7613         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
7614         compilation units.
7615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
7616         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7617         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
7618         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7619         * modules/mbsnrtowcs: New file.
7620         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
7621         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
7622         portability problem.
7623
7624 2008-12-21  Bruno Haible  <bruno@clisp.org>
7625
7626         Work around mbsrtowcs bug.
7627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
7628         (gl_FUNC_MBSRTOWCS): Invoke it.
7629         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7630         m4/locale-zh.m4.
7631         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
7632
7633 2008-12-21  Bruno Haible  <bruno@clisp.org>
7634
7635         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
7636
7637 2008-12-21  Bruno Haible  <bruno@clisp.org>
7638
7639         Update doc for AIX.
7640         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
7641         16-bit wchar_t type.
7642         * doc/posix-functions/btowc.texi: Likewise.
7643         * doc/posix-functions/fgetwc.texi: Likewise.
7644         * doc/posix-functions/fgetws.texi: Likewise.
7645         * doc/posix-functions/fputwc.texi: Likewise.
7646         * doc/posix-functions/fputws.texi: Likewise.
7647         * doc/posix-functions/fwide.texi: Likewise.
7648         * doc/posix-functions/fwprintf.texi: Likewise.
7649         * doc/posix-functions/fwscanf.texi: Likewise.
7650         * doc/posix-functions/getwchar.texi: Likewise.
7651         * doc/posix-functions/getwc.texi: Likewise.
7652         * doc/posix-functions/iswalnum.texi: Likewise.
7653         * doc/posix-functions/iswalpha.texi: Likewise.
7654         * doc/posix-functions/iswblank.texi: Likewise.
7655         * doc/posix-functions/iswcntrl.texi: Likewise.
7656         * doc/posix-functions/iswctype.texi: Likewise.
7657         * doc/posix-functions/iswdigit.texi: Likewise.
7658         * doc/posix-functions/iswgraph.texi: Likewise.
7659         * doc/posix-functions/iswlower.texi: Likewise.
7660         * doc/posix-functions/iswprint.texi: Likewise.
7661         * doc/posix-functions/iswpunct.texi: Likewise.
7662         * doc/posix-functions/iswspace.texi: Likewise.
7663         * doc/posix-functions/iswupper.texi: Likewise.
7664         * doc/posix-functions/iswxdigit.texi: Likewise.
7665         * doc/posix-functions/mbrtowc.texi: Likewise.
7666         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7667         * doc/posix-functions/mbstowcs.texi: Likewise.
7668         * doc/posix-functions/mbtowc.texi: Likewise.
7669         * doc/posix-functions/putwchar.texi: Likewise.
7670         * doc/posix-functions/putwc.texi: Likewise.
7671         * doc/posix-functions/swprintf.texi: Likewise.
7672         * doc/posix-functions/tolower.texi: Likewise.
7673         * doc/posix-functions/toupper.texi: Likewise.
7674         * doc/posix-functions/towctrans.texi: Likewise.
7675         * doc/posix-functions/ungetwc.texi: Likewise.
7676         * doc/posix-functions/vswprintf.texi: Likewise.
7677         * doc/posix-functions/wcrtomb.texi: Likewise.
7678         * doc/posix-functions/wcscat.texi: Likewise.
7679         * doc/posix-functions/wcschr.texi: Likewise.
7680         * doc/posix-functions/wcscmp.texi: Likewise.
7681         * doc/posix-functions/wcscoll.texi: Likewise.
7682         * doc/posix-functions/wcscpy.texi: Likewise.
7683         * doc/posix-functions/wcscspn.texi: Likewise.
7684         * doc/posix-functions/wcsftime.texi: Likewise.
7685         * doc/posix-functions/wcslen.texi: Likewise.
7686         * doc/posix-functions/wcsncat.texi: Likewise.
7687         * doc/posix-functions/wcsncmp.texi: Likewise.
7688         * doc/posix-functions/wcsncpy.texi: Likewise.
7689         * doc/posix-functions/wcspbrk.texi: Likewise.
7690         * doc/posix-functions/wcsrchr.texi: Likewise.
7691         * doc/posix-functions/wcsrtombs.texi: Likewise.
7692         * doc/posix-functions/wcsspn.texi: Likewise.
7693         * doc/posix-functions/wcsstr.texi: Likewise.
7694         * doc/posix-functions/wcstod.texi: Likewise.
7695         * doc/posix-functions/wcstof.texi: Likewise.
7696         * doc/posix-functions/wcstoimax.texi: Likewise.
7697         * doc/posix-functions/wcstok.texi: Likewise.
7698         * doc/posix-functions/wcstold.texi: Likewise.
7699         * doc/posix-functions/wcstoll.texi: Likewise.
7700         * doc/posix-functions/wcstol.texi: Likewise.
7701         * doc/posix-functions/wcstombs.texi: Likewise.
7702         * doc/posix-functions/wcstoull.texi: Likewise.
7703         * doc/posix-functions/wcstoul.texi: Likewise.
7704         * doc/posix-functions/wcstoumax.texi: Likewise.
7705         * doc/posix-functions/wcswidth.texi: Likewise.
7706         * doc/posix-functions/wcsxfrm.texi: Likewise.
7707         * doc/posix-functions/wctob.texi: Likewise.
7708         * doc/posix-functions/wctomb.texi: Likewise.
7709         * doc/posix-functions/wctrans.texi: Likewise.
7710         * doc/posix-functions/wctype.texi: Likewise.
7711         * doc/posix-functions/wcwidth.texi: Likewise.
7712         * doc/posix-functions/wmemchr.texi: Likewise.
7713         * doc/posix-functions/wmemcmp.texi: Likewise.
7714         * doc/posix-functions/wmemcpy.texi: Likewise.
7715         * doc/posix-functions/wmemmove.texi: Likewise.
7716         * doc/posix-functions/wmemset.texi: Likewise.
7717         * doc/posix-functions/wprintf.texi: Likewise.
7718         * doc/posix-functions/wscanf.texi: Likewise.
7719
7720 2008-12-21  Bruno Haible  <bruno@clisp.org>
7721
7722         Update doc for HP-UX 11.11.
7723         * doc/posix-functions/btowc.texi: Clarify that the function is missing
7724         in HP-UX version 11.00, not in all versions of HP-UX 11.
7725         * doc/posix-functions/fwide.texi: Likewise.
7726         * doc/posix-functions/fwprintf.texi: Likewise.
7727         * doc/posix-functions/fwscanf.texi: Likewise.
7728         * doc/posix-functions/inet_ntop.texi: Likewise.
7729         * doc/posix-functions/inet_pton.texi: Likewise.
7730         * doc/posix-functions/mbrlen.texi: Likewise.
7731         * doc/posix-functions/mbrtowc.texi: Likewise.
7732         * doc/posix-functions/mbsinit.texi: Likewise.
7733         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7734         * doc/posix-functions/swprintf.texi: Likewise.
7735         * doc/posix-functions/swscanf.texi: Likewise.
7736         * doc/posix-functions/towctrans.texi: Likewise.
7737         * doc/posix-functions/vfwprintf.texi: Likewise.
7738         * doc/posix-functions/vswprintf.texi: Likewise.
7739         * doc/posix-functions/vwprintf.texi: Likewise.
7740         * doc/posix-functions/wcrtomb.texi: Likewise.
7741         * doc/posix-functions/wcsrtombs.texi: Likewise.
7742         * doc/posix-functions/wcsstr.texi: Likewise.
7743         * doc/posix-functions/wctob.texi: Likewise.
7744         * doc/posix-functions/wctrans.texi: Likewise.
7745         * doc/posix-functions/wmemchr.texi: Likewise.
7746         * doc/posix-functions/wmemcmp.texi: Likewise.
7747         * doc/posix-functions/wmemcpy.texi: Likewise.
7748         * doc/posix-functions/wmemmove.texi: Likewise.
7749         * doc/posix-functions/wmemset.texi: Likewise.
7750         * doc/posix-functions/wprintf.texi: Likewise.
7751         * doc/posix-functions/wscanf.texi: Likewise.
7752
7753 2008-12-21  Bruno Haible  <bruno@clisp.org>
7754
7755         Work around a portability problem.
7756         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
7757         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
7758
7759 2008-12-20  Bruno Haible  <bruno@clisp.org>
7760
7761         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
7762         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
7763         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
7764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
7765         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
7766
7767         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
7768         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
7769         set.
7770         (GNULIB_defined_mbstate_t): New macro.
7771         (mbsinit): Redefine if REPLACE_MBSINIT is set.
7772         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
7773         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
7774         reuses the system's mbrtowc function but works around the bugs.
7775         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
7776         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
7777         macros.
7778         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
7779         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
7780         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
7781         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
7782         REPLACE_MBSINIT if mbsinit needs to be overridden.
7783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
7784         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7785         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
7786         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7787         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7788         m4/locale-zh.m4.
7789         (Depends): Add mbsinit.
7790         * modules/mbsinit (Depends): Add mbrtowc.
7791         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
7792
7793 2008-12-20  Bruno Haible  <bruno@clisp.org>
7794
7795         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
7796         so that there are no conversion errors on AIX.
7797         * tests/test-mbsrtowcs.c (main): LIkewise.
7798
7799 2008-12-20  Bruno Haible  <bruno@clisp.org>
7800
7801         Work around wctob bug on Solaris <= 9.
7802         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
7803         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
7804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
7805         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
7806         * modules/wctob (Files): Add m4/locale-fr.m4.
7807         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
7808
7809 2008-12-20  Bruno Haible  <bruno@clisp.org>
7810
7811         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
7812         /dev/null.
7813         * tests/test-select-in.sh: Likewise.
7814         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7815
7816 2008-12-20  Bruno Haible  <bruno@clisp.org>
7817
7818         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
7819         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
7820         Cygwin 1.5.x.
7821
7822 2008-12-20  Bruno Haible  <bruno@clisp.org>
7823
7824         Ensure mbstate_t is defined on HP-UX 11.11.
7825         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
7826         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
7827         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
7828         AC_USE_SYSTEM_EXTENSIONS.
7829         * modules/fnmatch (Depends-on): Add extensions.
7830         * modules/mbrlen (Depends-on): Likewise.
7831         * modules/mbrtowc (Depends-on): Likewise.
7832         * modules/mbsinit (Depends-on): Likewise.
7833         * modules/mbsrtowcs (Depends-on): Likewise.
7834         * modules/mbswidth (Depends-on): Likewise.
7835         * modules/quotearg (Depends-on): Likewise.
7836         * modules/strftime (Depends-on): Likewise.
7837
7838 2008-12-20  Bruno Haible  <bruno@clisp.org>
7839
7840         Ensure wctob is declared on IRIX 6.5.
7841         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
7842         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
7843         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
7844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
7845         of HAVE_WCTOB.
7846         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
7847         HAVE_WCTOB.
7848         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
7849
7850 2008-12-19  Bruno Haible  <bruno@clisp.org>
7851
7852         * modules/mbsrtowcs-tests: New file.
7853         * tests/test-mbsrtowcs1.sh: New file.
7854         * tests/test-mbsrtowcs2.sh: New file.
7855         * tests/test-mbsrtowcs3.sh: New file.
7856         * tests/test-mbsrtowcs4.sh: New file.
7857         * tests/test-mbsrtowcs.c: New file.
7858
7859         New module 'mbsrtowcs'.
7860         * lib/wchar.in.h (mbsrtowcs): New declaration.
7861         * lib/mbsrtowcs.c: New file.
7862         * m4/mbsrtowcs.m4: New file.
7863         * modules/mbsrtowcs: New file.
7864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
7865         HAVE_MBSRTOWCS.
7866         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
7867         HAVE_MBSRTOWCS.
7868         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
7869
7870 2008-12-19  Bruno Haible  <bruno@clisp.org>
7871
7872         New module 'mbrlen'.
7873         * lib/wchar.in.h (mbrlen): New declaration.
7874         * lib/mbrlen.c: New file.
7875         * m4/mbrlen.m4: New file.
7876         * modules/mbrlen: New file.
7877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
7878         HAVE_MBRLEN.
7879         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
7880         HAVE_MBRLEN.
7881         * doc/posix-functions/mbrlen.texi: Document the new module.
7882
7883 2008-12-19  Bruno Haible  <bruno@clisp.org>
7884
7885         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
7886         * modules/mbrtowc (Depends-on): Add verify.
7887         Suggested by Paul Eggert.
7888
7889 2008-12-18  Bruno Haible  <bruno@clisp.org>
7890
7891         * modules/mbsinit-tests: New file.
7892         * tests/test-mbsinit.sh: New file.
7893         * tests/test-mbsinit.c: New file.
7894
7895 2008-12-18  Bruno Haible  <bruno@clisp.org>
7896
7897         * modules/mbrtowc-tests: New file.
7898         * tests/test-mbrtowc1.sh: New file.
7899         * tests/test-mbrtowc2.sh: New file.
7900         * tests/test-mbrtowc3.sh: New file.
7901         * tests/test-mbrtowc4.sh: New file.
7902         * tests/test-mbrtowc.c: New file.
7903
7904         New module 'mbrtowc'.
7905         * lib/wchar.in.h (mbstate_t): Override when the system does not have
7906         mbsinit and mbrtowc.
7907         (mbrtowc): New declaration.
7908         * lib/mbrtowc.c: New file.
7909         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
7910         * modules/mbrtowc: New file.
7911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
7912         HAVE_MBRTOWC.
7913         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
7914         HAVE_MBRTOWC.
7915         * doc/posix-functions/mbrtowc.texi: Document the new module.
7916
7917 2008-12-18  Bruno Haible  <bruno@clisp.org>
7918
7919         New module 'wctob'.
7920         * lib/wchar.in.h (wctob): New declaration.
7921         * lib/wctob.c: New file.
7922         * m4/wctob.m4: New file.
7923         * modules/wctob: New file.
7924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
7925         HAVE_WCTOB.
7926         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
7927         * doc/posix-functions/wctob.texi: Document the new module.
7928
7929 2008-12-18  Bruno Haible  <bruno@clisp.org>
7930
7931         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
7932         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
7933
7934 2008-12-18  Simon Josefsson  <simon@josefsson.org>
7935
7936         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
7937         G. Christensen" <tgc@jupiterrise.com>.
7938
7939         * lib/flock.c: Need to include errno.h.  Reported by "Tom
7940         G. Christensen" <tgc@jupiterrise.com>.
7941
7942         * lib/flock.c: Need to include string.h.  Reported by "Tom
7943         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
7944         <ebb9@byu.net>.
7945
7946 2008-12-18  Bruno Haible  <bruno@clisp.org>
7947
7948         * m4/locale-ja.m4: New file, from GNU gettext.
7949
7950 2008-12-17  Bruno Haible  <bruno@clisp.org>
7951
7952         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
7953         Suggested by Eric Blake.
7954
7955 2008-12-17  Bruno Haible  <bruno@clisp.org>
7956
7957         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
7958
7959 2008-12-17  Bruno Haible  <bruno@clisp.org>
7960
7961         * lib/mbsinit.c: Include verify.h. Verify an assumption.
7962         * modules/mbsinit (Depends-on): Add verify.
7963         Suggested by Paul Eggert.
7964
7965 2008-12-17  Bruno Haible  <bruno@clisp.org>
7966
7967         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
7968         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
7969         gl_FUNC_MBRTOWC.
7970         * m4/mbiter.m4 (gl_MBITER): LIkewise.
7971         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
7972         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
7973         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
7974         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
7975         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
7976         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
7977         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
7978         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
7979         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
7980         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
7981         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
7982         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
7983         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
7984         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
7985         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7986         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
7987         * modules/trim (configure.ac): Likewise.
7988
7989 2008-12-17  Bruno Haible  <bruno@clisp.org>
7990
7991         * modules/btowc-tests: New file.
7992         * tests/test-btowc1.sh: New file.
7993         * tests/test-btowc2.sh: New file.
7994         * tests/test-btowc.c: New file.
7995
7996         New module 'btowc'.
7997         * lib/wchar.in.h (btowc): New declaration.
7998         * lib/btowc.c: New file.
7999         * m4/btowc.m4: New file.
8000         * modules/btowc: New file.
8001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
8002         HAVE_BTOWC.
8003         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
8004         * doc/posix-functions/btowc.texi: Document the new module.
8005
8006 2008-12-17  Bruno Haible  <bruno@clisp.org>
8007
8008         New module 'mbsinit'.
8009         * lib/wchar.in.h (mbsinit): New declaration.
8010         * lib/mbsinit.c: New file.
8011         * m4/mbsinit.m4: New file.
8012         * modules/mbsinit: New file.
8013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
8014         HAVE_MBSINIT.
8015         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
8016         HAVE_MBSINIT.
8017         * doc/posix-functions/mbsinit.texi: Document the new module.
8018
8019 2008-12-16  Bruno Haible  <bruno@clisp.org>
8020
8021         * lib/unistd.in.h: Add comment.
8022         * tests/test-environ.c: Don't include <stdlib.h>.
8023
8024 2008-12-16  Bruno Haible  <bruno@clisp.org>
8025
8026         * lib/parse-duration.h (parse_duration): Document return value
8027         convention.
8028         * lib/parse-duration.c: Include specification header first. Add
8029         comments.
8030         (_): Remove macro.
8031         (parse_year_month_day, parse_hour_minute_second): Move side effects
8032         outside of strchr call.
8033         (parse_non_iso8601): Move side effects outside of isspace call.
8034         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
8035         call.
8036
8037 2008-12-16  Bruno Haible  <bruno@clisp.org>
8038
8039         * tests/test-parse-duration.sh: Produce no output when the test
8040         succeeds.
8041
8042 2008-12-16  Bruno Haible  <bruno@clisp.org>
8043
8044         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
8045         expressions.
8046
8047 2008-12-15  Bruno Haible  <bruno@clisp.org>
8048
8049         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
8050         * doc/glibc-functions/flistxattr.texi: Likewise.
8051         * doc/glibc-functions/fopencookie.texi: Likewise.
8052         * doc/glibc-functions/fremovexattr.texi: Likewise.
8053         * doc/glibc-functions/fsetxattr.texi: Likewise.
8054         * doc/glibc-functions/getxattr.texi: Likewise.
8055         * doc/glibc-functions/lgetxattr.texi: Likewise.
8056         * doc/glibc-functions/listxattr.texi: Likewise.
8057         * doc/glibc-functions/llistxattr.texi: Likewise.
8058         * doc/glibc-functions/lremovexattr.texi: Likewise.
8059         * doc/glibc-functions/lsetxattr.texi: Likewise.
8060         * doc/glibc-functions/removexattr.texi: Likewise.
8061         * doc/glibc-functions/setxattr.texi: Likewise.
8062         * doc/posix-functions/open_memstream.texi: Likewise.
8063
8064 2008-12-15  Eric Blake  <ebb9@byu.net>
8065
8066         Update doc for cygwin 1.7.
8067         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
8068         functions.
8069         * doc/posix-functions/fchmodat.texi: Likewise.
8070         * doc/posix-functions/fchownat.texi: Likewise.
8071         * doc/posix-functions/fdopendir.texi: Likewise.
8072         * doc/posix-functions/fmemopen.texi: Likewise.
8073         * doc/posix-functions/freeaddrinfo.texi: Likewise.
8074         * doc/posix-functions/fstatat.texi: Likewise.
8075         * doc/posix-functions/futimens.texi: Likewise.
8076         * doc/posix-functions/gai_strerror.texi: Likewise.
8077         * doc/posix-functions/getaddrinfo.texi: Likewise.
8078         * doc/posix-functions/getnameinfo.texi: Likewise.
8079         * doc/posix-functions/if_freenameindex.texi: Likewise.
8080         * doc/posix-functions/if_indextoname.texi: Likewise.
8081         * doc/posix-functions/if_nameindex.texi: Likewise.
8082         * doc/posix-functions/if_nametoindex.texi: Likewise.
8083         * doc/posix-functions/insque.texi: Likewise.
8084         * doc/posix-functions/linkat.texi: Likewise.
8085         * doc/posix-functions/llrint.texi: Likewise.
8086         * doc/posix-functions/llrintf.texi: Likewise.
8087         * doc/posix-functions/llrintl.texi: Likewise.
8088         * doc/posix-functions/lockf.texi: Likewise.
8089         * doc/posix-functions/lrintl.texi: Likewise.
8090         * doc/posix-functions/mkdirat.texi: Likewise.
8091         * doc/posix-functions/mkfifoat.texi: Likewise.
8092         * doc/posix-functions/mknodat.texi: Likewise.
8093         * doc/posix-functions/mq_close.texi: Likewise.
8094         * doc/posix-functions/mq_getattr.texi: Likewise.
8095         * doc/posix-functions/mq_notify.texi: Likewise.
8096         * doc/posix-functions/mq_open.texi: Likewise.
8097         * doc/posix-functions/mq_receive.texi: Likewise.
8098         * doc/posix-functions/mq_send.texi: Likewise.
8099         * doc/posix-functions/mq_setattr.texi: Likewise.
8100         * doc/posix-functions/mq_timedreceive.texi: Likewise.
8101         * doc/posix-functions/mq_timedsend.texi: Likewise.
8102         * doc/posix-functions/mq_unlink.texi: Likewise.
8103         * doc/posix-functions/open_memstream.texi: Likewise.
8104         * doc/posix-functions/openat.texi: Likewise.
8105         * doc/posix-functions/posix_fadvise.texi: Likewise.
8106         * doc/posix-functions/posix_fallocate.texi: Likewise.
8107         * doc/posix-functions/posix_madvise.texi: Likewise.
8108         * doc/posix-functions/posix_memalign.texi: Likewise.
8109         * doc/posix-functions/posix_openpt.texi: Likewise.
8110         * doc/posix-functions/readlinkat.texi: Likewise.
8111         * doc/posix-functions/remque.texi: Likewise.
8112         * doc/posix-functions/renameat.texi: Likewise.
8113         * doc/posix-functions/rintl.texi: Likewise.
8114         * doc/posix-functions/sem_unlink.texi: Likewise.
8115         * doc/posix-functions/shm_open.texi: Likewise.
8116         * doc/posix-functions/shm_unlink.texi: Likewise.
8117         * doc/posix-functions/signgam.texi: Likewise.
8118         * doc/posix-functions/sigset.texi: Likewise.
8119         * doc/posix-functions/stpcpy.texi: Likewise.
8120         * doc/posix-functions/stpncpy.texi: Likewise.
8121         * doc/posix-functions/strerror.texi: Likewise.
8122         * doc/posix-functions/strtod.texi: Likewise.
8123         * doc/posix-functions/symlinkat.texi: Likewise.
8124         * doc/posix-functions/unlinkat.texi: Likewise.
8125         * doc/posix-functions/utimensat.texi: Likewise.
8126         * doc/glibc-functions/bindresvport.texi: Likewise.
8127         * doc/glibc-functions/dn_expand.texi: Likewise.
8128         * doc/glibc-functions/exp10.texi: Likewise.
8129         * doc/glibc-functions/exp10f.texi: Likewise.
8130         * doc/glibc-functions/fgetxattr.texi: Likewise.
8131         * doc/glibc-functions/flistxattr.texi: Likewise.
8132         * doc/glibc-functions/fopencookie.texi: Likewise.
8133         * doc/glibc-functions/freeifaddrs.texi: Likewise.
8134         * doc/glibc-functions/fremovexattr.texi: Likewise.
8135         * doc/glibc-functions/fsetxattr.texi: Likewise.
8136         * doc/glibc-functions/getifaddrs.texi: Likewise.
8137         * doc/glibc-functions/getxattr.texi: Likewise.
8138         * doc/glibc-functions/lgetxattr.texi: Likewise.
8139         * doc/glibc-functions/listxattr.texi: Likewise.
8140         * doc/glibc-functions/llistxattr.texi: Likewise.
8141         * doc/glibc-functions/lremovexattr.texi: Likewise.
8142         * doc/glibc-functions/lsetxattr.texi: Likewise.
8143         * doc/glibc-functions/pow10.texi: Likewise.
8144         * doc/glibc-functions/pow10f.texi: Likewise.
8145         * doc/glibc-functions/rcmd_af.texi: Likewise.
8146         * doc/glibc-functions/removexattr.texi: Likewise.
8147         * doc/glibc-functions/res_init.texi: Likewise.
8148         * doc/glibc-functions/res_mkquery.texi: Likewise.
8149         * doc/glibc-functions/res_query.texi: Likewise.
8150         * doc/glibc-functions/res_querydomain.texi: Likewise.
8151         * doc/glibc-functions/res_send.texi: Likewise.
8152         * doc/glibc-functions/rresvport_af.texi: Likewise.
8153         * doc/glibc-functions/setxattr.texi: Likewise.
8154         * doc/glibc-functions/strcasestr.texi: Likewise.
8155
8156 2008-12-15  Bruno Haible  <bruno@clisp.org>
8157
8158         Fix compilation error on OSF/1 4.0.
8159         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
8160         <sys/time.h>, simply delegate to the system header.
8161         Reported by Daniel Richard G. <oss@teragram.com>.
8162
8163 2008-12-15  Bruno Haible  <bruno@clisp.org>
8164
8165         * doc/posix-functions/openat.texi: Mention the 'openat' module.
8166         * doc/posix-functions/fchmodat.texi: Likewise.
8167         * doc/posix-functions/fchownat.texi: Likewise.
8168         * doc/posix-functions/fdopendir.texi: Likewise.
8169         * doc/posix-functions/fstatat.texi: Likewise.
8170         * doc/posix-functions/mkdirat.texi: Likewise.
8171         * doc/posix-functions/unlinkat.texi: Likewise.
8172
8173 2008-12-14  Bruno Haible  <bruno@clisp.org>
8174
8175         Update doc for POSIX:2008.
8176         * doc/posix-functions/faccessat.texi: New file.
8177         * doc/posix-functions/fchmodat.texi: New file.
8178         * doc/posix-functions/fchownat.texi: New file.
8179         * doc/posix-functions/fdopendir.texi: New file.
8180         * doc/posix-functions/fstatat.texi: New file.
8181         * doc/posix-functions/futimens.texi: New file.
8182         * doc/posix-functions/linkat.texi: New file.
8183         * doc/posix-functions/mkdirat.texi: New file.
8184         * doc/posix-functions/mkfifoat.texi: New file.
8185         * doc/posix-functions/mknodat.texi: New file.
8186         * doc/posix-functions/open_wmemstream.texi: New file.
8187         * doc/posix-functions/openat.texi: New file.
8188         * doc/posix-functions/psiginfo.texi: New file.
8189         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
8190         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
8191         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
8192         * doc/posix-functions/readlinkat.texi: New file.
8193         * doc/posix-functions/renameat.texi: New file.
8194         * doc/posix-functions/strerror_l.texi: New file.
8195         * doc/posix-functions/symlinkat.texi: New file.
8196         * doc/posix-functions/unlinkat.texi: New file.
8197         * doc/posix-functions/utimensat.texi: New file.
8198         * doc/gnulib.texi (Function Substitutes): Add these subsections.
8199
8200 2008-12-14  Bruno Haible  <bruno@clisp.org>
8201
8202         Update doc for POSIX:2008.
8203         * doc/posix-functions/alphasort.texi: Renamed from
8204         doc/glibc-functions/alphasort.texi.
8205         * doc/posix-functions/dirfd.texi: Renamed from
8206         doc/glibc-functions/dirfd.texi.
8207         * doc/posix-functions/dprintf.texi: Renamed from
8208         doc/glibc-functions/dprintf.texi.
8209         * doc/posix-functions/duplocale.texi: Renamed from
8210         doc/glibc-functions/duplocale.texi.
8211         * doc/posix-functions/fexecve.texi: Renamed from
8212         doc/glibc-functions/fexecve.texi.
8213         * doc/posix-functions/fmemopen.texi: Renamed from
8214         doc/glibc-functions/fmemopen.texi.
8215         * doc/posix-functions/freelocale.texi: Renamed from
8216         doc/glibc-functions/freelocale.texi.
8217         * doc/posix-functions/getdate_err.texi: Renamed from
8218         doc/glibc-functions/getdate_err.texi.
8219         * doc/posix-functions/isalnum_l.texi: Renamed from
8220         doc/glibc-functions/isalnum_l.texi.
8221         * doc/posix-functions/isalpha_l.texi: Renamed from
8222         doc/glibc-functions/isalpha_l.texi.
8223         * doc/posix-functions/isblank_l.texi: Renamed from
8224         doc/glibc-functions/isblank_l.texi.
8225         * doc/posix-functions/iscntrl_l.texi: Renamed from
8226         doc/glibc-functions/iscntrl_l.texi.
8227         * doc/posix-functions/isdigit_l.texi: Renamed from
8228         doc/glibc-functions/isdigit_l.texi.
8229         * doc/posix-functions/isgraph_l.texi: Renamed from
8230         doc/glibc-functions/isgraph_l.texi.
8231         * doc/posix-functions/islower_l.texi: Renamed from
8232         doc/glibc-functions/islower_l.texi.
8233         * doc/posix-functions/isprint_l.texi: Renamed from
8234         doc/glibc-functions/isprint_l.texi.
8235         * doc/posix-functions/ispunct_l.texi: Renamed from
8236         doc/glibc-functions/ispunct_l.texi.
8237         * doc/posix-functions/isspace_l.texi: Renamed from
8238         doc/glibc-functions/isspace_l.texi.
8239         * doc/posix-functions/isupper_l.texi: Renamed from
8240         doc/glibc-functions/isupper_l.texi.
8241         * doc/posix-functions/iswalnum_l.texi: Renamed from
8242         doc/glibc-functions/iswalnum_l.texi.
8243         * doc/posix-functions/iswalpha_l.texi: Renamed from
8244         doc/glibc-functions/iswalpha_l.texi.
8245         * doc/posix-functions/iswblank_l.texi: Renamed from
8246         doc/glibc-functions/iswblank_l.texi.
8247         * doc/posix-functions/iswcntrl_l.texi: Renamed from
8248         doc/glibc-functions/iswcntrl_l.texi.
8249         * doc/posix-functions/iswctype_l.texi: Renamed from
8250         doc/glibc-functions/iswctype_l.texi.
8251         * doc/posix-functions/iswdigit_l.texi: Renamed from
8252         doc/glibc-functions/iswdigit_l.texi.
8253         * doc/posix-functions/iswgraph_l.texi: Renamed from
8254         doc/glibc-functions/iswgraph_l.texi.
8255         * doc/posix-functions/iswlower_l.texi: Renamed from
8256         doc/glibc-functions/iswlower_l.texi.
8257         * doc/posix-functions/iswprint_l.texi: Renamed from
8258         doc/glibc-functions/iswprint_l.texi.
8259         * doc/posix-functions/iswpunct_l.texi: Renamed from
8260         doc/glibc-functions/iswpunct_l.texi.
8261         * doc/posix-functions/iswspace_l.texi: Renamed from
8262         doc/glibc-functions/iswspace_l.texi.
8263         * doc/posix-functions/iswupper_l.texi: Renamed from
8264         doc/glibc-functions/iswupper_l.texi.
8265         * doc/posix-functions/iswxdigit_l.texi: Renamed from
8266         doc/glibc-functions/iswxdigit_l.texi.
8267         * doc/posix-functions/isxdigit_l.texi: Renamed from
8268         doc/glibc-functions/isxdigit_l.texi.
8269         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
8270         doc/glibc-functions/mbsnrtowcs.texi.
8271         * doc/posix-functions/mkdtemp.texi: Renamed from
8272         doc/glibc-functions/mkdtemp.texi.
8273         * doc/posix-functions/newlocale.texi: Renamed from
8274         doc/glibc-functions/newlocale.texi.
8275         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
8276         doc/glibc-functions/nl_langinfo_l.texi.
8277         * doc/posix-functions/open_memstream.texi: Renamed from
8278         doc/glibc-functions/open_memstream.texi.
8279         * doc/posix-functions/opterr.texi: Renamed from
8280         doc/glibc-functions/opterr.texi.
8281         * doc/posix-functions/optind.texi: Renamed from
8282         doc/glibc-functions/optind.texi.
8283         * doc/posix-functions/optopt.texi: Renamed from
8284         doc/glibc-functions/optopt.texi.
8285         * doc/posix-functions/psignal.texi: Renamed from
8286         doc/glibc-functions/psignal.texi.
8287         * doc/posix-functions/scandir.texi: Renamed from
8288         doc/glibc-functions/scandir.texi.
8289         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
8290         doc/glibc-functions/sched_get_priority_min.texi.
8291         * doc/posix-functions/signgam.texi: Renamed from
8292         doc/glibc-functions/signgam.texi.
8293         * doc/posix-functions/stpcpy.texi: Renamed from
8294         doc/glibc-functions/stpcpy.texi.
8295         * doc/posix-functions/stpncpy.texi: Renamed from
8296         doc/glibc-functions/stpncpy.texi.
8297         * doc/posix-functions/strcasecmp_l.texi: Renamed from
8298         doc/glibc-functions/strcasecmp_l.texi.
8299         * doc/posix-functions/strcoll_l.texi: Renamed from
8300         doc/glibc-functions/strcoll_l.texi.
8301         * doc/posix-functions/strfmon_l.texi: Renamed from
8302         doc/glibc-functions/strfmon_l.texi.
8303         * doc/posix-functions/strftime_l.texi: Renamed from
8304         doc/glibc-functions/strftime_l.texi.
8305         * doc/posix-functions/strncasecmp_l.texi: Renamed from
8306         doc/glibc-functions/strncasecmp_l.texi.
8307         * doc/posix-functions/strndup.texi: Renamed from
8308         doc/glibc-functions/strndup.texi.
8309         * doc/posix-functions/strnlen.texi: Renamed from
8310         doc/glibc-functions/strnlen.texi.
8311         * doc/posix-functions/strsignal.texi: Renamed from
8312         doc/glibc-functions/strsignal.texi.
8313         * doc/posix-functions/strxfrm_l.texi: Renamed from
8314         doc/glibc-functions/strxfrm_l.texi.
8315         * doc/posix-functions/timer_gettime.texi: Renamed from
8316         doc/glibc-functions/timer_gettime.texi.
8317         * doc/posix-functions/tolower_l.texi: Renamed from
8318         doc/glibc-functions/tolower_l.texi.
8319         * doc/posix-functions/toupper_l.texi: Renamed from
8320         doc/glibc-functions/toupper_l.texi.
8321         * doc/posix-functions/towctrans_l.texi: Renamed from
8322         doc/glibc-functions/towctrans_l.texi.
8323         * doc/posix-functions/towlower_l.texi: Renamed from
8324         doc/glibc-functions/towlower_l.texi.
8325         * doc/posix-functions/towupper_l.texi: Renamed from
8326         doc/glibc-functions/towupper_l.texi.
8327         * doc/posix-functions/uselocale.texi: Renamed from
8328         doc/glibc-functions/uselocale.texi.
8329         * doc/posix-functions/vdprintf.texi: Renamed from
8330         doc/glibc-functions/vdprintf.texi.
8331         * doc/posix-functions/wcpcpy.texi:
8332         Renamed from doc/glibc-functions/wcpcpy.texi.
8333         * doc/posix-functions/wcpncpy.texi: Renamed from
8334         doc/glibc-functions/wcpncpy.texi.
8335         * doc/posix-functions/wcscasecmp.texi: Renamed from
8336         doc/glibc-functions/wcscasecmp.texi.
8337         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
8338         doc/glibc-functions/wcscasecmp_l.texi.
8339         * doc/posix-functions/wcscoll_l.texi: Renamed from
8340         doc/glibc-functions/wcscoll_l.texi.
8341         * doc/posix-functions/wcsdup.texi: Renamed from
8342         doc/glibc-functions/wcsdup.texi.
8343         * doc/posix-functions/wcsncasecmp.texi: Renamed from
8344         doc/glibc-functions/wcsncasecmp.texi.
8345         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
8346         doc/glibc-functions/wcsncasecmp_l.texi.
8347         * doc/posix-functions/wcsnlen.texi: Renamed from
8348         doc/glibc-functions/wcsnlen.texi.
8349         * doc/posix-functions/wcsnrtombs.texi: Renamed from
8350         doc/glibc-functions/wcsnrtombs.texi.
8351         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
8352         doc/glibc-functions/wcsxfrm_l.texi.
8353         * doc/posix-functions/wctrans_l.texi: Renamed from
8354         doc/glibc-functions/wctrans_l.texi.
8355         * doc/posix-functions/wctype_l.texi: Renamed from
8356         doc/glibc-functions/wctype_l.texi.
8357         * doc/gnulib.texi (Function Substitutes): Add these subsections.
8358         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
8359         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
8360         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
8361         these subsections.
8362         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
8363         Remove sections.
8364
8365 2008-12-14  Bruno Haible  <bruno@clisp.org>
8366
8367         Update doc for POSIX:2008.
8368         * doc/posix-functions/*.texi: Update URL of POSIX specification.
8369
8370 2008-12-14  Bruno Haible  <bruno@clisp.org>
8371
8372         Update doc for POSIX:2008.
8373         * doc/pastposix-functions/bcmp.texi: Renamed from
8374         doc/posix-functions/bcmp.texi.
8375         * doc/pastposix-functions/bcopy.texi: Renamed from
8376         doc/posix-functions/bcopy.texi.
8377         * doc/pastposix-functions/bsd_signal.texi: Renamed from
8378         doc/posix-functions/bsd_signal.texi.
8379         * doc/pastposix-functions/bzero.texi: Renamed from
8380         doc/posix-functions/bzero.texi.
8381         * doc/pastposix-functions/ecvt.texi: Renamed from
8382         doc/posix-functions/ecvt.texi.
8383         * doc/pastposix-functions/fcvt.texi: Renamed from
8384         doc/posix-functions/fcvt.texi.
8385         * doc/pastposix-functions/ftime.texi: Renamed from
8386         doc/posix-functions/ftime.texi.
8387         * doc/pastposix-functions/gcvt.texi: Renamed from
8388         doc/posix-functions/gcvt.texi.
8389         * doc/pastposix-functions/getcontext.texi: Renamed from
8390         doc/posix-functions/getcontext.texi.
8391         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
8392         doc/posix-functions/gethostbyaddr.texi.
8393         * doc/pastposix-functions/gethostbyname.texi: Renamed from
8394         doc/posix-functions/gethostbyname.texi.
8395         * doc/pastposix-functions/getwd.texi: Renamed from
8396         doc/posix-functions/getwd.texi.
8397         * doc/pastposix-functions/h_errno.texi: Renamed from
8398         doc/posix-functions/h_errno.texi.
8399         * doc/pastposix-functions/index.texi: Renamed from
8400         doc/posix-functions/index.texi.
8401         * doc/pastposix-functions/makecontext.texi: Renamed from
8402         doc/posix-functions/makecontext.texi.
8403         * doc/pastposix-functions/mktemp.texi: Renamed from
8404         doc/posix-functions/mktemp.texi.
8405         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
8406         doc/posix-functions/pthread_attr_getstackaddr.texi.
8407         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
8408         doc/posix-functions/pthread_attr_setstackaddr.texi.
8409         * doc/pastposix-functions/rindex.texi: Renamed from
8410         doc/posix-functions/rindex.texi.
8411         * doc/pastposix-functions/scalb.texi: Renamed from
8412         doc/posix-functions/scalb.texi.
8413         * doc/pastposix-functions/setcontext.texi: Renamed from
8414         doc/posix-functions/setcontext.texi.
8415         * doc/pastposix-functions/swapcontext.texi: Renamed from
8416         doc/posix-functions/swapcontext.texi.
8417         * doc/pastposix-functions/ualarm.texi: Renamed from
8418         doc/posix-functions/ualarm.texi.
8419         * doc/pastposix-functions/usleep.texi: Renamed from
8420         doc/posix-functions/usleep.texi.
8421         * doc/pastposix-functions/vfork.texi: Renamed from
8422         doc/posix-functions/vfork.texi.
8423         * doc/pastposix-functions/wcswcs.texi: Renamed from
8424         doc/posix-functions/wcswcs.texi.
8425         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
8426         (Function Substitutes): Update.
8427
8428 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8429
8430         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
8431         m4/strerror.m4.
8432
8433 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8434             Bruno Haible  <bruno@clisp.org>
8435
8436         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
8437
8438 2008-12-13  Bruno Haible  <bruno@clisp.org>
8439
8440         * modules/strtoull (Depends-on): Remove unistd.
8441
8442 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8443
8444         * modules/strtoull (Depends-on): Add stdlib.
8445
8446 2008-12-11  Simon Josefsson  <simon@josefsson.org>
8447
8448         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
8449
8450 2008-12-10  Jim Meyering  <meyering@redhat.com>
8451
8452         gl_ASSERT: don't say assertions are disabled when they're not
8453         * m4/assert.m4 (gl_ASSERT): Do not make configure report
8454         "checking whether to enable assertions... no", when they are in
8455         fact enabled.  This is solely a bug in the output of configure.
8456         In spite of saying "no", NDEBUG was not defined in that case.
8457         Also, as noted by Eric Blake, leave assertions enabled upon
8458         --enable-assert=INVALID.
8459
8460 2008-12-10  Bruno Haible  <bruno@clisp.org>
8461
8462         Change MODULES.html to refer to POSIX:2008 where possible.
8463         * MODULES.html.sh (POSIX2008_URL): New variable.
8464         (posix_headers): Remove sys/timeb, ucontext.
8465         (posix2001_headers): New variable.
8466         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
8467         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
8468         index, makecontext, mktemp, pthread_attr_getstackaddr,
8469         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
8470         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
8471         (posix2001_functions): New variable.
8472         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
8473         otherwise.
8474
8475 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8476
8477         add missing include to parse-duration.c
8478         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
8479         * modules/parse-duration (Depends-on): Add xalloc.
8480
8481         fix sed script reading maint.mk
8482         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
8483         (syntax-check-rules): Use it.
8484
8485 2008-12-09  Bruno Haible  <bruno@clisp.org>
8486
8487         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
8488         MacOS X 10.4/PowerPC.
8489         Reported by Simon Josefsson.
8490
8491 2008-12-08  Jim Meyering  <meyering@redhat.com>
8492
8493         work around mingw's lack of some S_IF definitions
8494         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
8495         Reported by Simon Josefsson.
8496
8497 2008-12-08  Bruno Haible  <bruno@clisp.org>
8498
8499         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
8500         applied to variables. Needed on MacOS X 10.4/PowerPC.
8501         Reported by Simon Josefsson.
8502
8503 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
8504         and Eric Blake  <ebb9@byu.net>
8505
8506         assert: honor --enable-assert
8507         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
8508         order to honor --enable-assert, rather than treating it as a
8509         synonym for --disable-assert.
8510
8511 2008-12-08  Jim Meyering  <meyering@redhat.com>
8512
8513         * lib/posixtm.c: Remove now-useless declaration of mktime.
8514
8515         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
8516
8517 2008-12-07  Bruno Haible  <bruno@clisp.org>
8518
8519         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
8520         test_once): Mark functions as static.
8521         * tests/test-tls.c (test_tls): Likewise.
8522
8523 2008-12-07  Bruno Haible  <bruno@clisp.org>
8524
8525         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
8526         iconv_register_autodetect.
8527
8528 2008-12-07  Jim Meyering  <meyering@redhat.com>
8529
8530         posixtm.c: avoid a warning
8531         * lib/posixtm.c (posixtime): Don't initialize tm0.
8532         It's no longer needed to placate gcc4's -Wuninitialized,
8533         and the attempt to placate would elicit a new warning.
8534
8535         unicodeio.c: mark unused parameters
8536         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8537         (fallback_failure_callback): Likewise.
8538
8539 2008-12-07  Bruno Haible  <bruno@clisp.org>
8540
8541         * gnulib-tool (func_create_testdir): When building the tests
8542         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
8543         Reported by Simon Josefsson.
8544
8545 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8546
8547         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
8548
8549 2008-12-06  Bruno Haible  <bruno@clisp.org>
8550
8551         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
8552         Suggested by Eric Blake.
8553
8554 2008-12-06  Bruno Haible  <bruno@clisp.org>
8555
8556         Fix a c-stack test failure on MacOS X.
8557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
8558         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
8559         handler for SIGBUS as well.
8560         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
8561         install a signal handler for SIGBUS as well.
8562         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
8563
8564 2008-12-06  Bruno Haible  <bruno@clisp.org>
8565
8566         Advocacy documentation.
8567         * doc/gnulib-intro.texi (Benefits): New section.
8568         * doc/gnulib.texi: Update.
8569
8570 2008-12-06  Bruno Haible  <bruno@clisp.org>
8571
8572         Document the 'manywarnings' module.
8573         * doc/manywarnings.texi: New file.
8574         * doc/gnulib.texi: Include it.
8575
8576 2008-12-05  Eric Blake  <ebb9@byu.net>
8577
8578         tests: silence some gcc warnings
8579         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
8580         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
8581         type mismatches.
8582
8583 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8584             Bruno Haible  <bruno@clisp.org>
8585
8586         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
8587
8588 2008-11-29  Jim Meyering  <meyering@redhat.com>
8589
8590         unicodeio.c: mark unused parameters
8591         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8592         (fallback_failure_callback): Likewise.
8593
8594         fts: fix a thinko
8595         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
8596         (set_stat_type): Return S_IF*-valued "type" directly.
8597         Prompted by James Youngman's spotting a related bug.
8598         Confirmed by further testing through find.
8599
8600         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
8601         * lib/fts.c (D_TYPE): Define.
8602         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
8603         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
8604         (s_ifmt_shift_bits): New function.
8605         (set_stat_type): New function.
8606         (fts_build): When not calling fts_stat, call set_stat_type
8607         to propagate dirent.d_type info to fts_read caller.
8608         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
8609         fts_statp->st_mode type information may be valid.
8610
8611 2008-11-28  Simon Josefsson  <simon@josefsson.org>
8612
8613         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
8614         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
8615         <sds@gnu.org>.
8616
8617 2008-11-20  Bruno Haible  <bruno@clisp.org>
8618
8619         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
8620         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
8621         INCLUDE_NEXT.
8622         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
8623         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
8624         * modules/math (Makefile.am): Substitute
8625         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
8626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8627
8628 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
8629             Bruno Haible  <bruno@clisp.org>
8630
8631         * lib/stdint.in.h: Define all type macros so that their expansion is
8632         a single typedef'ed token. Fixes a compilation failure in Boost which
8633         does "using ::int8_t;".
8634
8635 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8636
8637         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
8638         gl_MANYWARN_ALL_GCC.
8639         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
8640         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
8641         * modules/manywarnings: New file.
8642         * MODULES.html.sh: Mention manywarnings module.
8643
8644 2008-11-18  Bruno Haible  <bruno@clisp.org>
8645
8646         * doc/gnulib-tool.texi (Unit tests): New section.
8647
8648 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8649
8650         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
8651         paths like 'lib/po/foo.po'.
8652
8653 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8654
8655         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
8656         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
8657
8658 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8659
8660         * m4/warnings.m4: Use CPPFLAGS to really check whether the
8661         parameter works.
8662
8663 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8664
8665         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
8666
8667 2008-11-17  Bruce Korb  <bkorb@gnu.org>
8668
8669         * modules/parse-duration-tests: New file.
8670         * tests/test-parse-duration.sh: New file.
8671         * tests/test-parse-duration.c: New file.
8672
8673         New module 'parse-duration'.
8674         * lib/parse-duration.h: New file.
8675         * lib/parse-duration.c: New file.
8676         * modules/parse-duration: New file.
8677
8678 2008-11-17  Bruno Haible  <bruno@clisp.org>
8679
8680         * tests/test-select-out.sh: Comment out the first pipe test.
8681         Reported by Simon Josefsson.
8682
8683 2008-11-17  Bruno Haible  <bruno@clisp.org>
8684
8685         * modules/getaddrinfo (Depends-on): Add servent, hostent.
8686         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
8687         gl_HOSTENT.
8688
8689 2008-11-17  Bruno Haible  <bruno@clisp.org>
8690
8691         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
8692         -lnetwork and -lnet. Needed for Haiku and BeOS.
8693
8694 2008-11-16  Bruno Haible  <bruno@clisp.org>
8695
8696         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
8697
8698 2008-11-16  Bruno Haible  <bruno@clisp.org>
8699
8700         Avoid test failure on Haiku.
8701         * tests/test-fsync.c: Include <errno.h>.
8702         (main): Don't require that fsync (0) fails.
8703
8704 2008-11-15  Bruno Haible  <bruno@clisp.org>
8705
8706         New module 'hostent'.
8707         * modules/hostent: New file.
8708         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
8709
8710 2008-11-15  Bruno Haible  <bruno@clisp.org>
8711
8712         New module 'servent'.
8713         * modules/servent: New file.
8714         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
8715
8716 2008-11-15  Bruno Haible  <bruno@clisp.org>
8717
8718         Avoid generating same test program with two different rules.
8719         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
8720         test-frexp to test-frexp-nolibm.
8721         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
8722         test-frexpl to test-frexpl-nolibm.
8723
8724 2008-11-15  Bruno Haible  <bruno@clisp.org>
8725
8726         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
8727         $(FREXPL_LIBM).
8728
8729 2008-11-15  Bruno Haible  <bruno@clisp.org>
8730
8731         * lib/netdb.in.h: Activate the definitions also when the system's
8732         <netdb.h> has 'struct addrinfo'.
8733         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
8734         EAI_OVERFLOW or AI_NUMERICSERV.
8735         * doc/posix-headers/netdb.texi: Document the problem.
8736
8737 2008-11-15  Bruno Haible  <bruno@clisp.org>
8738
8739         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
8740
8741         Make the 'sched' module work on platforms where <sched.h> exists but
8742         is incomplete (such as Haiku).
8743         * lib/sched.in.h; Include the system's <sched.h> if it exists.
8744         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
8745         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
8746         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
8747         HAVE_STRUCT_SCHED_PARAM.
8748         * modules/sched (Depends-on): Add include_next.
8749         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
8750         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
8751         * doc/posix-headers/sched.texi: Document the issue.
8752
8753 2008-11-13  Jim Meyering  <meyering@redhat.com>
8754
8755         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
8756         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
8757         test would fail due to the difference in the Report bugs to ...
8758         line.  The expected address is empty, "<>", while the actual
8759         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
8760
8761 2008-11-12  Bruno Haible  <bruno@clisp.org>
8762
8763         lstat: don't compile lstat.c on systems lacking lstat
8764         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
8765         which don't have lstat; this is handled by lib/sys_stat.in.h already.
8766         Reported by Daniel P. Berrange via Jim Meyering.
8767
8768 2008-11-12  Jim Meyering  <meyering@redhat.com>
8769
8770         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
8771
8772 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8773
8774         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
8775         instead.
8776
8777 2008-11-12  Bruno Haible  <bruno@clisp.org>
8778
8779         * lib/unicodeio.c: Include unistr.h.
8780         (utf8_wctomb): Remove function.
8781         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
8782
8783 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8784
8785         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
8786         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
8787         <bruno@clisp.org>.
8788         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
8789
8790 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8791
8792         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
8793         * doc/gnulib.texi: Add section for warnings.
8794
8795 2008-11-11  Bruno Haible  <bruno@clisp.org>
8796
8797         * lib/sockets.h: Add a comment.
8798
8799 2008-11-11  Karl Berry  <karl@gnu.org>
8800
8801         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
8802
8803 2008-11-11  Eric Blake  <ebb9@byu.net>
8804
8805         fdl.texi: avoid git symlinks
8806         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
8807
8808 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8809
8810         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
8811
8812 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8813
8814         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
8815         (gl_WARN_ADD): Substitute $2 if literal.
8816
8817 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8818
8819         * m4/warning.m4: Remove.
8820
8821 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8822
8823         * m4/warnings.m4: Almost complete rewrite. :-)
8824
8825 2008-11-10  Simon Josefsson  <simon@josefsson.org>
8826
8827         * modules/warnings: New module.
8828         * m4/warnings.m4: New file.
8829         * MODULES.html.sh: Mention warnings module.
8830         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
8831         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8832
8833 2008-11-10  Eric Blake  <ebb9@byu.net>
8834
8835         fdl.texi: make a symlink to the latest version
8836         * doc/standards.texi: Revert today's earlier change.
8837         * doc/fdl-1.2.texi: Rename from old fdl.texi...
8838         * doc/fdl.texi: ...and replace this with a symlink to the newer
8839         fdl-1.3.texi.
8840
8841 2008-11-10  Bruno Haible  <bruno@clisp.org>
8842
8843         * tests/test-select-fd.c (main): Accept the result file name as fourth
8844         argument.
8845         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
8846         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
8847
8848 2008-11-10  Bruno Haible  <bruno@clisp.org>
8849
8850         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
8851         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
8852         as autoconf-substituted macros.
8853         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
8854         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
8855         gl_NETDB_H_DEFAULTS. Set these variables.
8856         * modules/netdb (Makefile.am): Substitute these variables.
8857
8858 2008-11-10  Eric Blake  <ebb9@byu.net>
8859
8860         standards.texi: include correct file for FDL 1.3
8861         * doc/standards.texi (GNU Free Documentation License): Change
8862         include file to pull in FDL 1.3, not 1.2.
8863
8864         fdl.texi: revert accidental change to license
8865         * doc/fdl.texi: This is FDL 1.2, not 1.3.
8866
8867 2008-11-10  Bruno Haible  <bruno@clisp.org>
8868
8869         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
8870         cross-compiling guesses also when the native compile gives no result.
8871
8872 2008-11-10  Bruno Haible  <bruno@clisp.org>
8873
8874         * lib/spawni.c (__spawni): Force variable into the stack.
8875
8876 2008-11-10  Bruno Haible  <bruno@clisp.org>
8877
8878         Add support for Haiku.
8879         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
8880         glibc and BeOS, but also on Haiku.
8881         * lib/fpurge.c (fpurge): Likewise.
8882         * lib/freadable.c (freadable): Likewise.
8883         * lib/freadahead.c (freadahead): Likewise.
8884         * lib/freading.c (freading): Likewise.
8885         * lib/freadptr.c (freadptr): Likewise.
8886         * lib/freadseek.c (freadptrinc): Likewise.
8887         * lib/fseeko.c (rpl_fseeko): Likewise.
8888         * lib/fseterr.c (fseterr): Likewise.
8889         * lib/fwritable.c (fwritable): Likewise.
8890         * lib/fwriting.c (fwriting): Likewise.
8891         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
8892
8893 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8894
8895         * lib/config.charset: Treat Haiku like BeOS.
8896
8897 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8898
8899         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
8900         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
8901
8902 2008-11-08  Bruno Haible  <bruno@clisp.org>
8903
8904         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
8905         AC_CACHE_CHECK.
8906
8907 2008-11-08  Bruno Haible  <bruno@clisp.org>
8908
8909         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
8910
8911 2008-11-08  Bruno Haible  <bruno@clisp.org>
8912
8913         * tests/test-select-fd.c: New file.
8914         * tests/test-select-in.sh: New file.
8915         * tests/test-select-out.sh: New file.
8916         * tests/test-select-stdin.c: New file.
8917         * modules/select-tests (Files): Add the new files.
8918         (Depends-on): Add gettimeofday.
8919         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
8920         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
8921         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
8922
8923 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
8924             Bruno Haible  <bruno@clisp.org>
8925
8926         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
8927
8928 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
8929
8930         * build-aux/pmccabe2html: Added support for C++ source files.
8931
8932 2008-11-05  Ben Pfaff  <blp@gnu.org>
8933
8934         Fix lib/close.c build on Windows.
8935         * modules/close (Files): Add lib/w32sock.h.
8936
8937 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
8938
8939         Accept Bison's NEWS format.
8940         * build-aux/announce-gen (print_news_deltas): Tweak
8941         $re_prefix.
8942
8943 2008-11-04  Bruno Haible  <bruno@clisp.org>
8944
8945         * modules/random_r (Maintainer): Add glibc.
8946
8947 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8948
8949         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
8950         by karl@freefriends.org (Karl Berry).
8951         * doc/alloca.texi: Likewise.
8952         * doc/c-ctype.texi: Likewise.
8953         * doc/c-strcase.texi: Likewise.
8954         * doc/c-strcaseeq.texi: Likewise.
8955         * doc/c-strcasestr.texi: Likewise.
8956         * doc/c-strstr.texi: Likewise.
8957         * doc/c-strtod.texi: Likewise.
8958         * doc/c-strtold.texi: Likewise.
8959         * doc/ctime.texi: Likewise.
8960         * doc/error.texi: Likewise.
8961         * doc/fdl.texi: Likewise.
8962         * doc/gcd.texi: Likewise.
8963         * doc/getdate.texi: Likewise.
8964         * doc/gnulib-intro.texi: Likewise.
8965         * doc/gnulib-tool.texi: Likewise.
8966         * doc/gnulib.texi: Likewise.
8967         * doc/inet_ntoa.texi: Likewise.
8968         * doc/maintain.texi: Likewise.
8969         * doc/make-stds.texi: Likewise.
8970         * doc/quote.texi: Likewise.
8971         * doc/regexprops-generic.texi: Likewise.
8972         * doc/standards.texi: Likewise.
8973         * doc/verify.texi: Likewise.
8974         * doc/visibility.texi: Likewise.
8975         * doc/gnulib.texi (GNU Free Documentation License): Include
8976         fdl-1.3.texi instead of fdl.texi.
8977
8978 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8979
8980         * doc/fdl-1.3.texi: New file, from
8981         <http://www.gnu.org/licenses/fdl-1.3.texi>.
8982         * modules/fdl-1.3: Add.
8983         * MODULES.html.sh: Add fdl-1.3.
8984
8985 2008-11-03  Bruno Haible  <bruno@clisp.org>
8986
8987         Make determination of absolute name of header file work with AIX xlc.
8988         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
8989         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
8990         preprocessing.
8991         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
8992         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8993
8994 2008-11-03  Simon Josefsson  <simon@josefsson.org>
8995
8996         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
8997         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
8998         <ludo@gnu.org>.
8999
9000 2008-11-02  Bruno Haible  <bruno@clisp.org>
9001
9002         Mark 'strpbrk' obsolete.
9003         * modules/strpbrk (Status, Notice): New sections.
9004         * modules/strtok_r (Depends-on): Add strpbrk.
9005
9006 2008-11-02  Bruno Haible  <bruno@clisp.org>
9007
9008         Mark 'strdup' obsolete.
9009         * modules/strdup (Status, Notice): New sections.
9010         * modules/findprog (Depends-on): Add strdup.
9011         * modules/getaddrinfo (Depends-on): Likewise.
9012         * modules/localename (Depends-on): Likewise.
9013         * modules/relocatable-lib (Depends-on): Likewise.
9014         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
9015         * modules/relocatable-prog (Depends-on): Likewise.
9016         * modules/trim (Depends-on): Likewise.
9017         * modules/unictype/gen-ctype (Depends-on): Likewise.
9018         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
9019
9020 2008-11-02  Bruno Haible  <bruno@clisp.org>
9021
9022         Mark 'strcspn' obsolete.
9023         * modules/strcspn (Status, Notice): New sections.
9024
9025 2008-11-02  Bruno Haible  <bruno@clisp.org>
9026
9027         Mark 'rmdir' obsolete.
9028         * modules/rmdir (Status, Notice): New sections.
9029         * modules/clean-temp (Depends-on): Add rmdir.
9030         * modules/openat (Depends-on): Likewise.
9031
9032 2008-11-02  Bruno Haible  <bruno@clisp.org>
9033
9034         Mark 'raise' obsolete.
9035         * modules/raise (Status, Notice): New sections.
9036         (Include): Specify <signal.h>.
9037         * modules/stdio (Depends-on): Add raise.
9038         * modules/write (Depends-on): Likewise.
9039
9040 2008-11-02  Bruno Haible  <bruno@clisp.org>
9041
9042         Mark 'memset' obsolete.
9043         * modules/memset (Status, Notice): New sections.
9044
9045 2008-11-02  Bruno Haible  <bruno@clisp.org>
9046
9047         Mark 'memmove' obsolete.
9048         * modules/memmove (Status, Notice): New sections.
9049         * modules/argp (Depends-on): Add memmove.
9050         * modules/argz (Depends-on): Likewise.
9051         * modules/canonicalize (Depends-on): Likewise.
9052         * modules/canonicalize-lgpl (Depends-on): Likewise.
9053         * modules/fts (Depends-on): Likewise.
9054         * modules/getcwd (Depends-on): Likewise.
9055         * modules/human (Depends-on): Likewise.
9056         * modules/regex (Depends-on): Likewise.
9057         * modules/striconveh (Depends-on): Likewise.
9058         * modules/trim (Depends-on): Likewise.
9059         * modules/unistr/u8-move (Depends-on): Likewise.
9060         * modules/unistr/u16-move (Depends-on): Likewise.
9061         * modules/unistr/u32-move (Depends-on): Likewise.
9062
9063 2008-11-02  Bruno Haible  <bruno@clisp.org>
9064
9065         Mark 'memcpy' obsolete.
9066         * modules/memcpy (Status, Notice): New sections.
9067
9068 2008-11-02  Bruno Haible  <bruno@clisp.org>
9069
9070         Mark 'memcmp' obsolete.
9071         * modules/memcmp (Status, Notice): New sections.
9072         * modules/argmatch (Depends-on): Add memchr.
9073         * modules/backupfile (Depends-on): Likewise.
9074         * modules/c-strcasestr (Depends-on): Likewise.
9075         * modules/crypto/des (Depends-on): Likewise.
9076         * modules/csharpcomp (Depends-on): Likewise.
9077         * modules/fnmatch (Depends-on): Likewise.
9078         * modules/git-merge-changelog (Depends-on): Likewise.
9079         * modules/isnand (Depends-on): Likewise.
9080         * modules/isnand-nolibm (Depends-on): Likewise.
9081         * modules/isnanf (Depends-on): Likewise.
9082         * modules/isnanf-nolibm (Depends-on): Likewise.
9083         * modules/isnanl (Depends-on): Likewise.
9084         * modules/isnanl-nolibm (Depends-on): Likewise.
9085         * modules/mbchar (Depends-on): Likewise.
9086         * modules/memcoll (Depends-on): Likewise.
9087         * modules/quotearg (Depends-on): Likewise.
9088         * modules/regex (Depends-on): Likewise.
9089         * modules/relocatable-prog (Depends-on): Likewise.
9090         * modules/same (Depends-on): Likewise.
9091         * modules/signbit (Depends-on): Likewise.
9092         * modules/strcasestr-simple (Depends-on): Likewise.
9093         * modules/unictype/gen-ctype (Depends-on): Likewise.
9094         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
9095         * modules/uniname/uniname (Depends-on): Likewise.
9096         * modules/unistr/u8-cmp (Depends-on): Likewise.
9097
9098 2008-11-02  Bruno Haible  <bruno@clisp.org>
9099
9100         Mark 'memchr' obsolete.
9101         * modules/memchr (Status, Notice): New sections.
9102         * modules/argp (Depends-on): Add memchr.
9103         * modules/base64 (Depends-on): Likewise.
9104         * modules/c-strcasestr (Depends-on): Likewise.
9105         * modules/chdir-long (Depends-on): Likewise.
9106         * modules/fnmatch (Depends-on): Likewise.
9107         * modules/getsubopt (Depends-on): Likewise.
9108         * modules/git-merge-changelog (Depends-on): Likewise.
9109         * modules/glob (Depends-on): Likewise.
9110         * modules/strcasestr-simple (Depends-on): Likewise.
9111         * modules/strnlen (Depends-on): Likewise.
9112
9113 2008-11-02  Bruno Haible  <bruno@clisp.org>
9114
9115         Mark 'atexit' obsolete.
9116         * modules/atexit (Status, Notice): New sections.
9117         * modules/chdir-long (Depends-on): Add atexit.
9118         * modules/wait-process (Depends-on): Likewise.
9119
9120 2008-11-02  Bruno Haible  <bruno@clisp.org>
9121
9122         * gnulib-tool: New option --with-obsolete.
9123         (func_usage): Document it.
9124         (func_modules_transitive_closure): Drop obsolete dependencies if
9125         incobsolete is not true.
9126         (func_import): Read and save the incobsolete variable to the cache.
9127
9128 2008-11-02  Bruno Haible  <bruno@clisp.org>
9129
9130         * modules/TEMPLATE-EXTENDED: New field 'Status'.
9131         * gnulib-tool: New option --extract-status.
9132         (func_usage): Document it.
9133         (sed_extract_prog): Recognize it.
9134         (func_get_status): New function.
9135
9136 2008-10-30  Simon Josefsson  <simon@josefsson.org>
9137
9138         * modules/sockets (License): Change from LGPL to LGPLv2+.
9139
9140 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9141
9142         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
9143
9144 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9145
9146         * MODULES.html.sh (Support for systems lacking POSIX:2001):
9147         Mention times and sys_times.
9148         * modules/sys_times, modules/sys_times-tests: New modules.
9149         * modules/times, modules/times-tests: Likewise
9150         * m4/sys_times_h.m4: New file.
9151         * lib/sys_times.in.h: Likewise
9152         * lib/times.c: Likewise.
9153         * tests/test-sys_times.c: Likewise.
9154         * tests/test-times.c: Likewise.
9155         * doc/posix-headers/sys_times.texi: Update.
9156         * doc/posix-functions/times.texi: Update.
9157
9158 2008-10-28  Jim Meyering  <meyering@redhat.com>
9159
9160         * modules/tempname (Depends-on): Add lstat.
9161
9162         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
9163
9164 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9165
9166         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
9167         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
9168         using idiom used elsewhere in gnulib.
9169
9170 2008-10-27  Jim Meyering  <meyering@redhat.com>
9171
9172         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
9173
9174 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9175
9176         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
9177         TESTS_ENVIRONMENT, for shell scripts that needs to call built
9178         programs.
9179         * tests/test-argp-2.sh: Use $EXEEXT when needed.
9180
9181 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9182
9183         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
9184
9185 2008-10-27  Bruno Haible  <bruno@clisp.org>
9186
9187         * tests/test-lstat.c: Include <stdio.h>.
9188
9189 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9190
9191         * modules/lstat-tests: New module.
9192         * tests/test-lstat.c: New file.
9193
9194 2008-10-26  Jim Meyering  <meyering@redhat.com>
9195
9196         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
9197
9198 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9199             Bruno Haible  <bruno@clisp.org>
9200
9201         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
9202         * modules/configmake (Include): Add a note that the include must come
9203         after all system headers.
9204         * lib/javaversion.c: Include configmake.h after all other includes.
9205
9206 2008-10-26  Bruno Haible  <bruno@clisp.org>
9207
9208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
9209         HAVE_STRUCT_RANDOM_DATA to 1.
9210         (gl_STDLIB_H): Simplify.
9211
9212 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9213
9214         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
9215         substitute HAVE_STRUCT_RANDOM_DATA.
9216         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
9217         random_data.
9218         * modules/stdlib (Makefile.am): Substitute
9219         HAVE_STRUCT_RANDOM_DATA.
9220
9221 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9222
9223         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
9224         * doc/gnulib-intro.texi (Copyright): Likewise.
9225
9226 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9227
9228         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
9229         findings.
9230
9231 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
9232             Bruno Haible  <bruno@clisp.org>
9233
9234         * lib/unistd.in.h: Include <winsock2.h>.
9235         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
9236         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
9237         Provide dummy declarations.
9238         (gethostname): Override.
9239         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
9240         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
9241         gl_PREREQ_SYS_H_WINSOCK2.
9242         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
9243         * doc/posix-functions/gethostname.texi: More details.
9244
9245 2008-10-25  Bruno Haible  <bruno@clisp.org>
9246
9247         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
9248         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
9249         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
9250
9251         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
9252         here ...
9253         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
9254         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
9255         gl_UNISTD_H_DEFAULTS.
9256
9257 2008-10-25  Eric Blake  <ebb9@byu.net>
9258
9259         signbit: avoid spurious compiler failure
9260         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
9261         declarations inside function.
9262
9263 2008-10-24  Simon Josefsson  <simon@josefsson.org>
9264             Bruno Haible  <bruno@clisp.org>
9265
9266         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
9267         * modules/random_r (Depends-on): Add stdint.
9268
9269 2008-10-24  Bruno Haible  <bruno@clisp.org>
9270
9271         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
9272         Eggert.
9273         * modules/strerror (License): Likewise.
9274
9275 2008-10-24  Jim Meyering  <meyering@redhat.com>
9276
9277         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
9278         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
9279
9280 2008-10-24  Eric Blake  <ebb9@byu.net>
9281
9282         getgroups: fix compilation when getgroups is available
9283         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
9284         but with <config.h> override of getgroups disabled.
9285
9286 2008-10-24  Simon Josefsson  <simon@josefsson.org>
9287
9288         * doc/gnulib.texi (Header files): Add note about C++ problems.
9289         Explained by Bruno Haible <bruno@clisp.org>.
9290
9291 2008-10-23  Bruno Haible  <bruno@clisp.org>
9292
9293         Define a dummy SA_NODEFER macro on Interix.
9294         * lib/signal.in.h (SA_NODEFER): Define fallback.
9295         Reported by Aleksey Cheusov <cheusov@tut.by> via
9296         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
9297
9298 2008-10-23  Bruno Haible  <bruno@clisp.org>
9299
9300         * modules/freadahead (License): Change to LGPLv2+.
9301         Suggested by Simon Josefsson.
9302
9303 2008-10-23  Jim Meyering  <meyering@redhat.com>
9304
9305         random_r: new module
9306         * modules/random_r: New file.
9307         * m4/random_r.m4: New file.
9308         * lib/random_r.c: New file, from glibc.
9309         * modules/random_r-tests: New file.
9310         * tests/test-random_r.c: New file.
9311         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
9312          Declare.
9313         (RAND_MAX): Define.
9314         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
9315         * modules/stdlib: Substitute them, too.
9316         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
9317         * doc/glibc-functions/initstate_r.texi: Mention the new module.
9318         * doc/glibc-functions/random_r.texi: Likewise.
9319         * doc/glibc-functions/setstate_r.texi: Likewise.
9320         * doc/glibc-functions/srandom_r.texi: Likewise.
9321         * config/srclist.txt: Mention it.
9322
9323 2008-10-23  David Lutterkort  <lutter@redhat.com>
9324
9325         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
9326         link requirement
9327
9328 2008-10-23  Jim Meyering  <meyering@redhat.com>
9329
9330         selinux-h: mark parameters of stub functions as intentionally unused
9331         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
9332         * lib/se-context.in.h: Likewise.
9333
9334 2008-10-22  Simon Josefsson  <simon@josefsson.org>
9335
9336         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
9337
9338 2008-10-22  Simon Josefsson  <simon@josefsson.org>
9339
9340         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
9341
9342 2008-10-22  Eric Blake  <ebb9@byu.net>
9343
9344         glthread/thread: avoid compiler warning
9345         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
9346         Add unreachable abort to silence compiler.
9347
9348 2008-10-22  Eric Blake  <ebb9@byu.net>
9349
9350         netdb: also supply struct addrinfo for cygwin 1.5.x
9351         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
9352         older cygwin.
9353         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
9354         cygwin.
9355         * doc/posix-headers/netdb.texi (netdb.h): Document this.
9356
9357 2008-10-22  Bruno Haible  <bruno@clisp.org>
9358
9359         * users.txt: Update entry about pspp.
9360
9361 2008-10-21  Bruno Haible  <bruno@clisp.org>
9362
9363         Simplification.
9364         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
9365         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
9366
9367         Simplification.
9368         * lib/ioctl.c (ioctl): Don't undefine.
9369         * lib/socket.c (socket): Don't undefine.
9370
9371         Remove unused module indicator macros.
9372         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
9373         GNULIB_$1 as a C macro.
9374
9375         * doc/posix-functions/close.texi: Undo last change.
9376         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
9377         Windows platforms.
9378
9379 2008-10-21  Bruno Haible  <bruno@clisp.org>
9380
9381         Add gethostname() declaration to <unistd.h>.
9382         * lib/unistd.in.h (gethostname): New declaration.
9383         * lib/gethostname.c: Include <unistd.h>.
9384         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
9385         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
9386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
9387         and HAVE_GETHOSTNAME.
9388         * modules/gethostname (Depends-on): Add unistd.
9389         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9390         (Include): Specify <unistd.h>.
9391         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
9392         HAVE_GETHOSTNAME.
9393         * tests/test-gethostname.c: Include <unistd.h> first.
9394
9395 2008-10-21  Bruno Haible  <bruno@clisp.org>
9396
9397         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
9398         * modules/select-tests (Depends-on): Likewise.
9399         Reported by Simon Josefsson.
9400
9401 2008-10-21  Simon Josefsson  <simon@josefsson.org>
9402
9403         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
9404         * lib/accept.c: New file, based on winsock.c.
9405         * lib/bind.c: New file, based on winsock.c.
9406         * lib/connect.c: New file, based on winsock.c.
9407         * lib/getpeername.c: New file, based on winsock.c.
9408         * lib/getsockname.c: New file, based on winsock.c.
9409         * lib/getsockopt.c: New file, based on winsock.c.
9410         * lib/ioctl.c: New file, based on winsock.c.
9411         * lib/listen.c: New file, based on winsock.c.
9412         * lib/recv.c: New file, based on winsock.c.
9413         * lib/recvfrom.c: New file, based on winsock.c.
9414         * lib/send.c: New file, based on winsock.c.
9415         * lib/sendto.c: New file, based on winsock.c.
9416         * lib/setsockopt.c: New file, based on winsock.c.
9417         * lib/shutdown.c: New file, based on winsock.c.
9418         * lib/socket.c: New file, based on winsock.c.
9419         * lib/w32sock.h: New file, based on winsock.c.
9420         * lib/winsock.c: Remove file.
9421         * modules/accept: Likewise.
9422         * modules/bind: Likewise.
9423         * modules/connect: Likewise.
9424         * modules/getpeername: Likewise.
9425         * modules/getsockname: Likewise.
9426         * modules/getsockopt: Likewise.
9427         * modules/ioctl: Likewise.
9428         * modules/listen: Likewise.
9429         * modules/recv: Likewise.
9430         * modules/recvfrom: Likewise.
9431         * modules/send: Likewise.
9432         * modules/sendto: Likewise.
9433         * modules/setsockopt: Likewise.
9434         * modules/shutdown: Likewise.
9435         * modules/socket: Use socket.c instead of winsock.c.
9436         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
9437         * doc/posix-functions/accept.texi: Doc fix.
9438         * doc/posix-functions/bind.texi: Doc fix.
9439         * doc/posix-functions/close.texi: Doc fix.
9440         * doc/posix-functions/connect.texi: Doc fix.
9441         * doc/posix-functions/getpeername.texi: Doc fix.
9442         * doc/posix-functions/getsockname.texi: Doc fix.
9443         * doc/posix-functions/getsockopt.texi: Doc fix.
9444         * doc/posix-functions/ioctl.texi: Doc fix.
9445         * doc/posix-functions/listen.texi: Doc fix.
9446         * doc/posix-functions/recv.texi: Doc fix.
9447         * doc/posix-functions/recvfrom.texi: Doc fix.
9448         * doc/posix-functions/send.texi: Doc fix.
9449         * doc/posix-functions/sendto.texi: Doc fix.
9450         * doc/posix-functions/setsockopt.texi: Doc fix.
9451         * doc/posix-functions/shutdown.texi: Doc fix.
9452         * doc/posix-functions/socket.texi: Doc fix.
9453
9454 2008-10-20  Bruno Haible  <bruno@clisp.org>
9455
9456         Take into account the role of SIGABRT_COMPAT on Windows 2008.
9457         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
9458         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
9459         as an alias for SIGABRT.
9460         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
9461         (sigaction): Map it to SIGABRT.
9462         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
9463
9464 2008-10-20  Bruno Haible  <bruno@clisp.org>
9465
9466         * lib/fts.c: Don't include lstat.h.
9467         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
9468
9469         Move the lstat() declaration to <sys/stat.h>.
9470         * lib/lstat.h: Remove file.
9471         * lib/sys_stat.in.h: Add special invocation convention.
9472         (lstat): New declaration.
9473         * lib/lstat.c (orig_lstat): New function.
9474         (rpl_lstat): Use orig_lstat instead of lstat.
9475         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
9476         AC_C_INLINE. Set REPLACE_LSTAT.
9477         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
9478         and REPLACE_LSTAT.
9479         * modules/lstat (Files): Remove lib/lstat.h.
9480         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9481         (Include): Specify <sys/stat.h> instead of lstat.h.
9482         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
9483         REPLACE_LSTAT.
9484         * NEWS: Mention the change.
9485
9486 2008-10-20  Bruno Haible  <bruno@clisp.org>
9487
9488         * modules/posix_spawn-tests: New file.
9489         * tests/test-posix_spawn3.c: New file.
9490
9491 2008-10-20  Bruno Haible  <bruno@clisp.org>
9492
9493         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
9494         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9495         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
9496         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9497         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
9498
9499 2008-10-20  Bruno Haible  <bruno@clisp.org>
9500
9501         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
9502         of posix_spawn on AIX 5.3.
9503
9504 2008-10-20  Bruno Haible  <bruno@clisp.org>
9505
9506         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
9507
9508 2008-10-20  Bruno Haible  <bruno@clisp.org>
9509
9510         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
9511         of AC_LANG_PROGRAM.
9512
9513 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9514
9515         * lib/netdb.in.h: Don't define GNU specific constants until they
9516         are supported or needed.  Reported by Bruno Haible
9517         <bruno@clisp.org>.
9518
9519 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9520
9521         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
9522
9523 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9524
9525         * lib/getaddrinfo.h: Remove file.
9526         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
9527         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
9528         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
9529         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
9530         * modules/netdb: Substitute GNULIB_GETADDRINFO.
9531         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
9532         * tests/test-getaddrinfo.c: Likewise.
9533         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
9534         * NEWS: Mention change.
9535
9536 2008-10-19  Bruno Haible  <bruno@clisp.org>
9537
9538         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
9539
9540 2008-10-19  Bruno Haible  <bruno@clisp.org>
9541
9542         * lib/wait-process.c: Include simply <sys/wait.h>.
9543         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
9544         WIFSTOPPED): Remove fallback definitions.
9545         * modules/wait-process (Depends-on): Add sys_wait.
9546
9547         New module 'sys_wait'.
9548         * modules/sys_wait: New file.
9549         * lib/sys_wait.in.h: New file, partially copied from
9550         lib/wait-process.c.
9551         * m4/sys_wait_h.m4: New file.
9552         * doc/posix-headers/sys_wait.texi: Mention the new module.
9553
9554 2008-10-19  Bruno Haible  <bruno@clisp.org>
9555
9556         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
9557
9558 2008-10-19  Bruno Haible  <bruno@clisp.org>
9559
9560         Assume that waitpid() fills an 'int' status, not a 'union wait'.
9561         * lib/wait-process.c (WAIT_T): Remove type.
9562         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
9563         (wait_subprocess): Update.
9564
9565 2008-10-19  Bruno Haible  <bruno@clisp.org>
9566
9567         New module 'atoll'.
9568         * modules/atoll: New file.
9569         * lib/stdlib.in.h (atoll): New declaration.
9570         * lib/atoll.c: New file, from glibc with modifications.
9571         * m4/atoll.m4: New file.
9572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
9573         HAVE_ATOLL.
9574         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
9575         * doc/posix-functions/atoll.texi: Mention the new module.
9576
9577 2008-10-19  Bruno Haible  <bruno@clisp.org>
9578
9579         Add strtoull() declaration to <stdlib.h>.
9580         * lib/stdlib.in.h (strtoull): New declaration.
9581         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9582         Set HAVE_STRTOULL.
9583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
9584         HAVE_STRTOULL.
9585         * modules/strtoull (Depends-on): Add stdlib.
9586         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9587         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
9588         HAVE_STRTOULL.
9589
9590 2008-10-19  Bruno Haible  <bruno@clisp.org>
9591
9592         Add strtoll() declaration to <stdlib.h>.
9593         * lib/stdlib.in.h (strtoll): New declaration.
9594         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9595         Set HAVE_STRTOLL.
9596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
9597         HAVE_STRTOLL.
9598         * modules/strtoll (Depends-on): Add stdlib.
9599         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9600         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
9601
9602 2008-10-19  Bruno Haible  <bruno@clisp.org>
9603
9604         * modules/bcopy (Depends-on): Add strings.
9605         (Include): Specify <strings.h>.
9606
9607 2008-10-19  Bruno Haible  <bruno@clisp.org>
9608
9609         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
9610
9611 2008-10-19  Bruno Haible  <bruno@clisp.org>
9612
9613         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
9614         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
9615         mingw.
9616
9617 2008-10-19  Bruno Haible  <bruno@clisp.org>
9618
9619         * lib/atanl.c: Don't include isnanl.h.
9620         * lib/cosl.c: Likewise.
9621         * lib/ldexpl.c: Likewise.
9622         * lib/logl.c: Likewise.
9623         * lib/sinl.c: Likewise.
9624         * lib/sqrtl.c: Likewise.
9625         * lib/tanl.c: Likewise.
9626
9627         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
9628         * lib/isnanf.h: Remove file.
9629         * lib/isnand.h: Remove file.
9630         * lib/isnanl.h: Remove file.
9631         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
9632         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
9633         macros.
9634         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
9635         HAVE_ISNANF, don't define it as a C macro.
9636         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
9637         HAVE_ISNAND, don't define it as a C macro.
9638         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
9639         HAVE_ISNANL, don't define it as a C macro.
9640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
9641         HAVE_ISNAN[FDL].
9642         * modules/isnanf (Files): Remove lib/isnanf.h.
9643         (Depends-on): Add math.
9644         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9645         (Include): Specify <math.h> instead of isnanf.h.
9646         * modules/isnand (Files): Remove lib/isnand.h.
9647         (Depends-on): Add math.
9648         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9649         (Include): Specify <math.h> instead of isnand.h.
9650         * modules/isnanl (Files): Remove lib/isnanl.h.
9651         (Depends-on): Add math.
9652         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9653         (Include): Specify <math.h> instead of isnanl.h.
9654         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
9655         HAVE_ISNAN[FDL].
9656         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
9657         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
9658         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
9659         * NEWS: Mention the change.
9660
9661 2008-10-18  Bruno Haible  <bruno@clisp.org>
9662
9663         Add getusershell(), setusershell(), endusershell() declarations to
9664         <unistd.h>.
9665         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
9666         declarations.
9667         * lib/getusershell.c: Include unistd.h.
9668         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
9669         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9670         HAVE_GETUSERSHELL.
9671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
9672         and HAVE_GETUSERSHELL.
9673         * modules/getusershell (Depends-on): Add unistd, extensions.
9674         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9675         (Include): Specify <unistd.h>.
9676         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
9677         HAVE_GETUSERSHELL.
9678
9679 2008-10-18  Bruno Haible  <bruno@clisp.org>
9680
9681         Add a getloadavg() declaration to <stdlib.h>.
9682         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
9683         getloadavg declaration.
9684         (getloadavg): New declaration.
9685         * lib/getloadavg.c: Include <stdlib.h> first.
9686         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
9687         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
9688         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
9689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
9690         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9691         * modules/getloadavg (Depends-on): Add stdlib, extensions.
9692         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9693         (Include): Specify <stdlib.h>.
9694         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
9695         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9696
9697 2008-10-18  Bruno Haible  <bruno@clisp.org>
9698
9699         * lib/dirchownmod.c: Don't include lchmod.h.
9700
9701         Move the lchmod() declaration to <sys/stat.h>.
9702         * lib/lchmod.h: Remove file.
9703         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
9704         (lchmod): New declaration, moved here from lib/lchown.h.
9705         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
9706         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
9707         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
9708         and HAVE_LCHMOD.
9709         * modules/lchmod (Files): Remove lib/lchmod.h.
9710         (Depends-on): Add sys_stat, extensions.
9711         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9712         (Include): Specify <sys/stat.h> instead of lchmod.h.
9713         * modules/sys_stat (Depends-on): Add link-warning.
9714         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
9715         definition of GL_LINK_WARNING.
9716         * NEWS: Mention the change.
9717
9718 2008-10-18  Bruno Haible  <bruno@clisp.org>
9719
9720         * lib/fchdir.c: Don't include dirfd.h.
9721         * lib/fts.c: Likewise.
9722         * lib/getcwd.c: Likewise.
9723         * lib/glob.c: Likewise.
9724
9725         Move the dirfd() declaration to <dirent.h>.
9726         * lib/dirfd.h: Remove file.
9727         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
9728         (dirfd): New declaration.
9729         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
9730         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
9731         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
9732         HAVE_DECL_DIRFD.
9733         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
9734         HAVE_DECL_DIRFD.
9735         * modules/dirfd (Files): Remove lib/dirfd.h.
9736         (Depends-on): Add dirent, extensions.
9737         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
9738         (Include): Specify <dirent.h> instead of dirfd.h.
9739         * modules/dirent (Depends-on): Add link-warning.
9740         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
9741         definition of GL_LINK_WARNING.
9742         * NEWS: Mention the change.
9743
9744 2008-10-18  Bruno Haible  <bruno@clisp.org>
9745
9746         Move the euidaccess() declaration to <unistd.h>.
9747         * lib/euidaccess.h: Remove file.
9748         * lib/unistd.in.h (euidaccess): New declaration.
9749         * lib/euidaccess.c: Don't include euidaccess.h.
9750         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
9751         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
9752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
9753         and HAVE_EUIDACCESS.
9754         * modules/euidaccess (Files): Remove lib/euidaccess.h.
9755         (Depends-on): Add unistd.
9756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9757         (Include): Specify <unistd.h> instead of euidaccess.h.
9758         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
9759         HAVE_EUIDACCESS.
9760         * NEWS: Mention the change.
9761
9762 2008-10-18  Bruno Haible  <bruno@clisp.org>
9763
9764         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
9765
9766         Move the getdomainname() declaration to <unistd.h>.
9767         * lib/getdomainname.h: Remove file.
9768         * lib/unistd.in.h (getdomainname): New declaration.
9769         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
9770         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9771         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9772         HAVE_GETDOMAINNAME.
9773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9774         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
9775         * modules/getdomainname (Files): Remove lib/getdomainname.h.
9776         (Depends-on): Add unistd, extensions.
9777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9778         (Includes): Specify <unistd.h> instead of getdomainname.h.
9779         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
9780         HAVE_GETDOMAINNAME.
9781         * NEWS: Mention the change.
9782
9783 2008-10-18  Bruno Haible  <bruno@clisp.org>
9784
9785         * modules/dirent: New file.
9786         * m4/dirent_h.m4: New file.
9787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
9788         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
9789         * modules/fchdir (Files): Remove lib/dirent.in.h.
9790         (Depends-on): Add dirent.
9791         (Makefile.am): Move rules to modules/dirent.
9792         * doc/posix-headers/dirent.texi: Mention the new module.
9793
9794 2008-10-18  Bruno Haible  <bruno@clisp.org>
9795
9796         Avoid -Wunused-parameter warnings in public gnulib header files.
9797         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
9798         macro.
9799         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
9800
9801 2008-10-18  Bruno Haible  <bruno@clisp.org>
9802
9803         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
9804         * doc/glibc-functions/error.texi: Mention the module 'error'.
9805         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
9806         * doc/glibc-functions/getdomainname.texi: Mention the module
9807         'getdomainname'.
9808         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
9809         * doc/glibc-functions/getpagesize.texi: Mention the module
9810         'getpagesize'.
9811         * doc/glibc-functions/getusershell.texi: Mention the module
9812         'getusershell'.
9813         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
9814         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
9815         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
9816         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
9817         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
9818         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
9819         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
9820         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
9821         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
9822         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
9823         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
9824         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
9825         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
9826         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
9827
9828 2008-10-17  Bruno Haible  <bruno@clisp.org>
9829
9830         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
9831         HP-UX and IRIX, use -0.0L.
9832         * tests/test-ceill.c (minus_zero): Likewise.
9833         * tests/test-floorl.c (minus_zero): Likewise.
9834         * tests/test-frexpl.c (minus_zero): Likewise.
9835         * tests/test-isnan.c (minus_zerol): Likewise.
9836         * tests/test-isnanl.h (minus_zero): Likewise.
9837         * tests/test-ldexpl.c (minus_zero): Likewise.
9838         * tests/test-roundl.c (minus_zero): Likewise.
9839         * tests/test-signbit.c (minus_zerol): Likewise.
9840         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
9841         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
9842         * tests/test-truncl.c (minus_zero): Likewise.
9843         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
9844         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
9845         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
9846         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
9847
9848 2008-10-17  Bruno Haible  <bruno@clisp.org>
9849
9850         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
9851         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
9852         that it gets activated only for gcc >= 3.0.
9853         * lib/dirent.in.h: Likewise.
9854         * lib/errno.in.h: Likewise.
9855         * lib/fcntl.in.h: Likewise.
9856         * lib/float.in.h: Likewise.
9857         * lib/iconv.in.h: Likewise.
9858         * lib/inttypes.in.h: Likewise.
9859         * lib/locale.in.h: Likewise.
9860         * lib/math.in.h: Likewise.
9861         * lib/netdb.in.h: Likewise.
9862         * lib/netinet_in.in.h: Likewise.
9863         * lib/search.in.h: Likewise.
9864         * lib/signal.in.h: Likewise.
9865         * lib/spawn.in.h: Likewise.
9866         * lib/stdarg.in.h: Likewise.
9867         * lib/stdint.in.h: Likewise.
9868         * lib/stdio.in.h: Likewise.
9869         * lib/stdlib.in.h: Likewise.
9870         * lib/string.in.h: Likewise.
9871         * lib/strings.in.h: Likewise.
9872         * lib/sys_file.in.h: Likewise.
9873         * lib/sys_ioctl.in.h: Likewise.
9874         * lib/sys_select.in.h: Likewise.
9875         * lib/sys_socket.in.h: Likewise.
9876         * lib/sys_stat.in.h: Likewise.
9877         * lib/sys_time.in.h: Likewise.
9878         * lib/sysexits.in.h: Likewise.
9879         * lib/time.in.h: Likewise.
9880         * lib/unistd.in.h: Likewise.
9881         * lib/wchar.in.h: Likewise.
9882         * lib/wctype.in.h: Likewise.
9883         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9884
9885 2008-10-17  Jim Meyering  <meyering@redhat.com>
9886
9887         ignore-value: don't depend on inline module
9888         * modules/ignore-value (Depends-on): Remove 'inline'.
9889         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
9890         Suggestion from Bruno Haible.
9891
9892 2008-10-17  Bruno Haible  <bruno@clisp.org>
9893
9894         New implementation of condition variables for Win32.
9895         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
9896         (gl_linked_waitqueue_t): New type.
9897         (gl_cond_t): Use it.
9898         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
9899         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9900         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
9901         (glthread_cond_init_func, glthread_cond_wait_func,
9902         glthread_cond_timedwait_func, glthread_cond_signal_func,
9903         glthread_cond_broadcast_func, glthread_cond_destroy_func):
9904         Reimplemented on the basis of gl_linked_waitqueue_t.
9905         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
9906         gl_waitqueue_t.
9907         (gl_rwlock_t): Update.
9908         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
9909
9910 2008-10-17  Simon Josefsson  <simon@josefsson.org>
9911
9912         * modules/recvfrom (Depends-on): Add dependency on getpeername.
9913         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9914
9915 2008-10-17  Jim Meyering  <meyering@redhat.com>
9916
9917         ignore-value: new module
9918         * modules/ignore-value: New file.
9919         * lib/ignore-value.h: New file.
9920         * MODULES.html.sh (Compiler warning management): New section,
9921         just for this module.  More to come.
9922
9923 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9924
9925         open-safer.c: avoid 'signed and unsigned in conditional...' warning
9926         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
9927         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
9928
9929 2008-10-16  Jim Meyering  <meyering@redhat.com>
9930
9931         openat-die.c: avoid 'no previous prototype' warning
9932         * lib/openat-die.c: Include "openat.h".
9933         Reported by Reuben Thomas <rrt@sc3d.org>.
9934
9935 2008-10-16  Simon Josefsson  <simon@josefsson.org>
9936
9937         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
9938         * lib/netdb.in.h: Fix typo.
9939         Reported by Bruno Haible  <bruno@clisp.org>
9940
9941         * lib/netdb.in.h: Include sys/socket.h for platforms without
9942         netdb.h, to get structures like hostent on MinGW.
9943         * modules/netdb (Depends-on): Add sys_socket.
9944
9945 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9946
9947         * modules/netdb, modules/netdb-tests: New file.
9948         * m4/netdb_h.m4: New file.
9949         * lib/netdb.in.h: Add, currently just an empty file pending
9950         definitions.
9951         * tests/test-netdb.c: New file.
9952         * doc/posix-headers/netdb.texi: Mention that we replace it if
9953         needed.
9954         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9955         netdb.
9956
9957 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9958
9959         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
9960         with code.
9961
9962 2008-10-13  Bruno Haible  <bruno@clisp.org>
9963
9964         * lib/glthread/cond.c (glthread_cond_wait_func,
9965         glthread_cond_timedwait_func): Add a comment.
9966
9967 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9968
9969         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
9970         * tests/test-select.c: Likewise,
9971
9972 2008-10-13  Bruno Haible  <bruno@clisp.org>
9973
9974         * lib/glthread/cond.c (glthread_cond_wait_func,
9975         glthread_cond_timedwait_func): Fix variable name.
9976         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9977
9978 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
9979
9980         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
9981         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
9982         struct sockaddr.sa_len.
9983         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
9984
9985 2008-10-13  Simon Josefsson  <simon@josefsson.org>
9986
9987         * build-aux/pmccabe2html: Add css and css_url parameters.
9988
9989 2008-10-12  Bruno Haible  <bruno@clisp.org>
9990
9991         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
9992         calling aclx_get.
9993         Reported by Rainer Tammer <tammer@tammer.net>.
9994
9995 2008-10-12  Bruno Haible  <bruno@clisp.org>
9996
9997         Use msvcrt aware primitives for creation/termination of Win32 threads.
9998         * lib/glthread/thread.c: Include <process.h>.
9999         (glthread_create_func): Use _beginthreadex instead of CreateThread.
10000         (wrapper_func): Update signature.
10001         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
10002
10003 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
10004             Bruno Haible  <bruno@clisp.org>
10005
10006         Provide a Win32 implementation of the 'cond' module.
10007         * lib/glthread/cond.h [USE_WIN32]: New implementation.
10008         * lib/glthread/cond.c (glthread_cond_init_func,
10009         glthread_cond_wait_func, glthread_cond_timedwait_func,
10010         glthread_cond_signal_func, glthread_cond_broadcast_func,
10011         glthread_cond_destroy_func) [USE_WIN32]: New functions.
10012         * modules/cond (Dependencies): Add gettimeofday.
10013
10014 2008-10-11  Bruno Haible  <bruno@clisp.org>
10015
10016         Make sleep work on older versions of mingw.
10017         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
10018         only whether it exists.
10019         * doc/posix-functions/sleep.texi: Mention the problem with older
10020         versions of mingw.
10021
10022 2008-10-11  Bruno Haible  <bruno@clisp.org>
10023
10024         New module 'shutdown'.
10025         * modules/shutdown: New file.
10026         * lib/sys_socket.in.h (shutdown): New declaration.
10027         * lib/winsock.c (shutdown): New function.
10028         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10029         GNULIB_SHUTDOWN.
10030         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
10031         * doc/posix-functions/shutdown.texi: Document the new module.
10032
10033 2008-10-11  Jim Meyering  <meyering@redhat.com>
10034
10035         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
10036
10037 2008-10-11  Bruno Haible  <bruno@clisp.org>
10038
10039         New module 'fclose'.
10040         * modules/fclose: New file.
10041         * lib/stdio.in.h (fclose): New declaration.
10042         * lib/fclose.c: New file.
10043         * m4/fclose.m4: New file.
10044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
10045         REPLACE_FCLOSE.
10046         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
10047         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
10048         REPLACE_FCLOSE.
10049         * modules/close (Depends-on): fclose.
10050         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
10051
10052 2008-10-11  Bruno Haible  <bruno@clisp.org>
10053
10054         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
10055         set errno and don't call _close.
10056
10057 2008-10-10  Bruno Haible  <bruno@clisp.org>
10058
10059         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
10060         ACL, not afterwards. Fixes test failure on Cygwin.
10061
10062 2008-10-09  Ben Pfaff  <blp@gnu.org>
10063
10064         * build-aux/announce-gen: Fix gnulib version related part of usage
10065         message.  Die with a useful error message if no tarballs are
10066         found.
10067
10068 2008-10-10  Jim Meyering  <meyering@redhat.com>
10069
10070         bootstrap: use git's --depth=N option only if it's supported
10071         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
10072         recognize the --depth option.  Reported by Pádraig Brady.
10073
10074 2008-10-09  Bruno Haible  <bruno@clisp.org>
10075
10076         New module 'ioctl'.
10077         * modules/ioctl: New file.
10078         * lib/sys_socket.in.h (ioctl): Remove declaration.
10079         * lib/winsock.c: Include <sys/ioctl.h>.
10080         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
10081         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
10082         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
10083         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
10084         * doc/posix-functions/ioctl.texi: Mention the new module.
10085
10086 2008-10-09  Bruno Haible  <bruno@clisp.org>
10087
10088         New module 'sys_ioctl'.
10089         * lib/sys_ioctl.in.h: New file.
10090         * m4/sys_ioctl_h.m4: New file.
10091         * modules/sys_ioctl: New file.
10092         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
10093
10094 2008-10-09  Bruno Haible  <bruno@clisp.org>
10095
10096         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
10097         * lib/winsock.c: Include <stdarg.h>.
10098         (rpl_ioctl): Change to second argument 'int' and then varargs.
10099
10100 2008-10-09  Bruno Haible  <bruno@clisp.org>
10101
10102         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
10103         when the sys_socket module is present and the system has <winsock2.h>.
10104
10105 2008-10-09  Bruno Haible  <bruno@clisp.org>
10106
10107         * doc/posix-functions/close.texi: Mention module 'close' instead of
10108         module 'sys_socket'.
10109
10110 2008-10-09  Bruno Haible  <bruno@clisp.org>
10111
10112         * doc/glibc-headers/sys_ioctl.texi: New file.
10113         * doc/gnulib.texi: Include it.
10114
10115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10116             Bruno Haible  <bruno@clisp.org>
10117
10118         Combine the two replacements of 'close'.
10119         * lib/sys_socket.in.h (close): Define to a reminder to include
10120         <unistd.h>.
10121         (_gl_close_fd_maybe_socket): New declaration.
10122         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
10123         * lib/winsock.c (close): Remove undefinition.
10124         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
10125         needed for the gnulib module 'close'.
10126         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
10127         define to an error symbol or to a warning, if suitable.
10128         * lib/close.c: Include <sys/socket.h>.
10129         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
10130         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
10131         UNISTD_H_HAVE_WINSOCK2_H.
10132         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
10133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10134         UNISTD_H_HAVE_WINSOCK2_H.
10135         * modules/sys_socket (Files): Add m4/unistd_h.m4.
10136         (configure.ac): Set a module indicator.
10137         (Makefile.am): Substitute GNULIB_CLOSE.
10138         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
10139         * modules/poll-tests (Depends-on): Add close.
10140         * modules/select-tests (Depends-on): Likewise.
10141
10142 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10143             Bruno Haible  <bruno@clisp.org>
10144
10145         New module 'close'.
10146         * modules/close: New file.
10147         * lib/unistd.in.h (close): Move declaration out of the
10148         FCHDIR_REPLACEMENT scope.
10149         (_gl_unregister_fd): New declaration.
10150         * lib/close.c: New file.
10151         * lib/fchdir.c (rpl_close): Remove function.
10152         * m4/close.m4: New file.
10153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
10154         close.
10155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
10156         REPLACE_CLOSE.
10157         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
10158         REPLACE_CLOSE.
10159         * modules/fchdir (Depends-on): Add close.
10160
10161 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10162             Bruno Haible  <bruno@clisp.org>
10163
10164         * lib/fcntl.in.h (open): Simplify conditionals.
10165         (_gl_register_fd): New declaration.
10166         * lib/fchdir.c (rpl_open): Remove function.
10167         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
10168         also.
10169         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
10170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
10171         open.
10172
10173 2008-10-09  Jim Meyering  <meyering@redhat.com>
10174
10175         GNUmakefile: use the more name-space-friendly "_version"
10176         * top/GNUmakefile (_dummy): Update.
10177         (_version): Rename from "version".
10178
10179 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10180             Bruno Haible  <bruno@clisp.org>
10181
10182         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
10183         rpl_close.
10184         (_gl_register_fd): New function, extracted from rpl_open.
10185         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
10186         (rpl_open, rpl_opendir): Use _gl_register_fd.
10187
10188 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10189
10190         Fix organization of 'open' replacement.
10191         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
10192         (gl_FUNC_OPEN): Use it.
10193         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
10194
10195 2008-10-08  Bruno Haible  <bruno@clisp.org>
10196
10197         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
10198
10199 2008-10-08  Simon Josefsson  <simon@josefsson.org>
10200
10201         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
10202         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
10203         listen).
10204
10205 2008-10-08  Eric Blake  <ebb9@byu.net>
10206
10207         GNUmakefile: add 'make version' target
10208         * top/GNUmakefile (_curr-ver): Split version update rules...
10209         (version): ...into a target.
10210
10211 2008-10-07  Bruno Haible  <bruno@clisp.org>
10212
10213         Use a more portable replacement expression for -0.0L.
10214         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
10215         instead of -0.0L. Fix m4 quotation.
10216
10217         * tests/test-signbit.c: Include <float.h>.
10218         (minus_zero): New variable.
10219         (test_signbitl): Use minus_zero instead of -zero.
10220         * modules/signbit-tests (Depends-on): Add float.
10221
10222         * tests/test-ceill.c: Include <float.h>.
10223         (zero): Remove variable.
10224         (minus_zero): New variable.
10225         (main): Use minus_zero instead of -zero.
10226         * modules/ceill-tests (Depends-on): Add float.
10227
10228         * tests/test-floorl.c: Include <float.h>.
10229         (zero): Remove variable.
10230         (minus_zero): New variable.
10231         (main): Use minus_zero instead of -zero.
10232         * modules/floorl-tests (Depends-on): Add float.
10233
10234         * tests/test-roundl.c: Include <float.h>.
10235         (zero): Remove variable.
10236         (minus_zero): New variable.
10237         (main): Use minus_zero instead of -zero.
10238         * modules/roundl-tests (Depends-on): Add float.
10239
10240         * tests/test-truncl.c: Include <float.h>.
10241         (zero): Remove variable.
10242         (minus_zero): New variable.
10243         (main): Use minus_zero instead of -zero.
10244         * modules/truncl-tests (Depends-on): Add float.
10245
10246         * tests/test-frexpl.c (zero): Remove variable.
10247         (minus_zero): New variable.
10248         (main): Use minus_zero instead of -zero.
10249         * modules/frexpl-tests (Depends-on): Add float.
10250
10251         * tests/test-isnan.c (zerol): Remove variable.
10252         (minus_zerol): New variable.
10253         (test_long_double): Use minus_zerol instead of -zerol.
10254         * modules/isnan-tests (Depends-on): Add float.
10255
10256         * tests/test-isnanl.h (zero): Remove variable.
10257         (minus_zero): New variable.
10258         (main): Use minus_zero instead of -zero.
10259         * modules/isnanl-nolibm-tests (Depends-on): Add float.
10260         * modules/isnanl-tests (Depends-on): Add float.
10261
10262         * tests/test-ldexpl.c (zero): Remove variable.
10263         (minus_zero): New variable.
10264         (main): Use minus_zero instead of -zero.
10265         * modules/ldexpl-tests (Depends-on): Add float.
10266
10267         * tests/test-snprintf-posix.h (zerol): Remove variable.
10268         (minus_zerol): New variable.
10269         (test_function): Use minus_zerol instead of -zerol.
10270         * modules/snprintf-posix-tests (Depends-on): Add float.
10271         * modules/vsnprintf-posix-tests (Depends-on): Add float.
10272
10273         * tests/test-sprintf-posix.h (zerol): Remove variable.
10274         (minus_zerol): New variable.
10275         (test_function): Use minus_zerol instead of -zerol.
10276         * modules/sprintf-posix-tests (Depends-on): Add float.
10277         * modules/vsprintf-posix-tests (Depends-on): Add float.
10278
10279         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
10280         (minus_zerol): New variable.
10281         (test_function): Use minus_zerol instead of -zerol.
10282         * modules/vasnprintf-posix-tests (Depends-on): Add float.
10283
10284         * tests/test-vasprintf-posix.c (zerol): Remove variable.
10285         (minus_zerol): New variable.
10286         (test_function): Use minus_zerol instead of -zerol.
10287         * modules/vasprintf-posix-tests (Depends-on): Add float.
10288
10289 2008-10-07  Simon Josefsson  <simon@josefsson.org>
10290
10291         * MODULES.html.sh (Support for building documentation): Mention
10292         pmccabe2html.  Sort entries.
10293
10294         Add pmccabe2html module, from gnupdf.
10295         * build-aux/pmccabe.css: New file.
10296         * build-aux/pmccabe2html: New file.
10297         * m4/pmccabe2html.m4: New file.
10298         * modules/pmccabe2html: New file.
10299
10300 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
10301
10302         flock: new module
10303         * MODULES.html.sh: Add to list of modules.
10304         * lib/flock.c: flock implementation for Windows and Unix systems
10305         which have fcntl.
10306         * doc/glibc-functions/flock.texi: Update documentation.
10307         * lib/sys_file.in.h: <sys/file.h> header file.
10308         * m4/flock.m4: M4 macros.
10309         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
10310         * modules/flock: flock module.
10311         * modules/flock-tests: flock tests module.
10312         * modules/sys_file: sys/file.h module.
10313         * tests/test-flock.c: test suite for flock.
10314
10315 2008-10-06  Jim Meyering  <meyering@redhat.com>
10316
10317         bootstrap: check for LT_INIT more portably still ;-)
10318         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
10319         Spotted by Bruno Haible.
10320
10321 2008-10-06  Eric Blake  <ebb9@byu.net>
10322
10323         test-signbit: avoid tripping Irix cc bug on -0.0L
10324         * tests/test-signbit.c (minus_zerol): Delete, and replace with
10325         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
10326         entire testsuite consistent and avoids an Irix 6.2 bug.
10327
10328 2008-10-05  Bruno Haible  <bruno@clisp.org>
10329             Jim Meyering  <jim@meyering.net>
10330
10331         Add an option for ignoring EPIPE during close_stdout.
10332         * lib/closeout.h: Include <stdbool.h>.
10333         (close_stdout_set_ignore_EPIPE): New declaration.
10334         * lib/closeout.c: Include <stdbool.h>.
10335         (ignore_EPIPE): New variable.
10336         (close_stdout_set_ignore_EPIPE): New function.
10337         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
10338         * lib/close-stream.c (close_stream): Mention the possible EPIPE
10339         failure.
10340         * modules/closeout (Depends-on): Add stdbool.
10341
10342 2008-10-05  Bruno Haible  <bruno@clisp.org>
10343
10344         * modules/accept: New file.
10345         * modules/bind: New file.
10346         * modules/connect: New file.
10347         * modules/getpeername: New file.
10348         * modules/getsockname: New file.
10349         * modules/getsockopt: New file.
10350         * modules/listen: New file.
10351         * modules/recv: New file.
10352         * modules/recvfrom: New file.
10353         * modules/send: New file.
10354         * modules/sendto: New file.
10355         * modules/setsockopt: New file.
10356         * modules/socket: New file.
10357         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
10358         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10359         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
10360         the particular module is requested. Add a link warning when the
10361         particular module is not requested.
10362         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
10363         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
10364         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
10365         the particular module is requested.
10366         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
10367         gl_SYS_SOCKET_H_DEFAULTS): New macros.
10368         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
10369         * modules/sys_socket (Depends-on): Add link-warning.
10370         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
10371         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
10372         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
10373         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
10374         GL_LINK_WARNING.
10375         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
10376         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
10377         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
10378         * doc/posix-functions/getpeername.texi: Mention the new module
10379         'getpeername'.
10380         * doc/posix-functions/getsockname.texi: Mention the new module
10381         'getsockname'.
10382         * doc/posix-functions/getsockopt.texi: Mention the new module
10383         'getsockopt'.
10384         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
10385         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
10386         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
10387         * doc/posix-functions/send.texi: Mention the new module 'send'.
10388         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
10389         * doc/posix-functions/setsockopt.texi: Mention the new module
10390         'setsockopt'.
10391         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
10392         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
10393         listen, connect, accept.
10394         * modules/select-tests (Depends-on): Likewise.
10395
10396 2008-10-05  Bruno Haible  <bruno@clisp.org>
10397
10398         * lib/winsock.c (strerror): Remove unused #undef.
10399         (rpl_close): Remove unused local variable.
10400
10401         * modules/sys_socket (Depends-on); Add errno.
10402
10403 2008-10-05  Bruno Haible  <bruno@clisp.org>
10404
10405         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
10406         (select): Add a link warning when the 'select' module is not used.
10407         * modules/sys_select (Depends-on): Add link-warning.
10408         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
10409         Suggested by Paolo Bonzini.
10410
10411 2008-10-05  Jim Meyering  <meyering@redhat.com>
10412
10413         bootstrap: check for LT_INIT more portably
10414         * build-aux/bootstrap: Avoid using grep -E, since it's not
10415         portable enough.  Suggestion from Bruno Haible.
10416
10417 2008-10-05  Bruno Haible  <bruno@clisp.org>
10418
10419         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
10420         as being fixed by gnulib.
10421
10422 2008-10-05  Bruno Haible  <bruno@clisp.org>
10423
10424         * modules/select-tests: New file, mostly copied from
10425         modules/sys_select-tests.
10426         * tests/test-select.c: New file, mostly copied from
10427         tests/test-sys_select.c.
10428         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
10429         * modules/sys_select-tests (Depends-on): Remove all dependencies.
10430         (Makefile.am): Remove test_sys_select_LDADD.
10431
10432         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
10433         to an undefined symbol, for an error message.
10434         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
10435         (gl_SYS_SELECT_H_DEFAULTS): New macro.
10436         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
10437         winsock-select.c here.
10438         * modules/sys_select (Files): Remove lib/winsock-select.c.
10439         (Depends-on): Remove alloca.
10440         (Makefile.am): Substitute GNULIB_SELECT.
10441         * modules/select: New file.
10442         * doc/posix-functions/select.texi: Update.
10443
10444 2008-10-05  Bruno Haible  <bruno@clisp.org>
10445
10446         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
10447         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
10448         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
10449         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
10450         getdtablesize.
10451         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10452         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10453
10454 2008-10-05  Bruno Haible  <bruno@clisp.org>
10455
10456         * modules/getdtablesize-tests: New file.
10457         * tests/test-getdtablesize.c: New file.
10458
10459         New module 'getdtablesize'.
10460         * lib/unistd.in.h (getdtablesize): New declaration.
10461         * lib/getdtablesize.c: New file.
10462         * m4/getdtablesize.m4: New file.
10463         * modules/getdtablesize: New file.
10464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10465         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
10466         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
10467         HAVE_GETDTABLESIZE.
10468         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
10469
10470 2008-10-05  Bruno Haible  <bruno@clisp.org>
10471
10472         * modules/sched (Makefile.am): Fix typo.
10473         Reported by Simon Josefsson.
10474
10475 2008-10-05  Jim Meyering  <meyering@redhat.com>
10476
10477         bootstrap: check for LT_INIT, too
10478         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
10479         are deprecated.  Suggestion from Ralf Wildenhues.
10480
10481 2008-10-05  Bruno Haible  <bruno@clisp.org>
10482
10483         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
10484         overriding them by ours.
10485         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
10486
10487 2008-10-05  Jim Meyering  <meyering@redhat.com>
10488
10489         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
10490         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
10491         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
10492
10493 2008-10-04  Bruno Haible  <bruno@clisp.org>
10494
10495         * modules/dup2 (License): Change to LGPLv2+.
10496         * modules/sleep (License): Likewise.
10497         * modules/perror (License): Likewise.
10498         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
10499         Blake.
10500         * modules/signal (License): Likewise.
10501         * modules/sigprocmask (License): Likewise.
10502         * modules/raise (License): Change to LGPLv2+, with approval by Jim
10503         Meyering.
10504
10505 2008-10-04  Bruno Haible  <bruno@clisp.org>
10506
10507         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
10508         Reported by Rainer Tammer <tammer@tammer.net>.
10509
10510 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
10511             Bruno Haible  <bruno@clisp.org>
10512
10513         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
10514         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
10515         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
10516
10517 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
10518
10519         filevercmp: new module
10520         * lib/filevercmp.h: New function filevercmp comparing version strings.
10521         * lib/filevercmp.c: Implementation of filevercmp function.
10522         * modules/filevercmp: Module metadata.
10523         * tests/test-filevercmp.c: Unit test for new module.
10524         * modules/filevercmp-tests: Unit test metadata.
10525         * MODULES.html.sh: Add filevercmp module.
10526
10527 2008-10-03  Bruno Haible  <bruno@clisp.org>
10528
10529         * lib/c-ctype.h: Add comment.
10530         Reported by Jim Meyering.
10531
10532 2008-10-02  Bruno Haible  <bruno@clisp.org>
10533
10534         * modules/posix_spawn-internal (Depends-on): Add 'open'.
10535
10536 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10537
10538         * build-aux/bootstrap: Allow renaming bootstrap, and change the
10539         name of bootstrap.conf accordingly.
10540
10541 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10542
10543         * build-aux/bootstrap: Install git-merge-changelog configuration
10544         items into .gitconfig if needed.
10545
10546 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10547
10548         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
10549         git repository, and initialize/update it accordingly.
10550
10551 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
10552
10553         * modules/fsync-tests: New file.
10554         * tests/test-fsync.c: New file.
10555
10556         New module 'fsync'.
10557         * lib/fsync.c: New file.
10558         * m4/fsync.m4: New file.
10559         * modules/fsync: New file.
10560         * lib/unistd.in.h (fsync): New declaration.
10561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
10562         GNULIB_FSYNC and HAVE_FSYNC.
10563         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
10564         * MODULES.html.sh (posix_functions): Add fsync.
10565         * doc/posix-functions/fsync.texi: Mention the new module.
10566
10567 2008-10-02  Jim Meyering  <meyering@redhat.com>
10568
10569         fts.c: sync with similar code from coreutils' remove.c
10570         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
10571         Guard also with "#if defined __linux__", since for now at least,
10572         this code is Linux-kernel-specific.
10573
10574 2008-10-02  Jim Meyering  <meyering@redhat.com>
10575
10576         fts: bug fixes
10577         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
10578         Include <sys/vfs.h>, not <sys/statfs.h>.
10579
10580         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
10581         Include <sys/vfs.h>, not <sys/statfs.h>.
10582
10583 2008-10-01  Bruno Haible  <bruno@clisp.org>
10584
10585         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
10586         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
10587         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
10588         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
10589         * doc/posix-functions/posix_spawnp.texi: Likewise.
10590         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
10591         whether posix_spawn actually works.
10592         * m4/pipe.m4 (gl_PIPE): Likewise.
10593         * modules/execute (Files): Add m4/posix_spawn.m4.
10594         * modules/pipe (Files): Add m4/posix_spawn.m4.
10595         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
10596
10597 2008-10-01  Jim Meyering  <meyering@redhat.com>
10598
10599         remove trailing spaces
10600         * NEWS: Likewise.
10601         * lib/poll.c (poll): Likewise.
10602         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
10603         * lib/winsock.c (rpl_close): Likewise.
10604         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
10605         * modules/yield: Likewise.
10606         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
10607         * tests/test-sys_select.c (connect_to_socket): Likewise.
10608
10609         fts.c: adjust a new interface to be more generally useful
10610         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
10611         (fts_build): Adjust caller.
10612
10613 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10614
10615         * modules/cond-tests: New file.
10616         * tests/test-cond.c: New file.
10617
10618 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10619             Bruno Haible  <bruno@clisp.org>
10620
10621         * modules/cond (Dependencies): Add errno, time.
10622         * lib/glthread/cond.h: Include <time.h>.
10623         (gl_cond_define, gl_cond_define_initialized): Use the same definition
10624         across platforms.
10625
10626 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10627             Bruno Haible  <bruno@clisp.org>
10628
10629         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
10630
10631 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10632             Bruno Haible  <bruno@clisp.org>
10633
10634         * modules/tls-tests (Depends-on): Add thread, yield.
10635         (configure.ac): Remove all checks.
10636         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
10637         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10638         gl_thread_self): Remove definitions. Include glthread/thread.h and
10639         glthread/yield.h instead.
10640         (test_tls): Pass an additional NULL argument to gl_thread_join.
10641
10642 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10643             Bruno Haible  <bruno@clisp.org>
10644
10645         * modules/lock-tests (Depends-on): Add thread, yield.
10646         (configure.ac): Remove all checks.
10647         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
10648         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10649         gl_thread_self): Remove definitions. Include glthread/thread.h and
10650         glthread/yield.h instead.
10651         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
10652         additional NULL argument to gl_thread_join.
10653
10654 2008-09-30  Bruno Haible  <bruno@clisp.org>
10655
10656         Fix the Win32 implementation of the 'thread' module.
10657         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
10658         pointer type.
10659         (gl_thread_self): Invoke gl_thread_self_func.
10660         (gl_thread_self_func): New declaration.
10661         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
10662         (do_init_self_key, init_self_key): New functions.
10663         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
10664         Remove some fields.
10665         (running_threads, running_lock): Remove variables.
10666         (get_current_thread_handle): New function.
10667         (gl_thread_self_func, wrapper_func, glthread_create_func,
10668         glthread_join_func, gl_thread_exit_func): Largely rewritten and
10669         simplified.
10670
10671 2008-09-30  Bruno Haible  <bruno@clisp.org>
10672
10673         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
10674         files.
10675
10676 2008-09-30  Jim Meyering  <meyering@redhat.com>
10677
10678         fts.m4: correct the test for statfs.f_type
10679         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
10680         when checking for statfs.f_type.
10681
10682 2008-09-15  Simon Josefsson  <simon@josefsson.org>
10683
10684         tests: avoid some compiler warnings
10685         * tests/test-memchr.c (main): Pass NULL indirectly.
10686         * tests/test-getdate.c (main): Remove unused variable 'ret'.
10687
10688 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
10689
10690         getdate.y: disallow countable dayshifts like "4 yesterday ago"
10691         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
10692         exactly specified dayshifts.
10693         (dayshift): New rule.
10694         (rel): Add dayshift.
10695         (relative_time_table) [tomorrow, yesterday, today, now]:
10696         Use tDAY_SHIFT in place of tDAY_UNIT.
10697         * tests/test-getdate.c: Add tests for now-disallowed countable
10698         dayshifts, e.g., "4 yesterday ago".
10699
10700 2008-09-29  Bruno Haible  <bruno@clisp.org>
10701
10702         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
10703         * tests/test-posix_spawn1.in.sh: Renamed from
10704         tests/test-posix_spawn.in.sh.
10705         * tests/test-posix_spawn2.c: New file.
10706         * tests/test-posix_spawn2.in.sh: New file.
10707         * modules/posix_spawnp-tests (Files): Update.
10708         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
10709
10710 2008-09-29  Bruno Haible  <bruno@clisp.org>
10711
10712         Propagate effects of putenv/setenv/unsetenv to child processes.
10713         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
10714         * lib/pipe.c (create_pipe): Likewise.
10715
10716 2008-09-29  Bruno Haible  <bruno@clisp.org>
10717
10718         Enable use of shell scripts as executables in mingw.
10719         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
10720         run the program as a shell script.
10721         * lib/pipe.c (create_pipe): Likewise.
10722         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
10723         resulting array.
10724
10725 2008-09-29  Eric Blake  <ebb9@byu.net>
10726
10727         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
10728
10729 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
10730
10731         * doc/posix-functions/accept.texi: Update mingw problems.
10732         * doc/posix-functions/bind.texi: Update mingw problems.
10733         * doc/posix-functions/close.texi: Update mingw problems.
10734         * doc/posix-functions/connect.texi: Update mingw problems.
10735         * doc/posix-functions/getpeername.texi: Update mingw problems.
10736         * doc/posix-functions/getsockname.texi: Update mingw problems.
10737         * doc/posix-functions/getsockopt.texi: Update mingw problems.
10738         * doc/posix-functions/ioctl.texi: Update mingw problems.
10739         * doc/posix-functions/listen.texi: Update mingw problems.
10740         * doc/posix-functions/recv.texi: Update mingw problems.
10741         * doc/posix-functions/recvfrom.texi: Update mingw problems.
10742         * doc/posix-functions/select.texi: Update mingw problems.
10743         * doc/posix-functions/send.texi: Update mingw problems.
10744         * doc/posix-functions/sendto.texi: Update mingw problems.
10745         * doc/posix-functions/setsockopt.texi: Update mingw problems.
10746         * doc/posix-functions/socket.texi: Update mingw problems.
10747
10748 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
10749             Bruno Haible  <bruno@clisp.org>
10750
10751         * lib/sys_select.in.h: Include sys/time.h.
10752         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
10753         * modules/sys_select: Depend on sys_time.
10754         * tests/test-sys_select.c: Test that sys/select.h defines struct
10755         timeval fully.
10756
10757 2008-09-29  Bruno Haible  <bruno@clisp.org>
10758
10759         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
10760         * lib/sys_select.in.h: Likewise.
10761
10762 2008-09-29  Bruno Haible  <bruno@clisp.org>
10763
10764         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
10765
10766 2008-09-29  Bruno Haible  <bruno@clisp.org>
10767
10768         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
10769         Set LIBSOCKET instead of augmenting LIBS.
10770         * modules/sockets (Link): New section.
10771         * modules/sockets-tests (test_sockets_LDADD): New variable.
10772         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
10773         * modules/poll-tests (test_poll_LDADD): New variable.
10774         * NEWS: Document the change.
10775
10776 2008-09-29  Bruno Haible  <bruno@clisp.org>
10777
10778         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
10779         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
10780         ARPA_INET_H directly.
10781         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10782
10783 2008-09-28  Bruno Haible  <bruno@clisp.org>
10784
10785         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
10786         from gl_HEADER_SYS_SOCKET.
10787         (gl_HEADER_SYS_SOCKET): Invoke it.
10788         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10789
10790 2008-09-28  Bruno Haible  <bruno@clisp.org>
10791
10792         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
10793         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
10794         Needed on OSF/1 4.0.
10795
10796 2008-09-28  Bruno Haible  <bruno@clisp.org>
10797
10798         Override open more carefully.
10799         * lib/open.c (orig_open): New function.
10800         (rpl_open): Use orig_open instead of open.
10801         * lib/fcntl.in.h: Add special invocation convention.
10802         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
10803         (gl_FUNC_OPEN): Invoke it.
10804
10805         Override freopen more carefully.
10806         * lib/freopen.c (orig_freopen): New function.
10807         (rpl_freopen): Use orig_freopen instead of freopen.
10808         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
10809         (gl_FUNC_FREOPEN): Invoke it.
10810
10811         Override fopen more carefully.
10812         * lib/fopen.c (orig_fopen): New function.
10813         (rpl_fopen): Use orig_fopen instead of fopen.
10814         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
10815         (gl_FUNC_FOPEN): Invoke it.
10816         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
10817
10818 2008-09-28  Bruno Haible  <bruno@clisp.org>
10819
10820         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
10821         SIGPIPE.
10822
10823 2008-09-28  Bruno Haible  <bruno@clisp.org>
10824
10825         * tests/test-sigaction.c (handler, main): Disable the check whether
10826         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
10827         glibc systems with LinuxThreads.
10828
10829 2008-09-28  Bruno Haible  <bruno@clisp.org>
10830
10831         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
10832
10833         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
10834         with AIX xlc.
10835         * lib/fcntl.in.h (open): Likewise.
10836         Reported by Rainer Tammer <tammer@tammer.net>.
10837
10838 2008-09-28  Bruno Haible  <bruno@clisp.org>
10839
10840         * modules/posix_spawnp-tests: New file.
10841         * tests/test-posix_spawn.c: New file.
10842         * tests/test-posix_spawn.in.sh: New file.
10843
10844         New module 'posix_spawnp'.
10845         * modules/posix_spawnp: New file.
10846         * lib/spawnp.c: New file, from GNU libc with modifications.
10847         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
10848
10849         New module 'posix_spawn'.
10850         * modules/posix_spawn: New file.
10851         * lib/spawn.c: New file, from GNU libc with modifications.
10852         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10853
10854         New module 'posix_spawnattr_destroy'.
10855         * modules/posix_spawnattr_destroy: New file.
10856         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
10857         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
10858         module.
10859
10860         New module 'posix_spawnattr_setsigmask'.
10861         * modules/posix_spawnattr_setsigmask: New file.
10862         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
10863         modifications.
10864         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
10865         new module.
10866
10867         New module 'posix_spawnattr_getsigmask'.
10868         * modules/posix_spawnattr_getsigmask: New file.
10869         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
10870         modifications.
10871         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
10872         new module.
10873
10874         New module 'posix_spawnattr_setsigdefault'.
10875         * modules/posix_spawnattr_setsigdefault: New file.
10876         * lib/spawnattr_setdefault.c: New file, from GNU libc with
10877         modifications.
10878         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
10879         new module.
10880
10881         New module 'posix_spawnattr_getsigdefault'.
10882         * modules/posix_spawnattr_getsigdefault: New file.
10883         * lib/spawnattr_getdefault.c: New file, from GNU libc with
10884         modifications.
10885         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
10886         new module.
10887
10888         New module 'posix_spawnattr_setschedpolicy'.
10889         * modules/posix_spawnattr_setschedpolicy: New file.
10890         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
10891         modifications.
10892         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
10893         new module.
10894
10895         New module 'posix_spawnattr_getschedpolicy'.
10896         * modules/posix_spawnattr_getschedpolicy: New file.
10897         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
10898         modifications.
10899         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
10900         new module.
10901
10902         New module 'posix_spawnattr_setschedparam'.
10903         * modules/posix_spawnattr_setschedparam: New file.
10904         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
10905         modifications.
10906         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
10907         new module.
10908
10909         New module 'posix_spawnattr_getschedparam'.
10910         * modules/posix_spawnattr_getschedparam: New file.
10911         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
10912         modifications.
10913         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
10914         new module.
10915
10916         New module 'posix_spawnattr_setpgroup'.
10917         * modules/posix_spawnattr_setpgroup: New file.
10918         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
10919         modifications.
10920         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
10921         module.
10922
10923         New module 'posix_spawnattr_getpgroup'.
10924         * modules/posix_spawnattr_getpgroup: New file.
10925         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
10926         modifications.
10927         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
10928         module.
10929
10930         New module 'posix_spawnattr_setflags'.
10931         * modules/posix_spawnattr_setflags: New file.
10932         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
10933         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
10934         module.
10935
10936         New module 'posix_spawnattr_getflags'.
10937         * modules/posix_spawnattr_getflags: New file.
10938         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
10939         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
10940         module.
10941
10942         New module 'posix_spawnattr_init'.
10943         * modules/posix_spawnattr_init: New file.
10944         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
10945         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
10946         module.
10947
10948         New module 'posix_spawn_file_actions_destroy'.
10949         * modules/posix_spawn_file_actions_destroy: New file.
10950         * lib/spawn_faction_destroy.c: New file, from GNU libc with
10951         modifications.
10952         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
10953         the new module.
10954
10955         New module 'posix_spawn_file_actions_addopen'.
10956         * modules/posix_spawn_file_actions_addopen: New file.
10957         * lib/spawn_faction_addopen.c: New file, from GNU libc with
10958         modifications.
10959         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10960         the new module.
10961
10962         New module 'posix_spawn_file_actions_adddup2'.
10963         * modules/posix_spawn_file_actions_adddup2: New file.
10964         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
10965         modifications.
10966         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10967         the new module.
10968
10969         New module 'posix_spawn_file_actions_addclose'.
10970         * modules/posix_spawn_file_actions_addclose: New file.
10971         * lib/spawn_faction_addclose.c: New file, from GNU libc with
10972         modifications.
10973         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10974         the new module.
10975
10976         New module 'posix_spawn_file_actions_init'.
10977         * modules/posix_spawn_file_actions_init: New file.
10978         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
10979         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
10980         new module.
10981
10982         New module 'posix_spawn-internal'.
10983         * modules/posix_spawn-internal: New file.
10984         * lib/spawn_int.h: New file, from GNU libc with modifications.
10985         * lib/spawni.c: New file, from GNU libc with modifications.
10986         * m4/posix_spawn.m4: New file.
10987
10988         New module 'spawn'.
10989         * modules/spawn: New file.
10990         * lib/spawn.in.h: New file, from GNU libc with modifications.
10991         * m4/spawn_h.m4: New file.
10992         * doc/posix-headers/spawn.texi: Mention the new module.
10993
10994 2008-09-28  Bruno Haible  <bruno@clisp.org>
10995
10996         * modules/sched-tests: New file.
10997         * tests/test-sched.c: New file.
10998
10999         New module 'sched'.
11000         * modules/sched: New file.
11001         * lib/sched.in.h: New file.
11002         * m4/sched_h.m4: New file.
11003         * doc/posix-headers/sched.texi: Mention the new module.
11004
11005 2008-09-27  Eric Blake  <ebb9@byu.net>
11006
11007         Fix previous patch, and tweak references to $0.
11008         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
11009         (func_version, func_gnulib_dir): Don't call this program
11010         gnulib-tool.
11011         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
11012         with using $0 in function.
11013         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
11014         (func_fatal_error): Reuse the name the user invoked us with.
11015
11016 2008-09-27  Bruno Haible  <bruno@clisp.org>
11017
11018         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
11019         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
11020         (gl_ICONV_H): Not here.
11021         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11022         instead of assigning ICONV_H directly.
11023
11024         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
11025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
11026         WCHAR_H directly.
11027
11028 2008-09-27  Bruno Haible  <bruno@clisp.org>
11029
11030         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
11031         * modules/arpa_inet (Depends-on): Add link-warning.
11032         (Makefile.am): Insert the definition of GL_LINK-WARNING.
11033         * modules/unistd (Makefile.am): Likewise.
11034
11035 2008-09-26  Bruno Haible  <bruno@clisp.org>
11036
11037         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
11038         variables.
11039         (func_version): Essentially copied from gnulib-tool.
11040         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
11041         func_readlink): Copied from gnulib-tool.
11042
11043 2008-09-26  Bruno Haible  <bruno@clisp.org>
11044
11045         * gnulib-tool (func_version): Change directory to $gnulib_dir before
11046         invoking git-version-gen.
11047
11048 2008-09-26  Bruno Haible  <bruno@clisp.org>
11049
11050         * posix-modules: Update to directory names changed on 2008-01-19.
11051         Remove commas in output before splitting into words. No more need to
11052         avoid 'ftruncate' since 2007-02-19.
11053
11054 2008-09-26  Bruno Haible  <bruno@clisp.org>
11055
11056         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
11057
11058 2008-09-26  Bruno Haible  <bruno@clisp.org>
11059
11060         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
11061         * modules/fwriteerror (Depends-on): Add errno.
11062
11063 2008-09-26  Bruno Haible  <bruno@clisp.org>
11064
11065         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
11066         * tests/test-vc-list-files-cvs.sh: Likewise.
11067
11068 2008-09-26  Bruno Haible  <bruno@clisp.org>
11069
11070         * doc/posix-headers/sys_resource.texi: Reorder items.
11071
11072 2008-09-26  Jim Meyering  <meyering@redhat.com>
11073
11074         fts: tweak inode comparison function
11075         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
11076         inode numbers, as documented.
11077
11078         fts: sort dirent entries on inode number before traversing
11079         This avoids a quadratic, seek-related performance penalty when
11080         operating on a directory containing many entries (measurable at 10k;
11081         3.5 hours at 2 million entries with a cold cache) on certain types
11082         of file systems, including ext3 and ext4, but not tmpfs.
11083         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
11084         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
11085         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
11086         (fs_handles_readdir_ordered_dirents_efficiently): New function.
11087         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
11088         (fts_build): Set the stat.st_ino member from D_INO.
11089         If it is likely to be useful, sort dirent entries on inode number.
11090
11091         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
11092         and the struct statfs.f_type member.
11093         * modules/fts (Depends-on): Add d-ino.
11094
11095 2008-09-26  Bruno Haible  <bruno@clisp.org>
11096
11097         * modules/sigpipe-die (Depends-on): Add sigpipe.
11098
11099         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
11100         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
11101         and GNULIB_STDIO_H_SIGPIPE are set.
11102         * lib/stdio-write.c: New file.
11103         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
11104         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11105         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11106         REPLACE_STDIO_WRITE_FUNCS.
11107         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
11108         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11109         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11110         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
11111         * modules/stdio (Files): Add lib/stdio-write.c.
11112         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
11113         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11114         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11115         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
11116         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
11117         REPLACE_FPRINTF_POSIX.
11118         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
11119         REPLACE_PRINTF_POSIX.
11120         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
11121         REPLACE_VFPRINTF_POSIX.
11122         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
11123         REPLACE_VPRINTF_POSIX.
11124         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
11125         SIGPIPE issue.
11126         * doc/posix-functions/fputc.texi: Likewise.
11127         * doc/posix-functions/fputs.texi: Likewise.
11128         * doc/posix-functions/fwrite.texi: Likewise.
11129         * doc/posix-functions/printf.texi: Likewise.
11130         * doc/posix-functions/putc.texi: Likewise.
11131         * doc/posix-functions/putchar.texi: Likewise.
11132         * doc/posix-functions/puts.texi: Likewise.
11133         * doc/posix-functions/vfprintf.texi: Likewise.
11134         * doc/posix-functions/vprintf.texi: Likewise.
11135
11136         * modules/safe-write (Depends-on): Add write.
11137
11138         * modules/sigpipe-tests: New file.
11139         * tests/test-sigpipe.c: New file.
11140         * tests/test-sigpipe.sh: New file.
11141
11142         * modules/write: New file.
11143         * lib/unistd.in.h: Include <sys/types.h>.
11144         (write): New declaration.
11145         * lib/write.c: New file.
11146         * m4/write.m4: New file.
11147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11148         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
11149         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
11150         GNULIB_WRITE, REPLACE_WRITE.
11151         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
11152         and the SIGPIPE issue.
11153
11154         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
11155         (raise): New declaration.
11156         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
11157         (ext_signal): New function.
11158         (rpl_raise): New function.
11159         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11160         GNULIB_SIGNAL_H_SIGPIPE.
11161         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
11162         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
11163
11164         * modules/sigpipe: New file.
11165         * m4/sigpipe.m4: New file.
11166
11167 2008-09-25  Derek Price  <derek@ximbiot.com>
11168             Bruno Haible  <bruno@clisp.org>
11169
11170         * gnulib-tool (func_import): Report all license incompatibilities, not
11171         just the first one.
11172
11173 2008-09-25  Bruno Haible  <bruno@clisp.org>
11174
11175         * gnulib-tool (func_import): When computing the edits, consider not
11176         only the Makefile.ams that exist but also those that will be generated.
11177
11178 2008-09-25  Simon Josefsson  <simon@josefsson.org>
11179
11180         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
11181         fixes gnulib-tool --test warning about duplicate dependency.
11182
11183 2008-09-25  Bruno Haible  <bruno@clisp.org>
11184
11185         * gnulib-tool: Don't ask the user to perform edits in the generated
11186         Makefile.ams.
11187         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
11188         apply to the Makefile.am being generated.
11189         (func_emit_tests_Makefile_am): Execute edits that apply to the
11190         Makefile.am being generated.
11191         (func_import): Setup list of Makefile.am edits before emitting the
11192         Makefile.ams, not at the end.
11193         (func_create_testdir): Update.
11194         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11195
11196 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11197
11198         * gnulib-tool (func_import): Store the --tests-base option in the
11199         comment in gnulib-cache.m4.
11200
11201 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
11202
11203         * NEWS: Document increased portability that sys_select now provides.
11204
11205         * lib/sys_select.in.h: Install select wrapper.
11206         * lib/sys_socket.in.h: Use more descriptive name when there is no
11207         select wrapper.
11208         * lib/winsock-select.c: New.
11209         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
11210         Require gl_HEADER_SYS_SOCKET.
11211         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
11212         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
11213         * tests/test-sys_select.c: Add functional tests.
11214
11215 2008-09-24  Eric Blake  <ebb9@byu.net>
11216
11217         open, fopen: close fd leak in last patch
11218         * lib/open.c (rpl_open): Close fd before returning error.
11219         * lib/fopen.c (rpl_fopen): Close fd before returning error.
11220         * doc/posix-functions/open.texi (open): Document that Irix also
11221         has the bug.
11222         * doc/posix-functions/fopen.texi (fopen): Likewise.
11223         Reported by Paolo Bonzini.
11224
11225 2008-09-24  Bruno Haible  <bruno@clisp.org>
11226
11227         Ensure that a filename ending in a slash cannot be used to access a
11228         non-directory.
11229         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
11230         to check whether it's really a directory.
11231         * lib/fopen.c: Include fcntl.h, unistd.h.
11232         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
11233         and fdopen().
11234         * modules/fopen (Depends-on): Add unistd.
11235         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
11236         * tests/test-fopen.c (main): Likewise.
11237         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
11238         * doc/posix-functions/fopen.texi: Likewise.
11239         Reported by Eric Blake.
11240
11241 2008-09-23  Eric Blake  <ebb9@byu.net>
11242
11243         c-stack: avoid compiler optimizations when provoking overflow
11244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
11245         recursion harder to optimize, to ensure a stack overflow occurs.
11246         * tests/test-c-stack.c (recurse): Likewise.
11247         Borrowed from libsigsegv.
11248
11249         c-stack: work around Irix sigaltstack bug
11250         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
11251         whether sigaltstack uses wrong end of stack_t (copied in part from
11252         libsigsegv).
11253         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
11254         Irix bug, without requiring an over-allocation.
11255         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
11256         bug.
11257
11258         fopen: document mingw bug on directories
11259         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
11260         not allowing a stream visiting a directory, even though reading
11261         from such a stream is not portable.
11262
11263 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11264
11265         * lib/poll.c: Rewrite.
11266         * modules/poll: Depend on alloca.
11267
11268 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11269
11270         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
11271         instead define prototypes for a full set of wrappers.  Ensure
11272         that Cygwin does not use the compatibility code, which is only
11273         for MinGW.
11274         * lib/winsock.c: New.
11275         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
11276         * modules/sys_socket: Add lib/winsock.c.
11277
11278         * modules/poll-tests: Add errno and perror.
11279         * tests/test-poll.c: Use ioctl, not ioctlsocket.
11280
11281 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11282
11283         * tests/test-poll.c: Downgrade minimum needed Winsock version.
11284
11285 2008-09-23  Bruno Haible  <bruno@clisp.org>
11286
11287         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
11288         * doc/glibc-functions/*: Likewise.
11289
11290 2008-09-23  Simon Josefsson  <simon@josefsson.org>
11291
11292         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
11293         success.
11294
11295 2008-09-22  Eric Blake  <ebb9@byu.net>
11296             Bruno Haible  <bruno@clisp.org>
11297
11298         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
11299         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
11300         supply %A but mishandle pseudo-NaN.
11301         Reported by Simon Josefsson.
11302
11303 2008-09-21  Bruno Haible  <bruno@clisp.org>
11304
11305         * tests/test-lock.c (main): Tweak skip message.
11306         * tests/test-tls.c (main): Likewise.
11307
11308 2008-09-21  Bruno Haible  <bruno@clisp.org>
11309
11310         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
11311         whether 'struct sigaction' has sa_sigaction here...
11312         (gl_PREREQ_SIG_HANDLER_H): ... not here.
11313         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
11314
11315 2008-09-21  Bruno Haible  <bruno@clisp.org>
11316
11317         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
11318         section.
11319         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
11320         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
11321         the new section.
11322         (Support for obsolete systems lacking POSIX:2001): New section.
11323         (String handling <string.h>): Move strdup to the new section.
11324         Suggested by Simon Josefsson and Paolo Bonzini.
11325
11326 2008-09-21  Bruno Haible  <bruno@clisp.org>
11327
11328         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
11329         exponents in %e and %g results on 'long double'. Needed for mingw's
11330         improved *printf functions.
11331         * tests/test-vasprintf-posix.c (test_function): Likewise.
11332         * tests/test-snprintf-posix.h (test_function): Likewise.
11333         * tests/test-sprintf-posix.h (test_function): Likewise.
11334         Reported by Eric Blake.
11335
11336 2008-09-21  Bruno Haible  <bruno@clisp.org>
11337
11338         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
11339         * tests/test-sprintf-posix.h (test_function): Likewise.
11340
11341 2008-09-21  Bruno Haible  <bruno@clisp.org>
11342
11343         * modules/getpass (Depends-on): Add strdup-posix.
11344
11345         New module 'strdup-posix'.
11346         * modules/strdup-posix: New file.
11347         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
11348         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
11349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11350         REPLACE_STRDUP.
11351         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
11352         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
11353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11354         strdup-posix.
11355
11356         * modules/strdup (Depends-on): Remove malloc-posix.
11357
11358 2008-09-20  Bruno Haible  <bruno@clisp.org>
11359
11360         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
11361         Wildenhues.
11362
11363 2008-09-20  Bruno Haible  <bruno@clisp.org>
11364
11365         Ensure that wint_t gets defined on IRIX 5.3.
11366         * lib/wchar.in.h (wint_t): Define if not defined by the system.
11367         * lib/wctype.in.h (wint_t): Likewise.
11368         (__wctype_wint_t): Remove type.
11369         (isw*): Use wint_t instead of __wctype_wint_t.
11370         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
11371         * modules/wchar (Files): Add m4/wint_t.m4.
11372         (Makefile.am): Substitute HAVE_WINT_T.
11373         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
11374         * tests/test-wctype.c: Check that wint_t is defined.
11375         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
11376         * doc/posix-headers/wctype.texi: Likewise.
11377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11378
11379 2008-09-18  Bruno Haible  <bruno@clisp.org>
11380
11381         * gnulib-tool (func_exit): Update comment.
11382
11383 2008-09-18  Simon Josefsson  <simon@josefsson.org>
11384
11385         * modules/getaddrinfo (Depends-on): Remove strdup, this module
11386         assumes strdup exists and does not depend on strdup to return
11387         ENOMEM on out of memory conditions.
11388
11389 2008-09-18  Bruno Haible  <bruno@clisp.org>
11390
11391         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
11392         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
11393         digits for the exponent.
11394
11395 2008-09-18  Jim Meyering  <meyering@redhat.com>
11396             Bruno Haible  <bruno@clisp.org>
11397
11398         * lib/vasnprintf.c (decimal_point_char): Define also if
11399         NEED_PRINTF_INFINITE_LONG_DOUBLE.
11400
11401 2008-09-16  Bruno Haible  <bruno@clisp.org>
11402         and Eric Blake  <ebb9@byu.net>
11403
11404         vasnprintf: support Irix 5.3
11405         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
11406         that mishandle long double infinity.
11407         Reported by Tom G. Christensen.
11408
11409 2008-09-16  Bruno Haible  <bruno@clisp.org>
11410
11411         * doc/glibc-functions/scandir.texi: Mention the function is missing on
11412         Solaris 9.
11413         * doc/glibc-functions/alphasort.texi: Likewise.
11414         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
11415
11416 2008-09-16  Jim Meyering  <meyering@redhat.com>
11417
11418         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
11419         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
11420         a umask modification leak out of a subshell.  Otherwise, the
11421         opensolaris /bin/sh would be accepted and thus cause unwarranted
11422         failures in the coreutils test suite.
11423
11424 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
11425
11426         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
11427         to succeed.
11428
11429 2008-09-16  Jim Meyering  <meyering@redhat.com>
11430
11431         avoid spurious test failure when library is built without ACL support
11432         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
11433         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
11434         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
11435         * tests/test-copy-acl.sh: Likewise.
11436
11437 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11438
11439         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
11440         based on character occurrence counts.
11441
11442 2008-09-15  Eric Blake  <ebb9@byu.net>
11443
11444         tests: avoid some compiler warnings
11445         * tests/test-memchr.c (main): Pass NULL indirectly.
11446         * tests/test-closein.c (main): Avoid unused variable.
11447
11448 2008-09-15  Bruno Haible  <bruno@clisp.org>
11449
11450         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
11451         are missing on OpenBSD 4.0 individually.
11452         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11453
11454 2008-09-15  Bruno Haible  <bruno@clisp.org>
11455
11456         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
11457         * doc/posix-functions/strerror.texi: Mention also Cygwin.
11458         * doc/posix-functions/perror.texi: Likewise.
11459         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
11460         is missing.
11461         Reported by Eric Blake.
11462
11463         * lib/errno.in.h: Use replacement values >= 2000.
11464         Reported by Eric Blake.
11465
11466 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11467
11468         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
11469         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
11470         limit.
11471         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
11472         compareseq was aborted.
11473
11474 2008-09-14  Bruno Haible  <bruno@clisp.org>
11475
11476         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
11477         yvec_edit_count.
11478         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
11479         (fstrcmp_bounded): Simplify result computation accordingly.
11480
11481 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11482
11483         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
11484         (fstrcmp): Define in terms of fstrcmp_bounded.
11485         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
11486         lower_bound argument.
11487         Return quickly if the result is certainly < lower_bound.
11488         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
11489
11490 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11491
11492         * lib/diffseq.h (EARLY_ABORT): New macro.
11493         (compareseq): Change return type to bool. Return true when EARLY_ABORT
11494         evaluates to true.
11495
11496 2008-09-14  Bruno Haible  <bruno@clisp.org>
11497
11498         * modules/perror-tests: New file.
11499         * tests/test-perror.sh: New file.
11500         * tests/test-perror.c: New file.
11501
11502         New module 'perror'.
11503         * lib/stdio.in.h (perror): New declaration.
11504         * lib/perror.c: New file.
11505         * m4/perror.m4: New file.
11506         * modules/perror: New file.
11507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
11508         * doc/posix-functions/perror.texi: Mention the perror module.
11509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
11510         REPLACE_PERROR.
11511         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
11512         REPLACE_PERROR.
11513
11514 2008-09-14  Bruno Haible  <bruno@clisp.org>
11515
11516         * modules/stdio (Makefile.am): Reorder to match the order in
11517         lib/stdio.in.h.
11518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11519
11520 2008-09-13  Bruno Haible  <bruno@clisp.org>
11521
11522         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
11523
11524 2008-09-13  Bruno Haible  <bruno@clisp.org>
11525
11526         Extend strerror to cover the added errno values.
11527         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
11528         (rpl_strerror): Provide error messages for the added errno values and
11529         for the WSA* values.
11530         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
11531         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
11532         strerror.
11533         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
11534         * modules/strerror (Depends-on): Add errno.
11535         * doc/posix-functions/strerror.texi: Document the change.
11536         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
11537         and EOVERFLOW.
11538
11539 2008-09-13  Bruno Haible  <bruno@clisp.org>
11540
11541         * modules/EOVERFLOW: Remove file.
11542         * m4/eoverflow.m4: Remove file.
11543         * modules/EOVERFLOW-tests: Remove file.
11544         * tests/test-EOVERFLOW.c: Remove file.
11545         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
11546         * modules/ftell (Depends-on): Likewise.
11547         * modules/getdelim (Depends-on): Likewise.
11548         * modules/getugroups (Depends-on): Likewise.
11549         * modules/poll (Depends-on): Likewise.
11550         * modules/snprintf (Depends-on): Likewise.
11551         * modules/sprintf-posix (Depends-on): Likewise.
11552         * modules/vasnprintf (Depends-on): Likewise.
11553         * modules/vasprintf (Depends-on): Likewise.
11554         * modules/vfprintf-posix (Depends-on): Likewise.
11555         * modules/vsnprintf (Depends-on): Likewise.
11556         * modules/vsprintf-posix (Depends-on): Likewise.
11557         * modules/xvasprintf (Depends-on): Likewise.
11558         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11559         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
11560         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
11561         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
11562         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11563         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
11564         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
11565         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
11566         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11567         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
11568         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
11569         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
11570         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11571         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
11572         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
11573         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
11574         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11575         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
11576         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
11577         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
11578         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11579         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
11580         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
11581         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
11582         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
11583         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11584         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
11585         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
11586         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
11587         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
11588         * MODULES.html.sh: Remove EOVERFLOW.
11589         * NEWS: Mention the change.
11590
11591 2008-09-13  Bruno Haible  <bruno@clisp.org>
11592
11593         * modules/errno-tests: New file.
11594         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
11595
11596         * lib/errno.in.h: New file.
11597         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
11598         * modules/errno: New file.
11599         * doc/posix-headers/errno.texi: Update documentation.
11600         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
11601
11602 2008-09-13  Bruno Haible  <bruno@clisp.org>
11603
11604         * tests/test-poll.c: Use #if for native Windows, rather than testing
11605         __MSVCRT__.
11606
11607 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11608             Bruno Haible  <bruno@clisp.org>
11609
11610         * lib/glob.c: Don't include <pwd.h> on native Windows.
11611         (WINDOWS32): New macro.
11612         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
11613
11614 2008-09-13  Bruno Haible  <bruno@clisp.org>
11615
11616         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
11617         (ETIMEDOUT): Remove macro.
11618         (glthread_cond_timedwait_multithreaded): New declaration.
11619         (glthread_cond_timedwait): Use it.
11620         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
11621         (glthread_cond_timedwait_multithreaded): New function.
11622
11623 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11624
11625         * modules/poll-tests: Do not check for io.h.
11626         * tests/test-poll.c: Check for __MSVCRT__ instead.
11627
11628 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11629
11630         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
11631         * modules/poll-tests: Add inet_pton, stdbool, sockets.
11632         * tests/test-poll.c: Use them.  Use _pipe on Windows.
11633
11634 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11635
11636         * modules/poll-tests: New.
11637         * tests/test-poll.c: New.
11638
11639 2008-09-12  Eric Blake  <ebb9@byu.net>
11640
11641         frexp: test for NetBSD failure on -0.0
11642         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
11643         not all, bugs from NetBSD 3.0 have been fixed.
11644         * doc/posix-functions/frexp.texi (frexp): Document bug.
11645         Reported by Thomas Klausner.
11646
11647         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
11648         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
11649         literal -0.0.
11650         Reported by Jonathan C. Patschke <jp@centtech.com>.
11651
11652 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11653
11654         * lib/glthread/cond.h: Use dummy implementation also if
11655         USE_WIN32_THREADS.
11656
11657 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11658
11659         * modules/fnmatch-posix (License): Change to LGPLv2+.
11660         * modules/fnmatch-gnu (License): Likewise.
11661
11662 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11663
11664         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
11665
11666 2008-09-11  Jim Meyering  <meyering@redhat.com>
11667
11668         * users.txt: Add gtk-vnc.
11669
11670 2008-09-08  Simon Josefsson  <simon@josefsson.org>
11671
11672         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
11673         rotate amounts.
11674
11675         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
11676         required for 16-bit and 8-bit rotates.
11677         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
11678         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
11679         UINT8_MAX instead of hard-coded constants.
11680         Suggested by Paul Eggert.
11681
11682 2008-09-07  Bruno Haible  <bruno@clisp.org>
11683
11684         * tests/test-striconveh.c (main): Check behaviour when converting from
11685         UTF-7.
11686
11687         Make striconveh work better with stateful encodings.
11688         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
11689         that iconv does not increment the inptr when returning -1/EINVAL.
11690
11691 2008-09-07  Bruno Haible  <bruno@clisp.org>
11692
11693         * build-aux/config.rpath: Update according to libtool-2.2.6.
11694         * build-aux/config.libpath: Likewise.
11695
11696 2008-09-06  Bruno Haible  <bruno@clisp.org>
11697
11698         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
11699         * lib/freadptr.c (freadptr): Likewise.
11700         * lib/freadseek.c (freadptrinc): Likewise.
11701         Reported by Simon Josefsson.
11702
11703 2008-09-06  Bruno Haible  <bruno@clisp.org>
11704
11705         * modules/freadptr (License): Change to LGPLv2+.
11706         * modules/freadseek (License): Likewise.
11707         Suggested by Eric Blake.
11708
11709         * modules/memchr2 (License): Change to LGPLv2+.
11710         Approved by Eric Blake.
11711
11712 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11713             Bruno Haible  <bruno@clisp.org>
11714
11715         Make gnulib-tool work with native 'sed' on AIX.
11716         * gnulib-tool (sed_noop): New variable.
11717         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
11718         func_add_or_update, func_create_testdir): Use it to initialize sed
11719         script variables.
11720         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11721
11722 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
11723             Bruno Haible  <bruno@clisp.org>
11724
11725         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
11726         also works after #include directives.
11727
11728 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
11729
11730         getdate.y: reject an out-of-range timezone value
11731         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
11732         the range [-24...+24].  When specified with only one or two digits,
11733         * tests/test-getdate.c: Tests for the fix.
11734         * doc/getdate.texi: Document this change.
11735
11736 2008-09-03  Bruno Haible  <bruno@clisp.org>
11737
11738         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
11739
11740 2008-09-02  Simon Josefsson  <simon@josefsson.org>
11741
11742         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
11743         <bruce.korb@gmail.com> with ideas from Ben Pfaff
11744         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
11745         Blake <ebb9@byu.net>.
11746
11747         * tests/test-bitrotate.c: Add more test vectors.
11748
11749 2008-09-02  Eric Blake  <ebb9@byu.net>
11750
11751         vasnprintf-posix: handle large precision via %.*d
11752         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
11753         when handling it ourselves.
11754         * tests/test-vasnprintf-posix.c (test_function): Add test.
11755         * tests/test-snprintf-posix.h (test_function): Likewise.
11756         * tests/test-sprintf-posix.h (test_function): Likewise.
11757         * tests/test-vasprintf-posix.c (test_function): Likewise.
11758         Reported by Alain Guibert.
11759
11760 2008-09-01  Eric Blake  <ebb9@byu.net>
11761
11762         c-stack: make configure-time check more robust
11763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
11764         successful sigaction call.
11765         Reported by Tom G. Christensen.
11766
11767 2008-09-01  Bruno Haible  <bruno@clisp.org>
11768
11769         New module 'findprog-lgpl'.
11770         * modules/findprog-lgpl: New file.
11771         * lib/findprog-lgpl.c: New file.
11772         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
11773         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
11774         to decide whether to use strdup or xstrdup, concatenated_filename or
11775         xconcatenated_filename.
11776
11777 2008-09-01  Bruno Haible  <bruno@clisp.org>
11778
11779         Split module 'concat-filename' into 'concat-filename' (LGPL) and
11780         'xconcat-filename' (GPL).
11781         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
11782         (License): Change to LGPLv2+.
11783         * modules/xconcat-filename: New file.
11784         * lib/concat-filename.h (concatenated_filename): Change specification.
11785         (xconcatenated_filename): New declaration.
11786         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
11787         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
11788         memory situations.
11789         * lib/xconcat-filename.c: New file.
11790         * NEWS: Mention the change.
11791         * lib/findprog.c: Include concat-filename.h, not filename.h.
11792         (find_in_path): Use xconcatenated_filename instead of
11793         concatenated_filename.
11794         * lib/javacomp.c: Include concat-filename.h, not filename.h.
11795         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
11796         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
11797         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
11798         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
11799         instead of concatenated_filename.
11800         * lib/javaexec.c: Include concat-filename.h, not filename.h.
11801         (execute_java_class): Use xconcatenated_filename instead of
11802         concatenated_filename.
11803         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
11804         * modules/javacomp (Depends-on): Likewise.
11805         * modules/javaexec (Depends-on): Likewise.
11806
11807 2008-09-01  Bruno Haible  <bruno@clisp.org>
11808
11809         Split module 'filename' into 'filename' and 'concat-filename'.
11810         * modules/filename: Keep only lib/filename.h.
11811         (License): Change to LGPLv2+.
11812         * modules/concat-filename: New file, extracted from modules/filename.
11813         * lib/filename.h (concatenated_filename): Remove declaration.
11814         * lib/concat-filename.h: New file, extracted from lib/filename.h.
11815         * lib/concat-filename.c: Include concat-filename.h.
11816         * NEWS: Mention the change.
11817
11818 2008-09-01  Simon Josefsson  <simon@josefsson.org>
11819
11820         * lib/bitrotate.h (rotl8, rotr8): Add.
11821
11822         * modules/bitrotate (configure.ac): Need
11823         AC_REQUIRE([AC_C_INLINE]).
11824         (Description): Mention stdint.h.  Reported by Bruno Haible
11825         <bruno@clisp.org>.
11826
11827         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
11828         Paolo Bonzini <bonzini@gnu.org>.
11829
11830 2008-08-31  Bruno Haible  <bruno@clisp.org>
11831
11832         Assume Solaris specific bi-arch conventions on Solaris systems.
11833         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
11834         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
11835         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
11836         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
11837         like acl_libdirstem.
11838         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
11839         acl_libdirstem.
11840         * NEWS: Mention the change.
11841         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
11842
11843 2008-08-31  Jim Meyering  <meyering@redhat.com>
11844
11845         * lib/strftime.h: Add comments describing the two added arguments.
11846
11847         remove duplicate #include directives
11848         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
11849         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
11850
11851 2008-08-31  Bruno Haible  <bruno@clisp.org>
11852
11853         New module 'sigpipe-die'.
11854         * modules/sigpipe-die: New file.
11855         * lib/sigpipe-die.h: New file.
11856         * lib/sigpipe-die.c: New file.
11857         * MODULES.html.sh (Signal handling): Add sigpipe-die.
11858
11859 2008-08-31  Bruno Haible  <bruno@clisp.org>
11860
11861         Don't override previously installed signal handlers.
11862         * lib/fatal-signal.c (saved_sigactions): New variable.
11863         (uninstall_handlers): Reset the signal to the saved handler, not
11864         to SIG_DFL (except when ignored).
11865         (install_handlers): Save the previous handlers.
11866
11867 2008-08-30  Bruno Haible  <bruno@clisp.org>
11868
11869         * gnulib-tool (func_reset_sigpipe): New function.
11870         (func_get_automake_snippet, func_modules_transitive_closure,
11871         func_import): Invoke it before a join command that reads from stdin,
11872         to avoid "echo: write error: Broken pipe" error messages on stderr.
11873         Reported by Sam Steingold <sds@gnu.org>.
11874
11875 2008-08-30  Bruno Haible  <bruno@clisp.org>
11876
11877         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
11878         Code copied from m4/open.m4.
11879         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
11880         access and the filename ends in a slash. Code copied from lib/open.c.
11881         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
11882         * tests/test-fopen.c (main): Check against bug with trailing slash.
11883
11884 2008-08-29  Bruno Haible  <bruno@clisp.org>
11885
11886         Avoid some "gcc -pedantic" warnings.
11887         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
11888         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
11889         * lib/dirent.in.h: Likewise.
11890         * lib/fcntl.in.h: Likewise.
11891         * lib/float.in.h: Likewise.
11892         * lib/iconv.in.h: Likewise.
11893         * lib/inttypes.in.h: Likewise.
11894         * lib/locale.in.h: Likewise.
11895         * lib/math.in.h: Likewise.
11896         * lib/netinet_in.in.h: Likewise.
11897         * lib/search.in.h: Likewise.
11898         * lib/signal.in.h: Likewise.
11899         * lib/stdarg.in.h: Likewise.
11900         * lib/stdint.in.h: Likewise.
11901         * lib/stdio.in.h: Likewise.
11902         * lib/stdlib.in.h: Likewise.
11903         * lib/string.in.h: Likewise.
11904         * lib/strings.in.h: Likewise.
11905         * lib/sys_select.in.h: Likewise.
11906         * lib/sys_socket.in.h: Likewise.
11907         * lib/sys_stat.in.h: Likewise.
11908         * lib/sys_time.in.h: Likewise.
11909         * lib/sysexits.in.h: Likewise.
11910         * lib/time.in.h: Likewise.
11911         * lib/unistd.in.h: Likewise.
11912         * lib/wchar.in.h: Likewise.
11913         * lib/wctype.in.h: Likewise.
11914         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
11915         * modules/fchdir (Makefile.am): Likewise.
11916         * modules/fcntl (Makefile.am): Likewise.
11917         * modules/float (Makefile.am): Likewise.
11918         * modules/iconv_open (Makefile.am): Likewise.
11919         * modules/inttypes (Makefile.am): Likewise.
11920         * modules/locale (Makefile.am): Likewise.
11921         * modules/math (Makefile.am): Likewise.
11922         * modules/netinet_in (Makefile.am): Likewise.
11923         * modules/search (Makefile.am): Likewise.
11924         * modules/signal (Makefile.am): Likewise.
11925         * modules/stdarg (Makefile.am): Likewise.
11926         * modules/stdint (Makefile.am): Likewise.
11927         * modules/stdio (Makefile.am): Likewise.
11928         * modules/stdlib (Makefile.am): Likewise.
11929         * modules/string (Makefile.am): Likewise.
11930         * modules/strings (Makefile.am): Likewise.
11931         * modules/sys_select (Makefile.am): Likewise.
11932         * modules/sys_socket (Makefile.am): Likewise.
11933         * modules/sys_stat (Makefile.am): Likewise.
11934         * modules/sys_time (Makefile.am): Likewise.
11935         * modules/sysexits (Makefile.am): Likewise.
11936         * modules/time (Makefile.am): Likewise.
11937         * modules/unistd (Makefile.am): Likewise.
11938         * modules/wchar (Makefile.am): Likewise.
11939         * modules/wctype (Makefile.am): Likewise.
11940         Reported by Reuben Thomas <rrt@sc3d.org>.
11941
11942 2008-08-29  Bruno Haible  <bruno@clisp.org>
11943
11944         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
11945         any more.
11946
11947 2008-08-29  Simon Josefsson  <simon@josefsson.org>
11948
11949         * MODULES.html.sh (Misc): Add bitrotate.
11950
11951         * modules/bitrotate: New file.
11952
11953         * lib/bitrotate.h: New file.
11954
11955         * modules/bitrotate-tests: New file.
11956
11957         * tests/test-bitrotate.c: New file.
11958
11959         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
11960         on the bitrotate module.
11961
11962         * lib/arctwo.c: Use new bitrotate module.
11963
11964 2008-08-29  Jim Meyering  <meyering@redhat.com>
11965
11966         bootstrap: merge changes from coreutils
11967         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
11968         of copied files.  Remove a kludge, now that this is fixed.
11969         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
11970         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
11971         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
11972
11973 2008-08-29  Bruno Haible  <bruno@clisp.org>
11974
11975         * MODULES.html.sh: Remove --cvs-urls option.
11976
11977 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
11978
11979         maint.mk: adjust to file name change
11980         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
11981
11982 2008-08-28  Jim Meyering  <meyering@redhat.com>
11983
11984         * modules/getndelim2 (License): Relicense to LGPLv2+.
11985         Approved by Richard Stallman for the version of 1995, and by
11986         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
11987
11988 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
11989
11990         * lib/getdelim.c (flockfile, funlockfile): Make all of them
11991         dummy if one is not available.  Do not touch them if
11992         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
11993         (getc_maybe_unlocked): New.
11994         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
11995
11996 2008-08-26  Eric Blake  <ebb9@byu.net>
11997
11998         doc/INSTALL: resync from autoconf
11999         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
12000         (INSTALL_PRELUDE): Delete; this is done more efficiently by
12001         moving...
12002         * install.texi [!autoconf]: ...here.  Resync from autoconf.
12003         * INSTALL: Regenerate.
12004         * INSTALL.ISO: New file.
12005         * INSTALL.UTF-8: Likewise.
12006
12007 2008-08-26  Jim Meyering  <meyering@redhat.com>
12008
12009         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
12010         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
12011         these definitions conditional, so that they may be overridden, too.
12012
12013 2008-08-26  Bruno Haible  <bruno@clisp.org>
12014
12015         Generate INSTALL file variants with prettier quotes.
12016         * doc/Makefile (INSTALL_PRELUDE): New macro.
12017         (INSTALL): Use it.
12018         (INSTALL.ISO, INSTALL.UTF-8): New rules.
12019
12020 2008-08-26  Bruno Haible  <bruno@clisp.org>
12021
12022         Run makeinfo in an English locale.
12023         * doc/Makefile (MAKEINFO): New variable.
12024
12025 2008-08-26  Bruno Haible  <bruno@clisp.org>
12026
12027         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
12028         Suggested by Eric Blake.
12029
12030 2008-08-25  Bruno Haible  <bruno@clisp.org>
12031
12032         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
12033
12034 2008-08-25  Eric Blake  <ebb9@byu.net>
12035
12036         c-stack: test that stack overflow can be caught
12037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
12038         that platform allows handling stack overflow; at least OS/2 EMX
12039         has sigaltstack, but crashes before transferring control to
12040         handler on stack overflow.
12041         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
12042         check for HAVE_STACK_OVERFLOW_HANDLING.
12043         Reported by Elbert Pol.
12044
12045 2008-08-25  Bruno Haible  <bruno@clisp.org>
12046
12047         * doc/posix-functions/strftime.texi: Fix description of strftime
12048         module.
12049
12050 2008-08-24  Bruno Haible  <bruno@clisp.org>
12051
12052         * tests/uniwidth/test-uc_width2.c: New file.
12053         * tests/uniwidth/test-uc_width2.sh: New file.
12054         * modules/uniwidth/width-tests (Files): Add the new files.
12055         (TESTS): Add uniwidth/test-uc_width2.sh.
12056         (TESTS_ENVIRONMENT): New variable.
12057         (check_PROGRAMS): Add test-uc_width2.
12058         (test_uc_width2_SOURCES): New variable.
12059
12060         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
12061         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
12062         not 0x00AB.
12063         Reported by Alexander V. Lukyanov <lav@netis.ru>.
12064
12065 2008-08-22  Eric Blake  <ebb9@byu.net>
12066
12067         test-lock, test-tls: mention why a test is skipped
12068         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
12069         skipped.
12070         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
12071
12072         count-one-bits: relax license
12073         * modules/count-one-bits (License): Relicense to LGPLv2+.
12074         Suggested by Ludovic Courtès, approved by Ben Pfaff.
12075
12076 2008-08-22  Andreas Schwab  <schwab@suse.de>
12077
12078         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12079         Remove spurious space in assignment.
12080
12081 2008-08-21  Simon Josefsson  <simon@josefsson.org>
12082
12083         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
12084         Paul Eggert <eggert@CS.UCLA.EDU>.
12085
12086 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
12087
12088         * modules/gettext: Add m4/threadlib.m4.
12089
12090 2008-08-19  Eric Blake  <ebb9@byu.net>
12091
12092         test-c-stack: fix compilation failure on FreeBSD 5.0
12093         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
12094         headers before <sys/resource.h>.
12095         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
12096         the bug.
12097         Reported by Nelson H. F. Beebe.
12098
12099         strverscmp: migrate from "strverscmp.h" to <string.h>
12100         * modules/string (Makefile.am): Add new hooks.
12101         * modules/strverscmp (Files): Remove strverscmp.h.
12102         (Depends-on): Add string.
12103         (configure.ac): Add indicator.
12104         (Include): Mention new header.
12105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
12106         defaults.
12107         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
12108         results.
12109         * lib/strverscmp.h: Delete.
12110         * lib/string.in.h (strverscmp): Provide declaration, when needed.
12111         * tests/test-strverscmp.c (includes): Adjust client.
12112         * lib/check-version.c (includes): Likewise.
12113         * NEWS: Document the change.
12114
12115         strverscmp: add unit test
12116         * modules/strverscmp-tests: New file.
12117         * tests/test-strverscmp.c: Likewise.
12118
12119 2008-08-19  Simon Josefsson  <simon@josefsson.org>
12120
12121         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
12122         regarding Windows crypto stuff, from Mono.
12123
12124 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
12125
12126         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
12127         if present, for intel RND.  Return error on failures.
12128
12129 2008-08-18  Ben Pfaff  <blp@gnu.org>
12130
12131         gitlog-to-changelog: give better diagnostic for failed pipe-open
12132         * build-aux/gitlog-to-changelog: Improve error message: suggest
12133         that the version of Git may be too old.
12134
12135 2008-08-18  Simon Josefsson  <simon@josefsson.org>
12136
12137         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
12138         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
12139
12140 2008-08-18  Bruno Haible  <bruno@clisp.org>
12141
12142         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
12143         pthread_in_use().
12144
12145 2008-08-18  Bruno Haible  <bruno@clisp.org>
12146
12147         * lib/glthread/threadlib.c: Include <pthread.h>.
12148
12149 2008-08-18  Bruno Haible  <bruno@clisp.org>
12150
12151         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
12152         glthread_recursive_lock_* macros.
12153         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
12154         Fix syntax error.
12155
12156 2008-08-18  Bruno Haible  <bruno@clisp.org>
12157
12158         * lib/glthread/thread.c: Avoid forcing a context switch right after
12159         thread creation.
12160
12161 2008-08-17  Bruno Haible  <bruno@clisp.org>
12162
12163         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
12164         * lib/glthread/thread.h: Provide Win32 specific implementation.
12165         * modules/thread (Files): Add lib/glthread/thread.c.
12166         (Depends-on): Add lock.
12167         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
12168
12169 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12170
12171         New module 'yield'.
12172         * modules/yield: New file.
12173         * lib/glthread/yield.h: New file.
12174         * m4/yield.m4: New file.
12175         * MODULES.html.sh (Multithreading): Add yield.
12176
12177 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12178
12179         New module 'thread'.
12180         * modules/thread: New file.
12181         * lib/glthread/thread.h: New file.
12182         * m4/thread.m4: New file.
12183         * MODULES.html.sh (Multithreading): Add thread.
12184
12185 2008-08-17  Bruno Haible  <bruno@clisp.org>
12186
12187         * lib/glthread/lock.h: Include <stdlib.h> always.
12188         * lib/glthread/tls.h: Likewise.
12189         * lib/glthread/cond.h: Likewise.
12190
12191 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12192
12193         New module 'cond'.
12194         * modules/cond: New file.
12195         * lib/glthread/cond.h: New file.
12196         * lib/glthread/cond.c: New file.
12197         * m4/cond.m4: New file.
12198         * MODULES.html.sh (Multithreading): Add cond.
12199
12200 2008-08-16  Eric Blake  <ebb9@byu.net>
12201
12202         c-stack: fix regression on Irix 5.3 from 2008-06-21
12203         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
12204         sa_sigaction...
12205         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
12206         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
12207         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
12208         * modules/signal (Makefile.am): Use the value.
12209         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
12210         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
12211         * doc/posix-headers/signal.texi (signal.h): Document this
12212         portability issue.
12213         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
12214         Reported by Tom G. Christensen.
12215
12216 2008-08-17  Bruno Haible  <bruno@clisp.org>
12217
12218         New module 'threadlib'.
12219         * modules/threadlib: New file.
12220         * lib/glthread/threadlib.c: New file, extracted from
12221         lib/glthread/lock.c.
12222         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
12223         functions.
12224         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
12225         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
12226         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
12227         macros.
12228         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
12229         (gl_DISABLE_THREADS): Remove macro.
12230         * modules/lock (Files): Remove build-aux/config.rpath.
12231         (Depends-on): Remove havelib. Add threadlib.
12232         (configure.ac-early): Remove section.
12233         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
12234         * modules/tls (Depends-on): Remove lock. Add threadlib.
12235         (Link): New section, copied from threadlib.
12236         * MODULES.html.sh (Multithreading): Add threadlib.
12237
12238 2008-08-14  Bruno Haible  <bruno@clisp.org>
12239
12240         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
12241         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
12242         glthread_rwlock_unlock, glthread_rwlock_destroy,
12243         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
12244         glthread_recursive_lock_destroy): Define as macros always.
12245         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
12246         glthread_lock_lock.
12247         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
12248         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
12249         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
12250         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
12251         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
12252         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
12253         (glthread_recursive_lock_lock_func): Renamed from
12254         glthread_recursive_lock_lock.
12255         (glthread_recursive_lock_unlock_func): Renamed from
12256         glthread_recursive_lock_unlock.
12257         (glthread_recursive_lock_destroy_func): Renamed from
12258         glthread_recursive_lock_destroy.
12259
12260 2008-08-14  Bruno Haible  <bruno@clisp.org>
12261
12262         * lib/glthread/lock.h: Renamed from lib/lock.h.
12263         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
12264         * lib/glthread/tls.h: Renamed from lib/tls.h.
12265         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
12266         * lib/fstrcmp.c: Update includes.
12267         * lib/strsignal.c: Update includes.
12268         * modules/lock (Files, Makefile.am): Update.
12269         (Include): Change to "glthread/lock.h".
12270         * modules/tls (Files, Makefile.am): Update.
12271         (Include): Change to "glthread/tls.h".
12272         * tests/test-lock.c: Update includes.
12273         * tests/test-tls.c: Update includes.
12274         * NEWS: Mention the renamed header files.
12275
12276 2008-08-11  Jim Meyering  <meyering@redhat.com>
12277
12278         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
12279
12280 2008-08-11  Eric Blake  <ebb9@byu.net>
12281
12282         test-c-stack: avoid C99-ism
12283         * tests/test-c-stack.c (main): Fix whitespace, move declaration
12284         before statement.
12285         Reported by Alain Guibert.
12286
12287 2008-08-10  Jim Meyering  <meyering@redhat.com>
12288
12289         ensure that return value of uinttostr et al are not ignored
12290         * lib/inttostr.h (__GNUC_PREREQ): Define.
12291         (__attribute_warn_unused_result__): Define.
12292         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
12293
12294 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
12295
12296         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
12297         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
12298
12299 2008-08-07  Jim Meyering  <meyering@redhat.com>
12300
12301         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
12302
12303         * modules/mkstemp (License): Relicense under LGPLv2+.
12304         * modules/tempname (License): Likewise.
12305
12306 2008-08-06  Bruno Haible  <bruno@clisp.org>
12307
12308         * lib/poll.c (poll): Further micro-optimization.
12309
12310 2008-08-06  Jim Meyering  <meyering@redhat.com>
12311
12312         inet_pton.c: use locale-independent tolower
12313         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
12314         (inet_pton6): Use c_tolower rather than tolower.
12315         * modules/inet_pton (Depends-on): Add c-ctype.
12316
12317 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
12318
12319         * lib/poll.c (poll): Avoid division when timeout is 0, cache
12320         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
12321
12322 2008-08-06  Jim Meyering  <meyering@redhat.com>
12323
12324         * modules/inet_pton (License): Relicense under LGPLv2+.
12325
12326 2008-08-03  Bruno Haible  <bruno@clisp.org>
12327
12328         Additional non-aborting API for lock and tls.
12329         * lib/lock.h: Include <errno.h>.
12330         (glthread_lock_init): New macro/function.
12331         (gl_lock_init): Define as wrapper around glthread_lock_init.
12332         (glthread_lock_lock): New macro/function.
12333         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
12334         (glthread_lock_unlock): New macro/function.
12335         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
12336         (glthread_lock_destroy): New macro/function.
12337         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
12338         (glthread_rwlock_init): New macro/function.
12339         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
12340         (glthread_rwlock_rdlock): New macro/function.
12341         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
12342         (glthread_rwlock_wrlock): New macro/function.
12343         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
12344         (glthread_rwlock_unlock): New macro/function.
12345         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
12346         (glthread_rwlock_destroy): New macro/function.
12347         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
12348         (glthread_recursive_lock_init): New macro/function.
12349         (gl_recursive_lock_init): Define as wrapper around
12350         glthread_recursive_lock_init.
12351         (glthread_recursive_lock_lock): New macro/function.
12352         (gl_recursive_lock_lock): Define as wrapper around
12353         glthread_recursive_lock_lock.
12354         (glthread_recursive_lock_unlock): New macro/function.
12355         (gl_recursive_lock_unlock): Define as wrapper around
12356         glthread_recursive_lock_unlock.
12357         (glthread_recursive_lock_destroy): New macro/function.
12358         (gl_recursive_lock_destroy): Define as wrapper around
12359         glthread_recursive_lock_destroy.
12360         (glthread_once): New macro/function.
12361         (gl_once): Define as wrapper around glthread_once.
12362         Update function declarations.
12363         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
12364         glthread_rwlock_init. Return error code.
12365         (glthread_rwlock_rdlock_multithreaded): Renamed from
12366         glthread_rwlock_rdlock. Return error code.
12367         (glthread_rwlock_wrlock_multithreaded): Renamed from
12368         glthread_rwlock_wrlock. Return error code.
12369         (glthread_rwlock_unlock_multithreaded): Renamed from
12370         glthread_rwlock_unlock. Return error code.
12371         (glthread_rwlock_destroy_multithreaded): Renamed from
12372         glthread_rwlock_destroy. Return error code.
12373         (glthread_recursive_lock_init_multithreaded): Renamed from
12374         glthread_recursive_lock_init. Return error code.
12375         (glthread_recursive_lock_lock_multithreaded): Renamed from
12376         glthread_recursive_lock_lock. Return error code.
12377         (glthread_recursive_lock_unlock_multithreaded): Renamed from
12378         glthread_recursive_lock_unlock. Return error code.
12379         (glthread_recursive_lock_destroy_multithreaded): Renamed from
12380         glthread_recursive_lock_destroy. Return error code.
12381         (glthread_once_call): Make static.
12382         (glthread_once_multithreaded): Renamed from glthread_once.
12383         * lib/tls.h: Include <errno.h>.
12384         (glthread_tls_key_init): New macro/function.
12385         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
12386         (glthread_tls_set): New macro/function.
12387         (gl_tls_set): Define as wrapper around glthread_tls_set.
12388         (glthread_tls_key_destroy): New macro/function.
12389         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
12390         Update function declarations.
12391         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
12392         glthread_tls_get.
12393         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12394
12395 2008-08-04  Eric Blake  <ebb9@byu.net>
12396
12397         gnumakefile: use space, not TAB, outside of targets
12398         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
12399
12400 2008-08-02  Jim Meyering  <meyering@redhat.com>
12401
12402         getdate.y: avoid locale-dependent date parsing failure
12403         In Turkish locales, getdate would fail to recognize keywords
12404         containing a lowercase "i".  The solution is not to rely on
12405         locale-sensitive case-conversion.
12406         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
12407         (lookup_word): Use c_toupper in place of toupper.
12408         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
12409         Reported by Vefa Bicakci <bicave@superonline.com> in
12410         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
12411         * modules/getdate (Depends-on): Add c-ctype.
12412
12413 2008-08-02  Bruno Haible  <bruno@clisp.org>
12414
12415         * gnulib-tool (func_import): When updating or creating a .gitignore
12416         file, prepend each added line with a slash, and ignore leading slashes
12417         from the existing lines.
12418         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12419
12420 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12421
12422         Portability fix for GNU make 3.79.1.
12423         * top/GNUmakefile: Avoid 'else COND', which older GNU make
12424         versions do not understand.
12425
12426 2008-08-01  Bruno Haible  <bruno@clisp.org>
12427
12428         Work around bug of HP-UX 10.20 cc with -0.0 literal.
12429         * tests/test-isnanf.h (zero): New variable.
12430         (main): Avoid literal -0.0f.
12431         * tests/test-isnand.h (zero): New variable.
12432         (main): Avoid literal -0.0.
12433         * tests/test-isnanl.h (zero): New variable.
12434         (main): Avoid literal -0.0L.
12435         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
12436         (test_float, test_double, test_long_double): Avoid literals -0.0f,
12437         -0.0, -0.0L.
12438         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
12439         (test_signbitd): Avoid literal -0.0.
12440         (test_signbitl): Avoid literal -0.0L.
12441         * tests/test-ceilf1.c (zero): New variable.
12442         (main): Avoid literal -0.0f.
12443         * tests/test-ceill.c (zero): New variable.
12444         (main): Avoid literal -0.0L.
12445         * tests/test-floorf1.c (zero): New variable.
12446         (main): Avoid literal -0.0f.
12447         * tests/test-floorl.c (zero): New variable.
12448         (main): Avoid literal -0.0L.
12449         * tests/test-roundf1.c (zero): New variable.
12450         (main): Avoid literal -0.0f.
12451         * tests/test-round1.c (zero): New variable.
12452         (main): Avoid literal -0.0.
12453         * tests/test-roundl.c (zero): New variable.
12454         (main): Avoid literal -0.0L.
12455         * tests/test-truncf1.c (zero): New variable.
12456         (main): Avoid literal -0.0f.
12457         * tests/test-trunc1.c (zero): New variable.
12458         (main): Avoid literal -0.0.
12459         * tests/test-truncl.c (zero): New variable.
12460         (main): Avoid literal -0.0L.
12461         * tests/test-frexp.c (zero): New variable.
12462         (main): Avoid literal -0.0.
12463         * tests/test-frexpl.c (zero): New variable.
12464         (main): Avoid literal -0.0L.
12465         * tests/test-ldexpl.c (zero): New variable.
12466         (main): Avoid literal -0.0L.
12467         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12468         (zerod, zerol): New variables.
12469         (test_function): Avoid literals -0.0, -0.0L.
12470         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12471         (zerod, zerol): New variables.
12472         (test_function): Avoid literals -0.0, -0.0L.
12473         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12474         (zerod, zerol): New variables.
12475         (test_function): Avoid literals -0.0, -0.0L.
12476         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12477         (zerod, zerol): New variables.
12478         (test_function): Avoid literals -0.0, -0.0L.
12479         * tests/test-strtod.c (zero): New variable.
12480         (main): Avoid literal -0.0.
12481         Reported by Jonathan C. Patschke <jp@centtech.com>.
12482
12483 2008-07-31  Jim Meyering  <meyering@redhat.com>
12484
12485         sha256.h: correct definition of SHA224_DIGEST_SIZE
12486         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
12487         Reported by Paulie Pena IV <paulie4@gmail.com>.
12488         Define as 224 / 8, rather than as a literal.
12489         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
12490         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
12491         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
12492
12493 2008-07-31  Bruno Haible  <bruno@clisp.org>
12494
12495         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
12496         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
12497         Reported by Jonathan Patschke <jp@centtech.com>.
12498
12499 2008-07-31  Bruno Haible  <bruno@clisp.org>
12500
12501         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
12502         Reported by Paolo Bonzini <bonzini@gnu.org>.
12503
12504 2008-07-30  Eric Blake  <ebb9@byu.net>
12505
12506         test-strtod: allow compilation without -lm
12507         * tests/test-strtod.c (main): Avoid link dependence on fabs.
12508         Reported by Dennis Clarke <blastwave@gmail.com>.
12509
12510 2008-07-28  Jim Meyering  <meyering@redhat.com>
12511
12512         bootstrap: work also when there are no .po files in po/
12513         * build-aux/bootstrap (update_po_files): Complete the change
12514         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
12515
12516 2008-07-27  Jim Meyering  <meyering@redhat.com>
12517
12518         * users.txt: Add zile.
12519
12520 2008-07-26  Ben Pfaff  <blp@gnu.org>
12521
12522         Add missing dependencies on new m4/exponent[fdl].m4 files.
12523         * modules/isnanf-nolibm: Add m4/exponentf.m4.
12524         * modules/isnand-nolibm: Add m4/exponentd.m4.
12525         * modules/isnanl-nolibm: Add m4/exponentl.m4.
12526         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
12527         m4/isnan[fdl].m4, because the macros actually used moved.
12528         Reported by Jim Meyering.
12529
12530 2008-07-14  Ben Pfaff  <blp@gnu.org>
12531
12532         Add isinf module.
12533         * lib/isinf.c: New file.
12534         * lib/math.in.h: Define isinf macro if we have decided to replace
12535         it.
12536         * m4/isinf.m4: New file.
12537         * m4/math_h.m4: Initialize and substitute variables for isinf
12538         module.
12539         * modules/isinf: New file.
12540         * modules/isinf-tests: New file.
12541         * modules/math: Add substitutions for new module.
12542         * tests/test-isinf.c: New file.
12543         * doc/posix-functions/isinf.texi: Mention new module.
12544         * MODULES.html.sh: Mention new module.
12545
12546 2008-07-14  Ben Pfaff  <blp@gnu.org>
12547
12548         Factor out some macros for use by additional modules.
12549         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
12550         exponentf.m4.
12551         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
12552         exponentd.m4.
12553         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
12554         file exponentl.m4.
12555         * m4/exponentf.m4: New file.
12556         * m4/exponentd.m4: New file.
12557         * m4/exponentl.m4: New file.
12558         * modules/isnanf: Use new file m4/exponentf.m4.
12559         * modules/isnand: Use new file m4/exponentd.m4.
12560         * modules/isnanl: Use new file m4/exponentl.m4.
12561
12562 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
12563
12564         mktime.c: normalize tp->tm_isdst value to -1/0/1.
12565         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
12566         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
12567         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
12568
12569         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
12570         readlink on platforms without PATH_MAX.
12571
12572 2008-07-21  Eric Blake  <ebb9@byu.net>
12573
12574         Warn, not fail, on stale version.
12575         * top/GNUmakefile (_curr-ver): Tone down previous patch.
12576
12577         Don't allow installation with stale devel version number.
12578         * top/GNUmakefile (_is-install-target): New macro.
12579         (_curr-ver): Forbid installation with stale version number.
12580
12581 2008-07-20  Bruno Haible  <bruno@clisp.org>
12582
12583         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
12584         TESTS_ENVIRONMENT.
12585         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
12586
12587 2008-07-20  Bruno Haible  <bruno@clisp.org>
12588
12589         * lib/c-stack.h (c_stack_action): Add documentation.
12590         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
12591
12592 2008-07-20  Bruno Haible  <bruno@clisp.org>
12593
12594         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
12595         * modules/readlink (License): Likewise.
12596
12597 2008-07-17  Eric Blake  <ebb9@byu.net>
12598
12599         * modules/c-stack (Link): Fix typo.
12600
12601         Make c-stack use libsigsegv, when available.
12602         * modules/c-stack (Depends-on): Add libsigsegv.
12603         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
12604         needed.
12605         * lib/c-stack.c (SIGSTKSZ): Define fallback.
12606         (segv_handler, overflow_handler, c_stack_action)
12607         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
12608         implementation when libsigsegv is available, but only when using
12609         the library is necessary.
12610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
12611         comment, explaining why XSI check fails on Linux.
12612         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
12613         * tests/test-c-stack2.sh: Tweak skip message.
12614         * NEWS: Document new link-time requirements.
12615
12616 2008-07-16  Eric Blake  <ebb9@byu.net>
12617
12618         c-stack: Expose false positives when not using libsigsegv.
12619         * modules/c-stack-tests (Files): Expand test.
12620         * tests/test-c-stack.c (main): Add means to conditionally trigger
12621         non-overflow SIGSEGV.
12622         * tests/test-c-stack2.sh: New file.
12623
12624 2008-07-14  Bruno Haible  <bruno@clisp.org>
12625
12626         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
12627         Reported by Eric Blake.
12628
12629 2008-07-14  Sam Steingold  <sds@gnu.org>
12630             Bruno Haible  <bruno@clisp.org>
12631
12632         New module libsigsegv.
12633         * modules/libsigsegv: New file.
12634         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
12635         modifications.
12636         * MODULES.html.sh (Signal handling): New section.
12637
12638 2008-07-14  Bruno Haible  <bruno@clisp.org>
12639
12640         * modules/unictype/ctype-* (Description): Add the word "function".
12641         Improves the resulting doc in MODULES.html.
12642
12643 2008-07-12  Ben Pfaff  <blp@gnu.org>
12644
12645         Add longlong module.
12646         * modules/longlong: New file.
12647
12648 2008-07-12  Bruno Haible  <bruno@clisp.org>
12649
12650         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
12651         to empty.
12652
12653 2008-07-10  Ben Pfaff  <blp@gnu.org>
12654
12655         Add isnan module.
12656         * doc/posix-functions/isnan.texi: Mention new module.
12657         * lib/math.in.h: Define isnan macro if we have decided to replace
12658         it.
12659         * m4/isnan.m4: New file.
12660         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
12661         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
12662         also.
12663         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
12664         redundancy.
12665         * m4/math_h.m4: Initialize and substitute variables for isnan
12666         module.
12667         * modules/isnan: New file.
12668         * modules/isnan-tests: New file.
12669         * modules/math: Add substitutions for new module.
12670         * tests/test-isnan.c: New file.
12671         * MODULES.html.sh: Mention new module.
12672
12673 2008-07-10  Ben Pfaff  <blp@gnu.org>
12674
12675         Add isnanf module.
12676         * lib/isnanf.m4: New file.
12677         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
12678         (gl_HAVE_ISNANF_IN_LIBM): New macro.
12679         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
12680         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
12681         * modules/isnanf: New file.
12682         * modules/isnanf-tests: New file.
12683         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
12684         files.
12685         * tests/test-isnanf-nolibm.c: factored most of its contents into
12686         new file tests/test-isnanf.h.
12687         * tests/test-isnanf.h: New file.
12688         * tests/test-isnanf.c: New file.
12689         * MODULES.html.sh: Mention new module.
12690         * doc/glibc-functions/isnanf.texi: Mention new module.
12691
12692 2008-07-10  Ben Pfaff  <blp@gnu.org>
12693
12694         Add isnand module.
12695         * lib/isnand.h: New file.
12696         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
12697         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
12698         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
12699         functionality also.
12700         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
12701         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
12702         (gl_HAVE_ISNAND_IN_LIBM): New macro.
12703         * modules/isnand: New file.
12704         * modules/isnand-tests: New file.
12705         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
12706         files.
12707         * tests/test-isnand-nolibm.c: factored most of its contents into
12708         new file tests/test-isnand.h.
12709         * tests/test-isnand.h: New file.
12710         * tests/test-isnand.c: New file.
12711         * MODULES.html.sh: Mention new module.
12712
12713 2008-07-10  Ben Pfaff  <blp@gnu.org>
12714
12715         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
12716         * lib/isnand.h: Rename lib/isnand-nolibm.h.
12717         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
12718         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
12719         * modules/isnanf-nolibm: Update references to renamed files.
12720         * modules/isnand-nolibm: Likewise.
12721         * modules/isnanf-nolibm-tests: Likewise.
12722         * modules/isnand-nolibm-tests: Likewise.
12723         * lib/frexp.c: Likewise.
12724         * lib/isfinite.c: Likewise.
12725         * lib/signbitd.c: Likewise.
12726         * lib/signbitf.c: Likewise.
12727         * lib/vasnprintf.c: Likewise.
12728         * tests/test-ceilf1.c: Likewise.
12729         * tests/test-ceilf2.c: Likewise.
12730         * tests/test-floorf1.c: Likewise.
12731         * tests/test-floorf2.c: Likewise.
12732         * tests/test-frexp.c: Likewise.
12733         * tests/test-round1.c: Likewise.
12734         * tests/test-round2.c: Likewise.
12735         * tests/test-roundf1.c: Likewise.
12736         * tests/test-strtod.c: Likewise.
12737         * tests/test-trunc1.c: Likewise.
12738         * tests/test-trunc2.c: Likewise.
12739         * tests/test-truncf1.c: Likewise.
12740         * tests/test-truncf2.c: Likewise.
12741         * NEWS: Mention the renamed header files.
12742
12743 2008-07-11  Jim Meyering  <meyering@redhat.com>
12744
12745         vc-list-files: make the last-resort awk code more portable
12746         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
12747         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
12748         does not support it.
12749
12750 2008-07-10  Eric Blake  <ebb9@byu.net>
12751
12752         Work with tar's bootstrap.
12753         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
12754         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
12755         an m4 comment.
12756
12757 2008-07-09  Jim Meyering  <meyering@redhat.com>
12758
12759         posix-shell.m4: fix typo that made this test malfunction
12760         * m4/posix-shell.m4: Remove capitalization in variable name.
12761
12762 2008-07-08  Bruno Haible  <bruno@clisp.org>
12763
12764         * m4/onceonly.m4: Update comments.
12765         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12766
12767 2008-07-04  Jim Meyering  <meyering@redhat.com>
12768
12769         * users.txt: Add vc-dwim.
12770         (bison, coreutils): Use the gitweb URL.
12771
12772 2008-07-03  Jim Meyering  <meyering@redhat.com>
12773
12774         * users.txt: Add libffcall.  From Sam Steingold.
12775
12776 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
12777
12778         getdate.y: do not ignore TZ with relative day, month or year offset
12779         * lib/getdate.y (get_date): Move the tz-handling block to follow the
12780         relative-date-handling, since otherwise, the latter would clobber the
12781         sole output (an updated Start value) of the tz-handling block.
12782         * tests/test-getdate.c: Tests for the fix
12783
12784 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12785
12786         Recognize 'foo_LIBRARIES += libgnu.a'.
12787         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
12788         makefile snippet has already specified an installation location,
12789         also using '+='.
12790
12791 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
12792
12793         getdate.y: factor out common actions
12794         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
12795         Use them in place of open-coded actions.
12796
12797 2008-07-01  Simon Josefsson  <simon@josefsson.org>
12798
12799         Add self-test for getdate module.
12800         * modules/getdate-tests: New file.
12801         * tests/test-getdate.c: New file.
12802
12803 2008-06-29  Bruno Haible  <bruno@clisp.org>
12804
12805         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
12806         .gitignore.
12807         Reported by Sylvain Beucler <beuc@beuc.net>.
12808
12809 2008-06-29  Bruno Haible  <bruno@clisp.org>
12810
12811         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
12812         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
12813
12814 2008-06-29  Bruno Haible  <bruno@clisp.org>
12815
12816         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
12817         EXTRA_DIST.
12818         Reported by Sylvain Beucler <beuc@beuc.net>.
12819
12820 2008-06-26  Jim Meyering  <meyering@redhat.com>
12821
12822         make several modules depend on the "open" module
12823         This provides slightly increased consistency when opening-for-write
12824         the name of a non-directory spelled with a trailing slash.
12825         * modules/chdir-safer: Likewise.
12826         * modules/chown: Likewise.
12827         * modules/clean-temp: Likewise.
12828         * modules/copy-file: Likewise.
12829         * modules/fchdir: Likewise.
12830         * modules/fcntl-safer: Likewise.
12831         * modules/pipe: Likewise.
12832         * modules/utime: Likewise.
12833         Prompted by Eric Blake and Bruno Haible.
12834
12835 2008-06-24  Andreas Schwab  <schwab@suse.de>
12836
12837         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
12838         literals can be used as initializers for global variables.
12839
12840 2008-06-23  Eric Blake  <ebb9@byu.net>
12841
12842         Make gnulib-cache.m4 easier to diff.
12843         * gnulib-tool (func_import): Allow newlines when reading cached
12844         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
12845
12846 2008-06-23  Bruno Haible  <bruno@clisp.org>
12847
12848         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
12849         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
12850         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
12851         m4/signalblocking.m4.
12852         (gl_PREREQ_SIGACTION): Don't invoke it.
12853         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
12854         gl_PREREQ_SIG_HANDLER_H.
12855         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12856         Don't check for sigaction here.
12857
12858 2008-06-23  Bruno Haible  <bruno@clisp.org>
12859
12860         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
12861         (install_handlers): Don't set the SA_RESETHAND flag.
12862
12863 2008-06-23  Bruno Haible  <bruno@clisp.org>
12864
12865         * m4/sigaction.m4: Comment fixes.
12866         * lib/signal.in.h: Likewise.
12867
12868 2008-06-23  Eric Blake  <ebb9@byu.net>
12869
12870         Fix typo.
12871         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
12872
12873         Avoid SA_ namespace.
12874         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
12875         Reported by Ralf Wildenhues.
12876
12877         Avoid test failure due to SA_RESTORER.
12878         * tests/test-sigaction.c (SA_MASK): New macro.
12879         (main): Avoid failing due to extension flags being set.
12880         Reported by Jim Meyering.
12881
12882         Revert use of sig-handler.h in sigprocmask.c.
12883         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
12884         it requires the existence of struct sigaction.
12885         * lib/sigprocmask.c (handler_t): Restore typedef.
12886         (rpl_signal, old_handlers): Use local type.
12887
12888 2008-06-22  Bruno Haible  <bruno@clisp.org>
12889
12890         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
12891         conditionally.
12892         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12893
12894 2008-06-22  Bruno Haible  <bruno@clisp.org>
12895
12896         * doc/posix-functions/siginterrupt.texi: Move note.
12897
12898         * lib/signal.in.h (SA_RESTART): New macro.
12899         * lib/sigaction.c: Update comment.
12900
12901         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
12902
12903         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
12904         (gl_PREREQ_SIGPROCMASK): Invoke it.
12905         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
12906
12907         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
12908
12909         * lib/sigprocmask.c: Update a comment.
12910
12911 2008-06-21  Eric Blake  <ebb9@byu.net>
12912
12913         Use sigaction module rather than signal().
12914         * modules/c-stack (Depends-on): Add sigaction.
12915         * modules/fatal-signal (Depends-on): Likewise.
12916         * modules/nanosleep (Depends-on): Likewise.
12917         * modules/sigprocmask (Files): Add sig-handler.h.
12918         * modules/sigaction (Files): Likewise.
12919         * lib/sig-handler.h (get_handler): New file, suggested by Paul
12920         Eggert.
12921         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
12922         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
12923         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
12924         (init_fatal_signals): Likewise.
12925         * lib/nanosleep.c (rpl_nanosleep): Likewise.
12926         (siginterrupt): Delete fallback.
12927         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
12928         instead.
12929         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
12930         siginterrupt.
12931
12932         New module sigaction, for mingw.
12933         * modules/sigaction: New module...
12934         * modules/sigaction-tests: ...and its test.
12935         * m4/sigaction.m4: New file.
12936         * lib/sigaction.c: Likewise.
12937         * tests/test-sigaction.c: Likewise.
12938         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
12939         * modules/signal (Makefile.am): Likewise.
12940         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
12941         needed.
12942         * doc/posix-headers/signal.texi (signal.h): Mention provided
12943         types.
12944         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
12945         that sigaction is preferable.
12946         * doc/posix-functions/sigaction.texi (sigaction): Mention new
12947         module.
12948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12949         sigaction.
12950
12951         Improve robustness of sigprocmask by overriding signal.
12952         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
12953         is in use.
12954         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
12955         (SIGKILL, SIGSTOP): Provide fallbacks.
12956         (rpl_signal): Implement.
12957         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
12958         signal can be called inside handlers.
12959
12960         Fix nanosleep module on mingw.
12961         * modules/nanosleep (Depends-on): Add sys_select.
12962         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
12963
12964         Fix licensing of sigprocmask.
12965         * modules/raise (License): Relicense as LGPL.
12966
12967 2008-06-21  Bruno Haible  <bruno@clisp.org>
12968
12969         * lib/propername.c (proper_name_utf8): Don't use the transliterated
12970         result if it contains question marks.
12971         Reported by Michael Geng <linux@michaelgeng.de>.
12972
12973 2008-06-19  Bruno Haible  <bruno@clisp.org>
12974
12975         Fix CVS-ism.
12976         * doc/gnulib.texi: Include updated-stamp.texi.
12977         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
12978         (updated-stamp.texi): New rule.
12979         (gnulib.info): Depend on it.
12980         * doc/.gitignore: Add updated-stamp.texi.
12981         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
12982
12983 2008-06-19  Bruno Haible  <bruno@clisp.org>
12984
12985         * doc/Makefile (gnulib.info): Update and simplify dependencies.
12986         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12987
12988 2008-06-19  Eric Blake  <ebb9@byu.net>
12989
12990         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
12991         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
12992         Reported by Stepan Kasal.
12993
12994 2008-06-18  Bruno Haible  <bruno@clisp.org>
12995
12996         * lib/fatal-signal.c (init_fatal_signals): Add comment.
12997         Reported by Eric Blake.
12998
12999 2008-06-18  Eric Blake  <ebb9@byu.net>
13000
13001         Work around cygwin 1.5.25 strsignal bug.
13002         * tests/test-strsignal.c: Allow for const char *.
13003         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
13004
13005 2008-06-18  Simon Josefsson  <simon@josefsson.org>
13006
13007         * users.txt: Update URL to article and add author/date
13008         information.
13009
13010 2008-06-17  Bruno Haible  <bruno@clisp.org>
13011
13012         New macro gl_DISABLE_THREADS.
13013         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
13014         if the user did not pass --enable-threads or --disable-threads option.
13015         (gl_DISABLE_THREADS): New macro.
13016         Reported by Eric Blake <ebb9@byu.net>.
13017
13018 2008-06-17  Bruno Haible  <bruno@clisp.org>
13019
13020         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
13021         when the macro ignores it.
13022         Based on a patch by Eric Blake <ebb9@byu.net>.
13023
13024 2008-06-17  Bruno Haible  <bruno@clisp.org>
13025
13026         * modules/tls (License): Change to LGPLv2+.
13027         Reported by Eric Blake.
13028
13029 2008-06-17  Eric Blake  <ebb9@byu.net>
13030
13031         Simplify c-stack prerequisites.
13032         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
13033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
13034         no longer requires <ucontext.h> to exist.  Optimize setrlimit
13035         check.
13036         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
13037         <sys/resource.h>.
13038
13039         Move c-stack test into testsuite.
13040         * modules/c-stack-tests: New file.
13041         * lib/c-stack.c [DEBUG]: Move test program...
13042         * tests/test-c-stack.c: ...into this new file.  Skip rather than
13043         fail test if sigaltstack is lacking.
13044         * tests/test-c-stack.sh: New driver file.
13045
13046 2008-06-16  Eric Blake  <ebb9@byu.net>
13047
13048         Use raise module consistently.
13049         * modules/fatal-signal (Depends-on): Add raise.
13050         * modules/sigprocmask (Depends-on): Likewise.
13051         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
13052         * lib/sigprocmask.c (sigprocmask): Likewise.
13053         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13054         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
13055
13056         Fix compliance bug in sigpending.
13057         * lib/sigprocmask.c (sigpending): Return pending array via
13058         parameter, not return value.
13059
13060 2008-06-14  Eric Blake  <ebb9@byu.net>
13061
13062         Improve obstack-printf test code.
13063         * tests/test-obstack-printf.c (test_function): Fix comment, and
13064         simplify usage of obstack_* in macros.  Add a test for coverage.
13065         Reported by Bruno Haible.
13066
13067 2008-06-14  Bruno Haible  <bruno@clisp.org>
13068
13069         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
13070         array size as a constant, not as a const variable.
13071         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
13072         AC_USE_SYSTEM_EXTENSIONS.
13073         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13074         Test whether the obstack_printf function actually exists.
13075         * modules/obstack-printf (Depends-on): Add extensions.
13076         (Include): Remove obstack.h.
13077         * modules/obstack-printf-posix (Depends-on): Add extensions.
13078         (Include): Remove obstack.h.
13079
13080 2008-06-13  Eric Blake  <ebb9@byu.net>
13081
13082         Add obstack-printf and obstack-printf-posix modules.
13083         * modules/obstack-printf: New file.
13084         * modules/obstack-printf-posix: Likewise.
13085         * MODULES.html.sh (Misc): Mention them.
13086         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13087         Likewise.
13088         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13089         Likewise.
13090         * modules/stdio (Makefile.am): Accomodate new modules.
13091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13092         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
13093         Declare.
13094         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
13095         functions.
13096         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
13097         (gl_REPLACE_OBSTACK_PRINTF): New macros
13098         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
13099         * tests/test-obstack-printf.c: New file.
13100         * modules/obstack-printf-tests: Likewise.
13101         * modules/obstack-printf-posix-tests: Likewise.
13102
13103 2008-06-11  Bruno Haible  <bruno@clisp.org>
13104
13105         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
13106         * lib/open.c: Include errno.h.
13107         (open): Fail when attempting to write to a file that has a trailing
13108         slash.
13109         * tests/test-open.c (main): Test against trailing slash bug.
13110         * doc/posix-functions/open.texi: Mention the trailing slash bug.
13111
13112 2008-06-10  Bruno Haible  <bruno@clisp.org>
13113
13114         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
13115         for $? to work inside the trap command, with various /bin/sh-s.
13116         * tests/test-vc-list-files-cvs.sh: Likewise.
13117
13118 2008-06-10  Bruno Haible  <bruno@clisp.org>
13119
13120         * lib/acl-internal.h: Don't include gettext.h here.
13121         * lib/set-mode-acl.c: Include gettext.h here.
13122         * lib/copy-acl.c: Likewise.
13123
13124 2008-06-10  Bruno Haible  <bruno@clisp.org>
13125
13126         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
13127         * lib/wait-process.c (wait_subprocess): Likewise.
13128         * lib/execute.h (execute): Add termsigp argument.
13129         * lib/execute.c (execute): Likewise.
13130         * lib/csharpcomp.c (compile_csharp_using_pnet,
13131         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
13132         * lib/csharpexec.c (execute_csharp_using_pnet,
13133         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
13134         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
13135         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
13136         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
13137         is_jikes_present): Update.
13138         * lib/javaexec.c (execute_java_class): Update.
13139         * lib/javaversion.c (execute_and_read_line): Update.
13140         * NEWS: Document the changes.
13141         Reported by Eric Blake.
13142
13143 2008-06-10  Eric Blake  <ebb9@byu.net>
13144
13145         Add missing include.
13146         * tests/test-strstr.c (includes): Add <signal.h>.
13147         * tests/test-strcasestr.c (includes): Likewise.
13148         * tests/test-memmem.c (includes): Likewise.
13149
13150 2008-06-10  Bruno Haible  <bruno@clisp.org>
13151
13152         * lib/wait-process.c (wait_subprocess): Add an assertion.
13153
13154 2008-06-10  Bruno Haible  <bruno@clisp.org>
13155
13156         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
13157
13158 2008-06-10  Bruno Haible  <bruno@clisp.org>
13159
13160         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
13161         using alarm().
13162         * tests/test-strcasestr.c (main): Likewise.
13163         * tests/test-strstr.c (main): Likewise.
13164
13165 2008-06-09  Bruno Haible  <bruno@clisp.org>
13166
13167         Work around the Solaris 10 ACE ACLs ABI change.
13168         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
13169         declare if ACL_NO_TRIVIAL is present.
13170         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
13171         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
13172         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
13173         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
13174         define if ACL_NO_TRIVIAL is present.
13175         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
13176         and use the current ABI.
13177         (file_has_acl): Use same #if condition as elsewhere.
13178         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
13179         in use, and use the current ABI.
13180         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
13181         Reported by Jim Meyering.
13182
13183 2008-06-09  Eric Blake  <ebb9@byu.net>
13184
13185         Work around environments that (stupidly) ignore SIGALRM.
13186         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
13187         before using alarm().
13188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13189         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13190         Reported by Ian Beckwith <ianb@erislabs.net>.
13191
13192         Produce autobuild blurb earlier in log.
13193         * modules/autobuild (configure.ac-early): Move AB_INIT here.
13194
13195 2008-06-09  Jim Meyering  <meyering@redhat.com>
13196         and Ondřej Vašík  <ovasik@redhat.com>
13197
13198         utimens.c: correct kernel bug work-around
13199         Ondřej Vašík found that the invalid return value of 280 indicates
13200         failure, not success, and the kernel bug we're trying to work
13201         around affects not just the utimensat call, but also the fallback
13202         futimens call.
13203         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
13204         not success.
13205         [HAVE_FUTIMENS]: Use the same work-around, here.
13206
13207 2008-06-09  Jim Meyering  <meyering@redhat.com>
13208
13209         add more guards around definition of ACE_-related code
13210         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
13211         ALLOW and ACE_OWNER are also defined.
13212
13213 2008-06-08  Bruno Haible  <bruno@clisp.org>
13214
13215         * lib/acl-internal.h: Add me as co-author.
13216         * lib/file-has-acl.c: Likewise.
13217         * lib/set-mode-acl.c: Likewise.
13218         * lib/copy-acl.c: Likewise.
13219
13220 2008-06-08  Bruno Haible  <bruno@clisp.org>
13221
13222         Add support for AIX ACLs.
13223         * lib/acl-internal.h (acl_nontrivial): New declaration.
13224         * lib/file-has-acl.c (acl_nontrivial): New function.
13225         (file_has_acl): Add implementation using AIX 4 ACL API.
13226         * lib/set-mode-acl.c (qset_acl): Likewise.
13227         * lib/copy-acl.c (qcopy_acl): Likewise.
13228
13229 2008-06-08  Bruno Haible  <bruno@clisp.org>
13230
13231         Add support for HP-UX ACLs.
13232         * lib/acl-internal.h (acl_nontrivial): New declaration.
13233         * lib/file-has-acl.c (acl_nontrivial): New function.
13234         (file_has_acl): Add implementation using HP-UX 11 ACL API.
13235         * lib/set-mode-acl.c (qset_acl): Likewise.
13236         * lib/copy-acl.c (qcopy_acl): Likewise.
13237
13238 2008-06-08  Bruno Haible  <bruno@clisp.org>
13239
13240         Add support for Cygwin ACLs.
13241         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
13242         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
13243         the chmod_or_fchmod call.
13244         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
13245
13246 2008-06-08  Bruno Haible  <bruno@clisp.org>
13247
13248         Fix bug with setuid modes in Solaris 10+ code.
13249         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
13250         succeeded, when the mode contains some special bits.
13251
13252 2008-06-08  Bruno Haible  <bruno@clisp.org>
13253
13254         Add support for Solaris 7..10 ACLs.
13255         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
13256         declarations.
13257         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
13258         functions.
13259         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
13260         * lib/set-mode-acl.c (qset_acl): Likewise.
13261         * lib/copy-acl.c (qcopy_acl): Likewise.
13262
13263 2008-06-08  Bruno Haible  <bruno@clisp.org>
13264
13265         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
13266         declaration.
13267         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
13268         (acl_access_nontrivial): Remove MacOS X case.
13269         (file_has_acl): Use acl_extended_nontrivial.
13270         * lib/copy-acl.c (qcopy_acl): Likewise.
13271
13272 2008-06-08  Bruno Haible  <bruno@clisp.org>
13273
13274         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
13275
13276 2008-06-08  Jim Meyering  <meyering@redhat.com>
13277
13278         * modules/acl (Maintainer): Add Bruno Haible.
13279
13280 2008-06-07  Bruno Haible  <bruno@clisp.org>
13281
13282         Improve support for Tru64 ACLs.
13283         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
13284         ACL on OSF/1.
13285
13286 2008-06-07  Bruno Haible  <bruno@clisp.org>
13287
13288         Add support for MacOS X ACLs.
13289         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
13290         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
13291         * lib/set-mode-acl.c (qset_acl): Likewise.
13292         * lib/copy-acl.c (qcopy_acl): Likewise.
13293
13294 2008-06-07  Bruno Haible  <bruno@clisp.org>
13295
13296         Fix memory leak introduced on 2008-05-22.
13297         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
13298         use.
13299
13300 2008-06-07  Bruno Haible  <bruno@clisp.org>
13301
13302         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
13303         to construct an empty ACL.
13304
13305 2008-06-07  Bruno Haible  <bruno@clisp.org>
13306
13307         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
13308         precisely.
13309         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
13310
13311 2008-06-07  Bruno Haible  <bruno@clisp.org>
13312
13313         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
13314         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
13315
13316 2008-06-07  Bruno Haible  <bruno@clisp.org>
13317
13318         * doc/posix-functions/_setjmp.texi: Explain the use of this function
13319         regardless of POSIX.
13320         * doc/posix-functions/_longjmp.texi: Likewise.
13321         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
13322         SystemV platform in this case.
13323
13324 2008-06-06  Eric Blake  <ebb9@byu.net>
13325
13326         Document abort() bugs.
13327         * doc/posix-functions/abort.texi (abort): Mention anomalies.
13328
13329         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
13330         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
13331         sigsetjmp.
13332         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
13333         siglongjmp, but only as a macro.
13334         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
13335         is obsolete.
13336         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
13337
13338         Tweak documentation to cover cygwin argz bugs.
13339         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
13340         argz bug fix; no code change needed since no cygwin releases
13341         occurred between the last fix and the bug being tested.
13342         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
13343         module and recently fixed cygwin bugs.
13344         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
13345         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
13346         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
13347         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
13348         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
13349         Likewise.
13350         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
13351         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
13352         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
13353         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
13354         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
13355         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
13356         Likewise.
13357
13358         Avoid gcc warning on cygwin.
13359         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
13360         !ACL_NO_TRIVIAL]: Avoid unused variable.
13361
13362 2008-06-05  Eric Blake  <ebb9@byu.net>
13363
13364         Be tolerant of UNKNOWN version in gnulib-tool test dir.
13365         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
13366         git-version-gen fails to come up with a version.
13367         Reported by Simon Josefsson.
13368
13369 2008-06-05  Jim Meyering  <meyering@redhat.com>
13370             Paul Eggert  <eggert@cs.ucla.edu>
13371
13372         utimens.c: work around a probable Linux kernel bug
13373         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
13374         appears to be a kernel bug that causes utimensat to return 280
13375         instead of 0, indicating success.
13376
13377 2008-06-04  Bruno Haible  <bruno@clisp.org>
13378
13379         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
13380         2008-06-01 commit.
13381
13382 2008-06-04  Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
13385         * lib/file-has-acl.c (acl_access_nontrivial): New function.
13386         (file_has_acl): Use it. Save errno afterwards.
13387         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
13388
13389 2008-06-03  Bruno Haible  <bruno@clisp.org>
13390
13391         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
13392         draft code. Simplify #ifs.
13393         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
13394         Put Solaris code after POSIX-draft code. Fix comments regarding
13395         Solaris 10, HP-UX. Mention Cygwin.
13396         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
13397
13398 2008-06-03  Eric Blake  <ebb9@byu.net>
13399
13400         Provide fallback for older kernels.
13401         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
13402         Provide runtime fallback if kernel lacks support.
13403         Reported by Mike Frysinger.
13404
13405 2008-06-02  Bruno Haible  <bruno@clisp.org>
13406
13407         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
13408         it exists.
13409
13410 2008-06-02  Bruno Haible  <bruno@clisp.org>
13411
13412         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
13413         * lib/copy-acl.c (qcopy_acl): Update comment.
13414
13415 2008-06-02  Bruno Haible  <bruno@clisp.org>
13416
13417         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
13418         like ACL APIs.
13419
13420 2008-06-02  Bruno Haible  <bruno@clisp.org>
13421
13422         * tests/test-file-has-acl.sh: Use different code for Cygwin.
13423         * tests/test-set-mode-acl.sh: Likewise.
13424         * tests/test-copy-acl.sh: Likewise.
13425         * tests/test-copy-file.sh: Likewise.
13426
13427 2008-06-02  Bruno Haible  <bruno@clisp.org>
13428
13429         * tests/test-file-has-acl.sh: Remove unused code.
13430
13431 2008-06-01  Bruno Haible  <bruno@clisp.org>
13432
13433         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
13434         (copy_acl): Just a wrapper around qcopy_acl that emits the error
13435         messages.
13436         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
13437
13438 2008-06-01  Bruno Haible  <bruno@clisp.org>
13439
13440         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
13441         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
13442         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
13443         APIs.
13444         * modules/acl-tests (configure.ac): Remove tests now contained in
13445         m4/acl.m4.
13446
13447 2008-06-02  Jim Meyering  <meyering@redhat.com>
13448
13449         announce-gen: use a better key-server host name
13450         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
13451         it may be more consistently reliable.  Suggested by Werner Koch
13452         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
13453
13454 2008-06-01  Bruno Haible  <bruno@clisp.org>
13455
13456         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
13457         Reported by Voroskoi Andras <voroskoi@gmail.com>.
13458
13459 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
13460
13461         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
13462
13463 2008-06-01  Bruno Haible  <bruno@clisp.org>
13464
13465         New ACL tests.
13466         * tests/test-file-has-acl.sh: New file.
13467         * tests/test-file-has-acl.c: New file.
13468         * tests/test-set-mode-acl.sh: New file.
13469         * tests/test-set-mode-acl.c: New file.
13470         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
13471         * tests/test-copy-acl.c: New file.
13472         * modules/acl-tests: New file, based on modules/copy-file-tests.
13473         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
13474         (Depends-on): Add acl-tests.
13475         (configure.ac): Remove checks.
13476         (Makefile.am): Don't create test-sameacls program here any more.
13477
13478 2008-06-01  Bruno Haible  <bruno@clisp.org>
13479
13480         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
13481         * tests/test-sameacls.c: Include progname.h.
13482         (main): Invoke set_program_name. Portability fixes for MacOS X,
13483         Solaris, HP-UX.
13484
13485 2008-06-01  Bruno Haible  <bruno@clisp.org>
13486
13487         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
13488         function.
13489         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
13490
13491 2008-06-01  Bruno Haible  <bruno@clisp.org>
13492
13493         * modules/rpmatch (Depends-on): Add strdup.
13494
13495 2008-06-01  Bruno Haible  <bruno@clisp.org>
13496
13497         * lib/pipe.c: Include unistd-safer.h.
13498         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
13499         * modules/pipe (Depends-on): Add unistd-safer.
13500
13501 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13502
13503         * modules/autobuild (configure.ac): Call AB_INIT.
13504
13505 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13506
13507         * tests/test-getaddrinfo.c: Don't print debug messages by default.
13508         Suggested by Bruno Haible <bruno@clisp.org>.
13509
13510 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13511
13512         * tests/test-base64.c: Cast size_t to unsigned long when invoking
13513         printf.  Use %lu instead of %d.  Reported by Bruno Haible
13514         <bruno@clisp.org>.
13515
13516 2008-05-29  Eric Blake  <ebb9@byu.net>
13517
13518         Prefer new POSIX 200x interfaces over futimesat.
13519         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
13520         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
13521         when available.
13522         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
13523
13524 2008-05-28  Bruno Haible  <bruno@clisp.org>
13525
13526         * modules/stpcpy (License): Change to LGPLv2+.
13527         Requested by David Lutterkort <dlutter@redhat.com>.
13528
13529 2008-05-27  Bruno Haible  <bruno@clisp.org>
13530
13531         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
13532         current mingw.
13533         Reported by Jose E. Marchesi <jemarch@gnu.org>.
13534
13535 2008-05-27  Bruno Haible  <bruno@clisp.org>
13536
13537         * modules/iconv_open (Link): New section, from module 'iconv'.
13538         * modules/striconv (Link): Likewise.
13539         * modules/striconveh (Link): Likewise.
13540         * modules/xstriconv (Link): Likewise.
13541         * modules/unicodeio (Link): Likewise.
13542         * modules/propername (Link): Likewise.
13543         Reported by Jim Meyering.
13544
13545 2008-05-26  Jim Meyering  <meyering@redhat.com>
13546
13547         sha256: do not artificially restrict buffer length to be < 2^32
13548         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
13549         uint32_t to size_t.
13550         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
13551         to match.
13552
13553         avoid unaligned access errors, e.g., on sparc
13554         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
13555         direct access through a possibly-unaligned uint64* pointer.
13556         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
13557         direct access through a possibly-unaligned uint32* pointer.
13558         Prompted by this patch from Tom "spot" Callaway:
13559         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
13560
13561         sha512.c: fix typo in comment
13562         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
13563
13564 2008-05-25  Bruno Haible  <bruno@clisp.org>
13565
13566         * lib/set-mode-acl.c: Renamed from lib/acl.c.
13567         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
13568         (Makefile.am): Update lib_SOURCES.
13569
13570 2008-05-25  Bruno Haible  <bruno@clisp.org>
13571
13572         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
13573
13574 2008-05-25  Jim Meyering  <meyering@redhat.com>
13575
13576         useless-if-before-free: freed expr may have white-space differences
13577         * build-aux/useless-if-before-free: Recognize cases in which the
13578         freed expression differs from the tested one in embedded white
13579         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
13580         $1 was used, so we can't make any regexp shy.  Improved tests now
13581         detect this.
13582
13583         useless-if-before-free: accept white space in the expression.
13584         * build-aux/useless-if-before-free: For now, any white space
13585         in the expression must be identical in the free argument.
13586
13587         useless-if-before-free: efficiency tweak
13588         * build-aux/useless-if-before-free: Make the expression-matching
13589         regexp "shy".
13590         Make the *outer* regexp shy, not the expr-matching one.
13591
13592         update code-in-comment to accept cast of free arg
13593         * build-aux/useless-if-before-free: Update regexp.
13594
13595 2008-05-25  Bruno Haible  <bruno@clisp.org>
13596
13597         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
13598         * modules/copy-file-tests (Files, Makefile.am): Update.
13599         * tests/test-copy-file.c (func_test_copy): Update.
13600
13601 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
13602
13603         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
13604
13605 2008-05-23  Bruno Haible  <bruno@clisp.org>
13606
13607         Improve support for ACLs on OSF/1.
13608         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
13609         Remove fallback for unknown flavors of ACLs.
13610
13611 2008-05-22  Bruno Haible  <bruno@clisp.org>
13612
13613         Add support for ACLs on OSF/1.
13614         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
13615         replacements.
13616         (acl_free_text): New macro fallback.
13617         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
13618         acl_free.
13619         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
13620         acl_free_text function. Require AC_C_INLINE.
13621
13622 2008-05-22  Bruno Haible  <bruno@clisp.org>
13623
13624         Make copy_acl work on MacOS X 10.5.
13625         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
13626         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
13627         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
13628         If MODE_INSIDE_ACL, don't assume that every system has the same text
13629         representation for ACLs as FreeBSD.
13630         * lib/copy-acl.c (copy_acl): Add support for platforms with
13631         !MODE_INSIDE_ACL.
13632         * lib/file-has-acl.c (file_has_acl): Likewise.
13633         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
13634         FreeBSD, MacOS X, or IRIX, respectively.
13635
13636 2008-05-22  Bruno Haible  <bruno@clisp.org>
13637
13638         * lib/acl.h: Don't include <sys/acl.h>.
13639         (GETACLCNT): Move fallback to lib/acl-internal.h.
13640         * lib/acl-internal.h: Include <sys/acl.h> here.
13641         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
13642
13643 2008-05-22  Bruno Haible  <bruno@clisp.org>
13644
13645         Split off copy_acl function to separate file.
13646         * lib/copy-acl.c: New file, extracted from lib/acl.c.
13647         * lib/acl.c (copy_acl): Moved function to separate file.
13648         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
13649         * modules/acl (Files): Add lib/copy-acl.c.
13650         (Makefiles.am): Augment lib_SOURCES.
13651
13652 2008-05-22  Bruno Haible  <bruno@clisp.org>
13653
13654         * modules/copy-file-tests: New file.
13655         * tests/test-copy-file.sh: New file.
13656         * tests/test-copy-file.c: New file.
13657         * tests/test-copy-file-sameacls.c: New file.
13658
13659 2008-05-22  Eric Blake  <ebb9@byu.net>
13660
13661         Avoid gcc warning.
13662         * tests/test-memcmp.c (main): Pass NULL indirectly.
13663
13664 2008-05-21  Bruno Haible  <bruno@clisp.org>
13665
13666         Add reference doc about ACLs.
13667         * doc/acl-resources.txt: New file.
13668         * doc/acl-cygwin.txt: New file.
13669
13670 2008-05-21  Bruno Haible  <bruno@clisp.org>
13671
13672         Avoid one more warning from gcc.
13673         * lib/vasnprintf.c (IF_LINT): Update comments.
13674         (VASNPRINTF): Use it also for the 'prefix' array initializer.
13675
13676 2008-05-21  Jim Meyering  <meyering@redhat.com>
13677
13678         avoid a warning from gcc
13679         * lib/vasnprintf.c (IF_LINT): Define.
13680         (scale10_round_decimal_long_double):
13681         Use it to avoid a "may be used uninitialized" warning.
13682         (scale10_round_decimal_double): Likewise.
13683
13684 2008-05-21  Simon Josefsson  <simon@josefsson.org>
13685
13686         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
13687         declared.
13688
13689 2008-05-20  Bruno Haible  <bruno@clisp.org>
13690
13691         * tests/test-memcmp.c (main): Test also the sign of the result. Test
13692         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
13693
13694 2008-05-20  Simon Josefsson  <simon@josefsson.org>
13695
13696         * modules/memcmp-tests: New file.
13697         * tests/test-memcmp.c: New file.
13698
13699 2008-05-19  Bruno Haible  <bruno@clisp.org>
13700
13701         * modules/propername (Notice, configure.ac): Put quoted "..." into
13702         --keyword option.
13703         * lib/propername.h: Update comments accordingly.
13704         Reported by Eric Blake.
13705
13706 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
13707
13708         * modules/getpass-gnu (Depends-on): Add fseeko.
13709
13710 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13711
13712         * modules/base64-tests: New file.
13713
13714 2008-05-19  Bo Borgerson <gigabo@gmail.com>
13715
13716         * lib/base64.c (base64_decode_ctx): If a decode context structure
13717         was passed in use it to ignore newlines.  If a context structure
13718         was _not_ passed in, continue to treat newlines as garbage (this
13719         is the historical behavior).  Formerly base64_decode.
13720         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13721         takes a decode context structure.
13722         * lib/base64.h (base64_decode): Macro for four-argument calls.
13723         (base64_decode_alloc): Likewise.
13724         * lib/base64.c (base64_decode_ctx): If a decode context structure
13725         was passed in use it to ignore newlines.  If a context structure
13726         was _not_ passed in, continue to treat newlines as garbage (this
13727         is the historical behavior).  Formerly base64_decode.
13728         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13729         takes a decode context structure.
13730         * lib/base64.h (base64_decode): Macro for four-argument calls.
13731         (base64_decode_alloc): Likewise.
13732
13733 2008-05-19  Jim Meyering  <meyering@redhat.com>
13734
13735         avoid a warning from gcc
13736         * lib/trim.c (IF_LINT): Define.
13737         (trim2): Use it to avoid a "may be used uninitialized" warning.
13738
13739         Fix doc typo.
13740         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
13741
13742 2008-05-19  Bruno Haible  <bruno@clisp.org>
13743
13744         * doc/glibc-functions/getpass.texi: Document limits of other
13745         implementations.
13746
13747 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13748             Bruno Haible <bruno@clisp.org>
13749
13750         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
13751
13752 2008-05-18  Bruno Haible  <bruno@clisp.org>
13753
13754         * modules/propername: New file, from GNU gettext.
13755         * lib/propername.h: New file, from GNU gettext.
13756         * lib/propername.c: New file, from GNU gettext.
13757         * MODULES.html.sh (Internationalization functions): Add propername.
13758
13759 2008-05-16  Jim Meyering  <meyering@redhat.com>
13760             Bruno Haible  <bruno@clisp.org>
13761
13762         Avoid some warnings from "gcc -Wshadow".
13763         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
13764
13765 2008-05-15  Eric Blake  <ebb9@byu.net>
13766
13767         Extend previous patch to cygwin 1.7.0.
13768         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
13769         fast implementation in cygwin >= 1.7.0.
13770         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13772
13773 2008-05-15  Bruno Haible  <bruno@clisp.org>
13774
13775         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
13776         implementation in glibc >= 2.9.
13777         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13779
13780 2008-05-15  Bruno Haible  <bruno@clisp.org>
13781
13782         * MODULES.html.sh (Internationalization functions): Remove linebreak.
13783         (Unicode string functions): Add unilbrk/*.
13784         Reported by Karl Berry.
13785
13786 2008-05-15  Eric Blake  <ebb9@byu.net>
13787
13788         Fix violation of <stdbool.h> replacement in regex.
13789         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
13790         * lib/regexec.c (re_search_internal): Likewise.
13791         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
13792
13793 2008-05-15  Jim Meyering  <meyering@redhat.com>
13794
13795         avoid distracting test output when git or cvs is not found
13796         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
13797         * tests/test-vc-list-files-git.sh: Likewise.
13798
13799 2008-05-15  Eric Blake  <ebb9@byu.net>
13800
13801         Glibc finally accepted the memmem speedup code, bugzilla #5514.
13802         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
13803         glibc version.
13804         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13805         * doc/posix-functions/strstr.texi (strstr): Likewise.
13806         * lib/str-two-way.h (MAX): Sychronize with glibc.
13807
13808 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
13809
13810         * lib/regcomp.c (optimize_utf8): Add a note on why we test
13811         opr.ctx_type.
13812         (calc_first): Initialize constraint field.
13813         (duplicate_node_closure): Use it instead of special casing ANCHORS.
13814         Fix grammar.
13815         (duplicate_node): Merge constraint field for all node types.
13816         (calc_eclosure_iter): Look at constraint field for all node types.
13817         * lib/regex_internal.c (create_cd_newstate): Don't look at
13818         opr.ctx_type.
13819
13820 2008-05-14  Bruno Haible  <bruno@clisp.org>
13821
13822         Help GCC to do better code generation.
13823         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
13824         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13825         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
13826         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
13827         Declare with attribute 'malloc' if supported.
13828
13829 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
13830
13831         use "echo STR|wc -c" rather than unportable "expr length STR"
13832         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
13833         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
13834
13835 2008-05-14  Jim Meyering  <meyering@redhat.com>
13836
13837         use dd ibs=$n count=1 ... rather than less-portable head -c$n
13838         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
13839         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
13840         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
13841         via Collin Lasse.
13842
13843 2008-05-14  Eric Blake  <ebb9@byu.net>
13844
13845         Avoid quadratic growth in gl_LIBSOURCES.
13846         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
13847         Suggested by Bruno Haible.
13848
13849         Test xmemdup0.
13850         * modules/xmemdup0-tests: New file.
13851         * tests/test-xmemdup0.c: Likewise.
13852
13853 2008-05-13  Eric Blake  <ebb9@byu.net>
13854
13855         Split xmemdup0 into its own module.
13856         * modules/xmemdup0: New file.
13857         * lib/xmemdup0.h: Likewise.
13858         * lib/xmemdup0.c: Likewise.
13859         * MODULES.html.sh (Memory management functions): Add xmemdup0.
13860         * lib/xalloc.h (xmemdup0): Remove.
13861         * lib/xmalloc.c (xmemdup0): Likewise.
13862
13863 2008-05-13  Eric Blake  <ebb9@byu.net>
13864             Bruno Haible  <bruno@clisp.org>
13865
13866         Reduce number of forks required during autoconf.
13867         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
13868         and gl_LIBSOURCES_DIR.
13869         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
13870         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
13871         m4_syscmd per file.
13872         <m4_foreach_w>: Move...
13873         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
13874
13875 2008-05-13  Eric Blake  <ebb9@byu.net>
13876
13877         * gnulib-tool: Fix various comment typos.
13878
13879 2008-05-12  Bruno Haible  <bruno@clisp.org>
13880
13881         Tailor the linebreaking algorithm.
13882         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
13883
13884 2008-05-12  Bruno Haible  <bruno@clisp.org>
13885
13886         Update to Unicode 5.0.0.
13887         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
13888         LBP_JV, LBP_JT. Redistribute values.
13889         (unilbrk_table): Change size.
13890         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
13891         Unicode TR#14 rev. 22.
13892         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
13893         LBP_JV, LBP_JT. Redistribute values.
13894         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
13895         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
13896         Update.
13897         * lib/unilbrk/lbrkprop1.h: Regenerated.
13898         * lib/unilbrk/lbrkprop2.h: Regenerated.
13899         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
13900         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
13901         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
13902         Likewise.
13903         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
13904         Likewise.
13905         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
13906         result.
13907         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13908         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13909         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13910         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
13911         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
13912         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
13913
13914 2008-05-11  Bruno Haible  <bruno@clisp.org>
13915
13916         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
13917
13918 2008-05-11  Bruno Haible  <bruno@clisp.org>
13919
13920         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
13921         * modules/unilbrk/gen-lbrk: New file.
13922
13923 2008-05-11  Bruno Haible  <bruno@clisp.org>
13924
13925         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
13926         * m4/sha512.m4 (gl_SHA512): Likewise.
13927
13928 2008-05-11  Jim Meyering  <meyering@redhat.com>
13929
13930         New modules: crypto/sha256, crypto/sha512 (from coreutils)
13931         * modules/crypto/sha256: New file.
13932         * modules/crypto/sha512: Likewise.
13933         * lib/sha256.c: Likewise.
13934         * lib/sha256.h: Likewise.
13935         * lib/sha512.c: Likewise.
13936         * lib/sha512.h: Likewise.
13937         * lib/u64.h: Likewise.
13938         * m4/sha256.m4: Likewise.
13939         * m4/sha512.m4: Likewise.
13940         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
13941
13942 2008-05-10  Bruno Haible  <bruno@clisp.org>
13943
13944         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
13945         (Input/Output <stdio.h>): Add xprintf.
13946         (Signal handling <signal.h>): Add strsignal.
13947         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
13948         (Core language properties): Add func.
13949         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
13950         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
13951         strings.
13952         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
13953         (Input/output): New section.
13954         (File system functions): Add openat-die, stat-macros.
13955         (Networking functions): Add sockets.
13956         (Unicode string functions): Add unictype/*.
13957         (Support for building libraries and executables): Add gperf.
13958         (Support for building documentation): Add agpl-3.0.
13959         (Misc): Add nocrash.
13960
13961 2008-05-10  Bruno Haible  <bruno@clisp.org>
13962
13963         * modules/unictype/gen-ctype: New file.
13964
13965 2008-05-10  Jim Meyering  <meyering@redhat.com>
13966
13967         Make chdir-safer.c more efficient on a system with no symlinks.
13968         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
13969         also if ELOOP is zero.  Suggested by Bruno Haible.
13970
13971         Make chdir-safer.c slightly safer.
13972         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
13973         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
13974
13975         Avoid compile failure on systems without ELOOP (like mingw).
13976         * lib/chdir-safer.c (ELOOP): Define if not already defined.
13977         Reported by Bruno Haible.
13978
13979 2008-05-10  Bruno Haible  <bruno@clisp.org>
13980
13981         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
13982         (is_utf8_encoding): Use a case-insensitive comparison.
13983         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
13984         streq.
13985
13986 2008-05-10  Bruno Haible  <bruno@clisp.org>
13987
13988         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
13989         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
13990         * lib/unilbrk/ulc-common.h (iconv_string_length,
13991         iconv_string_keeping_offsets): Remove declarations.
13992         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
13993         Don't include <iconv.h>, streq.h, xsize.h.
13994         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
13995         conversion.
13996         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
13997         <iconv.h>, streq.h, xsize.h.
13998         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
13999         conversion.
14000         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
14001         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
14002         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
14003         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
14004
14005 2008-05-10  Bruno Haible  <bruno@clisp.org>
14006
14007         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
14008         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
14009
14010         * modules/unilbrk/u32-width-linebreaks-tests: New file.
14011         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
14012
14013         * modules/unilbrk/u16-width-linebreaks-tests: New file.
14014         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
14015
14016         * modules/unilbrk/u8-width-linebreaks-tests: New file.
14017         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
14018
14019         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
14020         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
14021
14022         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
14023         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
14024
14025         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
14026         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
14027
14028         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
14029         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
14030
14031 2008-05-10  Bruno Haible  <bruno@clisp.org>
14032
14033         Split up 'linebreak' module.
14034         * lib/unilbrk.h: New file, based on lib/linebreak.h.
14035         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
14036         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
14037         modifications.
14038         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
14039         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
14040         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
14041         lib/linebreak.c.
14042         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
14043         lib/linebreak.c.
14044         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
14045         lib/linebreak.c.
14046         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
14047         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
14048         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
14049         lib/linebreak.c.
14050         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
14051         lib/linebreak.c.
14052         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
14053         lib/linebreak.c.
14054         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
14055         lib/linebreak.c.
14056         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
14057         lib/linebreak.c.
14058         * modules/unilbrk/base: New file.
14059         * modules/unilbrk/tables: New file.
14060         * modules/unilbrk/u8-possible-linebreaks: New file.
14061         * modules/unilbrk/u16-possible-linebreaks: New file.
14062         * modules/unilbrk/u32-possible-linebreaks: New file.
14063         * modules/unilbrk/ulc-common: New file.
14064         * modules/unilbrk/ulc-possible-linebreaks: New file.
14065         * modules/unilbrk/u8-width-linebreaks: New file.
14066         * modules/unilbrk/u16-width-linebreaks: New file.
14067         * modules/unilbrk/u32-width-linebreaks: New file.
14068         * modules/unilbrk/ulc-width-linebreaks: New file.
14069         * lib/linebreak.h: Remove file.
14070         * lib/linebreak.c: Remove file.
14071         * m4/linebreak.m4: Remove file.
14072         * modules/linebreak: Remove file.
14073         * NEWS: Mention the changes.
14074
14075 2008-05-09  Eric Blake  <ebb9@byu.net>
14076
14077         Add xmemdup0.
14078         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
14079         implementation.
14080         * lib/xmalloc.c (xmemdup0): New C implementation.
14081
14082 2008-05-08  Bruno Haible  <bruno@clisp.org>
14083
14084         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
14085
14086 2008-05-07  Eric Blake  <ebb9@byu.net>
14087
14088         Support cross-compilation of <wctype.h>.
14089         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
14090         AC_CACHE_CHECK.
14091
14092 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
14093
14094         * build-aux/vc-list-files: Add support for bzr.
14095
14096 2008-05-03  Jim Meyering  <meyering@redhat.com>
14097
14098         avoid failed assertion with tight malloc
14099         * tests/test-getndelim2.c: Correct an off-by-one assertion.
14100
14101 2008-05-03  Simon Josefsson  <simon@josefsson.org>
14102
14103         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
14104         are needed from arpa/inet.h.
14105         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
14106         Reported by Bruno Haible.
14107
14108 2008-05-02  Jim Meyering  <meyering@redhat.com>
14109
14110         avoid compilation error on FreeBSD 6
14111         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
14112
14113 2008-05-01  Jim Meyering  <meyering@redhat.com>
14114
14115         useless-if-before-free: correct --help's exit status description
14116         * build-aux/useless-if-before-free (usage): Like grep, exit 0
14117         for one or more matches, etc.  Reported by Bruno Haible.
14118
14119         vc-list-files: make the stand-alone gnulib test work
14120         * modules/vc-list-files-tests (configure.ac):
14121         Define and AC_SUBST abs_aux_dir.
14122         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
14123         $(abs_top_srcdir) to each script and having each of them
14124         duplicate the work of setting PATH, set PATH here, using
14125         the new variable, abs_aux_dir instead.
14126         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
14127         * tests/test-vc-list-files-git.sh: Likewise.
14128         Reported by Bruno Haible.
14129
14130 2008-05-01  Bruno Haible  <bruno@clisp.org>
14131
14132         * lib/getndelim2.c (getndelim2): Fix newsize computation during
14133         reallocation. Rename 'done' to 'found_delimiter'.
14134
14135 2008-05-01  Jim Meyering  <meyering@redhat.com>
14136
14137         vc-list-files: accommodate /bin/sh like the one from Solaris 10
14138         * build-aux/vc-list-files: Use `...`, not $(...).
14139
14140 2008-04-30  Jim Meyering  <meyering@redhat.com>
14141
14142         add tests for vc-list-files
14143         * modules/vc-list-files-tests: New module.
14144         * tests/test-vc-list-files-cvs.sh: New file.
14145         * tests/test-vc-list-files-git.sh: New file.
14146
14147         avoid a warning from gcc
14148         * lib/getndelim2.c (IF_LINT): Define.
14149         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
14150
14151         vc-list-files: work properly with build-aux/cvsu, too
14152         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
14153         to all cvs-based clauses.
14154
14155         vc-list-files: work properly in the CVS+awk case, too
14156         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
14157
14158         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
14159         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
14160         take more than one file argument, so .  Add quotes, just in case $dir
14161         ever contains a shell meta-character.  Prompted by Soren Hansen in
14162         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
14163
14164 2008-04-29  Eric Blake  <ebb9@byu.net>
14165
14166         Optimize getndelim2 to use block operations when possible.
14167         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
14168         freadseek, and memchr2.
14169         * lib/getndelim2.c (getndelim2): Use them for block reads.
14170
14171 2008-04-29  Bruno Haible  <bruno@clisp.org>
14172
14173         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
14174         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14175         * modules/inet_ntop (Depends-on): Add extensions.
14176         * modules/inet_pton (Depends-on): Likewise.
14177         Reported by Simon Josefsson.
14178
14179 2008-04-29  Jim Meyering  <meyering@redhat.com>
14180
14181         When the is more than one match in a block, match all of them.
14182         * build-aux/useless-if-before-free: Iterate through each block
14183         until there are no more matches.
14184
14185         Fix broken useless-if-before-free script.
14186         * build-aux/useless-if-before-free: Fix typo: missing "?" after
14187         the expression to match cast of argument to free-like function.
14188
14189 2008-04-29  Eric Blake  <ebb9@byu.net>
14190
14191         Use new header.
14192         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
14193
14194 2008-04-29  Jim Meyering  <meyering@redhat.com>
14195
14196         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
14197         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
14198         by gnulib to exist and to declare e.g., inet_ntop.
14199         Don't include "inet_ntop.h", now removed.
14200
14201         * m4/arpa_inet_h.m4: Remove trailing blanks.
14202
14203 2008-04-29  Eric Blake  <ebb9@byu.net>
14204
14205         Silence valgrind on safe reads beyond potential array bounds.
14206         * lib/rawmemchr.valgrind: New file.
14207         * lib/strchrnul.valgrind: Likewise.
14208         * modules/rawmemchr (Files): Distribute new file.
14209         * modules/strchrnul (Files): Likewise.
14210         Suggested by Bruno Haible.
14211
14212 2008-04-29  Bruno Haible  <bruno@clisp.org>
14213
14214         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
14215         (inet_ntop, inet_pton): Change portability warning's wording.
14216         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
14217         Invoke gl_CHECK_NEXT_HEADERS.
14218         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
14219         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
14220         set ARPA_INET_H.
14221         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14222         * modules/arpa_inet (Description): No longer only for systems that
14223         lack it.
14224         (Depends-on): Add include_next.
14225         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
14226         HAVE_ARPA_INET_H.
14227
14228 2008-04-29  Jim Meyering  <meyering@redhat.com>
14229
14230         * modules/mkdir (License): Re-license as LGPLv2+.
14231
14232 2008-04-29  Bruno Haible  <bruno@clisp.org>
14233
14234         * modules/rawmemchr (Maintainer): Set to Eric.
14235         * modules/strchrnul (Maintainer): Likewise.
14236
14237 2008-04-29  Simon Josefsson  <simon@josefsson.org>
14238
14239         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
14240         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
14241
14242         * modules/arpa_inet (arpa/inet.h): Use them.
14243
14244 2008-04-28  Eric Blake  <ebb9@byu.net>
14245
14246         Test getndelim2.
14247         * modules/getndelim2-tests: New file.
14248         * tests/test-getndelim2.c: Likewise.
14249         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
14250         stream.
14251         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
14252
14253         * MODULES.html.sh: Document new module.
14254
14255 2008-04-20  Bruno Haible  <bruno@clisp.org>
14256
14257         * lib/c-stack.c (die): Use raise.
14258         * modules/c-stack (Depends-on): Add raise.
14259
14260 2008-04-28  Bruno Haible  <bruno@clisp.org>
14261
14262         Expect rpmatch to be declared.
14263         * lib/yesno.c (rpmatch): Remove declaration.
14264
14265         Declare rpmatch.
14266         * lib/stdlib.in.h (rpmatch): New declaration.
14267         * lib/rpmatch.c: Include <stdlib.h> first.
14268         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
14269         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
14270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
14271         HAVE_RPMATCH.
14272         * modules/rpmatch (Depends-on): Add stdlib, extensions.
14273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14274         (Include): Set to <stdlib.h>.
14275         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
14276         HAVE_RPMATCH.
14277         * NEWS: Document the change.
14278
14279 2008-04-28  Bruno Haible  <bruno@clisp.org>
14280
14281         Change rpmatch to use nl_langinfo when appropriate.
14282         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
14283         (N_): New macro.
14284         (localized_pattern): New function/macro.
14285         (try): Remove match, nomatch arguments. Copy the pattern into safe
14286         memory before caching it.
14287         (rpmatch): Use localized_pattern. Add translator comments.
14288         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
14289         Suggested by Eric Blake.
14290         * modules/rpmatch (Depends-on): Add stdbool.
14291
14292 2008-04-28  Eric Blake  <ebb9@byu.net>
14293
14294         Add rawmemchr module, matching glibc.
14295         * modules/string (Makefile.am): New indicator.
14296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
14297         * lib/string.in.h (rawmemchr): Declare when appropriate.
14298         * modules/rawmemchr: New file.
14299         * m4/rawmemchr.m4: Likewise.
14300         * lib/rawmemchr.c: Likewise.
14301         * modules/rawmemchr-tests: Likewise.
14302         * tests/test-rawmemchr.c: Likewise.
14303         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
14304         module.
14305         * modules/strchrnul (Depends-on): Add rawmemchr.
14306         * lib/strchrnul.c (strchrnul): Optimize a corner case.
14307
14308         Whitespace cleanup.
14309         * tests/test-strchrnul.c: Reindent.
14310         * lib/strchrnul.c: Likewise.
14311
14312         Optimize and test strchrnul.
14313         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
14314         * modules/strchrnul-tests: New file.
14315         * tests/test-strchrnul.c: Likewise.
14316
14317         Remove intprops dependency.
14318         * modules/memchr (Depends-on): Remove intprops.
14319         * modules/memrchr (Depends-on): Likewise.
14320         * modules/memchr2 (Depends-on): Likewise.
14321         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
14322         * lib/memrchr.c (__memrchr): Likewise.
14323         * lib/memrchr2.c (memchr2): Likewise.
14324         Reported by Simon Josefsson.
14325
14326 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14327
14328         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
14329         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14330
14331 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14332
14333         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
14334
14335         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
14336
14337         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
14338
14339         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
14340         declarations.
14341         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
14342
14343         * m4/inet_pton.m4: Don't check for header files.
14344
14345         * m4/inet_ntop.m4: Don't check for header files.
14346
14347 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14348
14349         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
14350         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
14351         trigger for cygwin).
14352         Reported by Bruno Haible  <bruno@clisp.org>.
14353
14354 2008-04-28  Bruno Haible  <bruno@clisp.org>
14355
14356         * doc/posix-functions/strdup.texi: Mention mingw problem.
14357
14358 2008-04-27  Bruno Haible  <bruno@clisp.org>
14359
14360         * modules/stat-time-tests (Depends-on): Add sleep.
14361         * tests/test-stat-time.c (force_unlink): New function.
14362         (cleanup): Use it.
14363         (test_mtime): Remove the ctime related tests.
14364         (test_ctime): New function, containing the ctime related tests.
14365         (main): Call test_ctime, except on native Windows platforms.
14366
14367 2008-04-27  Bruno Haible  <bruno@clisp.org>
14368
14369         * lib/rpmatch.c (rpmatch): Add some comments.
14370         Reported by James Youngman <jay@gnu.org>.
14371
14372 2008-04-27  Bruno Haible  <bruno@clisp.org>
14373
14374         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
14375         quiet NaNs.
14376
14377 2008-04-27  Bruno Haible  <bruno@clisp.org>
14378
14379         Make test-yesno.sh work on mingw.
14380         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
14381         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
14382         (main): Set stdin to binary mode.
14383         * modules/yesno-tests (Depends-on): Add binary-io.
14384
14385 2008-04-27  Bruno Haible  <bruno@clisp.org>
14386
14387         Fix 'isfinite' on x86, x86_64, ia64 platforms.
14388         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
14389         argument that lie outside the IEEE 854 domain.
14390         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
14391         (gl_ISFINITE): Use it.
14392         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
14393
14394 2008-04-27  Bruno Haible  <bruno@clisp.org>
14395
14396         Allow local renaming in config.h.
14397         * lib/memrchr.c (memrchr): Don't undefine outside libc.
14398
14399 2008-04-27  Bruno Haible  <bruno@clisp.org>
14400
14401         * lib/memchr.c (__memchr): Change type of 'i'.
14402         * lib/memchr2.c (memchr2): Likewise.
14403
14404 2008-04-26  Eric Blake  <ebb9@byu.net>
14405         and Bruno Haible  <bruno@clisp.org>
14406
14407         Optimize and test memrchr.
14408         * modules/memrchr (Depends-on): Add intprops.
14409         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
14410         * modules/memrchr-tests: New file.
14411         * tests/test-memrchr.c: New file.
14412
14413 2008-04-26  Bruno Haible  <bruno@clisp.org>
14414
14415         Add tentative support for DragonFly BSD.
14416         * lib/stdio-impl.h: Add macros for DragonFly BSD.
14417         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
14418         fp.
14419         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14420         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
14421         * lib/fpurge.c (fpurge): Likewise.
14422         * lib/freadable.c (freaadable): Likewise.
14423         * lib/freadahead.c (freadahead): Likewise.
14424         * lib/freading.c (freading): Likewise.
14425         * lib/freadptr.c (freadptr): Likewise.
14426         * lib/freadseek.c (freadptrinc): Likewise.
14427         * lib/fseeko.c (fseeko): Likewise.
14428         * lib/fseterr.c (fseterr): Likewise.
14429         * lib/fwritable.c (fwritable): Likewise.
14430         * lib/fwriting.c (fwriting): Likewise.
14431
14432 2008-04-26  Bruno Haible  <bruno@clisp.org>
14433
14434         * lib/stdio-impl.h: New file.
14435         * lib/fbufmode.c: Include stdio-impl.h.
14436         (fbufmode): Use fp_, remove redundant #defines.
14437         * lib/fflush.c: Include stdio-impl.h.
14438         (clear_ungetc_buffer): Remove redundant #defines.
14439         * lib/fpurge.c: Include stdio-impl.h.
14440         (fpurge): Remove redundant #defines.
14441         * lib/freadable.c: Include stdio-impl.h.
14442         (freadable): Remove redundant #defines.
14443         * lib/freadahead.c: Include stdio-impl.h.
14444         (freadahead): Remove redundant #defines.
14445         * lib/freading.c: Include stdio-impl.h.
14446         (freading): Remove redundant #defines.
14447         * lib/freadptr.c: Include stdio-impl.h.
14448         (freadptr): Remove redundant #defines.
14449         * lib/freadseek.c: Include stdio-impl.h.
14450         (freadptrinc): Remove redundant #defines.
14451         * lib/fseeko.c: Include stdio-impl.h.
14452         (rpl_fseeko): Remove redundant #defines.
14453         * lib/fseterr.c: Include stdio-impl.h.
14454         (fseterr): Remove redundant #defines.
14455         * lib/fwritable.c: Include stdio-impl.h.
14456         (fwritable: Remove redundant #defines.
14457         * lib/fwriting.c: Include stdio-impl.h.
14458         (fwriting): Remove redundant #defines.
14459         * modules/fbufmode (Files): Add lib/stdio-impl.h.
14460         * modules/fflush (Files): Likewise.
14461         * modules/fpurge (Files): Likewise.
14462         * modules/freadable (Files): Likewise.
14463         * modules/freadahead (Files): Likewise.
14464         * modules/freading (Files): Likewise.
14465         * modules/freadptr (Files): Likewise.
14466         * modules/freadseek (Files): Likewise.
14467         * modules/fseeko (Files): Likewise.
14468         * modules/fseterr (Files): Likewise.
14469         * modules/fwritable (Files): Likewise.
14470         * modules/fwriting (Files): Likewise.
14471
14472 2008-04-26  Bruno Haible  <bruno@clisp.org>
14473
14474         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14475         restore_seek_optimization, update_fpos_cache): New functions, extracted
14476         from rpl_fflush.
14477         (rpl_fflush): Use them.
14478         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
14479         (gl_REPLACE_FFLUSH): Use it.
14480
14481 2008-04-26  Bruno Haible  <bruno@clisp.org>
14482
14483         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
14484         on Solaris.
14485         * tests/test-xstrtoimax.sh: Likewise.
14486         * tests/test-xstrtoumax.sh: Likewise.
14487         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14488
14489 2008-04-26  Bruno Haible  <bruno@clisp.org>
14490
14491         * modules/memchr-tests: New file.
14492         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
14493
14494 2008-04-26  Eric Blake  <ebb9@byu.net>
14495             Bruno Haible  <bruno@clisp.org>
14496
14497         * lib/memchr.c: Include intprops.h.
14498         (__memchr): Optimize parallel detection of matching bytes. Rename local
14499         variables. Add explanatory comments.
14500
14501 2008-04-26  Bruno Haible  <bruno@clisp.org>
14502
14503         Fix module 'memchr', broken since 2000-10-28.
14504         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
14505
14506 2008-04-26  Bruno Haible  <bruno@clisp.org>
14507
14508         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
14509         comments.
14510
14511 2008-04-25  Eric Blake  <ebb9@byu.net>
14512
14513         Use native fstatat on cygwin 1.7.0.
14514         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
14515         first.
14516
14517 2008-04-23  Eric Blake  <ebb9@byu.net>
14518
14519         Improve memchr2 performance.
14520         * lib/memchr2.c (memchr2): Further optimize parallel detection of
14521         NUL bytes.
14522         * modules/memchr2 (Depends-on): Use intprops.h.
14523
14524 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14525
14526         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
14527         an inline function instead of a CPP macro.  Patch by Ben Pfaff
14528         <blp@cs.stanford.edu>.
14529
14530 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14531
14532         * lib/arpa_inet.in.h: New file.
14533
14534         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
14535         (Makefile.am): Sed in substitute header file.
14536
14537         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
14538         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
14539
14540         * modules/inet_ntop (configure.ac): Use
14541         gl_ARPA_INET_MODULE_INDICATOR.
14542
14543         * modules/inet_pton (configure.ac): Use
14544         gl_ARPA_INET_MODULE_INDICATOR.
14545
14546 2008-04-22  Jim Meyering  <meyering@redhat.com>
14547
14548         * modules/verify (License): Re-license as LGPLv2+.
14549
14550 2008-04-22  Simon Josefsson  <simon@josefsson.org>
14551
14552         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
14553         parameter to void* as per POSIX standard (MinGW uses char*).
14554
14555 2008-04-21  Bruno Haible  <bruno@clisp.org>
14556
14557         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14558         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
14559         Define to replacements if REPLACE_ISWCNTRL is 1.
14560         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
14561         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
14562         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
14563         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
14564         what it fixes.
14565         * doc/posix-functions/iswalpha.texi: Likewise.
14566         * doc/posix-functions/iswblank.texi: Likewise.
14567         * doc/posix-functions/iswcntrl.texi: Likewise.
14568         * doc/posix-functions/iswdigit.texi: Likewise.
14569         * doc/posix-functions/iswgraph.texi: Likewise.
14570         * doc/posix-functions/iswlower.texi: Likewise.
14571         * doc/posix-functions/iswprint.texi: Likewise.
14572         * doc/posix-functions/iswpunct.texi: Likewise.
14573         * doc/posix-functions/iswspace.texi: Likewise.
14574         * doc/posix-functions/iswupper.texi: Likewise.
14575         * doc/posix-functions/iswxdigit.texi: Likewise.
14576         Reported by Alain Guibert.
14577
14578 2008-04-21  Bruno Haible  <bruno@clisp.org>
14579
14580         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
14581         Patch by Alain Guibert.
14582
14583 2008-04-21  Bruno Haible  <bruno@clisp.org>
14584
14585         Fix test failures on mingw.
14586         * tests/test-xstrtol.c (print_no_progname): New function.
14587         (main): Install it in error_print_progname hook.
14588         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
14589         * tests/test-xstrtoimax.sh: Likewise.
14590         * tests/test-xstrtoumax.sh: Likewise.
14591
14592 2008-04-21  Bruno Haible  <bruno@clisp.org>
14593
14594         Fix test failure on mingw.
14595         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
14596
14597 2008-04-21  Bruno Haible  <bruno@clisp.org>
14598
14599         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
14600         Actually assign a value.
14601
14602 2008-04-20  Bruno Haible  <bruno@clisp.org>
14603
14604         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
14605         take 2.
14606         * lib/canonicalize.c (canonicalize_file_name): Elide if the
14607         'canonicalize-lgpl' module is also used.
14608         * lib/canonicalize-lgpl.c: Undo last change.
14609         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
14610
14611 2008-04-20  Bruno Haible  <bruno@clisp.org>
14612
14613         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
14614         config.h. Provide _mkdir based fallback for mingw.
14615         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
14616         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
14617         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
14618         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
14619         rather than defining mkdir in config.h.
14620         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
14621         (gl_SYS_STAT_H_DEFAULTS): New macro.
14622         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
14623         HAVE_IO_H any more.
14624         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
14625         HAVE_DECL_MKDIR and HAVE_IO_H.
14626
14627 2008-04-20  Bruno Haible  <bruno@clisp.org>
14628
14629         * lib/isapipe.c: Port to native Windows platforms.
14630
14631 2008-04-20  Bruno Haible  <bruno@clisp.org>
14632
14633         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
14634
14635 2008-04-21  Eric Blake  <ebb9@byu.net>
14636
14637         Work around preprocessors that don't handle UINTMAX_MAX.
14638         * lib/memchr2.c (memchr2): Avoid embedded #if.
14639         Reported by Alain Guibert, fix suggested by Bruno Haible.
14640
14641 2008-04-21  Simon Josefsson  <simon@josefsson.org>
14642
14643         * doc/posix-functions/strftime.texi (strftime): Explain better
14644         Windows incompatibility.  Suggested by Micah Cowan
14645         <micah@cowan.name>.
14646
14647 2008-04-20  Bruno Haible  <bruno@clisp.org>
14648
14649         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
14650         unistr/u8-mblen.
14651
14652 2008-04-20  Bruno Haible  <bruno@clisp.org>
14653
14654         Fix test failure on platforms with non-GNU iconv.
14655         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
14656         (U_TO_U8): Use it, rather than u16_to_u8.
14657         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
14658         units at the end of the input string.
14659         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
14660
14661 2008-04-20  Bruno Haible  <bruno@clisp.org>
14662
14663         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
14664         when the resulting length is 0.
14665         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14666
14667 2008-04-20  Bruno Haible  <bruno@clisp.org>
14668
14669         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
14670         works.
14671         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
14672
14673 2008-04-20  Bruno Haible  <bruno@clisp.org>
14674
14675         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
14676         * modules/tsearch-tests (configure.ac): Test for initstate function.
14677
14678 2008-04-20  Bruno Haible  <bruno@clisp.org>
14679
14680         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
14681         for nlink_t if missing.
14682         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
14683
14684 2008-04-19  Bruno Haible  <bruno@clisp.org>
14685
14686         Work around snprintf bug on Linux libc5.
14687         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
14688         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14689         gl_SNPRINTF_SIZE1.
14690         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14691         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
14692         that test failed.
14693         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14694         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
14695         * modules/snprintf (Files): Add m4/printf.m4.
14696         * modules/vsnprintf (Files): Likewise.
14697         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
14698         * doc/posix-functions/vsnprintf.texi: Likewise.
14699
14700 2008-04-19  Bruno Haible  <bruno@clisp.org>
14701
14702         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
14703         from 0.0058 to less than 10^-7.
14704
14705 2008-04-19  Bruno Haible  <bruno@clisp.org>
14706
14707         Fix rounding when a precision is given.
14708         * lib/vasnprintf.c (is_borderline): New function.
14709         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
14710         9...9x.
14711         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
14712         %e, %g.
14713         * tests/test-vasprintf-posix.c (test_function): Likewise.
14714         * tests/test-snprintf-posix.h (test_function): Likewise.
14715         * tests/test-sprintf-posix.h (test_function): Likewise.
14716         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
14717         * tests/test-printf-posix.h (test_function): Likewise.
14718         * tests/test-printf-posix.output: Update.
14719         Reported by John Darrington <john@darrington.wattle.id.au> via
14720         Ben Pfaff <blp@cs.stanford.edu>.
14721
14722 2008-04-18  Simon Josefsson  <simon@josefsson.org>
14723
14724         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
14725         Suggested by Bruno Haible <bruno@clisp.org>.
14726
14727 2008-04-17  Bruno Haible  <bruno@clisp.org>
14728
14729         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
14730         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
14731         implementation.
14732         Patch by Bruce Merry <bmerry@gmail.com>.
14733
14734 2008-04-17  Simon Josefsson  <simon@josefsson.org>
14735
14736         * doc/posix-functions/strftime.texi (strftime): Mention that %e
14737         doesn't work under Windows.
14738
14739 2008-04-16  Bruno Haible  <bruno@clisp.org>
14740
14741         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
14742         New macros.
14743         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
14744         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
14745         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
14746         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
14747         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
14748         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
14749         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
14750         macros.
14751         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
14752         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
14753         Northern Sotho, Uighur.
14754
14755 2008-04-16  Bruno Haible  <bruno@clisp.org>
14756
14757         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
14758         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
14759         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
14760         Reported by Daniel Bergström <daniel@octocode.com>.
14761
14762 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
14763             Bruno Haible  <bruno@clisp.org>
14764
14765         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
14766         function.
14767         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
14768         New functions, mostly extracted from gl_locale_name_default.
14769         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
14770
14771 2008-04-16  Eric Blake  <ebb9@byu.net>
14772
14773         Adjust strtod detection to catch glibc 2.7 bug.
14774         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
14775         Reported by John Gatewood Ham.
14776
14777 2008-04-16  Bruno Haible  <bruno@clisp.org>
14778
14779         Add tentative support for Linux libc5.
14780         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
14781         * lib/fpurge.c (fpurge): Likewise.
14782         * lib/freadable.c (freadable): Likewise.
14783         * lib/freadahead.c (freadahead): Likewise.
14784         * lib/freading.c (freading): Likewise.
14785         * lib/freadptr.c (freadptr): Likewise.
14786         * lib/freadseek.c (freadptrinc): Likewise.
14787         * lib/fseeko.c (rpl_fseeko): Likewise.
14788         * lib/fseterr.c (fseterr): Likewise.
14789         * lib/fwritable.c (fwritable): Likewise.
14790         * lib/fwriting.c (fwriting): Likewise.
14791         Reported by Alain Guibert <alguibert+bts@free.fr>.
14792
14793 2008-04-15  Bruno Haible  <bruno@clisp.org>
14794
14795         * modules/mathl (configure.ac): Define module indicator.
14796
14797 2008-04-15  Bruno Haible  <bruno@clisp.org>
14798
14799         * lib/logl.c (logl): Remove unused variables.
14800
14801 2008-04-15  Bruno Haible  <bruno@clisp.org>
14802
14803         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
14804         fails.
14805
14806 2008-04-15  Bruno Haible  <bruno@clisp.org>
14807
14808         * lib/trim.c (trim2): Fix argument of isspace() macro.
14809
14810 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
14811
14812         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
14813         to 0.
14814         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
14815
14816 2008-04-14  Bruno Haible  <bruno@clisp.org>
14817
14818         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
14819         AC_LANG_PROGRAM argument.
14820         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
14821         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
14822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14823         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14824         * m4/math_h.m4 (gl_MATH_H): Likewise.
14825         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14826         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14827         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14828         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
14829         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14830         * m4/regex.m4 (gl_REGEX): Likewise.
14831         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
14832         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
14833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14834         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
14835         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
14836         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14837         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14838         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14839
14840 2008-04-14  Jim Meyering  <meyering@redhat.com>
14841
14842         test-strtod: fix typos: s/abs/fabs/
14843         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
14844
14845 2008-04-13  Bruno Haible  <bruno@clisp.org>
14846
14847         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
14848         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
14849         module is also used and while not building the reloc-wrapper.
14850
14851 2008-04-13  Bruno Haible  <bruno@clisp.org>
14852
14853         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
14854
14855 2008-04-13  Bruno Haible  <bruno@clisp.org>
14856
14857         Fix AIX compilation failure introduced on 2008-04-02.
14858         * tests/test-frexp.c (exp): Undefine before redefining.
14859         * tests/test-frexpl.c (exp): Likewise.
14860
14861 2008-04-13  Bruno Haible  <bruno@clisp.org>
14862
14863         Work around a HP-UX stdio bug.
14864         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
14865         * tests/test-ftello.c (main): Likewise.
14866         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
14867         * doc/posix-functions/ftello.texi: Likewise.
14868
14869 2008-04-13  Bruno Haible  <bruno@clisp.org>
14870
14871         Make test-signbit pass on HP-UX/hppa.
14872         * tests/test-signbit.c (minus_zerol): New variable.
14873         (test_signbitl): Use it.
14874
14875 2008-04-13  Bruno Haible  <bruno@clisp.org>
14876
14877         Make truncl work on OSF/1 4.0.
14878         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
14879         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
14880         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
14881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
14882         HAVE_DECL_TRUNCL.
14883         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
14884         HAVE_DECL_TRUNCL.
14885         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
14886
14887 2008-04-13  Bruno Haible  <bruno@clisp.org>
14888
14889         * lib/unictype.h: Remove trailing comma from enumeration definitions.
14890
14891 2008-04-13  Bruno Haible  <bruno@clisp.org>
14892
14893         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
14894         expression, so as to avoid HP-UX 11 cc compiler bug.
14895
14896 2008-04-13  Bruno Haible  <bruno@clisp.org>
14897
14898         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
14899
14900 2008-04-13  Bruno Haible  <bruno@clisp.org>
14901
14902         * lib/git-merge-changelog.c: Remove empty declaration outside of
14903         functions.
14904
14905 2008-04-13  Bruno Haible  <bruno@clisp.org>
14906
14907         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
14908
14909 2008-04-13  Bruno Haible  <bruno@clisp.org>
14910
14911         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
14912         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
14913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
14914         also if it exists but lacks definitions of the SHUT_* macros.
14915         * modules/sys_socket (Description): Update.
14916         Reported by Elbert Pol <e.pol@chello.nl>.
14917
14918 2008-04-13  Bruno Haible  <bruno@clisp.org>
14919
14920         * lib/localcharset.c (OS2): Don't redefine if already defined.
14921         Reported by Elbert Pol <e.pol@chello.nl>.
14922
14923 2008-04-13  Bruno Haible  <bruno@clisp.org>
14924
14925         * lib/binary-io.h [__EMX__]: Include <io.h>.
14926         Reported by Elbert Pol <e.pol@chello.nl>.
14927
14928 2008-04-12  Bruno Haible  <bruno@clisp.org>
14929
14930         * lib/fpucw.h: Enable the definitions also for x86_64.
14931         Needed for NetBSD/x86_64.
14932         Reported by Thomas Klausner <tk@giga.or.at>.
14933
14934 2008-04-12  Bruno Haible  <bruno@clisp.org>
14935
14936         * tests/test-strtod.c: Include isnand.h.
14937         (main): Use isnand instead of isnan.
14938         Reported by Jim Meyering.
14939
14940 2008-04-12  Bruno Haible  <bruno@clisp.org>
14941
14942         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
14943         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14944
14945 2008-04-12  Jim Meyering  <meyering@redhat.com>
14946
14947         * m4/math_h.m4 (gl_MATH_H): Fix typos.
14948
14949 2008-04-12  Bruno Haible  <bruno@clisp.org>
14950
14951         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
14952         Reported by Elbert Pol <e.pol@chello.nl>.
14953
14954 2008-04-12  Eric Blake  <ebb9@byu.net>
14955
14956         Work around Solaris 10 math.h bug.
14957         * m4/math_h.m4 (gl_MATH_H): Check for bug.
14958         (gl_MATH_H_DEFAULTS): Set up default.
14959         * modules/math (Makefile.am): Replace new indicators.
14960         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
14961         * tests/test-math.c (main): Test this.
14962         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
14963         * doc/posix-headers/math.texi (math.h): Mention bug.
14964         Reported by Nelson H. F. Beebe and Jim Meyering.
14965
14966 2008-04-11  Bruno Haible  <bruno@clisp.org>
14967
14968         Adapt to future versions of Apple GCC.
14969         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
14970         Reported by Peter O'Gorman <peter@pogma.com>.
14971
14972 2008-04-11  Bruno Haible  <bruno@clisp.org>
14973
14974         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
14975
14976 2008-04-11  Bruno Haible  <bruno@clisp.org>
14977
14978         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
14979
14980         * modules/getaddrinfo-tests (Makefile.am): Define
14981         test_getaddrinfo_LDADD.
14982
14983 2008-04-11  Bruno Haible  <bruno@clisp.org>
14984
14985         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
14986         (init): Fix syntax error.
14987         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
14988         is declared.
14989
14990 2008-04-11  Bruno Haible  <bruno@clisp.org>
14991
14992         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
14993         * modules/glob (Depends-on): Add stdbool.
14994
14995 2008-04-11  Bruno Haible  <bruno@clisp.org>
14996
14997         * lib/trim.c: Include <string.h>.
14998
14999 2008-04-11  Eric Blake  <ebb9@byu.net>
15000
15001         Avoid compile failure on OS/2.
15002         * lib/regex_internal.h (internal_function): Disable optimization
15003         on OS/2 (__EMX__), where it caused compiler error.
15004         Reported by Elbert Pol.
15005
15006 2008-04-11  Bruno Haible  <bruno@clisp.org>
15007
15008         Flush the standard error stream before aborting. Needed on mingw.
15009         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
15010         * tests/test-array_list.c (ASSERT): Likewise.
15011         * tests/test-array_oset.c (ASSERT): Likewise.
15012         * tests/test-avltree_list.c (ASSERT): Likewise.
15013         * tests/test-avltree_oset.c (ASSERT): Likewise.
15014         * tests/test-avltreehash_list.c (ASSERT): Likewise.
15015         * tests/test-binary-io.c (ASSERT): Likewise.
15016         * tests/test-byteswap.c (ASSERT): Likewise.
15017         * tests/test-c-ctype.c (ASSERT): Likewise.
15018         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
15019         * tests/test-c-strcasestr.c (ASSERT): Likewise.
15020         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
15021         * tests/test-c-strstr.c (ASSERT): Likewise.
15022         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
15023         * tests/test-canonicalize.c (ASSERT): Likewise.
15024         * tests/test-carray_list.c (ASSERT): Likewise.
15025         * tests/test-ceilf1.c (ASSERT): Likewise.
15026         * tests/test-ceilf2.c (ASSERT): Likewise.
15027         * tests/test-ceill.c (ASSERT): Likewise.
15028         * tests/test-count-one-bits.c (ASSERT): Likewise.
15029         * tests/test-fbufmode.c (ASSERT): Likewise.
15030         * tests/test-fflush2.c (ASSERT): Likewise.
15031         * tests/test-floorf1.c (ASSERT): Likewise.
15032         * tests/test-floorf2.c (ASSERT): Likewise.
15033         * tests/test-floorl.c (ASSERT): Likewise.
15034         * tests/test-fopen.c (ASSERT): Likewise.
15035         * tests/test-fpending.c (ASSERT): Likewise.
15036         * tests/test-fprintf-posix.c (ASSERT): Likewise.
15037         * tests/test-fpurge.c (ASSERT): Likewise.
15038         * tests/test-freadable.c (ASSERT): Likewise.
15039         * tests/test-freadahead.c (ASSERT): Likewise.
15040         * tests/test-freading.c (ASSERT): Likewise.
15041         * tests/test-freadptr.c (ASSERT): Likewise.
15042         * tests/test-freadptr2.c (ASSERT): Likewise.
15043         * tests/test-freadseek.c (ASSERT): Likewise.
15044         * tests/test-freopen.c (ASSERT): Likewise.
15045         * tests/test-frexp.c (ASSERT): Likewise.
15046         * tests/test-frexpl.c (ASSERT): Likewise.
15047         * tests/test-fseek.c (ASSERT): Likewise.
15048         * tests/test-fseeko.c (ASSERT): Likewise.
15049         * tests/test-fstrcmp.c (ASSERT): Likewise.
15050         * tests/test-ftell.c (ASSERT): Likewise.
15051         * tests/test-ftello.c (ASSERT): Likewise.
15052         * tests/test-func.c (ASSERT): Likewise.
15053         * tests/test-fwritable.c (ASSERT): Likewise.
15054         * tests/test-fwriting.c (ASSERT): Likewise.
15055         * tests/test-getdelim.c (ASSERT): Likewise.
15056         * tests/test-getline.c (ASSERT): Likewise.
15057         * tests/test-i-ring.c (ASSERT): Likewise.
15058         * tests/test-iconv-utf.c (ASSERT): Likewise.
15059         * tests/test-iconv.c (ASSERT): Likewise.
15060         * tests/test-isfinite.c (ASSERT): Likewise.
15061         * tests/test-isnand.c (ASSERT): Likewise.
15062         * tests/test-isnanf.c (ASSERT): Likewise.
15063         * tests/test-isnanl.h (ASSERT): Likewise.
15064         * tests/test-ldexpl.c (ASSERT): Likewise.
15065         * tests/test-linked_list.c (ASSERT): Likewise.
15066         * tests/test-linkedhash_list.c (ASSERT): Likewise.
15067         * tests/test-localename.c (ASSERT): Likewise.
15068         * tests/test-lseek.c (ASSERT): Likewise.
15069         * tests/test-mbscasecmp.c (ASSERT): Likewise.
15070         * tests/test-mbscasestr1.c (ASSERT): Likewise.
15071         * tests/test-mbscasestr2.c (ASSERT): Likewise.
15072         * tests/test-mbscasestr3.c (ASSERT): Likewise.
15073         * tests/test-mbscasestr4.c (ASSERT): Likewise.
15074         * tests/test-mbschr.c (ASSERT): Likewise.
15075         * tests/test-mbscspn.c (ASSERT): Likewise.
15076         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
15077         * tests/test-mbspbrk.c (ASSERT): Likewise.
15078         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
15079         * tests/test-mbsrchr.c (ASSERT): Likewise.
15080         * tests/test-mbsspn.c (ASSERT): Likewise.
15081         * tests/test-mbsstr1.c (ASSERT): Likewise.
15082         * tests/test-mbsstr2.c (ASSERT): Likewise.
15083         * tests/test-mbsstr3.c (ASSERT): Likewise.
15084         * tests/test-memchr2.c (ASSERT): Likewise.
15085         * tests/test-memmem.c (ASSERT): Likewise.
15086         * tests/test-open.c (ASSERT): Likewise.
15087         * tests/test-printf-frexp.c (ASSERT): Likewise.
15088         * tests/test-printf-frexpl.c (ASSERT): Likewise.
15089         * tests/test-printf-posix.c (ASSERT): Likewise.
15090         * tests/test-quotearg.c (ASSERT): Likewise.
15091         * tests/test-rbtree_list.c (ASSERT): Likewise.
15092         * tests/test-rbtree_oset.c (ASSERT): Likewise.
15093         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
15094         * tests/test-round1.c (ASSERT): Likewise.
15095         * tests/test-roundf1.c (ASSERT): Likewise.
15096         * tests/test-roundl.c (ASSERT): Likewise.
15097         * tests/test-signbit.c (ASSERT): Likewise.
15098         * tests/test-sleep.c (ASSERT): Likewise.
15099         * tests/test-snprintf-posix.c (ASSERT): Likewise.
15100         * tests/test-snprintf.c (ASSERT): Likewise.
15101         * tests/test-sprintf-posix.c (ASSERT): Likewise.
15102         * tests/test-stat-time.c (ASSERT): Likewise.
15103         * tests/test-strcasestr.c (ASSERT): Likewise.
15104         * tests/test-strerror.c (ASSERT): Likewise.
15105         * tests/test-striconv.c (ASSERT): Likewise.
15106         * tests/test-striconveh.c (ASSERT): Likewise.
15107         * tests/test-striconveha.c (ASSERT): Likewise.
15108         * tests/test-strsignal.c (ASSERT): Likewise.
15109         * tests/test-strstr.c (ASSERT): Likewise.
15110         * tests/test-strtod.c (ASSERT): Likewise.
15111         * tests/test-trunc1.c (ASSERT): Likewise.
15112         * tests/test-trunc2.c (ASSERT): Likewise.
15113         * tests/test-truncf1.c (ASSERT): Likewise.
15114         * tests/test-truncf2.c (ASSERT): Likewise.
15115         * tests/test-truncl.c (ASSERT): Likewise.
15116         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
15117         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
15118         * tests/test-vasnprintf.c (ASSERT): Likewise.
15119         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
15120         * tests/test-vasprintf.c (ASSERT): Likewise.
15121         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
15122         * tests/test-vprintf-posix.c (ASSERT): Likewise.
15123         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
15124         * tests/test-vsnprintf.c (ASSERT): Likewise.
15125         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
15126         * tests/test-wcwidth.c (ASSERT): Likewise.
15127         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
15128         * tests/test-xprintf-posix.c (ASSERT): Likewise.
15129         * tests/test-xvasprintf.c (ASSERT): Likewise.
15130         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
15131         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
15132         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
15133         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
15134         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
15135         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
15136         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
15137         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
15138         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
15139         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
15140         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
15141         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
15142         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
15143         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
15144         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
15145         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
15146         * tests/unictype/test-block_list.c (ASSERT): Likewise.
15147         * tests/unictype/test-block_of.c (ASSERT): Likewise.
15148         * tests/unictype/test-block_test.c (ASSERT): Likewise.
15149         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
15150         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
15151         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
15152         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
15153         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
15154         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
15155         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
15156         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
15157         * tests/unictype/test-combining.c (ASSERT): Likewise.
15158         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
15159         * tests/unictype/test-digit.c (ASSERT): Likewise.
15160         * tests/unictype/test-mirror.c (ASSERT): Likewise.
15161         * tests/unictype/test-numeric.c (ASSERT): Likewise.
15162         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
15163         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
15164         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
15165         * tests/unictype/test-scripts.c (ASSERT): Likewise.
15166         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
15167         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
15168         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
15169         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
15170         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
15171         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
15172         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
15173         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
15174         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
15175         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
15176         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
15177         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
15178         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
15179         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
15180         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
15181         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
15182         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
15183         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
15184         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
15185         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
15186         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
15187         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
15188         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
15189         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
15190         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
15191         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
15192         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
15193         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
15194         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
15195         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
15196         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
15197         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
15198         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
15199         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
15200         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
15201         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
15202         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
15203         Reported by Eric Blake.
15204
15205 2008-04-11  Bruno Haible  <bruno@clisp.org>
15206
15207         * lib/wchar.in.h: Tweak comment.
15208
15209 2008-04-11  Bruno Haible  <bruno@clisp.org>
15210
15211         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
15212         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
15213         gl_COMMON.
15214         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
15215
15216 2008-04-11  Bruno Haible  <bruno@clisp.org>
15217
15218         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
15219
15220 2008-04-11  Simon Josefsson  <simon@josefsson.org>
15221
15222         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
15223         of attempting to use non-existing /dev/*random.  Based on patch
15224         from Adam Strzelecki <ono@java.pl> in
15225         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
15226
15227 2008-04-08  Bruno Haible  <bruno@clisp.org>
15228
15229         Add tentative support for emx+gcc.
15230         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
15231         * lib/fpurge.c (fpurge): Likewise.
15232         * lib/freadable.c (freadable): Likewise.
15233         * lib/freadahead.c (freadahead): Likewise.
15234         * lib/freading.c (freading): Likewise.
15235         * lib/freadptr.c (freadptr): Likewise.
15236         * lib/freadseek.c (freadptrinc): Likewise.
15237         * lib/fseeko.c (rpl_fseeko): Likewise.
15238         * lib/fseterr.c (fseterr): Likewise.
15239         * lib/fwritable.c (fwritable): Likewise.
15240         * lib/fwriting.c (fwriting): Likewise.
15241         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
15242
15243 2008-04-09  Eric Blake  <ebb9@byu.net>
15244
15245         Avoid some autoconf warnings.
15246         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
15247         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
15248         * m4/afs.m4 (gl_AFS): Likewise.
15249         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
15250         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
15251         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15252         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
15253         (gl_INTEGER_TYPE_SUFFIX): Likewise.
15254         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
15255         (AC_CHECK_DECLS_ONCE): Likewise.
15256         Rename file...
15257         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
15258         gnulib-tool requires autoconf 2.59 or better.
15259         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
15260
15261 2008-04-08  Eric Blake  <ebb9@byu.net>
15262
15263         Use 'git describe --match' if present (added in git 1.5.5).
15264         * build-aux/git-version-gen: Limit result to tags that match 'v*'
15265         if possible.
15266
15267 2008-04-08  Bruno Haible  <bruno@clisp.org>
15268
15269         Add tentative support for OpenServer.
15270         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
15271         _ptr, _cnt.
15272         * lib/fpurge.c (fpurge): Likewise.
15273         * lib/freadable.c (freadable): Likewise.
15274         * lib/freadahead.c (freadahead): Likewise.
15275         * lib/freading.c (freading): Likewise.
15276         * lib/freadptr.c (freadptr): Likewise.
15277         * lib/freadseek.c (freadptrinc): Likewise.
15278         * lib/fseeko.c (rpl_fseeko): Likewise.
15279         * lib/fseterr.c (fseterr): Likewise.
15280         * lib/fwritable.c (fwritable): Likewise.
15281         * lib/fwriting.c (fwriting): Likewise.
15282         Reported by Roger Cornelius <rac@tenzing.org> and
15283         Brian K. White <brian@aljex.com>.
15284
15285 2008-04-06  Jim Meyering  <meyering@redhat.com>
15286
15287         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
15288
15289 2008-04-06  Bruno Haible  <bruno@clisp.org>
15290
15291         Avoid possible error with non-ASCII bytes in UTF-8 locales.
15292         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
15293         * tests/test-printf-posix.sh: Likewise.
15294         * tests/test-vfprintf-posix.sh: Likewise.
15295         * tests/test-vprintf-posix.sh: Likewise.
15296         * tests/test-xprintf-posix.sh: Likewise.
15297
15298 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15299
15300         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
15301         hide error from 'ls', needed on OS/2.
15302         Report by Elbert Pol <elbert.pol@gmail.com>.
15303
15304 2008-04-04  Eric Blake  <ebb9@byu.net>
15305
15306         Make test-fseeko.c failures meaningful.
15307         * tests/test-fseeko.c: Print line number on failure.
15308         * tests/test-fseek.c: Likewise.
15309         Reported by Nelson H. F. Beebe.
15310
15311         Improve strtod bug detection check.
15312         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
15313         required for Solaris 10.
15314         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
15315
15316 2008-04-04  Bruno Haible  <bruno@clisp.org>
15317
15318         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
15319         by m4/setenv.m4.
15320
15321 2008-04-03  Eric Blake  <ebb9@byu.net>
15322
15323         Ensure sane .version contents.
15324         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
15325         version string.
15326         * build-aux/git-version-gen: Improve documentation.
15327
15328         Make GNU make output nicer.
15329         * top/GNUmakefile [!_have-Makefile]: Add dependency on
15330         MAKECMDGOALS to enforce message for all command line targets.  Set
15331         srcdir for use in maint.mk.
15332
15333         Another maintainer tweak.
15334         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
15335         a target that regenerates version.
15336
15337 2008-04-03  Jim Meyering  <meyering@redhat.com>
15338
15339         vc-list-files: don't cause coreutils "make po-check" failure
15340         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
15341
15342 2008-04-03  Eric Blake  <ebb9@byu.net>
15343
15344         Allow VPATH usage of vc-list-files.
15345         * build-aux/vc-list-files (scriptversion): Add timestamp.
15346         (options): Add --help, --version, -C.
15347         (CVS): Support installed cvsu.
15348
15349 2008-04-02  Bruno Haible  <bruno@clisp.org>
15350
15351         Avoid some "statement with no effect" warnings from gcc.
15352         * tests/test-wctype.c (main): Explicitly ignore unused values.
15353         Reported by Jim Meyering.
15354
15355 2008-04-02  Jim Meyering  <meyering@redhat.com>
15356
15357         Avoid some warnings from "gcc -Wshadow".
15358         * tests/test-frexp.c (exp): Define to a different identifier.
15359         * tests/test-frexpl.c (exp): Likewise.
15360
15361 2008-04-03  Jim Meyering  <meyering@redhat.com>
15362
15363         bootstrap: remove dangling *.[ch] symlinks from lib
15364         * build-aux/bootstrap [dangling symlink removal]: Move find's
15365         -depth option to precede all others, to avoid a warning.
15366         Remove *.[ch] files too, and from "$source_base" (usually lib/).
15367
15368 2008-04-02  Bruno Haible  <bruno@clisp.org>
15369
15370         Avoid some warnings from "gcc -Wshadow".
15371         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
15372         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
15373         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
15374         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
15375         Reported by Jim Meyering.
15376
15377 2008-04-01  Bruno Haible  <bruno@clisp.org>
15378
15379         Fix test to work on IRIX 6.5 with cc.
15380         * tests/test-math.c (numeric_equal): New function.
15381         (main): Use it.
15382
15383 2008-04-01  Bruno Haible  <bruno@clisp.org>
15384
15385         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
15386
15387 2008-04-01  Bruno Haible  <bruno@clisp.org>
15388
15389         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
15390         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15391         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
15392         (Depends-on): Remove math.
15393
15394         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
15395         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15396         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
15397         (Depends-on): Remove math.
15398
15399         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
15400         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15401         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
15402         (Depends-on): Remove math.
15403         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
15404         (Depends-on): Remove math.
15405
15406         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
15407         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15408         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
15409         (Depends-on): Remove math.
15410         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
15411         (Depends-on): Remove math.
15412
15413         * tests/test-round1.c: Include nan.h.
15414         (main): Use NaNd instead of NAN.
15415         * modules/round-tests (Files): Add tests/nan.h.
15416
15417         * tests/test-trunc1.c: Include nan.h.
15418         (main): Use NaNd instead of NAN.
15419         * modules/trunc-tests (Files): Add tests/nan.h.
15420
15421         * tests/test-roundf1.c: Include nan.h.
15422         (main): Use NaNf instead of NAN.
15423         * modules/roundf-tests (Files): Add tests/nan.h.
15424
15425         * tests/test-truncf1.c: Include nan.h.
15426         (main): Use NaNf instead of NAN.
15427         * modules/truncf-tests (Files): Add tests/nan.h.
15428
15429         * tests/test-ceilf1.c: Include nan.h.
15430         (main): Use NaNf instead of NAN.
15431         * modules/ceilf-tests (Files): Add tests/nan.h.
15432
15433         * tests/test-floorf1.c: Include nan.h.
15434         (main): Use NaNf instead of NAN.
15435         * modules/floorf-tests (Files): Add tests/nan.h.
15436
15437         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
15438         (main): Use NaNf instead of NAN.
15439         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
15440
15441         * tests/test-isnand.c: Include nan.h instead of <math.h>.
15442         (main): Use NaNd instead of NAN.
15443         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
15444
15445         * tests/test-frexp.c: Include nan.h.
15446         (main): Use NaNd instead of NAN.
15447         * modules/frexp-tests (Files): Add tests/nan.h.
15448
15449         * lib/isnan.c: Don't include <math.h>.
15450         (FUNC): Don't use NAN macro.
15451         * modules/isnand-nolibm (Depends-on): Remove math.
15452         * modules/isnanf-nolibm (Depends-on): Remove math.
15453         * modules/isnanl (Depends-on): Remove math.
15454         * modules/isnanl-nolibm (Depends-on): Remove math.
15455
15456         * tests/nan.h: New file.
15457
15458 2008-04-01  Eric Blake  <ebb9@byu.net>
15459
15460         Fix typos.
15461         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
15462         values to be the right type.
15463
15464         For now, cater to gnulib strtod inaccuracies.
15465         * tests/test-strtod.c (main): Allow 1-ulp error on expected
15466         fractional results.  While not as nice from a QoI perspective, it
15467         is a quicker patch than correctly implementing decimal to binary
15468         rounding.
15469
15470 2008-03-31  Eric Blake  <ebb9@byu.net>
15471
15472         Guarantee a definition of NAN.
15473         * lib/math.in.h (NAN): Define if missing.
15474         * tests/test-math.c (main): Test it.
15475         * doc/posix-headers/math.texi (math.h): Document this.
15476         * lib/isnan.c (rpl_isnand): Use it.
15477         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
15478         * tests/test-floorf1.c (NaN): Likewise.
15479         * tests/test-frexp.c (NaN): Likewise.
15480         * tests/test-isnand.c (NaN): Likewise.
15481         * tests/test-isnanf.c (NaN): Likewise.
15482         * tests/test-round1.c (NaN): Likewise.
15483         * tests/test-roundf1.c (NaN): Likewise.
15484         * tests/test-snprintf-posix.h (NaN): Likewise.
15485         * tests/test-sprintf-posix.h (NaN): Likewise.
15486         * tests/test-trunc1.c (NaN): Likewise.
15487         * tests/test-truncf1.c (NaN): Likewise.
15488         * tests/test-vasnprintf-posix.c (NaN): Likewise.
15489         * tests/test-vasprintf-posix.c (NaN): Likewise.
15490         * modules/isnand-nolibm (Depends-on): Add math.
15491         * modules/isnanf-nolibm (Depends-on): Likewise.
15492         * modules/isnanl (Depends-on): Likewise.
15493         * modules/isnanl-nolibm (Depends-on): Likewise.
15494         * modules/snprintf-posix-tests (Depends-on): Likewise.
15495         * modules/sprintf-posix-tests (Depends-on): Likewise.
15496         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
15497         * modules/vsprintf-posix-tests (Depends-on): Likewise.
15498         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
15499         * modules/vasprintf-posix-tests (Depends-on): Likewise.
15500
15501 2008-03-31  Bruno Haible  <bruno@clisp.org>
15502
15503         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
15504         * doc/posix-functions/strtod.texi: Likewise.
15505
15506 2008-03-31  Bruno Haible  <bruno@clisp.org>
15507
15508         * tests/test-strtod.c (main): Don't use C99 syntax.
15509
15510 2008-03-31  Bruno Haible  <bruno@clisp.org>
15511
15512         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
15513         Reported by Eric Blake.
15514
15515 2008-03-31  Jim Meyering  <meyering@redhat.com>
15516
15517         Don't compare actual signbit return values.
15518         * tests/test-strtod.c (main): Rather, compare only their
15519         zero/non-zero nature.
15520
15521 2008-03-31  Eric Blake  <ebb9@byu.net>
15522
15523         More strtod documentation.
15524         * doc/posix-functions/strtod.texi (strtod): Interpret more test
15525         failures as distinct bugs.
15526
15527 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15528
15529         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
15530         Problem reported by Erik Benada in
15531         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
15532
15533 2008-03-30  Bruno Haible  <bruno@clisp.org>
15534
15535         * tests/test-strtod.c: Add comments about which assertion fails on which
15536         platform.
15537         * doc/posix-functions/strtod.texi: Add info about many more platforms.
15538
15539 2008-03-30  Eric Blake  <ebb9@byu.net>
15540
15541         Test signbit behavior on zeros.
15542         * tests/test-signbit.c (test_signbitf): Add tests for zero.
15543         (test_signbitd, test_signbitl): Likewise.
15544
15545         More strtod touchups.
15546         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
15547         sign of negative underflow, for now.  Use .5, not .1.
15548         * doc/posix-functions/strtod.texi (strtod): Mention these
15549         limitations.
15550         Reported by Jim Meyering.
15551
15552 2008-03-30  Bruno Haible  <bruno@clisp.org>
15553
15554         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
15555         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
15556
15557 2008-03-30  Bruno Haible  <bruno@clisp.org>
15558
15559         Avoid failure when attempting to return empty iconv results on some
15560         platforms.
15561         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
15562         allocation, don't report ENOMEM when the resulting string is empty.
15563
15564 2008-03-30  Bruno Haible  <bruno@clisp.org>
15565
15566         Fix buffer overrun.
15567         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
15568         Don't consider the width for tmp_length. Check count against tmp_length
15569         before doing the padding. Ensure enough allocation during padding.
15570
15571 2008-03-30  Eric Blake  <ebb9@byu.net>
15572
15573         strtod touchups.
15574         * lib/strtod.c (strtod): Avoid compiler warnings.
15575         Reported by Jim Meyering.
15576
15577 2008-03-30  Bruno Haible  <bruno@clisp.org>
15578
15579         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
15580         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
15581         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
15582         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
15583         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
15584         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
15585         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
15586         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
15587
15588         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
15589         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
15590         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
15591         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
15592         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
15593         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
15594         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
15595         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
15596
15597         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
15598         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
15599         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
15600         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
15601         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
15602         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
15603         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
15604         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
15605
15606         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
15607         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
15608
15609         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
15610         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
15611
15612         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
15613         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
15614
15615         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
15616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
15617         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
15618
15619         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
15620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
15621         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
15622
15623         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
15624         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
15625         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
15626
15627         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
15628         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
15629         * modules/vasprintf (Depends-on): Add EOVERFLOW.
15630
15631         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
15632         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
15633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
15634         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
15635         (Depends-on): Add EOVERFLOW.
15636         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
15637         (Depends-on): Add EOVERFLOW.
15638         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15639         (Depends-on): Add EOVERFLOW.
15640         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15641         (Depends-on): Add EOVERFLOW.
15642         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15643         (Depends-on): Add EOVERFLOW.
15644         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15645         (Depends-on): Add EOVERFLOW.
15646         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15647         (Depends-on): Add EOVERFLOW.
15648         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15649         (Depends-on): Add EOVERFLOW.
15650
15651         * lib/sprintf.c (EOVERFLOW): Remove fallback.
15652         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
15653         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
15654
15655         * lib/snprintf.c (EOVERFLOW): Remove fallback.
15656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
15657         * modules/snprintf (Depends-on): Add EOVERFLOW.
15658
15659         * lib/poll.c (EOVERFLOW): Remove fallback.
15660         * modules/poll (Depends-on): Add EOVERFLOW.
15661
15662         * lib/getugroups.c (EOVERFLOW): Remove fallback.
15663         * modules/getugroups (Depends-on): Add EOVERFLOW.
15664
15665         * lib/getdelim.c (EOVERFLOW): Remove fallback.
15666         * modules/getdelim (Depends-on): Add EOVERFLOW.
15667
15668         * lib/ftell.c (EOVERFLOW): Remove fallback.
15669         * modules/ftell (Depends-on): Add EOVERFLOW.
15670
15671         * lib/fprintf.c (EOVERFLOW): Remove fallback.
15672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
15673         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
15674
15675         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
15676
15677         * modules/EOVERFLOW-tests: New file.
15678         * tests/test-EOVERFLOW.c: New file.
15679
15680         * modules/EOVERFLOW: New file.
15681         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
15682
15683 2008-03-30  Bruno Haible  <bruno@clisp.org>
15684
15685         Fix bug introduced on 2007-06-10.
15686         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
15687         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
15688
15689 2008-03-30  Bruno Haible  <bruno@clisp.org>
15690
15691         Improve freadseek's efficiency after ungetc.
15692         * lib/freadseek.c: Include freadahead.h.
15693         (freadptrinc): New function, extracted from freadseek.
15694         (freadseek): Use it in a loop. Use freadahead to determine the number
15695         of loop iterations.
15696         * modules/freadseek (Depends-on): Add freadahead.
15697         (configure.ac): Require AC_C_INLINE.
15698
15699 2008-03-30  Bruno Haible  <bruno@clisp.org>
15700
15701         * lib/freadseek.c (freadseek): Don't ignore the return value of
15702         freadptr.
15703
15704 2008-03-29  Eric Blake  <ebb9@byu.net>
15705
15706         Add hex float support.
15707         * modules/strtod (Depends-on): Add c-ctype.
15708         (Link): Mention POW_LIB.
15709         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
15710         whitespace between 'e' and exponent.
15711         * tests/test-strtod.c (main): Enable hex float tests.
15712         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
15713         now provides.
15714
15715         Document various strtod bugs, with some fixes.
15716         * doc/posix-functions/strtod.texi (strtod): Document bugs with
15717         "-0x", "inf", "nan", and hex constants.
15718         * doc/posix-functions/atof.texi (atof): Likewise.
15719         * modules/stdlib (Makefile.am): Support strtod.
15720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15721         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
15722         detect additional strtod bugs.
15723         * lib/stdlib.in.h (rpl_strtod): Add declarations.
15724         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
15725         bool where appropriate.  Parse 'inf' and 'nan'.
15726         * tests/test-strtod.c: New file.
15727         * modules/strtod (Depends-on): Add stdbool, stdlib.
15728         (configure.ac): Turn on module indicator.
15729         * modules/strtod-tests: New module.
15730
15731 2008-03-29  Eric Blake  <ebb9@byu.net>
15732
15733         Fix ftell on mingw.
15734         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
15735         * modules/ftell-tests (Depends-on): Add binary-io.
15736         * modules/ftello-tests (Depends-on): Likewise.
15737         * tests/test-ftell.c (main): Enhance test to cover behavior after
15738         ungetc.  Enforce binary mode.
15739         * tests/test-ftello.c (main): Likewise.
15740
15741         Pass test-freadseek on cygwin.
15742         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
15743         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
15744         ungetc buffer.
15745
15746         * tests/test-fflush2.c (main): Fix typo.
15747
15748 2008-03-29  Bruno Haible  <bruno@clisp.org>
15749
15750         * tests/test-fflush2.c (main): Temporarily disable the contents of
15751         this test.
15752         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
15753         Reported by Eric Blake.
15754
15755 2008-03-28  Simon Josefsson  <simon@josefsson.org>
15756
15757         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
15758         (GC_SHA224_DIGEST_SIZE): Add.
15759
15760         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
15761         (gc_hash_digest_length): Likewise.
15762         (gc_hash_buffer): Likewise.
15763
15764 2008-03-25  Bruno Haible  <bruno@clisp.org>
15765
15766         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
15767         detail which gettext release to use.
15768         Reported by Simon Josefsson.
15769
15770 2008-03-26  Jim Meyering  <meyering@redhat.com>
15771
15772         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
15773         * modules/gnumakefile (clean-GNUmakefile): Also, use
15774         test ... && ... || : syntax rather than if-then ... fi.
15775
15776         gnumakefile: Don't double-quote-expand $(VPATH) value.
15777         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
15778
15779 2008-03-24  Eric Blake  <ebb9@byu.net>
15780
15781         Alter GNUmakefile to install into top directory.
15782         * modules/maintainer-makefile: Split, and add dependency...
15783         * modules/gnumakefile: to this new module.
15784         * build-aux/GNUmakefile: Move...
15785         * top/GNUmakefile: ...here.
15786         * build-aux/maint.mk: Move...
15787         * top/maint.mk: ...here.
15788         * MODULES.html.sh (Support for maintaining...): Document new
15789         module.
15790
15791 2008-03-23  Bruno Haible  <bruno@clisp.org>
15792
15793         * gnulib-tool: New options --vc-files, --no-vc-files.
15794         (func_usage): Document them.
15795         (vc_files): New variable.
15796         (func_import): Consider vc_files.
15797         (func_create_testdir): Set vc_files to empty.
15798         Suggested by Jim Meyering and Karl Berry.
15799
15800 2008-03-23  Bruno Haible  <bruno@clisp.org>
15801
15802         Fix regex compilation error on HP-UX 11.
15803         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
15804         * modules/regex (Files): Add m4/mbstate_t.m4.
15805         Reported by Ton Voon <ton.voon@altinity.com>.
15806
15807 2008-03-23  Bruno Haible  <bruno@clisp.org>
15808
15809         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
15810
15811 2008-03-23  Eric Blake  <ebb9@byu.net>
15812             Bruno Haible  <bruno@clisp.org>
15813
15814         Install files from top/ in the destination directory.
15815         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
15816         augmentation also for the files from top/.
15817         (func_import, func_create_testdir): Rewrite file names:
15818         top/filename -> filename.
15819
15820 2008-03-23  Bruno Haible  <bruno@clisp.org>
15821
15822         Tweak "gnulib --version" output.
15823         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
15824
15825 2008-03-23  Bruno Haible  <bruno@clisp.org>
15826
15827         Tweak "gnulib --version" output.
15828         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
15829         rather than contents of ChangeLog, when possible.
15830
15831 2008-03-21  Eric Blake  <ebb9@byu.net>
15832
15833         More --version tweaks.
15834         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
15835         date of last ChangeLog entry.
15836
15837 2008-03-21  Jim Meyering  <meyering@redhat.com>
15838
15839         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
15840
15841 2008-03-20  Eric Blake  <ebb9@byu.net>
15842
15843         VPATH fix.
15844         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
15845
15846 2008-03-20  Simon Josefsson  <simon@josefsson.org>
15847
15848         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
15849         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
15850
15851 2008-03-20  Eric Blake  <ebb9@byu.net>
15852
15853         Sync GNUmakefile with coreutils.
15854         * build-aux/GNUmakefile (have-Makefile): Rename...
15855         (_have-Makefile): ...to this, for namespace consideration.
15856         (GNUmakefile.cfg): Include, if present.
15857         (_autoreconf): Define a default.
15858         (_is-dist-target): New rule for rebuilds to pick up intra-release
15859         version.
15860         (maint-cfg.mk): Rename...
15861         (cfg.mk): ...to this.
15862
15863 2008-03-18  Jim Meyering  <meyering@redhat.com>
15864
15865         New script and module: mktempd
15866         * MODULES.html.sh (maint+release support): Add mktempd.
15867         * build-aux/mktempd: New file.
15868         * modules/mktempd: New file.
15869
15870 2008-03-15  Jim Meyering  <meyering@redhat.com>
15871
15872         Undo last change.
15873         * lib/sha1.c, lib/md5.c: 63 != ~63.
15874         Reported by Andreas Schwab.
15875
15876         sha1.c, md5.c: Hoist a redundant expression.
15877         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
15878         "ctx->buflen" only once, before calling *_process_block.
15879         * lib/md5.c (md5_process_bytes): Likewise.
15880
15881 2008-03-14  Eric Blake  <ebb9@byu.net>
15882
15883         Bump copyright year in files generated by gnulib-tool.
15884         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
15885         gnulib-tool, rather than hard-coding it.
15886
15887         Fix 'gnulib-tool --version' output to work with git.
15888         * gnulib-tool (func_gnulib_dir): New function, extracted from...
15889         (startup): ...here.
15890         (func_version): Use it to invoke git-version-gen, rather than
15891         relying on CVS keyword expansion.  Modernize wording.
15892         (cvsdatestamp, last_checkin_date, version): Kill unused
15893         variables.
15894
15895 2008-03-12  Jim Meyering  <meyering@redhat.com>
15896
15897         Recognize optional cast of the argument to free.
15898         * build-aux/useless-if-before-free: Update regexps.
15899
15900         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
15901
15902 2008-03-11  Bruno Haible  <bruno@clisp.org>
15903
15904         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
15905         by a single package.
15906         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
15907         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
15908         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
15909         Reported by Sam Steingold <sds@gnu.org>.
15910
15911 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15912
15913         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
15914         repositories.
15915
15916 2008-03-11  Bruno Haible  <bruno@clisp.org>
15917
15918         Avoid conflicts between local macro definitions.
15919         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15920         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
15921
15922 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
15923             Bruno Haible  <bruno@clisp.org>
15924
15925         Make va_copy work with some version of xlc on AIX 5.1.
15926         * lib/stdarg.in.h: New file.
15927         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
15928         On AIX, use a <stdarg.h> file substitute.
15929         * modules/stdarg (Files): Add lib/stdarg.in.h.
15930         (Depends-on): Add include_next.
15931         (Makefile.am): Build a stdarg.h substitute if requested.
15932         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
15933
15934 2008-03-10  Bruno Haible  <bruno@clisp.org>
15935
15936         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
15937         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15938         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15939
15940 2008-03-10  Bruno Haible  <bruno@clisp.org>
15941
15942         * modules/stdlib (Depends-on): Add include_next, remove
15943         absolute-header.
15944
15945 2008-03-09  Bruno Haible  <bruno@clisp.org>
15946
15947         * lib/freadahead.h (freadahead): Document more precisely.
15948         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
15949         the sum of both buffer sizes.
15950         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
15951         * NEWS: Document the change.
15952
15953 2008-03-09  Bruno Haible  <bruno@clisp.org>
15954
15955         Extend freadptr to return also the buffer size.
15956         * lib/freadptr.h (freadptr): Add sizep argument.
15957         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
15958         (freadptr): Add sizep argument. Determine buffer size like freadahead
15959         does.
15960         * tests/test-freadptr.c: Don't include freadahead.h.
15961         (main): Adapt for new calling convention of freadptr.
15962         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
15963         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
15964         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
15965         tests/test-freadptr2.sh.
15966         (Depends): Remove freadahead.
15967         (TESTS): Add test-freadptr2.sh.
15968         (check_PROGRAMS): Add test-freadptr2.
15969
15970 2008-03-09  Bruno Haible  <bruno@clisp.org>
15971
15972         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
15973         Report and solution by Simon Josefsson.
15974
15975 2008-03-06  Bruno Haible  <bruno@clisp.org>
15976
15977         Make fflush after ungetc work on BSD platforms.
15978         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
15979         * tests/test-fflush2.c: New file.
15980         * tests/test-fflush2.sh: New file.
15981         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
15982         tests/test-fflush2.c.
15983         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
15984         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
15985
15986 2008-03-06  Eric Blake  <ebb9@byu.net>
15987
15988         Likewise for ftello.
15989         * modules/ftello (Dependencies): Add extensions.
15990         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
15991
15992 2008-03-06  Bruno Haible  <bruno@clisp.org>
15993
15994         * modules/fseeko (Dependencies): Add extensions.
15995         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
15996         Needed on glibc systems.
15997
15998 2008-03-06  Bruno Haible  <bruno@clisp.org>
15999
16000         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
16001         email address.
16002         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16003
16004 2008-03-06  Bruno Haible  <bruno@clisp.org>
16005
16006         * users.txt: Add libgnupdf.
16007
16008 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16009
16010         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
16011         (Header File Substitutes, Function Substitutes,
16012         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
16013         (Build robot for gnulib): Fix typo.
16014
16015 2008-03-06  Bruno Haible  <bruno@clisp.org>
16016
16017         * doc/gnulib-tool.texi (VCS Issues): Small updates.
16018         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16019
16020 2008-03-06  Bruno Haible  <bruno@clisp.org>
16021
16022         * doc/func.texi: New file, extracted from doc/gnulib.texi.
16023         * doc/gnulib.texi: Include it.
16024
16025 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16026
16027         * modules/func (License): Change license to unlimited; there was
16028         no LGPL parts in the module anyway.
16029
16030 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16031
16032         * modules/__func__: Renamed to modules/func.
16033         * modules/__func__-tests: Renamed to modules/func-tests.
16034         * tests/test-__func__.c: Renamed to tests/test-func.c.
16035         * m4/__func__.m4: Renamed to m4/func.m4.
16036         * doc/gnulib.texi (__func__): Section renamed to func.
16037         Suggested by Eric Blake <ebb9@byu.net>.
16038
16039 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16040
16041         * doc/gnulib.texi (__func__): Use C99 terminology when talking
16042         about __func__.  Make example self-contained.  Suggested by Eric
16043         Blake <ebb9@byu.net>.
16044
16045         * tests/test-__func__.c (main): Avoid extraneous () around __func.
16046         Suggested by Eric Blake <ebb9@byu.net>.
16047
16048 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16049
16050         * modules/__func__: New file.
16051         * modules/__func__-tests: New file.
16052         * tests/test-__func__.c: New file.
16053         * m4/__func__.m4: New file.
16054         * doc/gnulib.texi (__func__): Document __func__ module.
16055
16056 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16057
16058         * modules/byteswap (License): Re-license as LGPLv2+.
16059
16060 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16061
16062         * doc/Makefile: Add pdf target.
16063
16064 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16065
16066         * modules/inline (License): Use 'unlimited', since there are only
16067         *.m4 files in this module.
16068
16069 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
16070             Bruno Haible  <bruno@clisp.org>
16071
16072         Add support for HP C 7.1 on OpenVMS 8.3.
16073         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
16074
16075 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
16076
16077         Update VMS specifics.
16078         * lib/getopt.c [VMS]: Remove include of unixlib.h.
16079
16080 2008-03-02  Jim Meyering  <meyering@redhat.com>
16081
16082         Remove the last dependency on the "free" module.
16083         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
16084         Reported by Bob Proulx.
16085
16086         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
16087
16088         Remove useless "if" tests before free.  Deprecate "free" module.
16089         * doc/posix-functions/free.texi: Mention that this
16090         module is no longer useful.
16091         * modules/free (Notice): Say this module is obsolete.
16092         * modules/readutmp (Depends-on): Remove free.
16093         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
16094         * lib/putenv.c (putenv): Likewise.
16095         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
16096         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
16097         * tests/test-c-strcasestr.c (main): Likewise.
16098         * tests/test-c-strstr.c (main): Likewise.
16099         * tests/test-mbscasestr1.c (main): Likewise.
16100         * tests/test-mbscasestr2.c (main): Likewise.
16101         * tests/test-mbsstr1.c (main): Likewise.
16102         * tests/test-mbsstr2.c (main): Likewise.
16103         * tests/test-memmem.c (main): Likewise.
16104         * tests/test-strcasestr.c (main): Likewise.
16105         * tests/test-striconv.c (main): Likewise.
16106         * tests/test-striconveh.c (main): Likewise.
16107         * tests/test-striconveha.c (main): Likewise.
16108         * tests/test-strstr.c (main): Likewise.
16109
16110         * build-aux/git-version-gen: Adjust a comment and the Usage string.
16111
16112         bootstrap: sync from coreutils again
16113         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
16114
16115 2008-03-01  Jim Meyering  <meyering@redhat.com>
16116
16117         bootstrap: sync from coreutils
16118         * build-aux/bootstrap (update_po_files): Copy a .po file into place
16119         also when the target doesn't exist.
16120
16121 2008-03-01  Eric Blake  <ebb9@byu.net>
16122
16123         Fix bugs in last patch.
16124         * lib/memchr2.c (memchr2): Fix typo.
16125         * tests/test-memchr2.c: Test previous bug, and don't use GNU
16126         extension.
16127         Reported by Bruce Korb.
16128
16129         New module 'memchr2'.
16130         * modules/memchr2: New file.
16131         * modules/memchr2-tests: Likewise.
16132         * lib/memchr2.h: Likewise.
16133         * lib/memchr2.c: Likewise, based on memchr.c.
16134         * tests/test-memchr2.c: New test.
16135         * MODULES.html.sh (String handling): Add memchr2.
16136
16137 2008-02-29  Bruno Haible  <bruno@clisp.org>
16138
16139         * modules/freadseek-tests: New file.
16140         * tests/test-freadseek.sh: New file.
16141         * tests/test-freadseek.c: New file.
16142
16143         New module 'freadseek'.
16144         * modules/freadseek: New file.
16145         * lib/freadseek.h: New file.
16146         * lib/freadseek.c: New file.
16147         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
16148
16149 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
16150
16151         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
16152         wydawca.
16153
16154         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
16155         program_invocation_name and program_invocation_short_name are
16156         present.
16157
16158 2008-02-28  Bruno Haible  <bruno@clisp.org>
16159
16160         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
16161         * tests/test-freadptr.sh: Also test non-seekable stdin.
16162
16163 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
16164
16165         * build-aux/bootstrap (source_base, m4_base)
16166         (doc_base, tests_base): New variables.
16167         (gnulib_tool_options): Do not hardcode base directories, use
16168         the above variables instead.
16169
16170 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
16171
16172         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
16173
16174 2008-02-28  Bruno Haible  <bruno@clisp.org>
16175
16176         * modules/freadptr-tests: New file.
16177         * tests/test-freadptr.sh: New file.
16178         * tests/test-freadptr.c: New file.
16179
16180         New module 'freadptr'.
16181         * modules/freadptr: New file.
16182         * lib/freadptr.h: New file.
16183         * lib/freadptr.c: New file.
16184         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
16185
16186 2008-02-26  Karl Berry  <karl@freefriends.org>
16187
16188         Sync from Libtool:
16189         * libltdl/argz.c (argz_add, argz_count): New functions.
16190         * libltdl/argz.in.h: Declare them.
16191         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
16192
16193 2008-02-22  Bruno Haible  <bruno@clisp.org>
16194
16195         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
16196         is a pointer type.  Needed for HP-UX 10.
16197         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
16198         * doc/posix-functions/gmtime_r.texi: Likewise.
16199         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
16200
16201 2008-02-24  Bruno Haible  <bruno@clisp.org>
16202
16203         * modules/environ-tests: New file.
16204         * tests/test-environ.c: New file.
16205
16206         New module 'environ'.
16207         * modules/environ: New file.
16208         * lib/unistd.in.h (environ): New declaration.
16209         * m4/environ.m4: New file.
16210         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
16211         after use.
16212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
16213         HAVE_DECL_ENVIRON.
16214         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
16215         HAVE_DECL_ENVIRON.
16216         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
16217         wrong claim that 'environ' is missing on some systems.
16218         * modules/execute (Depends-on): Add environ.
16219         * lib/execute.c (environ): Remove fallback declaration.
16220         * modules/pipe (Depends-on): Add environ.
16221         * lib/pipe.c (environ): Remove fallback declaration.
16222         * modules/setenv (Depends-on): Add environ.
16223         * lib/setenv.c (environ): Remove fallback declaration.
16224         * modules/unsetenv (Depends-on): Add environ.
16225         * lib/unsetenv.c (environ): Remove fallback declaration.
16226         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
16227         m4/environ.m4.
16228         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
16229         (gl_PREREQ_UNSETENV): Likewise.
16230
16231 2008-02-24  Bruno Haible  <bruno@clisp.org>
16232
16233         * doc/posix-functions/environ.texi: Document the MacOS X problem.
16234
16235 2008-02-20  Bob Proulx  <bob@proulx.com>
16236
16237         Enable use of older two part flavor 'git describe'.
16238         * build-aux/git-version-gen: If using the older two part flavor of
16239         git version then recreate the third part now present in the
16240         newer three part flavor of git describe.
16241
16242 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
16243
16244         * lib/fts.c (fts_build): Typo correction to comment.
16245
16246 2008-02-17  Bruno Haible  <bruno@clisp.org>
16247
16248         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
16249         generating no-op conflicts.
16250
16251 2008-02-17  Bruno Haible  <bruno@clisp.org>
16252
16253         Speed up by 10%.
16254         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
16255         result_entries, rather than an index-based loop.
16256
16257 2008-02-17  Bruno Haible  <bruno@clisp.org>
16258
16259         Speed up by 25%.
16260         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
16261         'hashcode_cached'.
16262         (entry_create): New function.
16263         (entry_hashcode): Use the cached hashcode if possible.
16264         (read_changelog_file, try_split_merged_entry): Use entry_create.
16265
16266 2008-02-17  Bruno Haible  <bruno@clisp.org>
16267
16268         Speed up from O(n^2) to O(n) for long ChangeLog files.
16269         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
16270         (read_changelog_file): Change implementation of entries_reversed list
16271         to rbtreehash.
16272         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
16273
16274 2008-02-17  Bruno Haible  <bruno@clisp.org>
16275
16276         New option --split-merged-entry.
16277         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
16278         (find_paragraph_end, try_split_merged_entry): New functions.
16279         (long_options): Add option --split-merged-entry.
16280         (usage): Document option --split-merged-entry.
16281         (main): Implement option --split-merged-entry.
16282         Reported by Eric Blake.
16283
16284 2008-02-17  Bruno Haible  <bruno@clisp.org>
16285
16286         * lib/git-merge-changelog.c: Include c-strstr.h.
16287         (main): Support the "git pull --rebase" situation.
16288         * modules/git-merge-changelog (Depends-on): Add c-strstr.
16289         Reported by Eric Blake.
16290
16291 2008-02-16  Eric Blake  <ebb9@byu.net>
16292
16293         Avoid doubling \ in common case of "c-maybe" quoting style.
16294         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
16295         eliding outer quotes.
16296         * lib/quotearg.h: Document this.
16297         * tests/test-quotearg.c (result_strings, inputs, results_g)
16298         (flag_results, locale_results): Test it by adding a new string to
16299         each test group.
16300         (compare_strings): Test new string.
16301
16302 2008-02-13  Eric Blake  <ebb9@byu.net>
16303
16304         Avoid trigraph quoting in default output.
16305         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
16306         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
16307         unless explicitly requested.
16308         * tests/test-quotearg.c (flag_results, main): Add additional tests.
16309
16310 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
16311
16312         Don't rely on signed integer overflowing to negative value.
16313         * lib/getugroups.c (getugroups): Include <limits.h>.
16314         Instead, compare against INT_MAX, and increment only if the test passes.
16315
16316 2008-02-13  Jim Meyering  <meyering@redhat.com>
16317         and Eric Blake  <ebb9@byu.net>
16318
16319         Avoid shadowing warning and compile errors on Linux.
16320         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
16321         forwarding macros on Linux.
16322         (dcgettext): Define a stub, for Linux.
16323         (results_g, main): Avoid warnings.
16324
16325 2008-02-12  Eric Blake  <ebb9@byu.net>
16326
16327         Silence warning in last patch.
16328         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
16329
16330         Quotearg part 4: add tests, fix c-maybe colon quoting.
16331         * lib/quotearg.h: Improve documentation.
16332         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
16333         escapes when adding outer quotes.  When quoting trigraphs, use
16334         valid C notation.  When quoting NUL, omit extra characters if next
16335         character is not digit.  Alter prototype.
16336         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
16337         callers.
16338         * modules/quotearg-tests: New module.
16339         * tests/test-quotearg.c: New test.
16340
16341 2008-02-07  Eric Blake  <ebb9@byu.net>
16342
16343         Quotearg part 3: add flag to control outer quote elision.
16344         * lib/quotearg.h (c_maybe_quoting_style): New style.
16345         (enum quoting_flags): Better documentation of flags.
16346         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
16347         c-maybe style.
16348         (quotearg_buffer_restyled): Handle new flag to elide outer
16349         quotes.
16350
16351         Quotearg part 2: add flag that can control NUL elision.
16352         * lib/quotearg.h (set_quoting_flags): New prototype.
16353         * lib/quotearg.c (struct quoting_options): Add flag field.
16354         (set_quoting_flags): New function.
16355         (quotearg_buffer_restyled): Add flags parameter.
16356         (quotearg_alloc_mem): Set the flag if length cannot be returned.
16357         (quotearg_n_options): Set the flag, since length cannot be
16358         returned.
16359         (quoting_options_from_style): Default flags correctly.
16360
16361         Quotearg part 1: more wrappers, restore quotearg_char state.
16362         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
16363         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
16364         (quotearg_colon_mem): New wrappers.
16365         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
16366         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
16367         functions.
16368         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
16369         (quotearg_colon_mem): New functions.
16370
16371 2008-02-11  Bruno Haible  <bruno@clisp.org>
16372
16373         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
16374         library in the current directory: it does not work with parallel make.
16375         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16376
16377 2008-02-11  Bruno Haible  <bruno@clisp.org>
16378
16379         * .gitattributes: New file.
16380
16381 2008-02-11  Jim Meyering  <meyering@redhat.com>
16382
16383         useless-if-before-free: Fix reversed exit values.
16384         * build-aux/useless-if-before-free: Use correct values
16385         for EXIT_MATCH and EXIT_NO_MATCH.
16386
16387         * build-aux/useless-if-before-free: Close stdout carefully.
16388
16389 2008-02-10  Bruno Haible  <bruno@clisp.org>
16390
16391         New module 'git-merge-changelog'.
16392         * modules/git-merge-changelog: New file.
16393         * lib/git-merge-changelog.c: New file.
16394
16395 2008-02-10  Jim Meyering  <meyering@redhat.com>
16396
16397         useless-if-before-free: New option: --list (-l).
16398
16399         useless-if-before-free: Don't exit immediately upon open failure.
16400         * build-aux/useless-if-before-free: Exit 2 for errors.
16401         Upon failure to open a file, don't exit immediately.
16402         Rather, just warn and continue with any remaining files.
16403
16404 2008-02-10  Bruno Haible  <bruno@clisp.org>
16405
16406         New abstract list operation 'node_set_value'.
16407         * lib/gl_list.h (gl_list_node_set_value): New function.
16408         (struct gl_list_implementation): New field node_set_value.
16409         * lib/gl_list.c (gl_list_node_set_value): New function.
16410         * lib/gl_array_list.c (gl_array_node_set_value): New function.
16411         (gl_array_list_implementation): Update.
16412         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
16413         (gl_carray_list_implementation): Update.
16414         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
16415         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16416         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16417         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
16418         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16419         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16420         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16421         Update.
16422         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
16423         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
16424         (gl_sublist_list_implementation): Update.
16425
16426 2008-02-10  Bruno Haible  <bruno@clisp.org>
16427
16428         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
16429         Needed when ELEMENT is #defined to 'some_type *'.
16430
16431 2008-02-10  Jim Meyering  <meyering@redhat.com>
16432
16433         New script and module: useless-if-before-free
16434         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
16435         * build-aux/useless-if-before-free: New file.
16436         * modules/useless-if-before-free: New file.
16437
16438         * build-aux/gitlog-to-changelog: Use committer date, not author date.
16439
16440         xstrtol_error: Fix typo.
16441         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
16442         s/exit_failure/exit_status/.
16443
16444 2008-02-09  Jim Meyering  <meyering@redhat.com>
16445
16446         New script and module: gitlog-to-changelog
16447         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
16448         * modules/gitlog-to-changelog: New file.
16449         * build-aux/gitlog-to-changelog: New file.
16450
16451 2008-02-08  Jim Meyering  <meyering@redhat.com>
16452
16453         Avoid two "parameter unused" warnings.
16454         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16455         Mark "st" as used.
16456
16457         Use "git COMMAND", not "git-COMMAND".
16458         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
16459         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
16460         * build-aux/git-version-gen: Use "git status", not "git-status".
16461
16462 2008-02-07  Bruno Haible  <bruno@clisp.org>
16463
16464         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
16465         Avoids a crash on Windows Vista.
16466         Reported by Adam Strzelecki <ono@java.pl> via
16467         Simon Josefsson <simon@josefsson.org>.
16468
16469 2008-02-06  Bruno Haible  <bruno@clisp.org>
16470
16471         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
16472         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
16473         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
16474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
16475         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16477         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
16478         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
16479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16486         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
16487         left-adjust flag.
16488         * tests/test-snprintf-posix.h (test_function): Likewise.
16489         * tests/test-sprintf-posix.h (test_function): Likewise.
16490         * tests/test-vasprintf-posix.c (test_function): Likewise.
16491         * doc/posix-functions/fprintf.texi: Update.
16492         * doc/posix-functions/printf.texi: Update.
16493         * doc/posix-functions/snprintf.texi: Update.
16494         * doc/posix-functions/sprintf.texi: Update.
16495         * doc/posix-functions/vfprintf.texi: Update.
16496         * doc/posix-functions/vprintf.texi: Update.
16497         * doc/posix-functions/vsnprintf.texi: Update.
16498         * doc/posix-functions/vsprintf.texi: Update.
16499         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16500
16501 2008-02-06  Bruno Haible  <bruno@clisp.org>
16502
16503         Fix bug introduced on 2008-01-26.
16504         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
16505
16506 2008-02-06  Bruno Haible  <bruno@clisp.org>
16507
16508         Fix bug introduced on 2007-06-10.
16509         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
16510         !NEED_PRINTF_FLAG_ZERO.
16511
16512 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
16513
16514         getloadavg: use libperfstat on AIX5
16515         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
16516
16517 2008-02-03  Bruno Haible  <bruno@clisp.org>
16518
16519         * lib/diffseq.h: Add comments about required #includes.
16520         Reported by Michael Biggs <gnulib@doubleplum.net>.
16521
16522 2008-02-01  Bruno Haible  <bruno@clisp.org>
16523
16524         * users.txt: Add gnuit.
16525
16526 2008-01-31  Bruno Haible  <bruno@clisp.org>
16527
16528         * lib/md4.c (set_uint32): Mark as inline.
16529         * lib/md5.c (set_uint32): Likewise.
16530         * lib/sha1.c (set_uint32): Likewise.
16531         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
16532         * m4/md5.m4 (gl_MD5): Likewise.
16533         * m4/sha1.m4 (gl_SHA1): Likewise.
16534
16535 2008-01-31  Jim Meyering  <meyering@redhat.com>
16536
16537         Use "sizeof VAR", rather than a literal "4".
16538         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
16539         * lib/md4.c (md4_read_ctx): Likewise.
16540         * lib/sha1.c (sha1_read_ctx): Likewise.
16541
16542 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16543
16544         * tests/test-sha1.c: New file, based on test-md5.c.
16545
16546         * modules/crypto/sha1-tests: New file.
16547
16548 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16549
16550         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
16551
16552 2008-01-31  Jim Meyering  <meyering@redhat.com>
16553
16554         Prefer "sizeof v" over the equivalent "4".
16555         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
16556         * lib/md5.c (set_uint32): Likewise.
16557         * lib/sha1.c (set_uint32): Likewise.
16558
16559 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16560
16561         * lib/sha1.c (set_uint32): Mark function as static.
16562
16563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16564
16565         md2: clarify comments to say that alignment is not required.
16566         * lib/md2.h: Remove warning about alignment in comment.
16567         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
16568         never been required.
16569
16570 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16571
16572         md4: adapt alignment constraint fix from sha1.
16573         * lib/md4.c (set_uint32): New function, from sha1.c
16574         (md4_read_ctx): Use it.
16575         (md4_finish_ctx): Doc fix.
16576         * lib/md4.h: Doc fix.
16577
16578 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16579
16580         md5: adapt alignment constraint fix from sha1.
16581         * lib/md5.c (set_uint32): New function, from sha1.c
16582         (md5_read_ctx): Use it.
16583         (md5_finish_ctx): Doc fix.
16584         * lib/md5.h: Doc fix.
16585
16586 2008-01-30  Peter Palfrader  <weasel@debian.org>
16587
16588         sha1: remove the result buffer alignment constraint
16589         * lib/sha1.c (set_uint32): New function.
16590         (sha1_read_ctx): Rewrite to remove the result buffer alignment
16591         constraint.
16592         (sha1_finish_ctx): Remove comment warning about alignment constraint.
16593         * lib/sha1.h: Likewise.
16594
16595 2008-01-30  Andreas Schwab  <schwab@suse.de>
16596             Bruno Haible  <bruno@clisp.org>
16597
16598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
16599         correct definition of LDBL_MIN_EXP.
16600
16601 2008-01-30  Karl Berry  <karl@gnu.org>
16602
16603         * config/srclist-update: try to preserve x bit on updates.
16604         * config/srclistvars.sh: update for karl.
16605
16606 2008-01-29  Jim Meyering  <meyering@redhat.com>
16607
16608         vasnprintf.c: Avoid warning about unused label
16609         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
16610         "overflow" label definition and associated code with the
16611         same cpp condition that guards the sole use of that label.
16612
16613 2008-01-26  Bruno Haible  <bruno@clisp.org>
16614
16615         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
16616         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
16617         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
16618         * lib/isnanl-nolibm.h (isnanl): Likewise.
16619         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16620
16621 2008-01-26  Bruno Haible  <bruno@clisp.org>
16622
16623         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
16624         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
16625
16626 2008-01-26  Bruno Haible  <bruno@clisp.org>
16627
16628         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
16629         GCC >= 4.0 built-in.
16630         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
16631
16632 2008-01-26  Bruno Haible  <bruno@clisp.org>
16633
16634         Rename isnan, applicable to 'double' only, to isnand.
16635         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
16636         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
16637         (configure.ac): Update.
16638         (Include): Replace "isnan.h" with "isnand.h".
16639         * m4/isnand.m4: Renamed from m4/isnan.m4.
16640         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
16641         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
16642         instead of isnan.c.
16643         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
16644         instead of HAVE_ISNAN_IN_LIBC.
16645         (isnand): Renamed from isnan.
16646         * lib/isnand.c: New file.
16647         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
16648         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
16649         (Makefile.am): Update.
16650         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
16651         Include isnand.h instead of isnan.h.
16652         (main): Test isnand instead of isnan.
16653         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
16654         isnan-nolibm.
16655         * modules/frexp (Depends-on): Likewise.
16656         * modules/frexp-tests (Depends-on): Likewise.
16657         * modules/frexp-nolibm (Depends-on): Likewise.
16658         * modules/frexp-nolibm-tests (Depends-on): Likewise.
16659         * modules/isfinite (Depends-on): Likewise.
16660         * modules/round-tests (Depends-on): Likewise.
16661         * modules/signbit (Depends-on): Likewise.
16662         * modules/signbit-tests (Depends-on): Likewise.
16663         * modules/snprintf-posix (Depends-on): Likewise.
16664         * modules/sprintf-posix (Depends-on): Likewise.
16665         * modules/trunc-tests (Depends-on): Likewise.
16666         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16667         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16668         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16669         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16670         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16671         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16672         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16673         * modules/vasnprintf-posix (Depends-on): Likewise.
16674         * modules/vasprintf-posix (Depends-on): Likewise.
16675         * modules/vfprintf-posix (Depends-on): Likewise.
16676         * modules/vsnprintf-posix (Depends-on): Likewise.
16677         * modules/vsprintf-posix (Depends-on): Likewise.
16678         * lib/frexp.c: Include isnand.h instead of isnan.h.
16679         (ISNAN): Set to isnand instead of isnan.
16680         * lib/isfinite.c: Include isnand.h instead of isnan.h.
16681         (gl_isfinited): Use isnand instead of isnan.
16682         * lib/signbitd.c: Include isnand.h instead of isnan.h.
16683         (gl_signbitd): Use isnand instead of isnan.
16684         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
16685         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
16686         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
16687         (main): Use isnand instead of isnan.
16688         * tests/test-round1.c: Include isnand.h.
16689         (main): Use isnand instead of isnan.
16690         * tests/test-round2.c: Include isnand.h instead of isnan.h.
16691         (ISNAN): Set to isnand instead of isnan.
16692         * tests/test-trunc1.c: Include isnand.h.
16693         (main): Use isnand instead of isnan.
16694         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
16695         (equal): Use isnand instead of isnan.
16696         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
16697         isnand-nolibm.
16698         * NEWS: Mention the change.
16699
16700 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
16701             Bruno Haible  <bruno@clisp.org>
16702
16703         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
16704         the GCC builtins for signbits are present and set
16705         REPLACE_SIGNBIT_USING_GCC if so.
16706         * lib/math.in.h (signbit): Define using GCC builtins if
16707         REPLACE_SIGNBIT_USING_GCC is set.
16708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
16709         REPLACE_SIGNBIT_USING_GCC.
16710         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
16711
16712 2008-01-25  Jim Meyering  <meyering@redhat.com>
16713
16714         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
16715         * lib/poll.c: Include <config.h>, not "config.h".
16716         * tests/test-getaddrinfo.c: Likewise.
16717
16718 2008-01-25  Simon Josefsson  <simon@josefsson.org>
16719
16720         * modules/sockets-tests: New file.
16721
16722 2008-01-24  Simon Josefsson  <simon@josefsson.org>
16723
16724         * modules/sockets: New module, can be used to call WSA_Startup and
16725         WSA_Cleanup when needed.
16726
16727         * lib/sockets.h, lib/sockets.c: New files.
16728
16729         * m4/sockets.m4: New file.
16730
16731         * tests/test-sockets.c: New file.
16732
16733 2008-01-19  Bruno Haible  <bruno@clisp.org>
16734
16735         * doc/posix-headers: Renamed from doc/headers.
16736         * doc/posix-functions: Renamed from doc/functions.
16737         * doc/gnulib.texi: Update.
16738
16739 2008-01-19  Bruno Haible  <bruno@clisp.org>
16740
16741         * doc/glibc-functions/strcasestr.texi: Include contents of
16742         doc/functions/strcasestr.texi, fixing the list of platforms.
16743         * doc/functions/strcasestr.texi: Remove file.
16744
16745 2008-01-19  Bruno Haible  <bruno@clisp.org>
16746
16747         * doc/glibc-functions/memmem.texi: Include contents of
16748         doc/functions/memmem.texi.
16749         * doc/functions/memmem.texi: Remove file.
16750
16751 2008-01-18  Bruno Haible  <bruno@clisp.org>
16752
16753         * doc/glibc-functions/*.texi: New files.
16754         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
16755         to use the new files.
16756
16757 2008-01-17  Bruno Haible  <bruno@clisp.org>
16758
16759         * tests/test-gethostname.c (main): Fix printf statement.
16760
16761 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16762
16763         * modules/gethostname-tests: New file.
16764
16765         * tests/test-gethostname.c: New file.
16766
16767 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16768
16769         * lib/gethostname.c: Include string.h unconditionally, strncpy is
16770         used by the UNAME case.  Reported by Bruno Haible
16771         <bruno@clisp.org>.
16772
16773 2008-01-17  Eric Blake  <ebb9@byu.net>
16774
16775         Convert c-strcasestr to be more efficient.
16776         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
16777         (Depends-on): Add c-strcase, remove malloca, strnlen.
16778         * tests/test-c-strcasestr.c (main): Enhance test.
16779         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
16780
16781 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
16782
16783         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
16784         Use it in creating po/Makevars.
16785
16786 2008-01-15  Simon Josefsson  <simon@josefsson.org>
16787
16788         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
16789         Applications that requires it should initialize libgcrypt
16790         manually.
16791
16792 2008-01-16  Simon Josefsson  <simon@josefsson.org>
16793
16794         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
16795
16796 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16797
16798         Fix problem with getdate on mingw32 reported by Simon Josefsson
16799         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
16800         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
16801         tzname", when deciding whether to declare tzname.
16802         * lib/strftime.c (tzname): Likewise.
16803
16804 2008-01-15  Bruno Haible  <bruno@clisp.org>
16805
16806         Work around a MacOS X 10.5 bug in frexpl().
16807         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
16808         * doc/functions/frexpl.texi: Document the bug.
16809         Reported by Elias Pipping <pipping@gentoo.org>.
16810
16811 2008-01-14  Eric Blake  <ebb9@byu.net>
16812
16813         Touch up previous patch.
16814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
16815         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
16816
16817         Convert strcasestr module to use Two-Way algorithm.
16818         * modules/strcasestr-simple: New module, based on the old
16819         strcasestr, but with Two-Way rather than KMP.
16820         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
16821         * lib/string.in.h (rpl_strcasestr): Declare.
16822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
16823         performance.
16824         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
16825         * modules/string (Makefile.am): Support strcasestr.
16826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16827         * modules/strcasestr-tests (Depends-on): Check for alarm.
16828         * tests/test-strcasestr.c: Augment test.
16829         * lib/str-two-way.h: Clean up stray macro.
16830         * NEWS: Document new module.
16831         * MODULES.html.sh (string handling): Likewise.
16832         * doc/functions/strcasestr.texi: New file.
16833         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
16834         here, since it is not a POSIX function.
16835
16836 2008-01-14  Colin Watson  <cjwatson@debian.org>
16837             Bruno Haible  <bruno@clisp.org>
16838
16839         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
16840         works fine; if not, set REPLACE_STRSIGNAL.
16841         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
16842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16843         REPLACE_STRSIGNAL.
16844         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
16845         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
16846         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
16847
16848 2008-01-14  Bruno Haible  <bruno@clisp.org>
16849
16850         * modules/strsignal (Include): Change to <string.h>.
16851
16852 2008-01-14  Colin Watson  <cjwatson@debian.org>
16853
16854         * modules/argp (Notice): Add a notice recommending to change
16855         XGETTEXT_OPTIONS.
16856         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
16857
16858 2008-01-13  Colin Watson  <cjwatson@debian.org>
16859
16860         * modules/strsignal-tests: New file.
16861         * tests/test-strsignal.c: New file.
16862
16863         * lib/strsignal.c: New file, from glibc with modifications.
16864         * lib/siglist.h: New file, from glibc with modifications.
16865         * lib/string.in.h (strsignal): New declaration.
16866         * m4/strsignal.m4: New file.
16867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16868         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
16869         * modules/strsignal: New file.
16870         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
16871         HAVE_DECL_STRSIGNAL.
16872
16873 2008-01-13  Bruno Haible  <bruno@clisp.org>
16874
16875         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
16876         locale encoding is not ASCII. Needed for OpenBSD 4.0.
16877         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16878         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16879
16880 2008-01-13  Bruno Haible  <bruno@clisp.org>
16881
16882         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
16883         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
16884         * lib/argp.h (__attribute__): Likewise.
16885         * lib/c-stack.c (__attribute__): Likewise.
16886         * lib/error.h (__attribute__): Likewise.
16887         * lib/fts.c (__attribute__): Likewise.
16888         * lib/openat.h (__attribute__): Likewise.
16889         * lib/stdio.in.h (__attribute__): Likewise.
16890         * lib/string.in.h (__attribute__): Likewise.
16891         * lib/utimens.c (__attribute__): Likewise.
16892         * lib/vasnprintf.h (__attribute__): Likewise.
16893         * lib/xalloc.h (__attribute__): Likewise.
16894         * lib/xprintf.h (__attribute__): Likewise.
16895         * lib/xstrtol.h (__attribute__): Likewise.
16896         * lib/xvasprintf.h (__attribute__): Likewise.
16897
16898 2008-01-12  Bruno Haible  <bruno@clisp.org>
16899
16900         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
16901         * doc/glibc-headers/a.out.texi: New file.
16902         * doc/glibc-headers/aliases.texi: New file.
16903         * doc/glibc-headers/alloca.texi: New file.
16904         * doc/glibc-headers/ar.texi: New file.
16905         * doc/glibc-headers/argp.texi: New file.
16906         * doc/glibc-headers/argz.texi: New file.
16907         * doc/glibc-headers/byteswap.texi: New file.
16908         * doc/glibc-headers/crypt.texi: New file.
16909         * doc/glibc-headers/endian.texi: New file.
16910         * doc/glibc-headers/envz.texi: New file.
16911         * doc/glibc-headers/err.texi: New file.
16912         * doc/glibc-headers/error.texi: New file.
16913         * doc/glibc-headers/execinfo.texi: New file.
16914         * doc/glibc-headers/fpu_control.texi: New file.
16915         * doc/glibc-headers/fstab.texi: New file.
16916         * doc/glibc-headers/fts.texi: New file.
16917         * doc/glibc-headers/getopt.texi: New file.
16918         * doc/glibc-headers/ieee754.texi: New file.
16919         * doc/glibc-headers/ifaddrs.texi: New file.
16920         * doc/glibc-headers/libintl.texi: New file.
16921         * doc/glibc-headers/mcheck.texi: New file.
16922         * doc/glibc-headers/mntent.texi: New file.
16923         * doc/glibc-headers/obstack.texi: New file.
16924         * doc/glibc-headers/paths.texi: New file.
16925         * doc/glibc-headers/printf.texi: New file.
16926         * doc/glibc-headers/pty.texi: New file.
16927         * doc/glibc-headers/resolv.texi: New file.
16928         * doc/glibc-headers/shadow.texi: New file.
16929         * doc/glibc-headers/sysexits.texi: New file.
16930         * doc/glibc-headers/ttyent.texi: New file.
16931
16932 2008-01-12  Jim Meyering  <meyering@redhat.com>
16933
16934         announce-gen: emit Gnulib's git-based version string.
16935         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
16936         New option --gnulib-version=V, where V is expected to be
16937         the output of running git describe in the gnulib directory.
16938         (get_tool_versions): Request feedback on xdelta.  I suspect it's
16939         not useful, and plan to stop publishing an xdelta file with each
16940         coreutils release.
16941
16942         * build-aux/announce-gen: Also check for lzma-compressed files.
16943
16944 2008-01-11  Bruno Haible  <bruno@clisp.org>
16945
16946         * tests/test-memmem.c (main): Increase maximum allowed time.
16947         * tests/test-strstr.c (main): Likewise.
16948
16949 2008-01-11  Bruno Haible  <bruno@clisp.org>
16950
16951         * doc/functions/memmem.texi: Add more precisions about platforms.
16952         * doc/functions/strstr.texi: Likewise.
16953
16954 2008-01-10  Eric Blake  <ebb9@byu.net>
16955
16956         * m4/strstr.m4: Delete cruft from copy-n-paste.
16957         Reported by Bruno Haible.
16958
16959 2008-01-10  Bruno Haible  <bruno@clisp.org>
16960
16961         Make c-strstr rely on strstr.
16962         * lib/c-strstr.c: Don't include str-kmp.h.
16963         (c_strstr): Define in terms of strstr.
16964         * modules/c-strstr (Files): Remove lib/str-kmp.h.
16965         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
16966
16967 2008-01-10  Bruno Haible  <bruno@clisp.org>
16968
16969         * doc/gnulib.texi (String Functions in C Locale): New section.
16970         * doc/c-ctype.texi: New file.
16971         * doc/c-strcase.texi: New file.
16972         * doc/c-strcaseeq.texi: New file.
16973         * doc/c-strcasestr.texi: New file.
16974         * doc/c-strstr.texi: New file.
16975         * doc/c-strtod.texi: New file.
16976         * doc/c-strtold.texi: New file.
16977
16978 2008-01-10  Eric Blake  <ebb9@byu.net>
16979
16980         * lib/relocatable.h: Fix a comment.
16981
16982 2008-01-10  Eric Blake  <ebb9@byu.net>
16983
16984         Share two-way algorithm.
16985         * lib/str-two-way.h: New file, merged from...
16986         * lib/memmem.c: ...here...
16987         * lib/strstr.c: ...and here.
16988         * modules/memmem (Files): Use it.
16989         * modules/strstr (Files): Likewise.
16990
16991         Avoid quadratic strstr implementations.
16992         * lib/strstr.c: New file.
16993         * m4/strstr.m4: Likewise.
16994         * modules/strstr: Likewise.
16995         * modules/strstr-tests: Likewise.
16996         * tests/test-strstr.c: Likewise.
16997         * lib/string.in.h (rpl_strstr): Declare.
16998         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
16999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
17000         * modules/string (Makefile.am): Likewise.
17001         * MODULES.html.sh (string handling): Mention new module.
17002         * doc/functions/strstr.texi (strstr): Document the bug.
17003
17004 2008-01-10  Bruno Haible  <bruno@clisp.org>
17005
17006         * lib/relocatable.h (relocate): State whether result is freshly
17007         allocated or not.
17008         * lib/relocatable.c (relocate): Return a freshly allocated string
17009         instead of a pointer to a privately held string.
17010         Reported by Sylvain Beucler <beuc@gnu.org>.
17011
17012 2008-01-10  Colin Watson  <cjwatson@debian.org>
17013
17014         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
17015         s/S_ISNLK/S_ISLNK/.
17016
17017 2008-01-09  Bruno Haible  <bruno@clisp.org>
17018
17019         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
17020         and other files.
17021         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
17022         if it's only a guess.
17023         * modules/memmem: Simplify by depending on memmem-simple.
17024
17025 2008-01-09  Bruno Haible  <bruno@clisp.org>
17026
17027         Work around OpenBSD 4.0 tdelete() bug.
17028         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
17029         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
17030         macros and don't redefine the enum values.
17031         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
17032         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
17033         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
17034
17035 2008-01-09  Bruno Haible  <bruno@clisp.org>
17036
17037         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
17038         (main): Don't perform the tests if setlocale did not install a UTF-8
17039         locale. Needed on OpenBSD 4.0.
17040         * modules/wcwidth-tests (Depends-on): Add localcharset.
17041
17042 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17043
17044         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
17045         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
17046         * NEWS: announce this.
17047         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
17048
17049 2008-01-09  Simon Josefsson  <simon@josefsson.org>
17050         and Eric Blake  <ebb9@byu.net>
17051
17052         Add memmem-simple module.
17053         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
17054         (gl_FUNC_MEMMEM): Separate performance from presence checks.
17055         * modules/memmem-simple: New file.
17056         * modules/memmem (Description): Tweak.
17057         * MODULES.html.sh (string handling): Mention new module.
17058         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
17059         addressed by memmem-simple.
17060         * NEWS: Document the difference.
17061
17062 2008-01-09  Eric Blake  <ebb9@byu.net>
17063
17064         Give gcc some memmem optimization hints.
17065         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
17066         (strcasestr): Declare as pure.
17067         * modules/memmem (Maintainer): Claim my implementation.
17068
17069 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17070
17071         Support AIX 6.1 and higher.
17072         * build-aux/config.libpath: Likewise.
17073         * build-aux/config.rpath: Likewise.
17074
17075 2008-01-08  Jim Meyering  <meyering@redhat.com>
17076             Bruno Haible  <bruno@clisp.org>
17077
17078         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
17079         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
17080         Reported by Peter Fales in
17081         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
17082
17083 2008-01-08  Bruno Haible  <bruno@clisp.org>
17084
17085         * modules/unictype/category-of (Depends-on): Add
17086         unictype/category-none.
17087         * modules/unictype/category-and-tests (Depends-on): Add
17088         unictype/category-{L,N,Lu,Nd}.
17089         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
17090         * modules/unictype/category-or-tests (Depends-on): Add
17091         unictype/category-{L,N}.
17092         * modules/unictype/category-name-tests (Depends-on): Add
17093         unictype/category-{Z,Nl}.
17094         Reported by Simon Josefsson.
17095
17096 2008-01-08  Bruno Haible  <bruno@clisp.org>
17097
17098         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
17099         convention better.
17100         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
17101         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
17102         Reported by Peter Miller <millerp@canb.auug.org.au>.
17103
17104 2008-01-08  Eric Blake  <ebb9@byu.net>
17105
17106         Rewrite memmem to guarantee linear complexity without malloc.
17107         * lib/memmem.c (memmem): Use Two-Way rather than
17108         Knuth-Morris-Pratt, to allow O(1) space usage.
17109         (critical_factorization, two_way_short_needle)
17110         (two_way_long_needle): New functions.
17111         (knuth_morris_pratt): Delete.
17112         * modules/memmem (Depends-on): No longer need malloca or stdbool.
17113         Add stdint.
17114         * tests/test-memmem.c (main): Add tests for periodic needle and
17115         sublinear performance.
17116         * doc/functions/memmem.texi (memmem): Document other deficiencies
17117         in cygwin and older glibc.
17118
17119 2008-01-08  Bruno Haible  <bruno@clisp.org>
17120
17121         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
17122         augmentation.
17123
17124 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
17125
17126         Add a configure time option: --disable-acl.
17127         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
17128         AC_ARG_ENABLE(acl).
17129
17130 2008-01-06  Simon Josefsson  <simon@josefsson.org>
17131
17132         * tests/test-localename.c: Don't include obsolete "setenv.h".
17133
17134         * modules/localename-tests (Depends-on): Need unsetenv.
17135
17136 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17137
17138         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
17139
17140 2008-01-06  Colin Watson  <cjwatson@debian.org>
17141
17142         * users.txt: Add man-db.
17143
17144 2008-01-07  Bruno Haible  <bruno@clisp.org>
17145
17146         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
17147         previous section name.
17148
17149 2008-01-07  Bruno Haible  <bruno@clisp.org>
17150
17151         * lib/progname.c (set_program_name): Don't strip off a leading
17152         "lt-" prefix outside a .libs directory.
17153         Suggested by Paul Eggert.
17154
17155 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
17156             Bruno Haible  <bruno@clisp.org>
17157
17158         Improve memory cleanup in 'relocatable' module.
17159         * lib/relocatable.h (compute_curr_prefix): Change return type to
17160         'char *'.
17161         * lib/relocatable.c (compute_curr_prefix): Change return type to
17162         'char *'. Free curr_installdir after use.
17163         (relocate): Free curr_prefix_better after use.
17164         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
17165
17166 2008-01-01  Bruno Haible  <bruno@clisp.org>
17167
17168         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
17169         failure on older glibc systems.
17170         Reported by Peter Fales <psfales@alcatel-lucent.com>.
17171
17172 2008-01-05  Eric Blake  <ebb9@byu.net>
17173
17174         Avoid quadratic system memmem.
17175         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
17176         Reported by Ralf Wildenhues.
17177
17178         Fix memmem test for mingw.
17179         * modules/memmem-tests (configure.ac): Check for alarm.
17180         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
17181         it.
17182         * doc/functions/memmem.texi: New file.
17183         * doc/gnulib.texi (Function Substitutes): Add memmem.
17184         Reported by Bruno Haible.
17185
17186 2008-01-04  Bruno Haible  <bruno@clisp.org>
17187
17188         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
17189         Require gl_HEADER_STRINGS_H_DEFAULTS, not
17190         gl_HEADER_STRING_H_DEFAULTS.
17191
17192 2008-01-04  Eric Blake  <ebb9@byu.net>
17193
17194         Shorten duration of memmem test.
17195         * tests/test-memmem.c (main): Use alarm to declare failure if test
17196         is taking too long.
17197         Reported by Ralf Wildenhues.
17198
17199 2007-12-21  Simon Josefsson  <simon@josefsson.org>
17200
17201         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
17202         string, needed by strerror.
17203
17204 2008-01-03  Colin Watson  <cjwatson@debian.org>
17205             Bruno Haible  <bruno@clisp.org>
17206
17207         * doc/gnulib-tool.texi (Localization): New section.
17208
17209 2008-01-02  Bruno Haible  <bruno@clisp.org>
17210
17211         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
17212         variables to 'unsigned char *' type.
17213         Reported by Paul Eggert.
17214
17215 2008-01-02  Jim Meyering  <jim@meyering.net>
17216
17217         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
17218
17219 2007-12-31  Jim Meyering  <jim@meyering.net>
17220
17221         Avoid use of private FTS type name.
17222         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
17223
17224 2007-12-30  Karl Berry  <karl@gnu.org>
17225
17226         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
17227         work around defect in Texinfo and/or the standalone Info browser.
17228
17229 2007-12-30  Bruno Haible  <bruno@clisp.org>
17230
17231         Unify 5 copies of the KMP code.
17232         * lib/str-kmp.h: New file.
17233         * lib/c-strcasestr.c: Include str-kmp.h.
17234         (knuth_morris_pratt): Remove function.
17235         (c_strcasestr): Update.
17236         * lib/c-strstr.c: Include str-kmp.h.
17237         (knuth_morris_pratt): Remove function.
17238         (c_strcasestr): Update.
17239         * lib/mbscasestr.c: Include str-kmp.h.
17240         (knuth_morris_pratt_unibyte): Remove function.
17241         * lib/mbsstr.c: Include str-kmp.h.
17242         (knuth_morris_pratt_unibyte): Remove function.
17243         * lib/strcasestr.c: Include str-kmp.h.
17244         (knuth_morris_pratt): Remove function.
17245         (strcasestr): Update.
17246         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
17247         * modules/c-strstr (Files): Likewise.
17248         * modules/mbscasestr (Files): Likewise.
17249         * modules/mbsstr (Files): Likewise.
17250         * modules/strcasestr (Files): Likewise.
17251         Suggested by Paul Eggert.
17252
17253 2007-12-30  Bruno Haible  <bruno@clisp.org>
17254
17255         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
17256         defined.
17257
17258 2007-12-30  Bruno Haible  <bruno@clisp.org>
17259
17260         * lib/xmalloca.h: Include xalloc.h.
17261         (xnmalloca): New macro.
17262
17263 2007-12-30  Bruno Haible  <bruno@clisp.org>
17264
17265         * lib/malloca.h (nmalloca): New macro.
17266         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
17267         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
17268         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
17269         knuth_morris_pratt_multibyte): Likewise.
17270         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
17271         knuth_morris_pratt_multibyte): Likewise.
17272         * lib/memmem.c (knuth_morris_pratt): Likewise.
17273         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
17274
17275 2007-12-25  Bruno Haible  <bruno@clisp.org>
17276
17277         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
17278         * lib/glob.c: Don't include openat.h.
17279         (link_exists2_p): Add back the code that deals with the
17280         !GLOB_ALTDIRFUNC case.
17281         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
17282         let it do the filename concatenation.
17283         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
17284         * modules/glob (Depends-on): Remove openat.
17285
17286 2007-12-31  Bruno Haible  <bruno@clisp.org>
17287
17288         * modules/dirfd (License): Change to LGPLv2+.
17289         Approved by Jim Meyering.
17290
17291 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17292
17293         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
17294         when multiplying M by sizeof (size_t).
17295
17296 2007-12-10  Martin Lambers  <marlam@marlam.de>
17297
17298         Override getpagesize on mingw.
17299         * lib/getpagesize.c: New file.
17300         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
17301         * modules/getpagesize (Files): Add lib/getpagesize.c.
17302         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
17303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17304         REPLACE_GETPAGESIZE.
17305         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
17306
17307 2007-12-25  Bruno Haible  <bruno@clisp.org>
17308
17309         * modules/localcharset (Notice): New field.
17310         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
17311         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17312
17313 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17314             Bruno Haible  <bruno@clisp.org>
17315
17316         Avoid using the syntax symbol() in formatted documentation.
17317         * MODULES.html.sh (func_module): When replacing symbol() with a
17318         hyperlink, remove the parentheses. Show an error if some remain.
17319         Recognize and render the '...' syntax.
17320         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
17321         Rework. Add paragraph about GCC's inlining.
17322         * doc/alloca.texi: Likewise.
17323         * doc/error.texi: Remove parentheses from symbol reference.
17324         * doc/gnulib-intro.texi: Likewise.
17325         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
17326         * modules/fnmatch (Description): Reword to say "the ... function".
17327         * modules/full-read (Description): Likewise.
17328         * modules/full-write (Description): Likewise.
17329         * modules/safe-read (Description): Likewise.
17330         * modules/safe-write (Description): Likewise.
17331         * modules/strchrnul (Description): Likewise.
17332         * modules/trim (Description): Likewise.
17333         * modules/error (Description): Remove parentheses from symbol
17334         references.
17335         * modules/verror (Description): Likewise.
17336         Reported by Karl Berry.
17337
17338 2007-12-25  Bruno Haible  <bruno@clisp.org>
17339
17340         Fixup after 2007-10-16 commit.
17341         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
17342
17343 2007-12-24  Bruno Haible  <bruno@clisp.org>
17344
17345         Make --enable-relocatable work with DESTDIR.
17346         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
17347         to compute installdir from destprog.
17348         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
17349         also set the RELOC_DESTDIR variable.
17350         Reported by Левашев Иван <octagram@bluebottle.com>.
17351
17352 2007-12-24  Bruno Haible  <bruno@clisp.org>
17353
17354         Fix link error due to xalloc_die().
17355         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
17356         of xreadlink.
17357         * lib/relocwrapper.c: Update comments.
17358         * build-aux/install-reloc: Remove xreadlink.c from file list.
17359         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
17360         xreadlink.c.
17361         Reported by Левашев Иван <octagram@bluebottle.com>.
17362
17363 2007-12-24  Bruno Haible  <bruno@clisp.org>
17364
17365         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
17366         * lib/setenv.h: Remove file.
17367         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
17368         lib/setenv.h.
17369         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
17370         (Depends-on): Add stdlib.
17371         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
17372         gl_FUNC_UNSETENV.
17373         (Include): Replace setenv.h with <stdlib.h>.
17374         * modules/unsetenv: New file.
17375         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
17376         * lib/unsetenv.c: Include <stdlib.h> first.
17377         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
17378         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
17379         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
17380         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
17381         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
17382         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
17384         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17385         * doc/functions/unsetenv.texi: Update.
17386         * modules/xsetenv (Depends-on): Add unsetenv.
17387         * modules/getdate (Depends-on): Likewise.
17388         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
17389         * lib/xsetenv.c: Don't include setenv.h.
17390         * lib/getdate.y: Likewise.
17391         * lib/relocwrapper.c: Likewise.
17392         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
17393         (Depends-on): Add stdlib.
17394         * NEWS: Mention the changes.
17395         Reported by Левашев Иван <octagram@bluebottle.com>.
17396
17397 2007-12-23  Bruno Haible  <bruno@clisp.org>
17398
17399         * lib/memmem.c (memmem): Use lowercase variable names. Tab
17400         indentation.
17401
17402 2007-12-23  Bruno Haible  <bruno@clisp.org>
17403
17404         * lib/c-strcasestr.c: Add more comments.
17405         * lib/c-strstr.c: Likewise.
17406         * lib/mbscasestr.c: Likewise.
17407         * lib/mbsstr.c: Likewise.
17408         * lib/strcasestr.c: Likewise.
17409         * lib/memmem.c: Likewise.
17410
17411 2007-12-23  Bruno Haible  <bruno@clisp.org>
17412
17413         * tests/test-memmem.c: Include <string.h> first.
17414
17415 2007-12-22  Bruno Haible  <bruno@clisp.org>
17416
17417         * gnulib-tool (func_create_testdir): Change $auxdir while generating
17418         the contents of $testsbase.
17419         Reported by Ralf Wildenhues.
17420
17421 2007-12-22  Bruno Haible  <bruno@clisp.org>
17422
17423         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
17424         two variables local_ldadd_before, local_ldadd_last.
17425
17426 2007-12-20  Eric Blake  <ebb9@byu.net>
17427
17428         Work around circular library issue when cross-compiling.
17429         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
17430         that progname.o does not need to pull in rpl_memcmp.
17431
17432 2007-12-19  Eric Blake  <ebb9@byu.net>
17433
17434         Fix memmem to avoid O(n^2) worst-case complexity.
17435         * lib/memmem.c (knuth_morris_pratt): New function.
17436         (memmem): Use it if first few naive iterations fail.
17437         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
17438         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
17439         * modules/memchr (License): Likewise.
17440         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
17441         malloca.
17442         * tests/test-memmem.c: Rewrite, borrowing ideas from
17443         test-mbsstr1.c; the old version wouldn't even compile!
17444         * modules/memmem-tests: New file.
17445         * lib/string.in.h (rpl_memmem): Add declaration.
17446         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
17447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
17448         REPLACE_MEMMEM.
17449
17450 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17451
17452         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
17453         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
17454         before any system include files, and undef after them all.  This
17455         should fix a problem on VMS reported by John E. Malmberg in
17456         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
17457
17458 2007-12-17  Eric Blake  <ebb9@byu.net>
17459
17460         Revert addition of verify, for BSD/OS.
17461         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
17462         can't handle large files, for the sake of obsolete platforms.
17463         * modules/fseeko (Depends-on): Remove verify.
17464         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
17465         * doc/functions/ftello.texi (ftello): Likewise.
17466         * doc/functions/fgetpos.texi (fgetpos): Likewise.
17467         Reported by Larry Jones.
17468
17469 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
17470
17471         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
17472         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
17473
17474 2007-12-17  Jim Meyering  <meyering@redhat.com>
17475
17476         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
17477         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
17478         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
17479         * modules/getcwd (Depends-on): Add openat.
17480         Reported by Petr Salinger.
17481
17482 2007-12-17  Bruno Haible  <bruno@clisp.org>
17483
17484         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
17485         avoid a segmentation fault of the configure test on x86_64 systems.
17486
17487 2007-12-15  Jim Meyering  <meyering@redhat.com>
17488
17489         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
17490
17491 2007-12-13  Eric Blake  <ebb9@byu.net>
17492
17493         Another fseek test.
17494         * tests/test-fseek.c (main): Also test ungetc handling.
17495         * tests/test-fseeko.c (main): Likewise.
17496         * modules/fseeko (Depends-on): Add verify.
17497         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
17498         large.
17499         Reported by Larry Jones.
17500
17501         Fix fseeko on mingw.
17502         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
17503         seek.
17504
17505         Beef up fseek tests.
17506         * tests/test-fseek.c (main): Also test eof handling.
17507         * tests/test-fseeko.c (main): Likewise.
17508         Reported by Larry Jones.
17509
17510 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
17511
17512         Fix fseeko on BSD-based platforms.
17513         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
17514         successful seek.
17515
17516 2007-12-12  Eric Blake  <ebb9@byu.net>
17517
17518         Allow circular dependency of separate libtests.a
17519         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
17520         when use_libtests.
17521
17522 2007-12-11  Eric Blake  <ebb9@byu.net>
17523
17524         Fix bug with -0.0L in previous patch.
17525         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
17526         * tests/test-isnan.c (main): Also test on zeroes.
17527         * tests/test-isnanf.c (main): Likewise.
17528         * tests/test-isnanl.h (main): Likewise.
17529
17530         Detect pseudo-denormals on x86 even when cross-compiling.
17531         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
17532         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
17533         invalid bit patterns that happen to satisfy ==.
17534
17535         Avoid link failures with separate libtests.a.
17536         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
17537         last, to satisfy circular dependencies.
17538
17539 2007-12-11  Eric Blake  <ebb9@byu.net>
17540         and Bruno Haible  <bruno@clisp.org>
17541
17542         Fix OpenBSD 4.0 <float.h> handling of long double.
17543         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
17544         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
17545         * doc/headers/float.texi (float.h): Document OpenBSD bug.
17546
17547 2007-12-11  Jim Meyering  <meyering@redhat.com>
17548
17549         * users.txt: Add libvirt.
17550
17551         Support versions of autoconf prior to 2.59c.
17552         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
17553         if it is not already defined.
17554
17555 2007-12-09  Bruno Haible  <bruno@clisp.org>
17556
17557         Let 'gnulib-tool --import' collect sources needed for the tests in
17558         tests/ rather than in lib/.
17559         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
17560         argument. If true, add rules to generate libtests.a, and put libtests.a
17561         into $(LDADD). Consider source files in subdirectories and set
17562         uses_subdirs.
17563         (func_emit_initmacro_start, func_emit_initmacro_end,
17564         func_emit_initmacro_done): Pass all arguments explicitly.
17565         (func_import): Determine two module lists main_modules,
17566         testsrelated_modules. Determine use_libtests. Determine two variables
17567         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
17568         instead of just sed_transform_lib_file. Determine two variables
17569         main_files and testsrelated_files. Compute 'files' as the union of
17570         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
17571         func_add_or_update. In the generated gnulib-comp.m4, collect the
17572         object files for tests/ in different variables than those for lib/.
17573         Substitute LIBTESTS_LIBDEPS.
17574         (func_create_testdir): Combine the uses_subdirs results from
17575         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
17576
17577 2007-12-09  Bruno Haible  <bruno@clisp.org>
17578
17579         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
17580         the build-aux directory.
17581
17582 2007-12-09  Bruno Haible  <bruno@clisp.org>
17583
17584         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
17585         introduced on 2006-09-09.
17586
17587 2007-12-07  Jim Meyering  <meyering@redhat.com>
17588
17589         Let these macros work also with autoconf-2.59.
17590         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
17591         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
17592         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17593
17594 2007-12-06  Jim Meyering  <meyering@redhat.com>
17595
17596         Avoid a configure-time syntax error in gl_FUNC_ACL.
17597         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
17598         function in each branch, before testing the cache variable.
17599
17600 2007-12-04  Eric Blake  <ebb9@byu.net>
17601
17602         Make scripts executable.
17603         * build-aux/config.guess: Add execute permissions.
17604         * build-aux/config.sub: Likewise.
17605         * build-aux/gendocs.sh: Likewise.
17606
17607         Fix frexp on mingw.
17608         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
17609         cross-compiling.
17610         * doc/functions/frexp.texi (frexp): Document the bug.
17611
17612         Make cygwin fseeko check more reliable.
17613         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
17614         version numbers, rather than unrelated feature check.
17615         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
17616         * doc/functions/ftello.texi (ftello): Likewise.
17617         Reported by Bruno Haible.
17618
17619         * m4/strerror.m4: Bump version number.
17620
17621 2007-12-03  Bruno Haible  <bruno@clisp.org>
17622
17623         * doc/functions/mprotect.texi: Mention the mingw problem.
17624
17625 2007-12-03  Eric Blake  <ebb9@byu.net>
17626
17627         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
17628         REPLACE_STRERROR is initialized before this macro.
17629
17630 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
17631
17632         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
17633         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
17634         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
17635         put -lsec in even for programs other than 'ls'.  This fixes a problem
17636         for gettext reported by Bruno Haible in
17637         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
17638         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
17639         Add support for Solaris 10.  This isn't efficient, but should get the
17640         job done for now.
17641
17642 2007-12-03  James Youngman  <jay@gnu.org>
17643
17644         * doc/regexprops-generic.texi: change "an close-group" to "a
17645         close-group" and "illegal" to "not allowed".
17646
17647 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17648
17649         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
17650         pr_byname.h. Needed for the rare case when the maintainer has done
17651         "make maintainer-clean" in the source directory and then attempts a
17652         build outside the source directory.
17653         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
17654         scripts_byname.h.
17655
17656 2007-12-02  Martin Lambers <marlam@marlam.de>
17657             Bruno Haible  <bruno@clisp.org>
17658
17659         * lib/getpagesize.h: Remove file.
17660         * lib/unistd.in.h: Include declaration of getpagesize here.
17661         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
17662         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
17663         HAVE_SYS_PARAM_H.
17664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
17665         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17666         * modules/getpagesize (Files): Remove lib/getpagesize.h.
17667         (Depends-on): Add unistd.
17668         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17669         (Include): Use <unistd.h> instead of getpagesize.h.
17670         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
17671         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17672         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
17673         gl_GETPAGESIZE invocation, already handled by module dependency.
17674         * lib/pagealign_alloc.c: Don't include getpagesize.h.
17675
17676 2007-12-02  Bruno Haible  <bruno@clisp.org>
17677
17678         * modules/strings-tests: New file.
17679         * tests/test-strings.c: New file.
17680
17681         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
17682         * lib/strings.in.h: New file.
17683         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
17684         * m4/strings_h.m4: New file.
17685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
17686         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
17687         * modules/strings: New file.
17688         * modules/string (Makefile.am): Update.
17689         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
17690         Reported by Karl Berry.
17691
17692 2007-12-01  Eric Blake  <ebb9@byu.net>
17693
17694         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
17695         accomodate fix in cygwin 1.5.25.
17696
17697 2007-12-01  Jim Meyering  <meyering@redhat.com>
17698
17699         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
17700         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
17701         that would inhibit utf8-optimization of a regexp containing line-
17702         or buffer-anchors, e.g., `^', `$'.
17703
17704 2007-11-30  Bruno Haible  <bruno@clisp.org>
17705
17706         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
17707         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
17708         glthread_recursive_lock_init.
17709         * lib/lock.c (glthread_recursive_lock_init)
17710         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
17711         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17712
17713 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17714
17715         New function qset_acl, like set_acl but with syscall semantics.
17716         * lib/acl.h (qset_acl): New decl.
17717         * lib/acl.c (qset_acl): New function.
17718         (set_acl): Use new function.  Use more-consistent diagnostics.
17719
17720 2007-11-28  Jim Meyering  <meyering@redhat.com>
17721
17722         * modules/physmem (License): Change from GPL to LGPLv2+.
17723
17724 2007-11-26  Bruno Haible  <bruno@clisp.org>
17725
17726         * lib/vasnprintf.c (decode_long_double): Don't abort if the
17727         'long double' type has excess precision.
17728         Reported by Jim Meyering in
17729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
17730
17731 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17732
17733         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
17734         Sync from <http://gnu.org/licenses>.
17735         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
17736         with license text from same location.
17737         * doc/maintain.texi, doc/standards.texi:  Sync from
17738         <http://savannah.gnu.org/projects/gnustandards>.
17739
17740 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
17741         and Jim Meyering  <meyering@redhat.com>
17742
17743         Adjust getdate' grammar to accept a slightly more regular language.
17744         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
17745         Before, the former was rejected.
17746         * lib/getdate.y (digits_to_date_time): New function, factored
17747         out of ...
17748         (number): ...here.  Just call digits_to_date_time.
17749         (hybrid): New non-terminal to handle an <unsigned number,
17750         signed relative offset> sequence consistently.
17751
17752 2007-11-18  Jim Meyering  <meyering@redhat.com>
17753
17754         Pull my changes from coreutils:
17755         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
17756         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
17757         use of $gnulib_tool_option_extras, so that it's separated from the
17758         preceding argument.
17759
17760         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
17761         * build-aux/bootstrap (cp_mark_as_generated): Create any required
17762         parent destination directories before copying a file into place.
17763
17764 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
17765
17766         bootstrap: work also with 4-argument variant of AC_INIT
17767         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
17768
17769 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
17770
17771         Port test-getaddrinfo to Solaris.
17772         Problem reported by Bruno Haible in
17773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
17774         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
17775         explanation of setting 'hints'.
17776         Don't reject an implementation merely because it returns EAI_SERVICE.
17777         (EAI_SERVICE): Define to 0 if not defined.
17778
17779 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17780
17781         The license of gnu-make and posix-shell is now "GPLed build tool".
17782         * modules/gnu-make (License): Likewise.
17783         * modules/posix-shell (License): Likewise.
17784
17785         New module posix-shell, for determining a POSIX shell
17786         or perhaps something that is close enough to a POSIX shell.
17787         * m4/posix-shell.m4: New file.
17788         * modules/posix-shell: New file.
17789
17790         * MODULES.html.sh: Mention new module.
17791
17792         New module gnu-make, for determining whether we're using GNU Make.
17793         * m4/gnu-make.m4: New file.
17794         * modules/gnu-make: New file.
17795         * MODULES.html.sh: Mention new module.
17796
17797 2007-11-14  Jim Meyering  <meyering@redhat.com>
17798
17799         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
17800         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
17801         use this macro to create a function _definition_.
17802         Remove useless "#undef ARGMATCH_DIE".
17803
17804 2007-11-14  Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/config.charset: Update for OpenBSD 4.1.
17807         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
17808
17809 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         Document 64-bit #if problems in stdint.texi.
17812         * doc/headers/stdint.texi (stdint.h): Mention problems with
17813         64-bit-#if, and how to work around them.
17814
17815         Don't insist on 'long long int' support in the preprocessor.  It
17816         breaks too many things.  For example, PRIdMAX still uses a 'long
17817         long int' format with the latest Sun compiler, even though
17818         HAVE_LONG_LONG_INT isn't defined due to that compiler's
17819         preprocessor problem.  This causes the latest coreutils to dump
17820         core on Solaris 10 sparc with the Sun C compiler.
17821         Instead, fix the 2007-10-16 problem in a different way, by evaluating
17822         the troublesome expressions at configure-time, not at #if-time.
17823         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
17824         preprocessor.
17825         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
17826         compile-time C checks, done at 'configure'-time.
17827         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
17828         * modules/inttypes (Makefile): Substitute the new symbols that
17829         gl_INTTYPES_H now generates.
17830         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
17831
17832 2007-11-12  Bruno Haible  <bruno@clisp.org>
17833
17834         Tests for Unicode character classification functions.
17835
17836         * modules/unictype/bidicategory-byname-tests: New file.
17837         * modules/unictype/bidicategory-name-tests: New file.
17838         * modules/unictype/bidicategory-of-tests: New file.
17839         * modules/unictype/bidicategory-test-tests: New file.
17840         * modules/unictype/block-list-tests: New file.
17841         * modules/unictype/block-of-tests: New file.
17842         * modules/unictype/block-test-tests: New file.
17843         * modules/unictype/category-C-tests: New file.
17844         * modules/unictype/category-Cc-tests: New file.
17845         * modules/unictype/category-Cf-tests: New file.
17846         * modules/unictype/category-Cn-tests: New file.
17847         * modules/unictype/category-Co-tests: New file.
17848         * modules/unictype/category-Cs-tests: New file.
17849         * modules/unictype/category-L-tests: New file.
17850         * modules/unictype/category-Ll-tests: New file.
17851         * modules/unictype/category-Lm-tests: New file.
17852         * modules/unictype/category-Lo-tests: New file.
17853         * modules/unictype/category-Lt-tests: New file.
17854         * modules/unictype/category-Lu-tests: New file.
17855         * modules/unictype/category-M-tests: New file.
17856         * modules/unictype/category-Mc-tests: New file.
17857         * modules/unictype/category-Me-tests: New file.
17858         * modules/unictype/category-Mn-tests: New file.
17859         * modules/unictype/category-N-tests: New file.
17860         * modules/unictype/category-Nd-tests: New file.
17861         * modules/unictype/category-Nl-tests: New file.
17862         * modules/unictype/category-No-tests: New file.
17863         * modules/unictype/category-P-tests: New file.
17864         * modules/unictype/category-Pc-tests: New file.
17865         * modules/unictype/category-Pd-tests: New file.
17866         * modules/unictype/category-Pe-tests: New file.
17867         * modules/unictype/category-Pf-tests: New file.
17868         * modules/unictype/category-Pi-tests: New file.
17869         * modules/unictype/category-Po-tests: New file.
17870         * modules/unictype/category-Ps-tests: New file.
17871         * modules/unictype/category-S-tests: New file.
17872         * modules/unictype/category-Sc-tests: New file.
17873         * modules/unictype/category-Sk-tests: New file.
17874         * modules/unictype/category-Sm-tests: New file.
17875         * modules/unictype/category-So-tests: New file.
17876         * modules/unictype/category-Z-tests: New file.
17877         * modules/unictype/category-Zl-tests: New file.
17878         * modules/unictype/category-Zp-tests: New file.
17879         * modules/unictype/category-Zs-tests: New file.
17880         * modules/unictype/category-and-not-tests: New file.
17881         * modules/unictype/category-and-tests: New file.
17882         * modules/unictype/category-byname-tests: New file.
17883         * modules/unictype/category-name-tests: New file.
17884         * modules/unictype/category-none-tests: New file.
17885         * modules/unictype/category-of-tests: New file.
17886         * modules/unictype/category-or-tests: New file.
17887         * modules/unictype/category-test-withtable-tests: New file.
17888         * modules/unictype/combining-class-tests: New file.
17889         * modules/unictype/ctype-alnum-tests: New file.
17890         * modules/unictype/ctype-alpha-tests: New file.
17891         * modules/unictype/ctype-blank-tests: New file.
17892         * modules/unictype/ctype-cntrl-tests: New file.
17893         * modules/unictype/ctype-digit-tests: New file.
17894         * modules/unictype/ctype-graph-tests: New file.
17895         * modules/unictype/ctype-lower-tests: New file.
17896         * modules/unictype/ctype-print-tests: New file.
17897         * modules/unictype/ctype-punct-tests: New file.
17898         * modules/unictype/ctype-space-tests: New file.
17899         * modules/unictype/ctype-upper-tests: New file.
17900         * modules/unictype/ctype-xdigit-tests: New file.
17901         * modules/unictype/decimal-digit-tests: New file.
17902         * modules/unictype/digit-tests: New file.
17903         * modules/unictype/mirror-tests: New file.
17904         * modules/unictype/numeric-tests: New file.
17905         * modules/unictype/property-alphabetic-tests: New file.
17906         * modules/unictype/property-ascii-hex-digit-tests: New file.
17907         * modules/unictype/property-bidi-arabic-digit-tests: New file.
17908         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
17909         * modules/unictype/property-bidi-block-separator-tests: New file.
17910         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
17911         * modules/unictype/property-bidi-common-separator-tests: New file.
17912         * modules/unictype/property-bidi-control-tests: New file.
17913         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
17914         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
17915         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
17916         * modules/unictype/property-bidi-european-digit-tests: New file.
17917         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
17918         * modules/unictype/property-bidi-left-to-right-tests: New file.
17919         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
17920         * modules/unictype/property-bidi-other-neutral-tests: New file.
17921         * modules/unictype/property-bidi-pdf-tests: New file.
17922         * modules/unictype/property-bidi-segment-separator-tests: New file.
17923         * modules/unictype/property-bidi-whitespace-tests: New file.
17924         * modules/unictype/property-byname-tests: New file.
17925         * modules/unictype/property-combining-tests: New file.
17926         * modules/unictype/property-composite-tests: New file.
17927         * modules/unictype/property-currency-symbol-tests: New file.
17928         * modules/unictype/property-dash-tests: New file.
17929         * modules/unictype/property-decimal-digit-tests: New file.
17930         * modules/unictype/property-default-ignorable-code-point-tests: New file.
17931         * modules/unictype/property-deprecated-tests: New file.
17932         * modules/unictype/property-diacritic-tests: New file.
17933         * modules/unictype/property-extender-tests: New file.
17934         * modules/unictype/property-format-control-tests: New file.
17935         * modules/unictype/property-grapheme-base-tests: New file.
17936         * modules/unictype/property-grapheme-extend-tests: New file.
17937         * modules/unictype/property-grapheme-link-tests: New file.
17938         * modules/unictype/property-hex-digit-tests: New file.
17939         * modules/unictype/property-hyphen-tests: New file.
17940         * modules/unictype/property-id-continue-tests: New file.
17941         * modules/unictype/property-id-start-tests: New file.
17942         * modules/unictype/property-ideographic-tests: New file.
17943         * modules/unictype/property-ids-binary-operator-tests: New file.
17944         * modules/unictype/property-ids-trinary-operator-tests: New file.
17945         * modules/unictype/property-ignorable-control-tests: New file.
17946         * modules/unictype/property-iso-control-tests: New file.
17947         * modules/unictype/property-join-control-tests: New file.
17948         * modules/unictype/property-left-of-pair-tests: New file.
17949         * modules/unictype/property-line-separator-tests: New file.
17950         * modules/unictype/property-logical-order-exception-tests: New file.
17951         * modules/unictype/property-lowercase-tests: New file.
17952         * modules/unictype/property-math-tests: New file.
17953         * modules/unictype/property-non-break-tests: New file.
17954         * modules/unictype/property-not-a-character-tests: New file.
17955         * modules/unictype/property-numeric-tests: New file.
17956         * modules/unictype/property-other-alphabetic-tests: New file.
17957         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
17958         * modules/unictype/property-other-grapheme-extend-tests: New file.
17959         * modules/unictype/property-other-id-continue-tests: New file.
17960         * modules/unictype/property-other-id-start-tests: New file.
17961         * modules/unictype/property-other-lowercase-tests: New file.
17962         * modules/unictype/property-other-math-tests: New file.
17963         * modules/unictype/property-other-uppercase-tests: New file.
17964         * modules/unictype/property-paired-punctuation-tests: New file.
17965         * modules/unictype/property-paragraph-separator-tests: New file.
17966         * modules/unictype/property-pattern-syntax-tests: New file.
17967         * modules/unictype/property-pattern-white-space-tests: New file.
17968         * modules/unictype/property-private-use-tests: New file.
17969         * modules/unictype/property-punctuation-tests: New file.
17970         * modules/unictype/property-quotation-mark-tests: New file.
17971         * modules/unictype/property-radical-tests: New file.
17972         * modules/unictype/property-sentence-terminal-tests: New file.
17973         * modules/unictype/property-soft-dotted-tests: New file.
17974         * modules/unictype/property-space-tests: New file.
17975         * modules/unictype/property-terminal-punctuation-tests: New file.
17976         * modules/unictype/property-test-tests: New file.
17977         * modules/unictype/property-titlecase-tests: New file.
17978         * modules/unictype/property-unassigned-code-value-tests: New file.
17979         * modules/unictype/property-unified-ideograph-tests: New file.
17980         * modules/unictype/property-uppercase-tests: New file.
17981         * modules/unictype/property-variation-selector-tests: New file.
17982         * modules/unictype/property-white-space-tests: New file.
17983         * modules/unictype/property-xid-continue-tests: New file.
17984         * modules/unictype/property-xid-start-tests: New file.
17985         * modules/unictype/property-zero-width-tests: New file.
17986         * modules/unictype/scripts-tests: New file.
17987         * modules/unictype/syntax-c-ident-tests: New file.
17988         * modules/unictype/syntax-c-whitespace-tests: New file.
17989         * modules/unictype/syntax-java-ident-tests: New file.
17990         * modules/unictype/syntax-java-whitespace-tests: New file.
17991         * tests/unictype/test-bidi_byname.c: New file.
17992         * tests/unictype/test-bidi_name.c: New file.
17993         * tests/unictype/test-bidi_of.c: New file.
17994         * tests/unictype/test-bidi_test.c: New file.
17995         * tests/unictype/test-block_list.c: New file.
17996         * tests/unictype/test-block_of.c: New file.
17997         * tests/unictype/test-block_test.c: New file.
17998         * tests/unictype/test-categ_and.c: New file.
17999         * tests/unictype/test-categ_and_not.c: New file.
18000         * tests/unictype/test-categ_byname.c: New file.
18001         * tests/unictype/test-categ_name.c: New file.
18002         * tests/unictype/test-categ_none.c: New file.
18003         * tests/unictype/test-categ_of.c: New file.
18004         * tests/unictype/test-categ_or.c: New file.
18005         * tests/unictype/test-categ_test_withtable.c: New file.
18006         * tests/unictype/test-combining.c: New file.
18007         * tests/unictype/test-decdigit.c: New file.
18008         * tests/unictype/test-digit.c: New file.
18009         * tests/unictype/test-mirror.c: New file.
18010         * tests/unictype/test-numeric.c: New file.
18011         * tests/unictype/test-pr_byname.c: New file.
18012         * tests/unictype/test-pr_test.c: New file.
18013         * tests/unictype/test-predicate-part1.h: New file.
18014         * tests/unictype/test-predicate-part2.h: New file.
18015         * tests/unictype/test-scripts.c: New file.
18016         * tests/unictype/test-sy_c_ident.c: New file.
18017         * tests/unictype/test-sy_java_ident.c: New file.
18018
18019         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
18020         for Unicode 5.0.0.
18021         * tests/unictype/test-categ_Cc.c: Likewise.
18022         * tests/unictype/test-categ_Cf.c: Likewise.
18023         * tests/unictype/test-categ_Cn.c: Likewise.
18024         * tests/unictype/test-categ_Co.c: Likewise.
18025         * tests/unictype/test-categ_Cs.c: Likewise.
18026         * tests/unictype/test-categ_L.c: Likewise.
18027         * tests/unictype/test-categ_Ll.c: Likewise.
18028         * tests/unictype/test-categ_Lm.c: Likewise.
18029         * tests/unictype/test-categ_Lo.c: Likewise.
18030         * tests/unictype/test-categ_Lt.c: Likewise.
18031         * tests/unictype/test-categ_Lu.c: Likewise.
18032         * tests/unictype/test-categ_M.c: Likewise.
18033         * tests/unictype/test-categ_Mc.c: Likewise.
18034         * tests/unictype/test-categ_Me.c: Likewise.
18035         * tests/unictype/test-categ_Mn.c: Likewise.
18036         * tests/unictype/test-categ_N.c: Likewise.
18037         * tests/unictype/test-categ_Nd.c: Likewise.
18038         * tests/unictype/test-categ_Nl.c: Likewise.
18039         * tests/unictype/test-categ_No.c: Likewise.
18040         * tests/unictype/test-categ_P.c: Likewise.
18041         * tests/unictype/test-categ_Pc.c: Likewise.
18042         * tests/unictype/test-categ_Pd.c: Likewise.
18043         * tests/unictype/test-categ_Pe.c: Likewise.
18044         * tests/unictype/test-categ_Pf.c: Likewise.
18045         * tests/unictype/test-categ_Pi.c: Likewise.
18046         * tests/unictype/test-categ_Po.c: Likewise.
18047         * tests/unictype/test-categ_Ps.c: Likewise.
18048         * tests/unictype/test-categ_S.c: Likewise.
18049         * tests/unictype/test-categ_Sc.c: Likewise.
18050         * tests/unictype/test-categ_Sk.c: Likewise.
18051         * tests/unictype/test-categ_Sm.c: Likewise.
18052         * tests/unictype/test-categ_So.c: Likewise.
18053         * tests/unictype/test-categ_Z.c: Likewise.
18054         * tests/unictype/test-categ_Zl.c: Likewise.
18055         * tests/unictype/test-categ_Zp.c: Likewise.
18056         * tests/unictype/test-categ_Zs.c: Likewise.
18057         * tests/unictype/test-ctype_alnum.c: Likewise.
18058         * tests/unictype/test-ctype_alpha.c: Likewise.
18059         * tests/unictype/test-ctype_blank.c: Likewise.
18060         * tests/unictype/test-ctype_cntrl.c: Likewise.
18061         * tests/unictype/test-ctype_digit.c: Likewise.
18062         * tests/unictype/test-ctype_graph.c: Likewise.
18063         * tests/unictype/test-ctype_lower.c: Likewise.
18064         * tests/unictype/test-ctype_print.c: Likewise.
18065         * tests/unictype/test-ctype_punct.c: Likewise.
18066         * tests/unictype/test-ctype_space.c: Likewise.
18067         * tests/unictype/test-ctype_upper.c: Likewise.
18068         * tests/unictype/test-ctype_xdigit.c: Likewise.
18069         * tests/unictype/test-decdigit.h: Likewise.
18070         * tests/unictype/test-digit.h: Likewise.
18071         * tests/unictype/test-numeric.h: Likewise.
18072         * tests/unictype/test-pr_alphabetic.c: Likewise.
18073         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
18074         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18075         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18076         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
18077         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18078         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
18079         * tests/unictype/test-pr_bidi_control.c: Likewise.
18080         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
18081         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
18082         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18083         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18084         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18085         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18086         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18087         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18088         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
18089         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
18090         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
18091         * tests/unictype/test-pr_combining.c: Likewise.
18092         * tests/unictype/test-pr_composite.c: Likewise.
18093         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18094         * tests/unictype/test-pr_dash.c: Likewise.
18095         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18096         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
18097         * tests/unictype/test-pr_deprecated.c: Likewise.
18098         * tests/unictype/test-pr_diacritic.c: Likewise.
18099         * tests/unictype/test-pr_extender.c: Likewise.
18100         * tests/unictype/test-pr_format_control.c: Likewise.
18101         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18102         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18103         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18104         * tests/unictype/test-pr_hex_digit.c: Likewise.
18105         * tests/unictype/test-pr_hyphen.c: Likewise.
18106         * tests/unictype/test-pr_id_continue.c: Likewise.
18107         * tests/unictype/test-pr_id_start.c: Likewise.
18108         * tests/unictype/test-pr_ideographic.c: Likewise.
18109         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
18110         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
18111         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18112         * tests/unictype/test-pr_iso_control.c: Likewise.
18113         * tests/unictype/test-pr_join_control.c: Likewise.
18114         * tests/unictype/test-pr_left_of_pair.c: Likewise.
18115         * tests/unictype/test-pr_line_separator.c: Likewise.
18116         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18117         * tests/unictype/test-pr_lowercase.c: Likewise.
18118         * tests/unictype/test-pr_math.c: Likewise.
18119         * tests/unictype/test-pr_non_break.c: Likewise.
18120         * tests/unictype/test-pr_not_a_character.c: Likewise.
18121         * tests/unictype/test-pr_numeric.c: Likewise.
18122         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18123         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
18124         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
18125         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18126         * tests/unictype/test-pr_other_id_start.c: Likewise.
18127         * tests/unictype/test-pr_other_lowercase.c: Likewise.
18128         * tests/unictype/test-pr_other_math.c: Likewise.
18129         * tests/unictype/test-pr_other_uppercase.c: Likewise.
18130         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
18131         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
18132         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
18133         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
18134         * tests/unictype/test-pr_private_use.c: Likewise.
18135         * tests/unictype/test-pr_punctuation.c: Likewise.
18136         * tests/unictype/test-pr_quotation_mark.c: Likewise.
18137         * tests/unictype/test-pr_radical.c: Likewise.
18138         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18139         * tests/unictype/test-pr_soft_dotted.c: Likewise.
18140         * tests/unictype/test-pr_space.c: Likewise.
18141         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18142         * tests/unictype/test-pr_titlecase.c: Likewise.
18143         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18144         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18145         * tests/unictype/test-pr_uppercase.c: Likewise.
18146         * tests/unictype/test-pr_variation_selector.c: Likewise.
18147         * tests/unictype/test-pr_white_space.c: Likewise.
18148         * tests/unictype/test-pr_xid_continue.c: Likewise.
18149         * tests/unictype/test-pr_xid_start.c: Likewise.
18150         * tests/unictype/test-pr_zero_width.c: Likewise.
18151         * tests/unictype/test-sy_c_whitespace.c: Likewise.
18152         * tests/unictype/test-sy_java_whitespace.c: Likewise.
18153
18154 2007-11-12  Bruno Haible  <bruno@clisp.org>
18155
18156         Unicode character classification functions.
18157         * lib/unictype.h: New file.
18158         * modules/unictype/base: New file.
18159         * modules/unictype/category-L: New file.
18160         * modules/unictype/category-Lu: New file.
18161         * modules/unictype/category-Ll: New file.
18162         * modules/unictype/category-Lt: New file.
18163         * modules/unictype/category-Lm: New file.
18164         * modules/unictype/category-Lo: New file.
18165         * modules/unictype/category-M: New file.
18166         * modules/unictype/category-Mn: New file.
18167         * modules/unictype/category-Mc: New file.
18168         * modules/unictype/category-Me: New file.
18169         * modules/unictype/category-N: New file.
18170         * modules/unictype/category-Nd: New file.
18171         * modules/unictype/category-Nl: New file.
18172         * modules/unictype/category-No: New file.
18173         * modules/unictype/category-P: New file.
18174         * modules/unictype/category-Pc: New file.
18175         * modules/unictype/category-Pd: New file.
18176         * modules/unictype/category-Ps: New file.
18177         * modules/unictype/category-Pe: New file.
18178         * modules/unictype/category-Pi: New file.
18179         * modules/unictype/category-Pf: New file.
18180         * modules/unictype/category-Po: New file.
18181         * modules/unictype/category-S: New file.
18182         * modules/unictype/category-Sm: New file.
18183         * modules/unictype/category-Sc: New file.
18184         * modules/unictype/category-Sk: New file.
18185         * modules/unictype/category-So: New file.
18186         * modules/unictype/category-Z: New file.
18187         * modules/unictype/category-Zs: New file.
18188         * modules/unictype/category-Zl: New file.
18189         * modules/unictype/category-Zp: New file.
18190         * modules/unictype/category-C: New file.
18191         * modules/unictype/category-Cc: New file.
18192         * modules/unictype/category-Cf: New file.
18193         * modules/unictype/category-Cs: New file.
18194         * modules/unictype/category-Co: New file.
18195         * modules/unictype/category-Cn: New file.
18196         * modules/unictype/category-or: New file.
18197         * modules/unictype/category-of: New file.
18198         * modules/unictype/category-test: New file.
18199         * modules/unictype/category-test-withtable: New file.
18200         * modules/unictype/category-byname: New file.
18201         * modules/unictype/category-none: New file.
18202         * modules/unictype/category-and: New file.
18203         * modules/unictype/category-and-not: New file.
18204         * modules/unictype/category-name: New file.
18205         * modules/unictype/combining-class: New file.
18206         * modules/unictype/category-all: New file.
18207         * modules/unictype/bidicategory-all: New file.
18208         * modules/unictype/bidicategory-byname: New file.
18209         * modules/unictype/bidicategory-name: New file.
18210         * modules/unictype/bidicategory-of: New file.
18211         * modules/unictype/bidicategory-test: New file.
18212         * modules/unictype/decimal-digit: New file.
18213         * modules/unictype/digit: New file.
18214         * modules/unictype/numeric: New file.
18215         * modules/unictype/mirror: New file.
18216         * modules/unictype/property-white-space: New file.
18217         * modules/unictype/property-alphabetic: New file.
18218         * modules/unictype/property-other-alphabetic: New file.
18219         * modules/unictype/property-not-a-character: New file.
18220         * modules/unictype/property-default-ignorable-code-point: New file.
18221         * modules/unictype/property-other-default-ignorable-code-point: New
18222         file.
18223         * modules/unictype/property-deprecated: New file.
18224         * modules/unictype/property-logical-order-exception: New file.
18225         * modules/unictype/property-variation-selector: New file.
18226         * modules/unictype/property-private-use: New file.
18227         * modules/unictype/property-unassigned-code-value: New file.
18228         * modules/unictype/property-uppercase: New file.
18229         * modules/unictype/property-other-uppercase: New file.
18230         * modules/unictype/property-lowercase: New file.
18231         * modules/unictype/property-other-lowercase: New file.
18232         * modules/unictype/property-titlecase: New file.
18233         * modules/unictype/property-soft-dotted: New file.
18234         * modules/unictype/property-id-start: New file.
18235         * modules/unictype/property-other-id-start: New file.
18236         * modules/unictype/property-id-continue: New file.
18237         * modules/unictype/property-other-id-continue: New file.
18238         * modules/unictype/property-xid-start: New file.
18239         * modules/unictype/property-xid-continue: New file.
18240         * modules/unictype/property-pattern-white-space: New file.
18241         * modules/unictype/property-pattern-syntax: New file.
18242         * modules/unictype/property-join-control: New file.
18243         * modules/unictype/property-grapheme-base: New file.
18244         * modules/unictype/property-grapheme-extend: New file.
18245         * modules/unictype/property-other-grapheme-extend: New file.
18246         * modules/unictype/property-grapheme-link: New file.
18247         * modules/unictype/property-bidi-control: New file.
18248         * modules/unictype/property-bidi-left-to-right: New file.
18249         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
18250         * modules/unictype/property-bidi-arabic-right-to-left: New file.
18251         * modules/unictype/property-bidi-european-digit: New file.
18252         * modules/unictype/property-bidi-eur-num-separator: New file.
18253         * modules/unictype/property-bidi-eur-num-terminator: New file.
18254         * modules/unictype/property-bidi-arabic-digit: New file.
18255         * modules/unictype/property-bidi-common-separator: New file.
18256         * modules/unictype/property-bidi-block-separator: New file.
18257         * modules/unictype/property-bidi-segment-separator: New file.
18258         * modules/unictype/property-bidi-whitespace: New file.
18259         * modules/unictype/property-bidi-non-spacing-mark: New file.
18260         * modules/unictype/property-bidi-boundary-neutral: New file.
18261         * modules/unictype/property-bidi-pdf: New file.
18262         * modules/unictype/property-bidi-embedding-or-override: New file.
18263         * modules/unictype/property-bidi-other-neutral: New file.
18264         * modules/unictype/property-hex-digit: New file.
18265         * modules/unictype/property-ascii-hex-digit: New file.
18266         * modules/unictype/property-ideographic: New file.
18267         * modules/unictype/property-unified-ideograph: New file.
18268         * modules/unictype/property-radical: New file.
18269         * modules/unictype/property-ids-binary-operator: New file.
18270         * modules/unictype/property-ids-trinary-operator: New file.
18271         * modules/unictype/property-zero-width: New file.
18272         * modules/unictype/property-space: New file.
18273         * modules/unictype/property-non-break: New file.
18274         * modules/unictype/property-iso-control: New file.
18275         * modules/unictype/property-format-control: New file.
18276         * modules/unictype/property-dash: New file.
18277         * modules/unictype/property-hyphen: New file.
18278         * modules/unictype/property-punctuation: New file.
18279         * modules/unictype/property-line-separator: New file.
18280         * modules/unictype/property-paragraph-separator: New file.
18281         * modules/unictype/property-quotation-mark: New file.
18282         * modules/unictype/property-sentence-terminal: New file.
18283         * modules/unictype/property-terminal-punctuation: New file.
18284         * modules/unictype/property-currency-symbol: New file.
18285         * modules/unictype/property-math: New file.
18286         * modules/unictype/property-other-math: New file.
18287         * modules/unictype/property-paired-punctuation: New file.
18288         * modules/unictype/property-left-of-pair: New file.
18289         * modules/unictype/property-combining: New file.
18290         * modules/unictype/property-composite: New file.
18291         * modules/unictype/property-decimal-digit: New file.
18292         * modules/unictype/property-numeric: New file.
18293         * modules/unictype/property-diacritic: New file.
18294         * modules/unictype/property-extender: New file.
18295         * modules/unictype/property-ignorable-control: New file.
18296         * modules/unictype/property-test: New file.
18297         * modules/unictype/property-byname: New file.
18298         * modules/unictype/property-all: New file.
18299         * modules/unictype/scripts: New file.
18300         * modules/unictype/scripts-all: New file.
18301         * modules/unictype/block-of: New file.
18302         * modules/unictype/block-test: New file.
18303         * modules/unictype/block-list: New file.
18304         * modules/unictype/block-all: New file.
18305         * modules/unictype/syntax-c-whitespace: New file.
18306         * modules/unictype/syntax-java-whitespace: New file.
18307         * modules/unictype/syntax-c-ident: New file.
18308         * modules/unictype/syntax-java-ident: New file.
18309         * modules/unictype/ctype-alnum: New file.
18310         * modules/unictype/ctype-alpha: New file.
18311         * modules/unictype/ctype-cntrl: New file.
18312         * modules/unictype/ctype-digit: New file.
18313         * modules/unictype/ctype-graph: New file.
18314         * modules/unictype/ctype-lower: New file.
18315         * modules/unictype/ctype-print: New file.
18316         * modules/unictype/ctype-punct: New file.
18317         * modules/unictype/ctype-space: New file.
18318         * modules/unictype/ctype-upper: New file.
18319         * modules/unictype/ctype-xdigit: New file.
18320         * modules/unictype/ctype-blank: New file.
18321         * lib/unictype/bidi_byname.c: New file.
18322         * lib/unictype/bidi_name.c: New file.
18323         * lib/unictype/bidi_of.c: New file.
18324         * lib/unictype/bidi_test.c: New file.
18325         * lib/unictype/bitmap.h: New file.
18326         * lib/unictype/block_test.c: New file.
18327         * lib/unictype/blocks.c: New file.
18328         * lib/unictype/categ_C.c: New file.
18329         * lib/unictype/categ_Cc.c: New file.
18330         * lib/unictype/categ_Cf.c: New file.
18331         * lib/unictype/categ_Cn.c: New file.
18332         * lib/unictype/categ_Co.c: New file.
18333         * lib/unictype/categ_Cs.c: New file.
18334         * lib/unictype/categ_L.c: New file.
18335         * lib/unictype/categ_Ll.c: New file.
18336         * lib/unictype/categ_Lm.c: New file.
18337         * lib/unictype/categ_Lo.c: New file.
18338         * lib/unictype/categ_Lt.c: New file.
18339         * lib/unictype/categ_Lu.c: New file.
18340         * lib/unictype/categ_M.c: New file.
18341         * lib/unictype/categ_Mc.c: New file.
18342         * lib/unictype/categ_Me.c: New file.
18343         * lib/unictype/categ_Mn.c: New file.
18344         * lib/unictype/categ_N.c: New file.
18345         * lib/unictype/categ_Nd.c: New file.
18346         * lib/unictype/categ_Nl.c: New file.
18347         * lib/unictype/categ_No.c: New file.
18348         * lib/unictype/categ_P.c: New file.
18349         * lib/unictype/categ_Pc.c: New file.
18350         * lib/unictype/categ_Pd.c: New file.
18351         * lib/unictype/categ_Pe.c: New file.
18352         * lib/unictype/categ_Pf.c: New file.
18353         * lib/unictype/categ_Pi.c: New file.
18354         * lib/unictype/categ_Po.c: New file.
18355         * lib/unictype/categ_Ps.c: New file.
18356         * lib/unictype/categ_S.c: New file.
18357         * lib/unictype/categ_Sc.c: New file.
18358         * lib/unictype/categ_Sk.c: New file.
18359         * lib/unictype/categ_Sm.c: New file.
18360         * lib/unictype/categ_So.c: New file.
18361         * lib/unictype/categ_Z.c: New file.
18362         * lib/unictype/categ_Zl.c: New file.
18363         * lib/unictype/categ_Zp.c: New file.
18364         * lib/unictype/categ_Zs.c: New file.
18365         * lib/unictype/categ_and.c: New file.
18366         * lib/unictype/categ_and_not.c: New file.
18367         * lib/unictype/categ_byname.c: New file.
18368         * lib/unictype/categ_name.c: New file.
18369         * lib/unictype/categ_none.c: New file.
18370         * lib/unictype/categ_of.c: New file.
18371         * lib/unictype/categ_or.c: New file.
18372         * lib/unictype/categ_test.c: New file.
18373         * lib/unictype/combining.c: New file.
18374         * lib/unictype/ctype_alnum.c: New file.
18375         * lib/unictype/ctype_alpha.c: New file.
18376         * lib/unictype/ctype_blank.c: New file.
18377         * lib/unictype/ctype_cntrl.c: New file.
18378         * lib/unictype/ctype_digit.c: New file.
18379         * lib/unictype/ctype_graph.c: New file.
18380         * lib/unictype/ctype_lower.c: New file.
18381         * lib/unictype/ctype_print.c: New file.
18382         * lib/unictype/ctype_punct.c: New file.
18383         * lib/unictype/ctype_space.c: New file.
18384         * lib/unictype/ctype_upper.c: New file.
18385         * lib/unictype/ctype_xdigit.c: New file.
18386         * lib/unictype/decdigit.c: New file.
18387         * lib/unictype/digit.c: New file.
18388         * lib/unictype/identsyntaxmap.h: New file.
18389         * lib/unictype/mirror.c: New file.
18390         * lib/unictype/numeric.c: New file.
18391         * lib/unictype/pr_alphabetic.c: New file.
18392         * lib/unictype/pr_ascii_hex_digit.c: New file.
18393         * lib/unictype/pr_bidi_arabic_digit.c: New file.
18394         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
18395         * lib/unictype/pr_bidi_block_separator.c: New file.
18396         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
18397         * lib/unictype/pr_bidi_common_separator.c: New file.
18398         * lib/unictype/pr_bidi_control.c: New file.
18399         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
18400         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
18401         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
18402         * lib/unictype/pr_bidi_european_digit.c: New file.
18403         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
18404         * lib/unictype/pr_bidi_left_to_right.c: New file.
18405         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
18406         * lib/unictype/pr_bidi_other_neutral.c: New file.
18407         * lib/unictype/pr_bidi_pdf.c: New file.
18408         * lib/unictype/pr_bidi_segment_separator.c: New file.
18409         * lib/unictype/pr_bidi_whitespace.c: New file.
18410         * lib/unictype/pr_byname.c: New file.
18411         * lib/unictype/pr_byname.gperf: New file.
18412         * lib/unictype/pr_combining.c: New file.
18413         * lib/unictype/pr_composite.c: New file.
18414         * lib/unictype/pr_currency_symbol.c: New file.
18415         * lib/unictype/pr_dash.c: New file.
18416         * lib/unictype/pr_decimal_digit.c: New file.
18417         * lib/unictype/pr_default_ignorable_code_point.c: New file.
18418         * lib/unictype/pr_deprecated.c: New file.
18419         * lib/unictype/pr_diacritic.c: New file.
18420         * lib/unictype/pr_extender.c: New file.
18421         * lib/unictype/pr_format_control.c: New file.
18422         * lib/unictype/pr_grapheme_base.c: New file.
18423         * lib/unictype/pr_grapheme_extend.c: New file.
18424         * lib/unictype/pr_grapheme_link.c: New file.
18425         * lib/unictype/pr_hex_digit.c: New file.
18426         * lib/unictype/pr_hyphen.c: New file.
18427         * lib/unictype/pr_id_continue.c: New file.
18428         * lib/unictype/pr_id_start.c: New file.
18429         * lib/unictype/pr_ideographic.c: New file.
18430         * lib/unictype/pr_ids_binary_operator.c: New file.
18431         * lib/unictype/pr_ids_trinary_operator.c: New file.
18432         * lib/unictype/pr_ignorable_control.c: New file.
18433         * lib/unictype/pr_iso_control.c: New file.
18434         * lib/unictype/pr_join_control.c: New file.
18435         * lib/unictype/pr_left_of_pair.c: New file.
18436         * lib/unictype/pr_line_separator.c: New file.
18437         * lib/unictype/pr_logical_order_exception.c: New file.
18438         * lib/unictype/pr_lowercase.c: New file.
18439         * lib/unictype/pr_math.c: New file.
18440         * lib/unictype/pr_non_break.c: New file.
18441         * lib/unictype/pr_not_a_character.c: New file.
18442         * lib/unictype/pr_numeric.c: New file.
18443         * lib/unictype/pr_other_alphabetic.c: New file.
18444         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
18445         * lib/unictype/pr_other_grapheme_extend.c: New file.
18446         * lib/unictype/pr_other_id_continue.c: New file.
18447         * lib/unictype/pr_other_id_start.c: New file.
18448         * lib/unictype/pr_other_lowercase.c: New file.
18449         * lib/unictype/pr_other_math.c: New file.
18450         * lib/unictype/pr_other_uppercase.c: New file.
18451         * lib/unictype/pr_paired_punctuation.c: New file.
18452         * lib/unictype/pr_paragraph_separator.c: New file.
18453         * lib/unictype/pr_pattern_syntax.c: New file.
18454         * lib/unictype/pr_pattern_white_space.c: New file.
18455         * lib/unictype/pr_private_use.c: New file.
18456         * lib/unictype/pr_punctuation.c: New file.
18457         * lib/unictype/pr_quotation_mark.c: New file.
18458         * lib/unictype/pr_radical.c: New file.
18459         * lib/unictype/pr_sentence_terminal.c: New file.
18460         * lib/unictype/pr_soft_dotted.c: New file.
18461         * lib/unictype/pr_space.c: New file.
18462         * lib/unictype/pr_terminal_punctuation.c: New file.
18463         * lib/unictype/pr_test.c: New file.
18464         * lib/unictype/pr_titlecase.c: New file.
18465         * lib/unictype/pr_unassigned_code_value.c: New file.
18466         * lib/unictype/pr_unified_ideograph.c: New file.
18467         * lib/unictype/pr_uppercase.c: New file.
18468         * lib/unictype/pr_variation_selector.c: New file.
18469         * lib/unictype/pr_white_space.c: New file.
18470         * lib/unictype/pr_xid_continue.c: New file.
18471         * lib/unictype/pr_xid_start.c: New file.
18472         * lib/unictype/pr_zero_width.c: New file.
18473         * lib/unictype/scripts.c: New file.
18474         * lib/unictype/sy_c_ident.c: New file.
18475         * lib/unictype/sy_c_whitespace.c: New file.
18476         * lib/unictype/sy_java_ident.c: New file.
18477         * lib/unictype/sy_java_whitespace.c: New file.
18478
18479         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
18480         Unicode 5.0.0.
18481         * lib/unictype/blocks.h: Likewise.
18482         * lib/unictype/categ_C.h: Likewise.
18483         * lib/unictype/categ_Cc.h: Likewise.
18484         * lib/unictype/categ_Cf.h: Likewise.
18485         * lib/unictype/categ_Cn.h: Likewise.
18486         * lib/unictype/categ_Co.h: Likewise.
18487         * lib/unictype/categ_Cs.h: Likewise.
18488         * lib/unictype/categ_L.h: Likewise.
18489         * lib/unictype/categ_Ll.h: Likewise.
18490         * lib/unictype/categ_Lm.h: Likewise.
18491         * lib/unictype/categ_Lo.h: Likewise.
18492         * lib/unictype/categ_Lt.h: Likewise.
18493         * lib/unictype/categ_Lu.h: Likewise.
18494         * lib/unictype/categ_M.h: Likewise.
18495         * lib/unictype/categ_Mc.h: Likewise.
18496         * lib/unictype/categ_Me.h: Likewise.
18497         * lib/unictype/categ_Mn.h: Likewise.
18498         * lib/unictype/categ_N.h: Likewise.
18499         * lib/unictype/categ_Nd.h: Likewise.
18500         * lib/unictype/categ_Nl.h: Likewise.
18501         * lib/unictype/categ_No.h: Likewise.
18502         * lib/unictype/categ_P.h: Likewise.
18503         * lib/unictype/categ_Pc.h: Likewise.
18504         * lib/unictype/categ_Pd.h: Likewise.
18505         * lib/unictype/categ_Pe.h: Likewise.
18506         * lib/unictype/categ_Pf.h: Likewise.
18507         * lib/unictype/categ_Pi.h: Likewise.
18508         * lib/unictype/categ_Po.h: Likewise.
18509         * lib/unictype/categ_Ps.h: Likewise.
18510         * lib/unictype/categ_S.h: Likewise.
18511         * lib/unictype/categ_Sc.h: Likewise.
18512         * lib/unictype/categ_Sk.h: Likewise.
18513         * lib/unictype/categ_Sm.h: Likewise.
18514         * lib/unictype/categ_So.h: Likewise.
18515         * lib/unictype/categ_Z.h: Likewise.
18516         * lib/unictype/categ_Zl.h: Likewise.
18517         * lib/unictype/categ_Zp.h: Likewise.
18518         * lib/unictype/categ_Zs.h: Likewise.
18519         * lib/unictype/categ_of.h: Likewise.
18520         * lib/unictype/combining.h: Likewise.
18521         * lib/unictype/ctype_alnum.h: Likewise.
18522         * lib/unictype/ctype_alpha.h: Likewise.
18523         * lib/unictype/ctype_blank.h: Likewise.
18524         * lib/unictype/ctype_cntrl.h: Likewise.
18525         * lib/unictype/ctype_digit.h: Likewise.
18526         * lib/unictype/ctype_graph.h: Likewise.
18527         * lib/unictype/ctype_lower.h: Likewise.
18528         * lib/unictype/ctype_print.h: Likewise.
18529         * lib/unictype/ctype_punct.h: Likewise.
18530         * lib/unictype/ctype_space.h: Likewise.
18531         * lib/unictype/ctype_upper.h: Likewise.
18532         * lib/unictype/ctype_xdigit.h: Likewise.
18533         * lib/unictype/decdigit.h: Likewise.
18534         * lib/unictype/digit.h: Likewise.
18535         * lib/unictype/mirror.h: Likewise.
18536         * lib/unictype/numeric.h: Likewise.
18537         * lib/unictype/pr_alphabetic.h: Likewise.
18538         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18539         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18540         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18541         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18542         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18543         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18544         * lib/unictype/pr_bidi_control.h: Likewise.
18545         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18546         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18547         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18548         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18549         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18550         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18551         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18552         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18553         * lib/unictype/pr_bidi_pdf.h: Likewise.
18554         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18555         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18556         * lib/unictype/pr_combining.h: Likewise.
18557         * lib/unictype/pr_composite.h: Likewise.
18558         * lib/unictype/pr_currency_symbol.h: Likewise.
18559         * lib/unictype/pr_dash.h: Likewise.
18560         * lib/unictype/pr_decimal_digit.h: Likewise.
18561         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18562         * lib/unictype/pr_deprecated.h: Likewise.
18563         * lib/unictype/pr_diacritic.h: Likewise.
18564         * lib/unictype/pr_extender.h: Likewise.
18565         * lib/unictype/pr_format_control.h: Likewise.
18566         * lib/unictype/pr_grapheme_base.h: Likewise.
18567         * lib/unictype/pr_grapheme_extend.h: Likewise.
18568         * lib/unictype/pr_grapheme_link.h: Likewise.
18569         * lib/unictype/pr_hex_digit.h: Likewise.
18570         * lib/unictype/pr_hyphen.h: Likewise.
18571         * lib/unictype/pr_id_continue.h: Likewise.
18572         * lib/unictype/pr_id_start.h: Likewise.
18573         * lib/unictype/pr_ideographic.h: Likewise.
18574         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18575         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18576         * lib/unictype/pr_ignorable_control.h: Likewise.
18577         * lib/unictype/pr_iso_control.h: Likewise.
18578         * lib/unictype/pr_join_control.h: Likewise.
18579         * lib/unictype/pr_left_of_pair.h: Likewise.
18580         * lib/unictype/pr_line_separator.h: Likewise.
18581         * lib/unictype/pr_logical_order_exception.h: Likewise.
18582         * lib/unictype/pr_lowercase.h: Likewise.
18583         * lib/unictype/pr_math.h: Likewise.
18584         * lib/unictype/pr_non_break.h: Likewise.
18585         * lib/unictype/pr_not_a_character.h: Likewise.
18586         * lib/unictype/pr_numeric.h: Likewise.
18587         * lib/unictype/pr_other_alphabetic.h: Likewise.
18588         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18589         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18590         * lib/unictype/pr_other_id_continue.h: Likewise.
18591         * lib/unictype/pr_other_id_start.h: Likewise.
18592         * lib/unictype/pr_other_lowercase.h: Likewise.
18593         * lib/unictype/pr_other_math.h: Likewise.
18594         * lib/unictype/pr_other_uppercase.h: Likewise.
18595         * lib/unictype/pr_paired_punctuation.h: Likewise.
18596         * lib/unictype/pr_paragraph_separator.h: Likewise.
18597         * lib/unictype/pr_pattern_syntax.h: Likewise.
18598         * lib/unictype/pr_pattern_white_space.h: Likewise.
18599         * lib/unictype/pr_private_use.h: Likewise.
18600         * lib/unictype/pr_punctuation.h: Likewise.
18601         * lib/unictype/pr_quotation_mark.h: Likewise.
18602         * lib/unictype/pr_radical.h: Likewise.
18603         * lib/unictype/pr_sentence_terminal.h: Likewise.
18604         * lib/unictype/pr_soft_dotted.h: Likewise.
18605         * lib/unictype/pr_space.h: Likewise.
18606         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18607         * lib/unictype/pr_titlecase.h: Likewise.
18608         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18609         * lib/unictype/pr_unified_ideograph.h: Likewise.
18610         * lib/unictype/pr_uppercase.h: Likewise.
18611         * lib/unictype/pr_variation_selector.h: Likewise.
18612         * lib/unictype/pr_white_space.h: Likewise.
18613         * lib/unictype/pr_xid_continue.h: Likewise.
18614         * lib/unictype/pr_xid_start.h: Likewise.
18615         * lib/unictype/pr_zero_width.h: Likewise.
18616         * lib/unictype/scripts.h: Likewise.
18617         * lib/unictype/scripts_byname.gperf: Likewise.
18618         * lib/unictype/sy_c_ident.h: Likewise.
18619         * lib/unictype/sy_c_whitespace.h: Likewise.
18620         * lib/unictype/sy_java_ident.h: Likewise.
18621         * lib/unictype/sy_java_whitespace.h: Likewise.
18622
18623         * lib/unictype/Makefile: New file.
18624         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
18625         glibc.
18626         * lib/unictype/3level.h: New file, copied from glibc.
18627         * lib/unictype/3levelbit.h: New file.
18628
18629 2007-11-11  Bruno Haible  <bruno@clisp.org>
18630
18631         * modules/gperf: New file.
18632         * modules/iconv_open (Depends-on): Add it.
18633         (Makefile.am): Remove the GPERF definition.
18634
18635 2007-11-11  Bruno Haible  <bruno@clisp.org>
18636
18637         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
18638         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
18639
18640 2007-11-11  Bruno Haible  <bruno@clisp.org>
18641
18642         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
18643         (usage): Remove function.
18644
18645 2007-11-11  Bruno Haible  <bruno@clisp.org>
18646
18647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
18648         gl_FUNC_CEILF_LIBS.
18649         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
18650         gl_FUNC_CEIL_LIBS.
18651         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
18652         gl_FUNC_CEILL_LIBS.
18653         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
18654         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
18655         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
18656
18657 2007-11-11  Bruno Haible  <bruno@clisp.org>
18658
18659         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
18660         roundf were declared but do not exist on functions.
18661         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
18662         roundl were declared but do not exist on functions.
18663         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
18664         HAVE_FLOORL_AND_CEILL, respectively.
18665         Needed for Sun C on Solaris 10.
18666
18667 2007-11-11  Bruno Haible  <bruno@clisp.org>
18668
18669         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
18670         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
18671         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
18672         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
18673         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
18674         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
18675         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
18676         HAVE_DECL_ROUNDF.
18677         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
18678         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
18679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
18680         of HAVE_DECL_ROUND*.
18681         * modules/math (Makefile.am): Update.
18682
18683 2007-11-10  Bruno Haible  <bruno@clisp.org>
18684
18685         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
18686         ptrdiff_t as m4/intl.m4.
18687
18688 2007-11-10  Jim Meyering  <meyering@redhat.com>
18689
18690         Avoid link failure for the argmatch test.
18691         * tests/test-argmatch.c (usage): Define function to avoid a link
18692         failure: argmatch_die requires a usage function.
18693
18694 2007-11-09  Bruno Haible  <bruno@clisp.org>
18695
18696         * doc/functions/snprintf.texi: Mention BeOS deficiency.
18697         * doc/functions/vsnprintf.texi: Likewise.
18698         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
18699         with a size argument < 2.
18700
18701 2007-11-09  Bruno Haible  <bruno@clisp.org>
18702
18703         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
18704         buffer. Fixes an inefficiency introduced on 2007-11-03.
18705
18706 2007-11-09  Bruno Haible  <bruno@clisp.org>
18707
18708         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
18709         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
18710
18711 2007-11-08  Jim Meyering  <meyering@redhat.com>
18712
18713         Change cache variable name prefix "jm_" to "gl_" everywhere.
18714         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
18715         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
18716         * m4/uptime.m4: s/gl_/jm_/
18717
18718 2007-11-07  Bruno Haible  <bruno@clisp.org>
18719
18720         Update to GNU gettext 0.17.
18721         * m4/intl.m4: Update to GNU gettext 0.17.
18722         * m4/po.m4: Likewise.
18723         * modules/gettext (Files): Remove m4/ulonglong.m4.
18724         (configure.ac): Require gettext infrastructure from version 0.17.
18725
18726 2007-11-06  Bruno Haible  <bruno@clisp.org>
18727
18728         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
18729         symbolic values are not defined in a public header.
18730         * lib/freadable.c (freadable) [QNX]: Likewise.
18731         * lib/freadahead.c (freadahead) [QNX]: Likewise.
18732         * lib/freading.c (freading) [QNX]: Likewise.
18733         * lib/fseterr.c (fseterr) [QNX]: Likewise.
18734         * lib/fwritable.c (fwritable) [QNX]: Likewise.
18735         * lib/fwriting.c (fwriting) [QNX]: Likewise.
18736         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
18737         Reported by Alain Magloire.
18738
18739         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
18740
18741 2007-11-05  Bruno Haible  <bruno@clisp.org>
18742
18743         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
18744         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
18745         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
18746         Reported by Eric Blake.
18747
18748 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18749             Bruno Haible  <bruno@clisp.org>
18750
18751         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
18752         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
18753         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
18754         (malloc): Undefine also before including <stdlib.h>.
18755         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
18756         Needed on OSF/1 4.0.
18757
18758 2007-11-05  Jim Meyering  <meyering@redhat.com>
18759
18760         git-version-gen: sync from coreutils.
18761         * build-aux/git-version-gen: Add comments.
18762         Change the first '-' to '.' in the snapshot version string,
18763         e.g., 6.9-377-08144 -> 6.9.377-08144
18764         Remove first parameter.
18765         Don't declare a version "-dirty" merely because a time
18766         stamp has changed.
18767
18768 2007-11-04  Bruno Haible  <bruno@clisp.org>
18769
18770         * lib/lock.h: Protect all macro definitions containing an 'if'
18771         statement through a "do { ... } while (0)".
18772         * lib/tls.h: Likewise.
18773
18774 2007-11-04  Bruno Haible  <bruno@clisp.org>
18775
18776         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
18777
18778 2007-11-04  Bruno Haible  <bruno@clisp.org>
18779
18780         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
18781         * modules/fprintf-posix (Depends-on): Add nocrash.
18782         * modules/snprintf-posix (Depends-on): Likewise.
18783         * modules/sprintf-posix (Depends-on): Likewise.
18784         * modules/vasnprintf-posix (Depends-on): Likewise.
18785         * modules/vasprintf-posix (Depends-on): Likewise.
18786         * modules/vfprintf-posix (Depends-on): Likewise.
18787         * modules/vsnprintf-posix (Depends-on): Likewise.
18788         * modules/vsprintf-posix (Depends-on): Likewise.
18789         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18790         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18791         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18792         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18793         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18794         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18795         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18796
18797 2007-11-04  Bruno Haible  <bruno@clisp.org>
18798
18799         * modules/nocrash: New file.
18800         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
18801         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
18802
18803 2007-11-04  Bruno Haible  <bruno@clisp.org>
18804
18805         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
18806         precision handling.
18807         * tests/test-vasprintf-posix.c (test_function): Likewise.
18808         * tests/test-snprintf-posix.h (test_function): Likewise.
18809         * tests/test-sprintf-posix.h (test_function): Likewise.
18810
18811         Fix *printf behaviour for large precisions on mingw and BeOS.
18812         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
18813         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
18814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
18815         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18817         gl_PRINTF_PRECISION and test its result. Invoke
18818         gl_PREREQ_VASNPRINTF_PRECISION.
18819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18826         * doc/functions/fprintf.texi: Update.
18827         * doc/functions/printf.texi: Update.
18828         * doc/functions/snprintf.texi: Update.
18829         * doc/functions/sprintf.texi: Update.
18830         * doc/functions/vfprintf.texi: Update.
18831         * doc/functions/vprintf.texi: Update.
18832         * doc/functions/vsnprintf.texi: Update.
18833         * doc/functions/vsprintf.texi: Update.
18834
18835 2007-11-04  Bruno Haible  <bruno@clisp.org>
18836
18837         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
18838
18839 2007-11-04  Bruno Haible  <bruno@clisp.org>
18840
18841         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
18842         Reported by Sylvain Beucler <beuc@gnu.org>.
18843
18844 2007-11-03  Bruno Haible  <bruno@clisp.org>
18845
18846         * tests/test-fprintf-posix2.sh: New file.
18847         * tests/test-fprintf-posix2.c: New file.
18848         * modules/fprintf-posix-tests (Files): Add them.
18849         (TESTS): Add test-fprintf-posix2.sh.
18850         (configure.ac): Check for getrlimit and setrlimit.
18851         (check_PROGRAMS): Add test-fprintf-posix2.
18852
18853         * tests/test-printf-posix2.sh: New file.
18854         * tests/test-printf-posix2.c: New file.
18855         * modules/printf-posix-tests (Files): Add them.
18856         (TESTS): Add test-printf-posix2.sh.
18857         (configure.ac): Check for getrlimit and setrlimit.
18858         (check_PROGRAMS): Add test-printf-posix2.
18859
18860         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
18861         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
18862         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
18863         (decode_double): New function, copied from decode_long_double.
18864         (scale10_round_decimal_decoded): New function, extracted from
18865         scale10_round_decimal_long_double.
18866         (scale10_round_decimal_long_double): Use it.
18867         (scale10_round_decimal_double): New function.
18868         (floorlog10): New function.
18869         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
18870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
18871         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18873         gl_PRINTF_ENOMEM and test its result. Invoke
18874         gl_PREREQ_VASNPRINTF_ENOMEM.
18875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18879         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18882         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
18883         * modules/snprintf-posix (Depends-on): Likewise.
18884         * modules/sprintf-posix (Depends-on): Likewise.
18885         * modules/vasnprintf-posix (Depends-on): Likewise.
18886         * modules/vasprintf-posix (Depends-on): Likewise.
18887         * modules/vfprintf-posix (Depends-on): Likewise.
18888         * modules/vsnprintf-posix (Depends-on): Likewise.
18889         * modules/vsprintf-posix (Depends-on): Likewise.
18890         * doc/functions/fprintf.texi: Update.
18891         * doc/functions/printf.texi: Update.
18892         * doc/functions/snprintf.texi: Update.
18893         * doc/functions/sprintf.texi: Update.
18894         * doc/functions/vfprintf.texi: Update.
18895         * doc/functions/vprintf.texi: Update.
18896         * doc/functions/vsnprintf.texi: Update.
18897         * doc/functions/vsprintf.texi: Update.
18898
18899 2007-11-03  Bruno Haible  <bruno@clisp.org>
18900
18901         * modules/frexp-nolibm-tests: New file.
18902
18903         * modules/frexp-nolibm: New file.
18904         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
18905
18906 2007-11-03  Bruno Haible  <bruno@clisp.org>
18907
18908         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
18909         value is C99 compliant.
18910         Needed for OSF/1 5.1.
18911
18912 2007-11-03  Bruno Haible  <bruno@clisp.org>
18913
18914         Fix out-of-memory handling of vasnprintf.
18915         * lib/printf-parse.c: Include <errno.h>.
18916         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
18917         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
18918         is already set.
18919
18920 2007-11-02  Eric Blake  <ebb9@byu.net>
18921
18922         Fix tests on cygwin.
18923         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
18924
18925 2007-11-01  Bruno Haible  <bruno@clisp.org>
18926
18927         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
18928         warning.
18929         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
18930         needed for POSIX compatibility.
18931
18932 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
18933
18934         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
18935         for compatibility with GNU.
18936
18937 2007-11-01  Bruno Haible  <bruno@clisp.org>
18938
18939         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
18940         (putenv): Renamed from rpl_putenv. Change argument type from
18941         'const char *' to 'char *'.
18942         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
18943         of defining putenv in config.h, just set REPLACE_PUTENV.
18944         * modules/putenv (Depends-on): Add stdlib.
18945         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18946         (Include): Use <stdlib.h>.
18947         * lib/stdlib.in.h (putenv): New declaration.
18948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
18949         REPLACE_PUTENV.
18950         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
18951         REPLACE_PUTENV.
18952         Needed for MacOS X 10.5.0.
18953         Reported by Peter O'Gorman <peter@pogma.com>.
18954
18955 2007-11-01  Jim Meyering  <meyering@redhat.com>
18956
18957         Treat an empty date string exactly like "0".
18958         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
18959         if the remaining date string (to be parsed) is empty, use "0".
18960         Reported by Mischa Molhoek and discussed in this thread:
18961         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
18962
18963 2007-10-31  Bruno Haible  <bruno@clisp.org>
18964
18965         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
18966         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
18967         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
18968         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
18969         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
18970         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
18971
18972 2007-10-31  Bruno Haible  <bruno@clisp.org>
18973
18974         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
18975         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
18976         (AC_TYPE_LONG_LONG_INT): Use it.
18977         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
18978         it as well.
18979         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
18980         to m4/longlong.m4.
18981         * modules/stdint (Files): Remove m4/ulonglong.m4.
18982         * modules/strtoull (Files): Use m4/longlong.m4 instead of
18983         m4/ulonglong.m4.
18984         * modules/strtoumax (Files): Likewise.
18985
18986 2007-10-30  Bruno Haible  <bruno@clisp.org>
18987
18988         * modules/xvasprintf-posix: New file.
18989         Suggested by Eric Blake.
18990
18991 2007-10-30  Bruno Haible  <bruno@clisp.org>
18992
18993         * modules/xprintf-posix-tests: New file.
18994         * tests/test-xprintf-posix.sh: New file.
18995         * tests/test-xprintf-posix.c: New file.
18996         * tests/test-xfprintf-posix.c: New file.
18997
18998         * modules/xprintf-posix: New file.
18999
19000 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19001
19002         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
19003         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
19004         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
19005
19006 2007-10-29  Bruno Haible  <bruno@clisp.org>
19007
19008         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
19009         contain the special marker '_cv_'.
19010         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19011         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19012         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19013         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19014         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19015         Reported by Ralf Wildenhues.
19016
19017 2007-10-29  Bruno Haible  <bruno@clisp.org>
19018
19019         * gnulib-tool (func_import): When --lgpl is not specified, set
19020         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
19021         GPLv3.
19022         Reported by Simon Josefsson.
19023
19024 2007-10-28  Bruno Haible  <bruno@clisp.org>
19025
19026         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
19027         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
19028         HAVE_DECL_ISFINITE.
19029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19030         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
19031         HAVE_DECL_ISFINITE.
19032
19033 2007-10-28  Bruno Haible  <bruno@clisp.org>
19034
19035         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
19036         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
19037
19038 2007-10-28  Bruno Haible  <bruno@clisp.org>
19039
19040         Fix link errors with Sun C 5.0 on Solaris 10.
19041         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
19042         function is declared but not present in the compiler's libm.
19043         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19044         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19045         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
19046         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
19047         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
19048         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
19049         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
19050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19051         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
19052         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
19053         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
19054         HAVE_DECL_FLOORL.
19055
19056 2007-10-28  Bruno Haible  <bruno@clisp.org>
19057
19058         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
19059         gl_FUNC_FLOORL. Cache the result.
19060         (gl_FUNC_FLOORL): Use it.
19061         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
19062         gl_FUNC_CEILL. Cache the result.
19063         (gl_FUNC_CEILL): Use it.
19064
19065         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
19066         gl_FUNC_FLOOR. Cache the result.
19067         (gl_FUNC_FLOOR): Use it.
19068         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
19069         gl_FUNC_CEIL. Cache the result.
19070         (gl_FUNC_CEIL): Use it.
19071
19072         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
19073         gl_FUNC_FLOORF. Cache the result.
19074         (gl_FUNC_FLOORF): Use it.
19075         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
19076         gl_FUNC_CEILF. Cache the result.
19077         (gl_FUNC_CEILF): Use it.
19078
19079 2007-10-28  Bruno Haible  <bruno@clisp.org>
19080
19081         * gnulib-tool: Allow specifying the LGPL version number through
19082         --lgpl=2 or --lgpl=3.
19083         (func_usage): Document --lgpl with argument.
19084         Handle --lgpl=... arguments.
19085         (func_import): Recognize also gl_LGPL calls with an argument. When
19086         --lgpl=2 is used and the module's license is just LGPL, report an
19087         error. Set sed_transform_lib_file according to the lgpl variable. In
19088         the generated files, use --lgpl or gl_LGPL invocations with argument,
19089         if necessary.
19090         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
19091         an LGPv2+ license.
19092         * doc/gnulib-tool.texi (Modified imports): Update explanation of
19093         gl_LGPL macro.
19094
19095 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19096             Bruno Haible  <bruno@clisp.org>
19097
19098         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
19099         (u16_uctomb_aux): Likewise.
19100         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
19101         !HAVE_INLINE.
19102         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
19103
19104 2007-10-28  Bruno Haible  <bruno@clisp.org>
19105
19106         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
19107         Invoke AM_GETTEXT_OPTION if it exists.
19108         * modules/vasprintf: Likewise.
19109         * modules/verror: Likewise.
19110         * modules/xprintf: Likewise.
19111         * modules/xvasprintf: Likewise.
19112
19113 2007-10-27  Ben Pfaff  <blp@gnu.org>
19114
19115         * lib/math.in.h: Define isfinite macro and prototypes for
19116         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
19117         implementations.
19118         * m4/math_h.m4: New substitutions for isfinite module.
19119         * lib/isfinite.c: New file.
19120         * m4/isfinite.m4: New file.
19121         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
19122         * modules/isfinite: New file.
19123         * modules/isfinite-tests: New file.
19124         * tests/tests-isfinite.c: New file.
19125         * doc/functions/isfinite.texi: Mention isfinite module.
19126         * MODULES.html.sh: Mention new module.
19127
19128 2007-10-27  Ben Pfaff  <blp@gnu.org>
19129
19130         Ralf Wildenhues reported that Tru64 4.0D declares the round
19131         functions but does not have definitions.
19132         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
19133         cannot be found in any library, set the output variable to
19134         "missing" instead of "".
19135         * m4/round.m4: Also use our substitute if we cannot find round in
19136         any library, even if it is declared.
19137         * m4/roundf.m4: Likewise for roundf.
19138         * m4/roundl.m4: Likewise for roundl.
19139         * lib/math.in.h: Undefine roundf, round, roundl before defining
19140         their replacements, to allow for hypothetical systems where these
19141         may be defined as macros but not available in libraries.
19142
19143 2007-10-27  Bruno Haible  <bruno@clisp.org>
19144
19145         * doc/gnulib.texi: Invoke @firstparagraphindent.
19146         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
19147         changes in gnulib.
19148         (Source changes): New section.
19149
19150 2007-10-26  Bruno Haible  <bruno@clisp.org>
19151
19152         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
19153         borrowed from autoconf.
19154
19155 2007-10-26  Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
19158         strerror returned the empty string. Needed on HP-UX 11.00.
19159
19160 2007-10-24  Micah Cowan  <micah@cowan.name>
19161
19162         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
19163         * build-aux/bootstrap: Remove support for now-unnecessary option,
19164         --cvs-user, and envvars CVS_USER, CVS_RSH.
19165
19166 2007-10-24  Jim Meyering  <meyering@redhat.com>
19167
19168         Avoid diagnostics from sha1sum when there is no cached checksum.
19169         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
19170         if the po.s1 file hasn't been created yet.
19171
19172         * build-aux/bootstrap: Sync from coreutils:
19173         2007-10-24  Jim Meyering  <meyering@redhat.com>
19174         Get gnulib from the git repository, not from an obsolete cvs one.
19175         * build-aux/bootstrap: Suggestion from Micah Cowan.
19176         2007-10-04  Jim Meyering  <jim@meyering.net>
19177         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
19178         (update_po_files): Work also when there are no .po files in po/.
19179
19180 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19181
19182         * README: Append ".git" to git and cg examples.
19183         Problem reported by Benoit Sigoure.
19184
19185 2007-10-23  Micah Cowan  <micah@cowan.name>
19186
19187         * users.txt: Add wget.
19188
19189 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19190
19191         Fix linking of some unistdio tests on FreeBSD.
19192         * modules/unistdio/u16-vsnprintf-tests
19193         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
19194         * modules/unistdio/u16-vsprintf-tests
19195         (test_u16_vsnprintf1_LDADD): Likewise.
19196         * modules/unistdio/u32-vsnprintf-tests
19197         (test_u32_vsnprintf1_LDADD): Likewise.
19198         * modules/unistdio/u32-vsprintf-tests
19199         (test_u32_vsprintf1_LDADD): Likewise.
19200         * modules/unistdio/u8-vsnprintf-tests
19201         (test_u8_vsnprintf1_LDADD): Likewise.
19202         * modules/unistdio/u8-vsprintf-tests
19203         (test_u8_vsprintf1_LDADD): Likewise.
19204         * modules/unistdio/ulc-vsnprintf-tests
19205         (test_ulc_vsnprintf1_LDADD): Likewise.
19206         * modules/unistdio/ulc-vsprintf-tests
19207         (test_ulc_vsprintf1_LDADD): Likewise.
19208
19209         Fix linking of some uniconv tests on FreeBSD.
19210         * modules/uniconv/u16-conv-from-enc-tests
19211         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
19212         * modules/uniconv/u16-conv-to-enc-tests
19213         (test_u16_conv_to_enc_LDADD): Likewise.
19214         * modules/uniconv/u16-strconv-from-enc-tests
19215         (test_u16_strconv_from_enc_LDADD): Likewise.
19216         * modules/uniconv/u16-strconv-to-enc-tests
19217         (test_u16_strconv_to_enc_LDADD): Likewise.
19218         * modules/uniconv/u32-conv-from-enc-tests
19219         (test_u32_conv_from_enc_LDADD): Likewise.
19220         * modules/uniconv/u32-conv-to-enc-tests
19221         (test_u32_conv_to_enc_LDADD): Likewise.
19222         * modules/uniconv/u32-strconv-from-enc-tests
19223         (test_u32_strconv_from_enc_LDADD): Likewise.
19224         * modules/uniconv/u32-strconv-to-enc-tests
19225         (test_u32_strconv_to_enc_LDADD): Likewise.
19226         * modules/uniconv/u8-conv-from-enc-tests
19227         (test_u8_conv_from_enc_LDADD): Likewise.
19228         * modules/uniconv/u8-conv-to-enc-tests
19229         (test_u8_conv_to_enc_LDADD): Likewise.
19230         * modules/uniconv/u8-strconv-from-enc-tests
19231         (test_u8_strconv_from_enc_LDADD): Likewise.
19232         * modules/uniconv/u8-strconv-to-enc-tests
19233         (test_u8_strconv_to_enc_LDADD): Likewise.
19234
19235 2007-10-22  Bruno Haible  <bruno@clisp.org>
19236
19237         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
19238         size.
19239
19240 2007-10-22  Eric Blake  <ebb9@byu.net>
19241
19242         Tweak x*printf documentation.
19243         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
19244         variable name and comments.
19245         Suggested by Bruno Haible.
19246
19247 2007-10-22  Bruno Haible  <bruno@clisp.org>
19248
19249         * lib/acl.c (copy_acl): Fix file name in comment.
19250
19251 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         Fix Tru64 problem with stdbool.h.
19254         * lib/stdbool.in.h (false, true):
19255         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
19256         Don't declare as an enum in this situation; it runs afoul of Tru64.
19257         Problem reported by Steven M. Schweda in
19258         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
19259
19260 2007-10-22  Eric Blake  <ebb9@byu.net>
19261
19262         Also wrap vf?printf.
19263         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
19264         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
19265         (xvprintf, xvfprintf): New functions.
19266
19267 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19268
19269         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
19270         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
19271
19272         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
19273         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
19274
19275 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19276
19277         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
19278         by Bruno Haible.
19279
19280 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19281
19282         * lib/getloadavg.c
19283         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
19284         Undef `sys' after including sys/table.h, for Tru64 4.0D.
19285
19286         * tests/test-i-ring.c: Work for C89.
19287
19288 2007-10-22  Bruno Haible  <bruno@clisp.org>
19289
19290         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
19291         -1u, in preprocessor expression, so that we don't test for the bug
19292         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
19293         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
19294
19295 2007-10-22  Eric Blake  <ebb9@byu.net>
19296
19297         * tests/test-yesno.sh: Silence stderr during test.
19298
19299 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19300
19301         * modules/crypto/gc-camellia: New file.
19302
19303         * m4/gc-camellia.m4: New file.
19304
19305         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
19306
19307         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
19308
19309 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19310
19311         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
19312         --help to stdout.  Reported by sms@antinode.org (Steven
19313         M. Schweda).
19314
19315 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19316
19317         * users.txt: Fix link to libksba.
19318
19319 2007-10-21  Ben Pfaff  <blp@gnu.org>
19320
19321         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
19322         round.c roundf implementation that depends on floorf and ceilf to
19323         be tested unconditionally.
19324
19325 2007-10-21  Ben Pfaff  <blp@gnu.org>
19326
19327         * m4/check-libm-func.m4: Removed.
19328         * m4/check-math-lib.m4: New file.
19329         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
19330         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
19331         definition and lack of AC_LIBOBJ([roundf]).
19332         * m4/roundl.m4: Ditto, and similarly for roundl.
19333         * modules/round: Reference new m4 file.
19334         * modules/roundf: Ditto.
19335         * modules/roundl: Ditto.
19336         * tests/test-round2.c (main): Use ROUND instead of round.
19337         Bug report from Bruno Haible.
19338
19339 2007-10-21  Bruno Haible  <bruno@clisp.org>
19340
19341         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
19342         context.
19343
19344 2007-10-21  Bruno Haible  <bruno@clisp.org>
19345
19346         * tests/test-wcwidth.c (main): Allow negative result for some control
19347         characters.
19348
19349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
19350         Needed on OSF/1 5.1.
19351
19352 2007-10-21  Bruno Haible  <bruno@clisp.org>
19353
19354         * tests/test-floorf1.c: Include isnanf.h.
19355         (main): Use isnanf() instead of isnan().
19356         * tests/test-ceilf1.c: Include isnanf.h.
19357         (main): Use isnanf() instead of isnan().
19358         * tests/test-truncf1.c: Include isnanf.h.
19359         (main): Use isnanf() instead of isnan().
19360         * tests/test-roundf1.c: Include isnanf.h.
19361         (main): Use isnanf() instead of isnan().
19362
19363 2007-10-21  Eric Blake  <ebb9@byu.net>
19364
19365         * users.txt: Update URL for m4.
19366
19367 2007-10-21  Bruno Haible  <bruno@clisp.org>
19368
19369         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
19370
19371 2007-10-21  Bruno Haible  <bruno@clisp.org>
19372
19373         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
19374         Git's management files if the CVS files are not present.
19375
19376 2007-10-20  Bruno Haible  <bruno@clisp.org>
19377
19378         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
19379         gcc-3.4.x.
19380
19381 2007-10-20  Ben Pfaff  <blp@gnu.org>
19382
19383         * lib/math.in.h: Declare round, roundf, roundl if we are providing
19384         implementations.
19385         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
19386         * lib/round.c: New file.
19387         * lib/roundf.c: New file.
19388         * lib/roundl.c: New file.
19389         * m4/round.m4: New file.
19390         * m4/roundf.m4: New file.
19391         * m4/roundl.m4: New file.
19392         * m4/check-libm-func-m4: New file.
19393         * modules/math: Replace round, roundf, roundl related @VARS@ in
19394         math.in.h.
19395         * modules/round: New file.
19396         * modules/round-tests: New file.
19397         * modules/roundf: New file.
19398         * modules/roundf-tests: New file.
19399         * modules/roundl: New file.
19400         * modules/roundl-tests: New file.
19401         * tests/test-round1.c: New file.
19402         * tests/test-round2.c: New file.
19403         * tests/test-roundf1.c: New file.
19404         * tests/test-roundf2.c: New file.
19405         * tests/test-roundl.c: New file.
19406         * doc/functions/round.texi: Mention round module.
19407         * doc/functions/roundf.texi: Mention roundf module.
19408         * doc/functions/roundl.texi: Mention roundl module.
19409         * MODULES.html.sh: Mention new modules.
19410         Thanks to Bruno Haible for suggestions.
19411
19412 2007-10-20  Jim Meyering  <meyering@redhat.com>
19413
19414         * lib/xprintf.c: Include <config.h> unconditionally.
19415
19416         Change xprintf's license to GPL.
19417         * modules/xprintf (License): s/LGPL/GPL/, since this module
19418         depends on modules (exit and exitfail) which are GPL.
19419         Suggestion from Bruno Haible.
19420
19421         xprintf fixes.
19422         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
19423         Use a clearer diagnostic.
19424         Patch from Bruno Haible.
19425
19426 2007-10-20  Bruno Haible  <bruno@clisp.org>
19427
19428         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
19429         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
19430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19431
19432 2007-10-20  Bruno Haible  <bruno@clisp.org>
19433
19434         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
19435         precision in the comparison result > x - 1 or similar.
19436         * tests/test-ceilf2.c (correct_result_p): Likewise.
19437         * tests/test-truncf2.c (correct_result_p): Likewise.
19438         * tests/test-trunc2.c (correct_result_p): Likewise.
19439         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19440
19441 2007-10-20  Bruno Haible  <bruno@clisp.org>
19442
19443         * modules/ceil: New file.
19444         * m4/ceil.m4: New file.
19445         * doc/functions/ceil.texi: Mention the 'ceil' module.
19446
19447 2007-10-20  Bruno Haible  <bruno@clisp.org>
19448
19449         * modules/floor: New file.
19450         * m4/floor.m4: New file.
19451         * doc/functions/floor.texi: Mention the 'floor' module.
19452
19453 2007-10-20  Bruno Haible  <bruno@clisp.org>
19454
19455         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
19456         of %a.
19457         * modules/floorf-tests (Depends-on): Likewise.
19458         * modules/truncf-tests (Depends-on): Likewise.
19459         * modules/trunc-tests (Depends-on): Likewise.
19460         Reported by Ben Pfaff.
19461
19462 2007-10-19  Jim Meyering  <meyering@redhat.com>
19463
19464         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
19465         Don't bother testing specific errno values.  Just test ferror.
19466
19467         New module: xprintf
19468         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
19469
19470 2007-10-19  Bruno Haible  <bruno@clisp.org>
19471
19472         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
19473         syntax.
19474         * modules/javaexec (Makefile.am): Likewise.
19475         * modules/relocatable-prog (Makefile.am): Likewise.
19476         Suggested by Jim Meyering.
19477
19478 2007-10-18  Bruno Haible  <bruno@clisp.org>
19479
19480         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
19481         Reported by Jim Meyering.
19482
19483 2007-10-18  Eric Blake  <ebb9@byu.net>
19484
19485         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
19486
19487 2007-10-18  Bruno Haible  <bruno@clisp.org>
19488
19489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
19490         the format string into writable memory. Needed in Fortify conditions.
19491
19492 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
19493             Bruno Haible  <bruno@clisp.org>
19494
19495         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
19496         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
19497         * modules/trim (Depends-on): Add mbchar.
19498         (configure.ac): Add gl_FUNC_MBRTOWC.
19499         (Makefile.am): Augment lib_SOURCES.
19500
19501 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19502
19503         Modify glob.c to use fstatat and dirfd, to simplify it.
19504         Suggested by Eric Blake.
19505         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
19506         Don't include <stdbool.h>; not used.
19507         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
19508         (link_exists_p): Simplify implementation, since we can now assume
19509         dirfd and fstatat.
19510         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
19511
19512 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19513
19514         * gnulib-tool (func_get_dependencies): Fix sed script to
19515         match only tests.
19516
19517 2007-10-17  Bruno Haible  <bruno@clisp.org>
19518
19519         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
19520         allow locale names without encoding suffix.
19521         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19522         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19523
19524 2007-10-16  Bruno Haible  <bruno@clisp.org>
19525
19526         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
19527         * lib/getgroups.c (getgroups): Likewise.
19528         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
19529
19530 2007-10-16  Bruno Haible  <bruno@clisp.org>
19531
19532         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
19533         * modules/malloc-posix (License): Likewise.
19534         * modules/realloc-posix (License): Likewise.
19535         * modules/calloc-posix (License): Likewise.
19536         * modules/intprops (License): Change from GPL to LGPL, with
19537         Paul Eggert's approval.
19538
19539 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19540
19541         Merge glibc changes into lib/glob.c.
19542
19543         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
19544         2007-10-15 04:59:03 UTC.  Here are the changes:
19545
19546         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
19547
19548         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
19549
19550         * lib/glob.c: Add some branch prediction throughout.
19551
19552         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
19553
19554         [BZ #5103]
19555         * lib/glob.c (glob): Recognize patterns starting \/.
19556
19557         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
19558
19559         [BZ #3996]
19560         * lib/glob.c (attribute_hidden): Define if not defined.
19561         (glob): Unescape dirname, filename or username when needed and not
19562         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
19563         is NULL.  Handle unescaped [ in pattern without closing ].
19564         Don't pass GLOB_CHECK down to recursive glob for directories.
19565         (__glob_pattern_type): New function.
19566         (__glob_pattern_p): Implement using __glob_pattern_type.
19567         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
19568         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
19569         Remove unreachable code.
19570
19571         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
19572
19573         * lib/glob.c (glob_in_dir): Add some comments and asserts to
19574         explain why there are no leaks.
19575
19576         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
19577
19578         [BZ #3253]
19579         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
19580         time, rather allocate increasingly bigger arrays of pointers, if
19581         possible with alloca, if too large with malloc.
19582
19583 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19584
19585         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
19586         Problem reported by H.Merijn Brand in
19587         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
19588         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
19589         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19590
19591 2007-10-15  Bruno Haible  <bruno@clisp.org>
19592
19593         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
19594         with explicit rpl_ prefix.
19595         * lib/fopen.c (fopen): Likewise.
19596         * lib/freopen.c (freopen): Likewise.
19597         * lib/iconv.c (iconv): Likewise.
19598         * lib/iconv_close.c (iconv_close): Likewise.
19599
19600 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19601
19602         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
19603
19604 2007-10-15  Bruno Haible  <bruno@clisp.org>
19605
19606         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
19607         <stddef.h> instead of <stdlib.h> since we only need NULL.
19608         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19609
19610 2007-10-15  Bruno Haible  <bruno@clisp.org>
19611
19612         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
19613         Replace paragraph talking about LIBOBJS.
19614         Reported by Colin Watson <cjwatson@debian.org>.
19615
19616 2007-10-15  Bruno Haible  <bruno@clisp.org>
19617
19618         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
19619         <stdlib.h> before using NULL.
19620
19621 2007-10-15  Simon Josefsson  <simon@josefsson.org>
19622
19623         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
19624         Reported by Albert Chin <china@thewrittenword.com>.
19625
19626 2007-10-14  Bruno Haible  <bruno@clisp.org>
19627
19628         * modules/iconv_open-utf-tests: New file.
19629         * tests/test-iconv-utf.c: New file.
19630
19631         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
19632         * modules/iconv_open-utf: New file.
19633         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
19634         (iconv, iconv_close): New declarations.
19635         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
19636         be defined.
19637         (iconv_open): Add special handling of conversion between UTF-8 and
19638         UTF-{16,32}{BE,LE}.
19639         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
19640         * lib/iconv_close.c: New file.
19641         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
19642         gl_FUNC_ICONV_OPEN.
19643         (gl_FUNC_ICONV_OPEN): Use it.
19644         (gl_FUNC_ICONV_OPEN_UTF): New macro.
19645         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
19646         and REPLACE_ICONV_UTF.
19647         * modules/iconv_open (Depends-on): Add c-strcase.
19648         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
19649         ICONV_CONST.
19650         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
19651
19652 2007-10-13  Albert Chin  <china@thewrittenword.com>
19653             Bruno Haible  <bruno@clisp.org>
19654
19655         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
19656         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
19657
19658 2007-10-13  Bruno Haible  <bruno@clisp.org>
19659
19660         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
19661         defined, use the ISO C99 inline semantics.
19662         * lib/argp.h (ARGP_EI): Likewise.
19663
19664 2007-10-13  Bruno Haible  <bruno@clisp.org>
19665
19666         Handle 'inline' change in gcc 4.3.0.
19667         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
19668         argp_fmtstream_write, argp_fmtstream_set_lmargin,
19669         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
19670         argp_fmtstream_point): Disable 'extern' declaration if the function
19671         definition is going to be provided inline.
19672         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
19673         semantics, not the ISO C99 inline semantics.
19674         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
19675         'extern' declaration if the function definition is going to be provided
19676         inline.
19677         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
19678         the GNU C inline semantics, not the ISO C99 inline semantics. With
19679         GCC 4.2, avoid a warning.
19680
19681 2007-10-13  Bruno Haible  <bruno@clisp.org>
19682
19683         * lib/freading.h (freading): Enable the use of __freading for
19684         glibc >= 2.7.
19685         * lib/freading.c (freading): Likewise.
19686
19687 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19688
19689         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
19690         "warning: C99 inline functions are not supported; using GNU89".
19691
19692 2007-10-12  Bruno Haible  <bruno@clisp.org>
19693
19694         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
19695         of 2.
19696         * tests/test-ceilf2.c: New file.
19697         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
19698
19699         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
19700         * modules/ceilf-tests: Update.
19701
19702 2007-10-12  Bruno Haible  <bruno@clisp.org>
19703
19704         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
19705         of 2.
19706         * tests/test-floorf2.c: New file.
19707         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
19708
19709         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
19710         * modules/floorf-tests: Update.
19711
19712 2007-10-12  Bruno Haible  <bruno@clisp.org>
19713
19714         * tests/test-trunc2.c: New file.
19715         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
19716
19717         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
19718         * modules/trunc-tests: Update.
19719
19720 2007-10-12  Bruno Haible  <bruno@clisp.org>
19721
19722         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
19723         of 2.
19724         * tests/test-truncf2.c: New file.
19725         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
19726
19727         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
19728         * modules/truncf-tests: Update.
19729
19730 2007-10-11  Eric Blake  <ebb9@byu.net>
19731
19732         Don't claim strerror is broken on Interix.
19733         * doc/functions/strerror.texi (strerror): Known broken systems are
19734         now Solaris 8, and not Interix.
19735         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
19736         Interix on cross-compile.
19737         Reported by Martin Koeppe in
19738         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
19739
19740 2007-10-11  Bruno Haible  <bruno@clisp.org>
19741
19742         * modules/i-ring-tests: New file.
19743         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
19744         instead of assert.
19745
19746 2007-10-11  Bruno Haible  <bruno@clisp.org>
19747
19748         * modules/filenamecat-tests: New file.
19749         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
19750         * lib/filenamecat.c: Remove test code.
19751
19752 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19753
19754         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
19755
19756         * lib/strerror.c: Include <string.h> always, to test interface,
19757         and to remove the need for the dummy.
19758         Include intprops.h to compute width instead of doing it ourselves
19759         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
19760         (strerror): Define it to return NULL if there's no system strerror.
19761         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
19762         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
19763         ancient pre-strerror Unix systems well any more.  Saying "unknown
19764         system error" is enough.
19765         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
19766         simpler strerror.c implementation.
19767         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
19768         Simplify the tests to reflect the simpler strerror implementation.
19769         * modules/strerror (Depends-on): Add intprops.
19770
19771 2007-10-09  Eric Blake  <ebb9@byu.net>
19772
19773         Silence test-fpending.
19774         * modules/fpending-tests (Files): Add wrapper script.
19775         * tests/test-fpending.sh: New file.
19776
19777 2007-10-09  Bruno Haible  <bruno@clisp.org>
19778
19779         * MODULES.html.sh (func_module): Don't create a hyperlink for
19780         function names like 'printf_frexp'.
19781         (Misc): Add crc, memxor.
19782         (Characteristics of floating types): New section.
19783         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
19784         isnanf-nolibm, signbit, trunc, truncf, truncl.
19785         (Enhancements for ISO C 99 functions): New subsection Input/output.
19786         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
19787         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
19788         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
19789         (Compatibility checks for POSIX:2001 functions): Add clock-time.
19790         (Enhancements for POSIX:2001 functions): Add chdir-long.
19791         (File system functions): Add areadlink, chdir-safer, read-file.
19792         Remove cycle-check.
19793         (File system as inode set): New section.
19794         (Date and time): Add gethrxtime.
19795         (Multithreading): Add openmp.
19796         (Internationalization functions): Add localename.
19797         (Unicode string functions): Add unistr/u*-mbsnlen.
19798         (Support for maintaining and releasing projects): Add git-version-gen.
19799         (Lone files): Remove directories.
19800
19801 2007-10-08  Ben Pfaff  <blp@gnu.org>
19802
19803         * lib/xmalloca.h: Fix typo in comment.
19804
19805 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19806
19807         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
19808         when avoiding problems with integer overflow.  Use a portable test
19809         instead.
19810
19811 2007-10-08  Simon Josefsson  <simon@josefsson.org>
19812
19813         * modules/dummy (License): Change to LGPLv2+.
19814         * modules/float (License): Likewise
19815         * modules/realloc (License): Likewise
19816         * modules/stdlib (License): Likewise
19817
19818 2007-10-07  Bruno Haible  <bruno@clisp.org>
19819
19820         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
19821         * floor.c (TWO_MANT_DIG): Likewise.
19822         * ceil.c (TWO_MANT_DIG): Likewise.
19823         Reported by Ben Pfaff.
19824
19825 2007-10-07  Bruno Haible  <bruno@clisp.org>
19826
19827         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
19828         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
19829         * lib/frexp.c (FUNC): Likewise.
19830         * lib/printf-frexp.h (printf_frexp): Likewise.
19831         * lib/printf-frexpl.h (printf_frexpl): Likewise.
19832         * lib/printf-frexp.c (FUNC): Likewise.
19833         Suggested by Jim Meyering.
19834
19835 2007-10-07  Jim Meyering  <meyering@redhat.com>
19836
19837         Make xnanosleep's integer overflow test more robust.
19838         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
19839         so that gcc-4.3.0 doesn't optimize away this test for overflow.
19840
19841 2007-10-07  Bruno Haible  <bruno@clisp.org>
19842
19843         * NEWS: Mention the license change.
19844
19845         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
19846         abbreviations in the modules files.
19847
19848         Change copyright notice from GPLv2+ to GPLv3+.
19849         * README: Change copyright notice.
19850         * MODULES.html.sh: Likewise.
19851         * build-aux/bootstrap.conf: Likewise.
19852         * build-aux/config.libpath: Likewise.
19853         * build-aux/csharpcomp.sh.in: Likewise.
19854         * build-aux/csharpexec.sh.in: Likewise.
19855         * build-aux/install-reloc: Likewise.
19856         * build-aux/javacomp.sh.in: Likewise.
19857         * build-aux/javaexec.sh.in: Likewise.
19858         * build-aux/ldd.sh.in: Likewise.
19859         * build-aux/reloc-ldflags: Likewise.
19860         * build-aux/relocatable.sh.in: Likewise.
19861         * build-aux/x-to-1.in: Likewise.
19862         * check-module: Likewise.
19863         * config/srclistvars.sh: Likewise.
19864         * gnulib-tool: Likewise.
19865         * lib/acl-internal.h: Likewise.
19866         * lib/acl.c: Likewise.
19867         * lib/acl.h: Likewise.
19868         * lib/acl_entries.c: Likewise.
19869         * lib/areadlink-with-size.c: Likewise.
19870         * lib/areadlink.c: Likewise.
19871         * lib/areadlink.h: Likewise.
19872         * lib/argmatch.c: Likewise.
19873         * lib/argmatch.h: Likewise.
19874         * lib/argp-ba.c: Likewise.
19875         * lib/argp-eexst.c: Likewise.
19876         * lib/argp-fmtstream.c: Likewise.
19877         * lib/argp-fmtstream.h: Likewise.
19878         * lib/argp-fs-xinl.c: Likewise.
19879         * lib/argp-help.c: Likewise.
19880         * lib/argp-namefrob.h: Likewise.
19881         * lib/argp-parse.c: Likewise.
19882         * lib/argp-pin.c: Likewise.
19883         * lib/argp-pv.c: Likewise.
19884         * lib/argp-pvh.c: Likewise.
19885         * lib/argp-xinl.c: Likewise.
19886         * lib/argp.h: Likewise.
19887         * lib/at-func.c: Likewise.
19888         * lib/atanl.c: Likewise.
19889         * lib/backupfile.c: Likewise.
19890         * lib/backupfile.h: Likewise.
19891         * lib/basename.c: Likewise.
19892         * lib/binary-io.h: Likewise.
19893         * lib/byteswap.in.h: Likewise.
19894         * lib/c-stack.c: Likewise.
19895         * lib/c-stack.h: Likewise.
19896         * lib/c-strcasestr.c: Likewise.
19897         * lib/c-strcasestr.h: Likewise.
19898         * lib/c-strstr.c: Likewise.
19899         * lib/c-strstr.h: Likewise.
19900         * lib/c-strtod.c: Likewise.
19901         * lib/calloc.c: Likewise.
19902         * lib/canon-host.c: Likewise.
19903         * lib/canon-host.h: Likewise.
19904         * lib/canonicalize-lgpl.c: Likewise.
19905         * lib/canonicalize.c: Likewise.
19906         * lib/canonicalize.h: Likewise.
19907         * lib/ceil.c: Likewise.
19908         * lib/ceilf.c: Likewise.
19909         * lib/ceill.c: Likewise.
19910         * lib/chdir-long.c: Likewise.
19911         * lib/chdir-long.h: Likewise.
19912         * lib/chdir-safer.c: Likewise.
19913         * lib/chdir-safer.h: Likewise.
19914         * lib/chown.c: Likewise.
19915         * lib/classpath.c: Likewise.
19916         * lib/classpath.h: Likewise.
19917         * lib/clean-temp.c: Likewise.
19918         * lib/clean-temp.h: Likewise.
19919         * lib/cloexec.c: Likewise.
19920         * lib/close-stream.c: Likewise.
19921         * lib/closein.c: Likewise.
19922         * lib/closein.h: Likewise.
19923         * lib/closeout.c: Likewise.
19924         * lib/closeout.h: Likewise.
19925         * lib/concat-filename.c: Likewise.
19926         * lib/copy-file.c: Likewise.
19927         * lib/copy-file.h: Likewise.
19928         * lib/count-one-bits.h: Likewise.
19929         * lib/crc.c: Likewise.
19930         * lib/crc.h: Likewise.
19931         * lib/creat-safer.c: Likewise.
19932         * lib/csharpcomp.c: Likewise.
19933         * lib/csharpcomp.h: Likewise.
19934         * lib/csharpexec.c: Likewise.
19935         * lib/csharpexec.h: Likewise.
19936         * lib/cycle-check.c: Likewise.
19937         * lib/cycle-check.h: Likewise.
19938         * lib/diacrit.c: Likewise.
19939         * lib/diacrit.h: Likewise.
19940         * lib/diffseq.h: Likewise.
19941         * lib/dirchownmod.c: Likewise.
19942         * lib/dirent.in.h: Likewise.
19943         * lib/dirfd.c: Likewise.
19944         * lib/dirfd.h: Likewise.
19945         * lib/dirname.c: Likewise.
19946         * lib/dirname.h: Likewise.
19947         * lib/dummy.c: Likewise.
19948         * lib/dup-safer.c: Likewise.
19949         * lib/dup2.c: Likewise.
19950         * lib/eealloc.h: Likewise.
19951         * lib/error.c: Likewise.
19952         * lib/error.h: Likewise.
19953         * lib/euidaccess.c: Likewise.
19954         * lib/exclude.c: Likewise.
19955         * lib/exclude.h: Likewise.
19956         * lib/execute.c: Likewise.
19957         * lib/execute.h: Likewise.
19958         * lib/exitfail.c: Likewise.
19959         * lib/exitfail.h: Likewise.
19960         * lib/expl.c: Likewise.
19961         * lib/fatal-signal.c: Likewise.
19962         * lib/fatal-signal.h: Likewise.
19963         * lib/fbufmode.c: Likewise.
19964         * lib/fbufmode.h: Likewise.
19965         * lib/fchdir.c: Likewise.
19966         * lib/fchmodat.c: Likewise.
19967         * lib/fchownat.c: Likewise.
19968         * lib/fcntl--.h: Likewise.
19969         * lib/fcntl-safer.h: Likewise.
19970         * lib/fcntl.in.h: Likewise.
19971         * lib/fd-safer.c: Likewise.
19972         * lib/fflush.c: Likewise.
19973         * lib/file-has-acl.c: Likewise.
19974         * lib/file-set.c: Likewise.
19975         * lib/file-type.c: Likewise.
19976         * lib/file-type.h: Likewise.
19977         * lib/fileblocks.c: Likewise.
19978         * lib/filemode.c: Likewise.
19979         * lib/filemode.h: Likewise.
19980         * lib/filename.h: Likewise.
19981         * lib/filenamecat.c: Likewise.
19982         * lib/filenamecat.h: Likewise.
19983         * lib/findprog.c: Likewise.
19984         * lib/findprog.h: Likewise.
19985         * lib/float.in.h: Likewise.
19986         * lib/floor.c: Likewise.
19987         * lib/floorf.c: Likewise.
19988         * lib/floorl.c: Likewise.
19989         * lib/fopen-safer.c: Likewise.
19990         * lib/fopen.c: Likewise.
19991         * lib/fpending.c: Likewise.
19992         * lib/fpending.h: Likewise.
19993         * lib/fprintf.c: Likewise.
19994         * lib/fprintftime.h: Likewise.
19995         * lib/fpucw.h: Likewise.
19996         * lib/fpurge.c: Likewise.
19997         * lib/fpurge.h: Likewise.
19998         * lib/freadable.c: Likewise.
19999         * lib/freadable.h: Likewise.
20000         * lib/freadahead.c: Likewise.
20001         * lib/freadahead.h: Likewise.
20002         * lib/freading.c: Likewise.
20003         * lib/freading.h: Likewise.
20004         * lib/free.c: Likewise.
20005         * lib/freopen.c: Likewise.
20006         * lib/frexp.c: Likewise.
20007         * lib/frexpl.c: Likewise.
20008         * lib/fseek.c: Likewise.
20009         * lib/fseterr.c: Likewise.
20010         * lib/fseterr.h: Likewise.
20011         * lib/fstatat.c: Likewise.
20012         * lib/fstrcmp.c: Likewise.
20013         * lib/fstrcmp.h: Likewise.
20014         * lib/fsusage.c: Likewise.
20015         * lib/fsusage.h: Likewise.
20016         * lib/ftell.c: Likewise.
20017         * lib/ftello.c: Likewise.
20018         * lib/fts-cycle.c: Likewise.
20019         * lib/fts.c: Likewise.
20020         * lib/fts_.h: Likewise.
20021         * lib/full-read.c: Likewise.
20022         * lib/full-read.h: Likewise.
20023         * lib/full-write.c: Likewise.
20024         * lib/full-write.h: Likewise.
20025         * lib/fwritable.c: Likewise.
20026         * lib/fwritable.h: Likewise.
20027         * lib/fwriteerror.c: Likewise.
20028         * lib/fwriteerror.h: Likewise.
20029         * lib/fwriting.c: Likewise.
20030         * lib/fwriting.h: Likewise.
20031         * lib/gcd.c: Likewise.
20032         * lib/gcd.h: Likewise.
20033         * lib/getcwd.c: Likewise.
20034         * lib/getdate.h: Likewise.
20035         * lib/getdate.y: Likewise.
20036         * lib/getdomainname.c: Likewise.
20037         * lib/getdomainname.h: Likewise.
20038         * lib/getgroups.c: Likewise.
20039         * lib/gethostname.c: Likewise.
20040         * lib/gethrxtime.c: Likewise.
20041         * lib/gethrxtime.h: Likewise.
20042         * lib/getloadavg.c: Likewise.
20043         * lib/getndelim2.c: Likewise.
20044         * lib/getndelim2.h: Likewise.
20045         * lib/getnline.c: Likewise.
20046         * lib/getnline.h: Likewise.
20047         * lib/getopt.c: Likewise.
20048         * lib/getopt.in.h: Likewise.
20049         * lib/getopt1.c: Likewise.
20050         * lib/getopt_int.h: Likewise.
20051         * lib/getpagesize.h: Likewise.
20052         * lib/getsubopt.c: Likewise.
20053         * lib/gettime.c: Likewise.
20054         * lib/getugroups.c: Likewise.
20055         * lib/getugroups.h: Likewise.
20056         * lib/getusershell.c: Likewise.
20057         * lib/gl_anyavltree_list1.h: Likewise.
20058         * lib/gl_anyavltree_list2.h: Likewise.
20059         * lib/gl_anyhash_list1.h: Likewise.
20060         * lib/gl_anyhash_list2.h: Likewise.
20061         * lib/gl_anylinked_list1.h: Likewise.
20062         * lib/gl_anylinked_list2.h: Likewise.
20063         * lib/gl_anyrbtree_list1.h: Likewise.
20064         * lib/gl_anyrbtree_list2.h: Likewise.
20065         * lib/gl_anytree_list1.h: Likewise.
20066         * lib/gl_anytree_list2.h: Likewise.
20067         * lib/gl_anytree_oset.h: Likewise.
20068         * lib/gl_anytreehash_list1.h: Likewise.
20069         * lib/gl_anytreehash_list2.h: Likewise.
20070         * lib/gl_array_list.c: Likewise.
20071         * lib/gl_array_list.h: Likewise.
20072         * lib/gl_array_oset.c: Likewise.
20073         * lib/gl_array_oset.h: Likewise.
20074         * lib/gl_avltree_list.c: Likewise.
20075         * lib/gl_avltree_list.h: Likewise.
20076         * lib/gl_avltree_oset.c: Likewise.
20077         * lib/gl_avltree_oset.h: Likewise.
20078         * lib/gl_avltreehash_list.c: Likewise.
20079         * lib/gl_avltreehash_list.h: Likewise.
20080         * lib/gl_carray_list.c: Likewise.
20081         * lib/gl_carray_list.h: Likewise.
20082         * lib/gl_linked_list.c: Likewise.
20083         * lib/gl_linked_list.h: Likewise.
20084         * lib/gl_linkedhash_list.c: Likewise.
20085         * lib/gl_linkedhash_list.h: Likewise.
20086         * lib/gl_list.c: Likewise.
20087         * lib/gl_list.h: Likewise.
20088         * lib/gl_oset.c: Likewise.
20089         * lib/gl_oset.h: Likewise.
20090         * lib/gl_rbtree_list.c: Likewise.
20091         * lib/gl_rbtree_list.h: Likewise.
20092         * lib/gl_rbtree_oset.c: Likewise.
20093         * lib/gl_rbtree_oset.h: Likewise.
20094         * lib/gl_rbtreehash_list.c: Likewise.
20095         * lib/gl_rbtreehash_list.h: Likewise.
20096         * lib/gl_sublist.c: Likewise.
20097         * lib/gl_sublist.h: Likewise.
20098         * lib/group-member.c: Likewise.
20099         * lib/group-member.h: Likewise.
20100         * lib/hard-locale.c: Likewise.
20101         * lib/hard-locale.h: Likewise.
20102         * lib/hash-pjw.c: Likewise.
20103         * lib/hash-pjw.h: Likewise.
20104         * lib/hash-triple.c: Likewise.
20105         * lib/hash.c: Likewise.
20106         * lib/hash.h: Likewise.
20107         * lib/human.c: Likewise.
20108         * lib/human.h: Likewise.
20109         * lib/i-ring.c: Likewise.
20110         * lib/i-ring.h: Likewise.
20111         * lib/idcache.c: Likewise.
20112         * lib/imaxabs.c: Likewise.
20113         * lib/imaxdiv.c: Likewise.
20114         * lib/inet_pton.c: Likewise.
20115         * lib/inet_pton.h: Likewise.
20116         * lib/intprops.h: Likewise.
20117         * lib/inttostr.c: Likewise.
20118         * lib/inttostr.h: Likewise.
20119         * lib/inttypes.in.h: Likewise.
20120         * lib/isapipe.c: Likewise.
20121         * lib/isdir.c: Likewise.
20122         * lib/isnan.c: Likewise.
20123         * lib/isnan.h: Likewise.
20124         * lib/isnanf.c: Likewise.
20125         * lib/isnanf.h: Likewise.
20126         * lib/isnanl-nolibm.h: Likewise.
20127         * lib/isnanl.c: Likewise.
20128         * lib/isnanl.h: Likewise.
20129         * lib/javacomp.c: Likewise.
20130         * lib/javacomp.h: Likewise.
20131         * lib/javaexec.c: Likewise.
20132         * lib/javaexec.h: Likewise.
20133         * lib/javaversion.c: Likewise.
20134         * lib/javaversion.h: Likewise.
20135         * lib/javaversion.java: Likewise.
20136         * lib/lbrkprop.h: Likewise.
20137         * lib/lchmod.h: Likewise.
20138         * lib/lchown.c: Likewise.
20139         * lib/ldexpl.c: Likewise.
20140         * lib/linebreak.c: Likewise.
20141         * lib/linebreak.h: Likewise.
20142         * lib/linebuffer.c: Likewise.
20143         * lib/linebuffer.h: Likewise.
20144         * lib/locale.in.h: Likewise.
20145         * lib/logl.c: Likewise.
20146         * lib/long-options.c: Likewise.
20147         * lib/long-options.h: Likewise.
20148         * lib/lstat.c: Likewise.
20149         * lib/lstat.h: Likewise.
20150         * lib/math.in.h: Likewise.
20151         * lib/mbchar.c: Likewise.
20152         * lib/mbchar.h: Likewise.
20153         * lib/mbfile.h: Likewise.
20154         * lib/mbiter.h: Likewise.
20155         * lib/mbscasecmp.c: Likewise.
20156         * lib/mbscasestr.c: Likewise.
20157         * lib/mbschr.c: Likewise.
20158         * lib/mbscspn.c: Likewise.
20159         * lib/mbslen.c: Likewise.
20160         * lib/mbsncasecmp.c: Likewise.
20161         * lib/mbsnlen.c: Likewise.
20162         * lib/mbspbrk.c: Likewise.
20163         * lib/mbspcasecmp.c: Likewise.
20164         * lib/mbsrchr.c: Likewise.
20165         * lib/mbssep.c: Likewise.
20166         * lib/mbsspn.c: Likewise.
20167         * lib/mbsstr.c: Likewise.
20168         * lib/mbstok_r.c: Likewise.
20169         * lib/mbswidth.c: Likewise.
20170         * lib/mbswidth.h: Likewise.
20171         * lib/mbuiter.h: Likewise.
20172         * lib/memcasecmp.c: Likewise.
20173         * lib/memcasecmp.h: Likewise.
20174         * lib/memchr.c: Likewise.
20175         * lib/memcmp.c: Likewise.
20176         * lib/memcoll.c: Likewise.
20177         * lib/memcoll.h: Likewise.
20178         * lib/memcpy.c: Likewise.
20179         * lib/memrchr.c: Likewise.
20180         * lib/mkancesdirs.c: Likewise.
20181         * lib/mkdir-p.c: Likewise.
20182         * lib/mkdir-p.h: Likewise.
20183         * lib/mkdir.c: Likewise.
20184         * lib/mkdirat.c: Likewise.
20185         * lib/mkdtemp.c: Likewise.
20186         * lib/mkstemp-safer.c: Likewise.
20187         * lib/mkstemp.c: Likewise.
20188         * lib/modechange.c: Likewise.
20189         * lib/modechange.h: Likewise.
20190         * lib/mountlist.c: Likewise.
20191         * lib/mountlist.h: Likewise.
20192         * lib/mpsort.c: Likewise.
20193         * lib/nanosleep.c: Likewise.
20194         * lib/obstack.c: Likewise.
20195         * lib/obstack.h: Likewise.
20196         * lib/open-safer.c: Likewise.
20197         * lib/open.c: Likewise.
20198         * lib/openat-die.c: Likewise.
20199         * lib/openat-priv.h: Likewise.
20200         * lib/openat-proc.c: Likewise.
20201         * lib/openat.c: Likewise.
20202         * lib/openat.h: Likewise.
20203         * lib/pagealign_alloc.c: Likewise.
20204         * lib/pagealign_alloc.h: Likewise.
20205         * lib/physmem.c: Likewise.
20206         * lib/physmem.h: Likewise.
20207         * lib/pipe-safer.c: Likewise.
20208         * lib/pipe.c: Likewise.
20209         * lib/pipe.h: Likewise.
20210         * lib/posixtm.c: Likewise.
20211         * lib/posixtm.h: Likewise.
20212         * lib/posixver.c: Likewise.
20213         * lib/printf-frexp.c: Likewise.
20214         * lib/printf-frexp.h: Likewise.
20215         * lib/printf-frexpl.c: Likewise.
20216         * lib/printf-frexpl.h: Likewise.
20217         * lib/printf.c: Likewise.
20218         * lib/progname.c: Likewise.
20219         * lib/progname.h: Likewise.
20220         * lib/progreloc.c: Likewise.
20221         * lib/putenv.c: Likewise.
20222         * lib/quote.c: Likewise.
20223         * lib/quote.h: Likewise.
20224         * lib/quotearg.c: Likewise.
20225         * lib/quotearg.h: Likewise.
20226         * lib/raise.c: Likewise.
20227         * lib/readline.c: Likewise.
20228         * lib/readline.h: Likewise.
20229         * lib/readlink.c: Likewise.
20230         * lib/readtokens.c: Likewise.
20231         * lib/readtokens.h: Likewise.
20232         * lib/readtokens0.c: Likewise.
20233         * lib/readtokens0.h: Likewise.
20234         * lib/readutmp.c: Likewise.
20235         * lib/readutmp.h: Likewise.
20236         * lib/realloc.c: Likewise.
20237         * lib/relocwrapper.c: Likewise.
20238         * lib/rename-dest-slash.c: Likewise.
20239         * lib/rename.c: Likewise.
20240         * lib/rmdir.c: Likewise.
20241         * lib/rpmatch.c: Likewise.
20242         * lib/safe-read.c: Likewise.
20243         * lib/safe-read.h: Likewise.
20244         * lib/safe-write.c: Likewise.
20245         * lib/safe-write.h: Likewise.
20246         * lib/same-inode.h: Likewise.
20247         * lib/same.c: Likewise.
20248         * lib/same.h: Likewise.
20249         * lib/save-cwd.c: Likewise.
20250         * lib/save-cwd.h: Likewise.
20251         * lib/savedir.c: Likewise.
20252         * lib/savedir.h: Likewise.
20253         * lib/savewd.c: Likewise.
20254         * lib/savewd.h: Likewise.
20255         * lib/search.in.h: Likewise.
20256         * lib/setenv.c: Likewise.
20257         * lib/setenv.h: Likewise.
20258         * lib/settime.c: Likewise.
20259         * lib/sh-quote.c: Likewise.
20260         * lib/sh-quote.h: Likewise.
20261         * lib/sig2str.c: Likewise.
20262         * lib/sig2str.h: Likewise.
20263         * lib/signal.in.h: Likewise.
20264         * lib/signbitd.c: Likewise.
20265         * lib/signbitf.c: Likewise.
20266         * lib/signbitl.c: Likewise.
20267         * lib/sigprocmask.c: Likewise.
20268         * lib/sincosl.c: Likewise.
20269         * lib/sleep.c: Likewise.
20270         * lib/sprintf.c: Likewise.
20271         * lib/sqrtl.c: Likewise.
20272         * lib/stat-time.h: Likewise.
20273         * lib/stdio--.h: Likewise.
20274         * lib/stdio-safer.h: Likewise.
20275         * lib/stdlib--.h: Likewise.
20276         * lib/stdlib-safer.h: Likewise.
20277         * lib/stdlib.in.h: Likewise.
20278         * lib/stpcpy.c: Likewise.
20279         * lib/stpncpy.c: Likewise.
20280         * lib/strchrnul.c: Likewise.
20281         * lib/strcspn.c: Likewise.
20282         * lib/strerror.c: Likewise.
20283         * lib/strftime.c: Likewise.
20284         * lib/strftime.h: Likewise.
20285         * lib/striconveh.c: Likewise.
20286         * lib/striconveh.h: Likewise.
20287         * lib/striconveha.c: Likewise.
20288         * lib/striconveha.h: Likewise.
20289         * lib/stripslash.c: Likewise.
20290         * lib/strnlen1.c: Likewise.
20291         * lib/strnlen1.h: Likewise.
20292         * lib/strtod.c: Likewise.
20293         * lib/strtoimax.c: Likewise.
20294         * lib/strtok_r.c: Likewise.
20295         * lib/strtol.c: Likewise.
20296         * lib/strtoll.c: Likewise.
20297         * lib/strtoul.c: Likewise.
20298         * lib/strtoull.c: Likewise.
20299         * lib/sysexits.in.h: Likewise.
20300         * lib/tempname.c: Likewise.
20301         * lib/tempname.h: Likewise.
20302         * lib/timespec.h: Likewise.
20303         * lib/tls.c: Likewise.
20304         * lib/tls.h: Likewise.
20305         * lib/tmpdir.c: Likewise.
20306         * lib/tmpdir.h: Likewise.
20307         * lib/tmpfile-safer.c: Likewise.
20308         * lib/tmpfile.c: Likewise.
20309         * lib/trigl.c: Likewise.
20310         * lib/trigl.h: Likewise.
20311         * lib/trim.c: Likewise.
20312         * lib/trim.h: Likewise.
20313         * lib/trunc.c: Likewise.
20314         * lib/truncf.c: Likewise.
20315         * lib/truncl.c: Likewise.
20316         * lib/tsearch.c: Likewise.
20317         * lib/unicodeio.c: Likewise.
20318         * lib/unicodeio.h: Likewise.
20319         * lib/unistd--.h: Likewise.
20320         * lib/unistd-safer.h: Likewise.
20321         * lib/unistdio/ulc-fprintf.c: Likewise.
20322         * lib/unistdio/ulc-vfprintf.c: Likewise.
20323         * lib/unlinkdir.c: Likewise.
20324         * lib/unlinkdir.h: Likewise.
20325         * lib/unlocked-io.h: Likewise.
20326         * lib/unsetenv.c: Likewise.
20327         * lib/userspec.c: Likewise.
20328         * lib/utime.c: Likewise.
20329         * lib/utimecmp.c: Likewise.
20330         * lib/utimecmp.h: Likewise.
20331         * lib/utimens.c: Likewise.
20332         * lib/verify.h: Likewise.
20333         * lib/verror.c: Likewise.
20334         * lib/verror.h: Likewise.
20335         * lib/version-etc-fsf.c: Likewise.
20336         * lib/version-etc.c: Likewise.
20337         * lib/version-etc.h: Likewise.
20338         * lib/vfprintf.c: Likewise.
20339         * lib/vprintf.c: Likewise.
20340         * lib/vsprintf.c: Likewise.
20341         * lib/w32spawn.h: Likewise.
20342         * lib/wait-process.c: Likewise.
20343         * lib/wait-process.h: Likewise.
20344         * lib/wcwidth.c: Likewise.
20345         * lib/write-any-file.c: Likewise.
20346         * lib/xalloc-die.c: Likewise.
20347         * lib/xalloc.h: Likewise.
20348         * lib/xasprintf.c: Likewise.
20349         * lib/xgetcwd.c: Likewise.
20350         * lib/xgetcwd.h: Likewise.
20351         * lib/xgetdomainname.c: Likewise.
20352         * lib/xgetdomainname.h: Likewise.
20353         * lib/xgethostname.c: Likewise.
20354         * lib/xmalloc.c: Likewise.
20355         * lib/xmalloca.c: Likewise.
20356         * lib/xmalloca.h: Likewise.
20357         * lib/xmemcoll.c: Likewise.
20358         * lib/xnanosleep.c: Likewise.
20359         * lib/xreadlink.c: Likewise.
20360         * lib/xreadlink.h: Likewise.
20361         * lib/xsetenv.c: Likewise.
20362         * lib/xsetenv.h: Likewise.
20363         * lib/xstriconv.c: Likewise.
20364         * lib/xstriconv.h: Likewise.
20365         * lib/xstrndup.c: Likewise.
20366         * lib/xstrndup.h: Likewise.
20367         * lib/xstrtod.c: Likewise.
20368         * lib/xstrtod.h: Likewise.
20369         * lib/xstrtol-error.c: Likewise.
20370         * lib/xstrtol.c: Likewise.
20371         * lib/xstrtol.h: Likewise.
20372         * lib/xtime.h: Likewise.
20373         * lib/xvasprintf.c: Likewise.
20374         * lib/xvasprintf.h: Likewise.
20375         * lib/yesno.c: Likewise.
20376         * lib/yesno.h: Likewise.
20377         * posix-modules: Likewise.
20378         * tests/test-alloca-opt.c: Likewise.
20379         * tests/test-arcfour.c: Likewise.
20380         * tests/test-arctwo.c: Likewise.
20381         * tests/test-argmatch.c: Likewise.
20382         * tests/test-argp-2.sh: Likewise.
20383         * tests/test-argp.c: Likewise.
20384         * tests/test-arpa_inet.c: Likewise.
20385         * tests/test-array_list.c: Likewise.
20386         * tests/test-array_oset.c: Likewise.
20387         * tests/test-atexit.c: Likewise.
20388         * tests/test-avltree_list.c: Likewise.
20389         * tests/test-avltree_oset.c: Likewise.
20390         * tests/test-avltreehash_list.c: Likewise.
20391         * tests/test-base64.c: Likewise.
20392         * tests/test-binary-io.c: Likewise.
20393         * tests/test-byteswap.c: Likewise.
20394         * tests/test-c-ctype.c: Likewise.
20395         * tests/test-c-strcasecmp.c: Likewise.
20396         * tests/test-c-strcasestr.c: Likewise.
20397         * tests/test-c-strncasecmp.c: Likewise.
20398         * tests/test-c-strstr.c: Likewise.
20399         * tests/test-canonicalize-lgpl.c: Likewise.
20400         * tests/test-canonicalize.c: Likewise.
20401         * tests/test-carray_list.c: Likewise.
20402         * tests/test-ceilf.c: Likewise.
20403         * tests/test-ceill.c: Likewise.
20404         * tests/test-count-one-bits.c: Likewise.
20405         * tests/test-crc.c: Likewise.
20406         * tests/test-dirname.c: Likewise.
20407         * tests/test-fbufmode.c: Likewise.
20408         * tests/test-fcntl.c: Likewise.
20409         * tests/test-fflush.c: Likewise.
20410         * tests/test-floorf.c: Likewise.
20411         * tests/test-floorl.c: Likewise.
20412         * tests/test-fopen.c: Likewise.
20413         * tests/test-fprintf-posix.c: Likewise.
20414         * tests/test-fprintf-posix.h: Likewise.
20415         * tests/test-fpurge.c: Likewise.
20416         * tests/test-freadable.c: Likewise.
20417         * tests/test-freadahead.c: Likewise.
20418         * tests/test-freading.c: Likewise.
20419         * tests/test-freopen.c: Likewise.
20420         * tests/test-frexp.c: Likewise.
20421         * tests/test-frexpl.c: Likewise.
20422         * tests/test-fseek.c: Likewise.
20423         * tests/test-fseeko.c: Likewise.
20424         * tests/test-fseterr.c: Likewise.
20425         * tests/test-fstrcmp.c: Likewise.
20426         * tests/test-ftell.c: Likewise.
20427         * tests/test-ftello.c: Likewise.
20428         * tests/test-fwritable.c: Likewise.
20429         * tests/test-fwriting.c: Likewise.
20430         * tests/test-getaddrinfo.c: Likewise.
20431         * tests/test-getpass.c: Likewise.
20432         * tests/test-gettimeofday.c: Likewise.
20433         * tests/test-hmac-md5.c: Likewise.
20434         * tests/test-hmac-sha1.c: Likewise.
20435         * tests/test-iconv.c: Likewise.
20436         * tests/test-iconvme.c: Likewise.
20437         * tests/test-inttypes.c: Likewise.
20438         * tests/test-isnan.c: Likewise.
20439         * tests/test-isnanf.c: Likewise.
20440         * tests/test-isnanl-nolibm.c: Likewise.
20441         * tests/test-isnanl.c: Likewise.
20442         * tests/test-isnanl.h: Likewise.
20443         * tests/test-ldexpl.c: Likewise.
20444         * tests/test-linked_list.c: Likewise.
20445         * tests/test-linkedhash_list.c: Likewise.
20446         * tests/test-locale.c: Likewise.
20447         * tests/test-localename.c: Likewise.
20448         * tests/test-lock.c: Likewise.
20449         * tests/test-lseek.c: Likewise.
20450         * tests/test-malloca.c: Likewise.
20451         * tests/test-math.c: Likewise.
20452         * tests/test-mbscasecmp.c: Likewise.
20453         * tests/test-mbscasestr1.c: Likewise.
20454         * tests/test-mbscasestr2.c: Likewise.
20455         * tests/test-mbscasestr3.c: Likewise.
20456         * tests/test-mbscasestr4.c: Likewise.
20457         * tests/test-mbschr.c: Likewise.
20458         * tests/test-mbscspn.c: Likewise.
20459         * tests/test-mbsncasecmp.c: Likewise.
20460         * tests/test-mbspbrk.c: Likewise.
20461         * tests/test-mbspcasecmp.c: Likewise.
20462         * tests/test-mbsrchr.c: Likewise.
20463         * tests/test-mbsspn.c: Likewise.
20464         * tests/test-mbsstr1.c: Likewise.
20465         * tests/test-mbsstr2.c: Likewise.
20466         * tests/test-mbsstr3.c: Likewise.
20467         * tests/test-md5.c: Likewise.
20468         * tests/test-memmem.c: Likewise.
20469         * tests/test-netinet_in.c: Likewise.
20470         * tests/test-open.c: Likewise.
20471         * tests/test-printf-frexp.c: Likewise.
20472         * tests/test-printf-frexpl.c: Likewise.
20473         * tests/test-printf-posix.c: Likewise.
20474         * tests/test-printf-posix.h: Likewise.
20475         * tests/test-rbtree_list.c: Likewise.
20476         * tests/test-rbtree_oset.c: Likewise.
20477         * tests/test-rbtreehash_list.c: Likewise.
20478         * tests/test-read-file.c: Likewise.
20479         * tests/test-rijndael.c: Likewise.
20480         * tests/test-search.c: Likewise.
20481         * tests/test-signbit.c: Likewise.
20482         * tests/test-sleep.c: Likewise.
20483         * tests/test-snprintf-posix.c: Likewise.
20484         * tests/test-snprintf-posix.h: Likewise.
20485         * tests/test-snprintf.c: Likewise.
20486         * tests/test-sprintf-posix.c: Likewise.
20487         * tests/test-sprintf-posix.h: Likewise.
20488         * tests/test-stat-time.c: Likewise.
20489         * tests/test-stdbool.c: Likewise.
20490         * tests/test-stdint.c: Likewise.
20491         * tests/test-stdio.c: Likewise.
20492         * tests/test-stdlib.c: Likewise.
20493         * tests/test-stpncpy.c: Likewise.
20494         * tests/test-strcasestr.c: Likewise.
20495         * tests/test-striconv.c: Likewise.
20496         * tests/test-striconveh.c: Likewise.
20497         * tests/test-striconveha.c: Likewise.
20498         * tests/test-string.c: Likewise.
20499         * tests/test-sys_select.c: Likewise.
20500         * tests/test-sys_socket.c: Likewise.
20501         * tests/test-sys_stat.c: Likewise.
20502         * tests/test-sys_time.c: Likewise.
20503         * tests/test-sysexits.c: Likewise.
20504         * tests/test-time.c: Likewise.
20505         * tests/test-tls.c: Likewise.
20506         * tests/test-trunc.c: Likewise.
20507         * tests/test-truncf.c: Likewise.
20508         * tests/test-truncl.c: Likewise.
20509         * tests/test-unistd.c: Likewise.
20510         * tests/test-vasnprintf-posix.c: Likewise.
20511         * tests/test-vasnprintf-posix2.c: Likewise.
20512         * tests/test-vasnprintf.c: Likewise.
20513         * tests/test-vasprintf-posix.c: Likewise.
20514         * tests/test-vasprintf.c: Likewise.
20515         * tests/test-verify.c: Likewise.
20516         * tests/test-vfprintf-posix.c: Likewise.
20517         * tests/test-vprintf-posix.c: Likewise.
20518         * tests/test-vsnprintf-posix.c: Likewise.
20519         * tests/test-vsnprintf.c: Likewise.
20520         * tests/test-vsprintf-posix.c: Likewise.
20521         * tests/test-wchar.c: Likewise.
20522         * tests/test-wctype.c: Likewise.
20523         * tests/test-wcwidth.c: Likewise.
20524         * tests/test-xstrtol.c: Likewise.
20525         * tests/test-xvasprintf.c: Likewise.
20526         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20527         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20528         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20529         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20530         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20531         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20532         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20533         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20534         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20535         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20536         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20537         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20538         * tests/uniname/test-uninames.c: Likewise.
20539         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20540         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
20541         * tests/unistdio/test-u16-printf1.h: Likewise.
20542         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20543         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20544         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20545         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20546         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20547         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20548         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20549         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
20550         * tests/unistdio/test-u32-printf1.h: Likewise.
20551         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20552         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20553         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20554         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20555         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20556         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20557         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20558         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
20559         * tests/unistdio/test-u8-printf1.h: Likewise.
20560         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20561         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20562         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20563         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20564         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20565         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20566         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20567         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
20568         * tests/unistdio/test-ulc-printf1.h: Likewise.
20569         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20570         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20571         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20572         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20573         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20574         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20575         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20576         * tests/uniwidth/test-u16-width.c: Likewise.
20577         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20578         * tests/uniwidth/test-u32-width.c: Likewise.
20579         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20580         * tests/uniwidth/test-u8-width.c: Likewise.
20581         * tests/uniwidth/test-uc_width.c: Likewise.
20582         * config/srclist-update: Likewise.
20583         (fixlicense): Update to GPLv3+.
20584
20585         Change copyright notice from LGPLv2.1+ to LGPLv3+.
20586         * tests/test-tsearch.c: Change copyright notice.
20587
20588         Change copyright notice from LGPLv2.0+ to LGPLv3+.
20589         * lib/c-strcaseeq.h: Change copyright notice.
20590         * lib/streq.h: Likewise.
20591         * lib/uniconv.h: Likewise.
20592         * lib/uniconv/u-conv-from-enc.h: Likewise.
20593         * lib/uniconv/u-conv-to-enc.h: Likewise.
20594         * lib/uniconv/u-strconv-from-enc.h: Likewise.
20595         * lib/uniconv/u-strconv-to-enc.h: Likewise.
20596         * lib/uniconv/u16-conv-from-enc.c: Likewise.
20597         * lib/uniconv/u16-conv-to-enc.c: Likewise.
20598         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
20599         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
20600         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
20601         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
20602         * lib/uniconv/u32-conv-from-enc.c: Likewise.
20603         * lib/uniconv/u32-conv-to-enc.c: Likewise.
20604         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
20605         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
20606         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
20607         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
20608         * lib/uniconv/u8-conv-from-enc.c: Likewise.
20609         * lib/uniconv/u8-conv-to-enc.c: Likewise.
20610         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
20611         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
20612         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
20613         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
20614         * lib/uniname.h: Likewise.
20615         * lib/uniname/uniname.c: Likewise.
20616         * lib/unistdio.h: Likewise.
20617         * lib/unistdio/u-asnprintf.h: Likewise.
20618         * lib/unistdio/u-asprintf.h: Likewise.
20619         * lib/unistdio/u-printf-args.c: Likewise.
20620         * lib/unistdio/u-printf-args.h: Likewise.
20621         * lib/unistdio/u-printf-parse.h: Likewise.
20622         * lib/unistdio/u-snprintf.h: Likewise.
20623         * lib/unistdio/u-sprintf.h: Likewise.
20624         * lib/unistdio/u-vasprintf.h: Likewise.
20625         * lib/unistdio/u-vsnprintf.h: Likewise.
20626         * lib/unistdio/u-vsprintf.h: Likewise.
20627         * lib/unistdio/u16-asnprintf.c: Likewise.
20628         * lib/unistdio/u16-asprintf.c: Likewise.
20629         * lib/unistdio/u16-printf-parse.c: Likewise.
20630         * lib/unistdio/u16-snprintf.c: Likewise.
20631         * lib/unistdio/u16-sprintf.c: Likewise.
20632         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
20633         * lib/unistdio/u16-u16-asprintf.c: Likewise.
20634         * lib/unistdio/u16-u16-snprintf.c: Likewise.
20635         * lib/unistdio/u16-u16-sprintf.c: Likewise.
20636         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
20637         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
20638         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
20639         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
20640         * lib/unistdio/u16-vasnprintf.c: Likewise.
20641         * lib/unistdio/u16-vasprintf.c: Likewise.
20642         * lib/unistdio/u16-vsnprintf.c: Likewise.
20643         * lib/unistdio/u16-vsprintf.c: Likewise.
20644         * lib/unistdio/u32-asnprintf.c: Likewise.
20645         * lib/unistdio/u32-asprintf.c: Likewise.
20646         * lib/unistdio/u32-printf-parse.c: Likewise.
20647         * lib/unistdio/u32-snprintf.c: Likewise.
20648         * lib/unistdio/u32-sprintf.c: Likewise.
20649         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
20650         * lib/unistdio/u32-u32-asprintf.c: Likewise.
20651         * lib/unistdio/u32-u32-snprintf.c: Likewise.
20652         * lib/unistdio/u32-u32-sprintf.c: Likewise.
20653         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
20654         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
20655         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
20656         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
20657         * lib/unistdio/u32-vasnprintf.c: Likewise.
20658         * lib/unistdio/u32-vasprintf.c: Likewise.
20659         * lib/unistdio/u32-vsnprintf.c: Likewise.
20660         * lib/unistdio/u32-vsprintf.c: Likewise.
20661         * lib/unistdio/u8-asnprintf.c: Likewise.
20662         * lib/unistdio/u8-asprintf.c: Likewise.
20663         * lib/unistdio/u8-printf-parse.c: Likewise.
20664         * lib/unistdio/u8-snprintf.c: Likewise.
20665         * lib/unistdio/u8-sprintf.c: Likewise.
20666         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
20667         * lib/unistdio/u8-u8-asprintf.c: Likewise.
20668         * lib/unistdio/u8-u8-snprintf.c: Likewise.
20669         * lib/unistdio/u8-u8-sprintf.c: Likewise.
20670         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
20671         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
20672         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
20673         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
20674         * lib/unistdio/u8-vasnprintf.c: Likewise.
20675         * lib/unistdio/u8-vasprintf.c: Likewise.
20676         * lib/unistdio/u8-vsnprintf.c: Likewise.
20677         * lib/unistdio/u8-vsprintf.c: Likewise.
20678         * lib/unistdio/ulc-asnprintf.c: Likewise.
20679         * lib/unistdio/ulc-asprintf.c: Likewise.
20680         * lib/unistdio/ulc-printf-parse.c: Likewise.
20681         * lib/unistdio/ulc-snprintf.c: Likewise.
20682         * lib/unistdio/ulc-sprintf.c: Likewise.
20683         * lib/unistdio/ulc-vasnprintf.c: Likewise.
20684         * lib/unistdio/ulc-vasprintf.c: Likewise.
20685         * lib/unistdio/ulc-vsnprintf.c: Likewise.
20686         * lib/unistdio/ulc-vsprintf.c: Likewise.
20687         * lib/unistr.h: Likewise.
20688         * lib/unistr/u-cpy-alloc.h: Likewise.
20689         * lib/unistr/u-cpy.h: Likewise.
20690         * lib/unistr/u-endswith.h: Likewise.
20691         * lib/unistr/u-move.h: Likewise.
20692         * lib/unistr/u-set.h: Likewise.
20693         * lib/unistr/u-startswith.h: Likewise.
20694         * lib/unistr/u-stpcpy.h: Likewise.
20695         * lib/unistr/u-stpncpy.h: Likewise.
20696         * lib/unistr/u-strcat.h: Likewise.
20697         * lib/unistr/u-strcpy.h: Likewise.
20698         * lib/unistr/u-strcspn.h: Likewise.
20699         * lib/unistr/u-strdup.h: Likewise.
20700         * lib/unistr/u-strlen.h: Likewise.
20701         * lib/unistr/u-strncat.h: Likewise.
20702         * lib/unistr/u-strncpy.h: Likewise.
20703         * lib/unistr/u-strnlen.h: Likewise.
20704         * lib/unistr/u-strpbrk.h: Likewise.
20705         * lib/unistr/u-strspn.h: Likewise.
20706         * lib/unistr/u-strstr.h: Likewise.
20707         * lib/unistr/u-strtok.h: Likewise.
20708         * lib/unistr/u16-check.c: Likewise.
20709         * lib/unistr/u16-chr.c: Likewise.
20710         * lib/unistr/u16-cmp.c: Likewise.
20711         * lib/unistr/u16-cpy-alloc.c: Likewise.
20712         * lib/unistr/u16-cpy.c: Likewise.
20713         * lib/unistr/u16-endswith.c: Likewise.
20714         * lib/unistr/u16-mblen.c: Likewise.
20715         * lib/unistr/u16-mbsnlen.c: Likewise.
20716         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20717         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20718         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20719         * lib/unistr/u16-mbtouc.c: Likewise.
20720         * lib/unistr/u16-mbtoucr.c: Likewise.
20721         * lib/unistr/u16-move.c: Likewise.
20722         * lib/unistr/u16-next.c: Likewise.
20723         * lib/unistr/u16-prev.c: Likewise.
20724         * lib/unistr/u16-set.c: Likewise.
20725         * lib/unistr/u16-startswith.c: Likewise.
20726         * lib/unistr/u16-stpcpy.c: Likewise.
20727         * lib/unistr/u16-stpncpy.c: Likewise.
20728         * lib/unistr/u16-strcat.c: Likewise.
20729         * lib/unistr/u16-strchr.c: Likewise.
20730         * lib/unistr/u16-strcmp.c: Likewise.
20731         * lib/unistr/u16-strcpy.c: Likewise.
20732         * lib/unistr/u16-strcspn.c: Likewise.
20733         * lib/unistr/u16-strdup.c: Likewise.
20734         * lib/unistr/u16-strlen.c: Likewise.
20735         * lib/unistr/u16-strmblen.c: Likewise.
20736         * lib/unistr/u16-strmbtouc.c: Likewise.
20737         * lib/unistr/u16-strncat.c: Likewise.
20738         * lib/unistr/u16-strncmp.c: Likewise.
20739         * lib/unistr/u16-strncpy.c: Likewise.
20740         * lib/unistr/u16-strnlen.c: Likewise.
20741         * lib/unistr/u16-strpbrk.c: Likewise.
20742         * lib/unistr/u16-strrchr.c: Likewise.
20743         * lib/unistr/u16-strspn.c: Likewise.
20744         * lib/unistr/u16-strstr.c: Likewise.
20745         * lib/unistr/u16-strtok.c: Likewise.
20746         * lib/unistr/u16-to-u32.c: Likewise.
20747         * lib/unistr/u16-to-u8.c: Likewise.
20748         * lib/unistr/u16-uctomb-aux.c: Likewise.
20749         * lib/unistr/u16-uctomb.c: Likewise.
20750         * lib/unistr/u32-check.c: Likewise.
20751         * lib/unistr/u32-chr.c: Likewise.
20752         * lib/unistr/u32-cmp.c: Likewise.
20753         * lib/unistr/u32-cpy-alloc.c: Likewise.
20754         * lib/unistr/u32-cpy.c: Likewise.
20755         * lib/unistr/u32-endswith.c: Likewise.
20756         * lib/unistr/u32-mblen.c: Likewise.
20757         * lib/unistr/u32-mbsnlen.c: Likewise.
20758         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20759         * lib/unistr/u32-mbtouc.c: Likewise.
20760         * lib/unistr/u32-mbtoucr.c: Likewise.
20761         * lib/unistr/u32-move.c: Likewise.
20762         * lib/unistr/u32-next.c: Likewise.
20763         * lib/unistr/u32-prev.c: Likewise.
20764         * lib/unistr/u32-set.c: Likewise.
20765         * lib/unistr/u32-startswith.c: Likewise.
20766         * lib/unistr/u32-stpcpy.c: Likewise.
20767         * lib/unistr/u32-stpncpy.c: Likewise.
20768         * lib/unistr/u32-strcat.c: Likewise.
20769         * lib/unistr/u32-strchr.c: Likewise.
20770         * lib/unistr/u32-strcmp.c: Likewise.
20771         * lib/unistr/u32-strcpy.c: Likewise.
20772         * lib/unistr/u32-strcspn.c: Likewise.
20773         * lib/unistr/u32-strdup.c: Likewise.
20774         * lib/unistr/u32-strlen.c: Likewise.
20775         * lib/unistr/u32-strmblen.c: Likewise.
20776         * lib/unistr/u32-strmbtouc.c: Likewise.
20777         * lib/unistr/u32-strncat.c: Likewise.
20778         * lib/unistr/u32-strncmp.c: Likewise.
20779         * lib/unistr/u32-strncpy.c: Likewise.
20780         * lib/unistr/u32-strnlen.c: Likewise.
20781         * lib/unistr/u32-strpbrk.c: Likewise.
20782         * lib/unistr/u32-strrchr.c: Likewise.
20783         * lib/unistr/u32-strspn.c: Likewise.
20784         * lib/unistr/u32-strstr.c: Likewise.
20785         * lib/unistr/u32-strtok.c: Likewise.
20786         * lib/unistr/u32-to-u16.c: Likewise.
20787         * lib/unistr/u32-to-u8.c: Likewise.
20788         * lib/unistr/u32-uctomb.c: Likewise.
20789         * lib/unistr/u8-check.c: Likewise.
20790         * lib/unistr/u8-chr.c: Likewise.
20791         * lib/unistr/u8-cmp.c: Likewise.
20792         * lib/unistr/u8-cpy-alloc.c: Likewise.
20793         * lib/unistr/u8-cpy.c: Likewise.
20794         * lib/unistr/u8-endswith.c: Likewise.
20795         * lib/unistr/u8-mblen.c: Likewise.
20796         * lib/unistr/u8-mbsnlen.c: Likewise.
20797         * lib/unistr/u8-mbtouc-aux.c: Likewise.
20798         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20799         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20800         * lib/unistr/u8-mbtouc.c: Likewise.
20801         * lib/unistr/u8-mbtoucr.c: Likewise.
20802         * lib/unistr/u8-move.c: Likewise.
20803         * lib/unistr/u8-next.c: Likewise.
20804         * lib/unistr/u8-prev.c: Likewise.
20805         * lib/unistr/u8-set.c: Likewise.
20806         * lib/unistr/u8-startswith.c: Likewise.
20807         * lib/unistr/u8-stpcpy.c: Likewise.
20808         * lib/unistr/u8-stpncpy.c: Likewise.
20809         * lib/unistr/u8-strcat.c: Likewise.
20810         * lib/unistr/u8-strchr.c: Likewise.
20811         * lib/unistr/u8-strcmp.c: Likewise.
20812         * lib/unistr/u8-strcpy.c: Likewise.
20813         * lib/unistr/u8-strcspn.c: Likewise.
20814         * lib/unistr/u8-strdup.c: Likewise.
20815         * lib/unistr/u8-strlen.c: Likewise.
20816         * lib/unistr/u8-strmblen.c: Likewise.
20817         * lib/unistr/u8-strmbtouc.c: Likewise.
20818         * lib/unistr/u8-strncat.c: Likewise.
20819         * lib/unistr/u8-strncmp.c: Likewise.
20820         * lib/unistr/u8-strncpy.c: Likewise.
20821         * lib/unistr/u8-strnlen.c: Likewise.
20822         * lib/unistr/u8-strpbrk.c: Likewise.
20823         * lib/unistr/u8-strrchr.c: Likewise.
20824         * lib/unistr/u8-strspn.c: Likewise.
20825         * lib/unistr/u8-strstr.c: Likewise.
20826         * lib/unistr/u8-strtok.c: Likewise.
20827         * lib/unistr/u8-to-u16.c: Likewise.
20828         * lib/unistr/u8-to-u32.c: Likewise.
20829         * lib/unistr/u8-uctomb-aux.c: Likewise.
20830         * lib/unistr/u8-uctomb.c: Likewise.
20831         * lib/unitypes.h: Likewise.
20832         * lib/uniwidth.h: Likewise.
20833         * lib/uniwidth/cjk.h: Likewise.
20834         * lib/uniwidth/u16-strwidth.c: Likewise.
20835         * lib/uniwidth/u16-width.c: Likewise.
20836         * lib/uniwidth/u32-strwidth.c: Likewise.
20837         * lib/uniwidth/u32-width.c: Likewise.
20838         * lib/uniwidth/u8-strwidth.c: Likewise.
20839         * lib/uniwidth/u8-width.c: Likewise.
20840         * lib/uniwidth/width.c: Likewise.
20841
20842 2007-10-07  Bruno Haible  <bruno@clisp.org>
20843
20844         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
20845         The file is still under LGPL (see modules/inttypes).
20846
20847 2007-10-06  Bruno Haible  <bruno@clisp.org>
20848
20849         * modules/trunc (Dependencies): Add 'extensions'.
20850         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
20851         Reported by Ben Pfaff <blp@gnu.org>.
20852
20853 2007-10-06  Bruno Haible  <bruno@clisp.org>
20854
20855         * modules/freopen-tests: New file.
20856         * tests/test-freopen.c: New file.
20857
20858         * modules/fopen-tests: New file.
20859         * tests/test-fopen.c: New file.
20860
20861         * modules/fopen: New file.
20862         * lib/fopen.c: New file.
20863         * m4/fopen.m4: New file.
20864         * modules/freopen: New file.
20865         * lib/freopen.c: New file.
20866         * m4/freopen.m4: New file.
20867         * lib/stdio.in.h (fopen, freopen): New declarations.
20868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
20869         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
20870         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
20871         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
20872         * doc/functions/fopen.texi: Mention the 'fopen' module.
20873         * doc/functions/freopen.texi: Mention the 'freopen' module.
20874
20875 2007-10-06  Bruno Haible  <bruno@clisp.org>
20876
20877         * modules/open-tests: New file.
20878         * tests/test-open.c: New file.
20879
20880         * modules/open: New file.
20881         * lib/open.c: New file.
20882         * m4/open.m4: New file.
20883         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
20884         lib/open.c does.
20885         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
20886         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
20887         macros.
20888         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
20889         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
20890         REPLACE_OPEN.
20891         * doc/functions/open.texi: Mention the 'open' module.
20892
20893 2007-10-04  Bruno Haible  <bruno@clisp.org>
20894
20895         * modules/ceill-tests: New file.
20896         * tests/test-ceill.c: New file.
20897
20898         * modules/ceill: New file.
20899         * lib/ceill.c: Replace entire file.
20900         * m4/ceill.m4: New file.
20901         * lib/math.in.h (ceill): Replace declaration.
20902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
20903         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
20904         * doc/functions/ceill.texi: Mention the 'ceill' module.
20905         * modules/mathl (Files): Remove lib/ceill.c.
20906         (Depends-on): Add ceill.
20907
20908 2007-10-04  Bruno Haible  <bruno@clisp.org>
20909
20910         * modules/ceilf-tests: New file.
20911         * tests/test-ceilf.c: New file.
20912
20913         * modules/ceilf: New file.
20914         * lib/ceil.c: New file.
20915         * lib/ceilf.c: New file.
20916         * m4/ceilf.m4: New file.
20917         * lib/math.in.h (ceilf): New declaration.
20918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
20919         HAVE_DECL_CEILF.
20920         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
20921         HAVE_DECL_CEILF.
20922         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
20923
20924 2007-10-04  Bruno Haible  <bruno@clisp.org>
20925
20926         * modules/floorl-tests: New file.
20927         * tests/test-floorl.c: New file.
20928
20929         * modules/floorl: New file.
20930         * lib/floorl.c: Replace entire file.
20931         * m4/floorl.m4: New file.
20932         * lib/math.in.h (floorl): Replace declaration.
20933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
20934         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
20935         * doc/functions/floorl.texi: Mention the 'floorl' module.
20936         * modules/mathl (Files): Remove lib/floorl.c.
20937         (Depends-on): Add floorl.
20938
20939 2007-10-04  Bruno Haible  <bruno@clisp.org>
20940
20941         * modules/floorf-tests: New file.
20942         * tests/test-floorf.c: New file.
20943
20944         * modules/floorf: New file.
20945         * lib/floor.c: New file.
20946         * lib/floorf.c: New file.
20947         * m4/floorf.m4: New file.
20948         * lib/math.in.h (floorf): New declaration.
20949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
20950         HAVE_DECL_FLOORF.
20951         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
20952         HAVE_DECL_FLOORF.
20953         * doc/functions/floorf.texi: Mention the 'floorf' module.
20954
20955 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
20956             Bruno Haible  <bruno@clisp.org>
20957
20958         Advertise for the Git server instead of the CVS server.
20959         * doc/gnulib-intro.texi (Steady Development): Mention the Git
20960         repository instead of the CVS one.
20961         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
20962         about all VCS systems generically.
20963         * doc/gnulib.texi (Introduction): Capitalize `Git'.
20964
20965 2007-10-04  Bruno Haible  <bruno@clisp.org>
20966
20967         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
20968         means.
20969         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
20970
20971 2007-10-04  Bruno Haible  <bruno@clisp.org>
20972
20973         * modules/truncl-tests: New file.
20974         * tests/test-truncl.c: New file.
20975
20976         * modules/truncl: New file.
20977         * lib/truncl.c: New file.
20978         * m4/truncl.m4: New file.
20979         * lib/math.in.h (truncl): New declaration.
20980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
20981         HAVE_DECL_TRUNCL.
20982         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
20983         HAVE_DECL_TRUNCL.
20984         * doc/functions/truncl.texi: Mention the 'truncl' module.
20985
20986 2007-10-04  Bruno Haible  <bruno@clisp.org>
20987
20988         * modules/truncf-tests: New file.
20989         * tests/test-truncf.c: New file.
20990
20991         * modules/truncf: New file.
20992         * lib/trunc.c: Make paramerizable through USE_* macros.
20993         * lib/truncf.c: New file.
20994         * m4/truncf.m4: New file.
20995         * lib/math.in.h (truncf): New declaration.
20996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
20997         HAVE_DECL_TRUNCF.
20998         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
20999         HAVE_DECL_TRUNCF.
21000         * doc/functions/truncf.texi: Mention the 'truncf' module.
21001
21002 2007-10-03  Bruno Haible  <bruno@clisp.org>
21003
21004         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
21005         augmentation also for tests modules.
21006         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
21007         * modules/atexit-tests (Makefile.am): Likewise.
21008         * modules/binary-io-tests (Makefile.am): Likewise.
21009         * modules/c-strcase-tests (Makefile.am): Likewise.
21010         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
21011         * modules/canonicalize-tests (Makefile.am): Likewise.
21012         * modules/closein-tests (Makefile.am): Likewise.
21013         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21014         * modules/freadahead-tests (Makefile.am): Likewise.
21015         * modules/fseek-tests (Makefile.am): Likewise.
21016         * modules/fseeko-tests (Makefile.am): Likewise.
21017         * modules/ftell-tests (Makefile.am): Likewise.
21018         * modules/ftello-tests (Makefile.am): Likewise.
21019         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
21020         * modules/isnanl-tests (Makefile.am): Likewise.
21021         * modules/lseek-tests (Makefile.am): Likewise.
21022         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21023         * modules/mbscasestr-tests (Makefile.am): Likewise.
21024         * modules/mbschr-tests (Makefile.am): Likewise.
21025         * modules/mbscspn-tests (Makefile.am): Likewise.
21026         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21027         * modules/mbspbrk-tests (Makefile.am): Likewise.
21028         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21029         * modules/mbsrchr-tests (Makefile.am): Likewise.
21030         * modules/mbsspn-tests (Makefile.am): Likewise.
21031         * modules/mbsstr-tests (Makefile.am): Likewise.
21032         * modules/printf-posix-tests (Makefile.am): Likewise.
21033         * modules/snprintf-posix-tests (Makefile.am): Likewise.
21034         * modules/sprintf-posix-tests (Makefile.am): Likewise.
21035         * modules/tsearch-tests (Makefile.am): Likewise.
21036         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21037         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21038         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21039         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21040         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21041         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21042         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21043         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21044         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
21045         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
21046         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21047         * modules/xstrtol-tests (Makefile.am): Likewise.
21048         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21049         * modules/yesno-tests (Makefile.am): Likewise.
21050
21051 2007-10-03  Bruno Haible  <bruno@clisp.org>
21052
21053         * modules/trunc-tests: New file.
21054         * tests/test-trunc.c: New file.
21055
21056         * modules/trunc: New file.
21057         * lib/trunc.c: New file.
21058         * m4/trunc.m4: New file.
21059         * lib/math.in.h (trunc): New declaration.
21060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
21061         HAVE_DECL_TRUNC.
21062         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
21063         HAVE_DECL_TRUNC.
21064         * doc/functions/trunc.texi: Mention the 'trunc' module.
21065
21066 2007-10-03  Bruno Haible  <bruno@clisp.org>
21067
21068         * tests/test-fpending.c: New file, mostly copied
21069         from coreutils/lib/t-fpending.c.
21070         * modules/fpending-tests: New file.
21071
21072 2007-10-03  Bruno Haible  <bruno@clisp.org>
21073
21074         Port the stdio extensions to QNX (untested).
21075         * lib/fseterr.c (fseterr): Add support for QNX.
21076         * lib/fbufmode.c (fbufmode): Likewise.
21077         * lib/freadable.c (freadable): Likewise.
21078         * lib/fwritable.c (fwritable): Likewise.
21079         * lib/freading.c (freading): Likewise.
21080         * lib/fwriting.c (fwriting): Likewise.
21081         * lib/freadahead.c (freadahed): Likewise.
21082         * lib/fpurge.c (fpurge): Likewise.
21083         * lib/fseeko.c (rpl_fseeko): Likewise.
21084
21085 2007-10-03  Bruno Haible  <bruno@clisp.org>
21086             Jim Meyering  <jim@meyering.net>
21087             Eric Blake  <ebb9@byu.net>
21088
21089         * doc/relocatable.texi: Use @command instead of @program.
21090
21091 2007-10-02  Jim Meyering  <jim@meyering.net>
21092
21093         Perform one more "_.h" -> ".in.h" substitution.
21094         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
21095         instead of unistd_.h here, too.
21096
21097 2007-10-01  Bruno Haible  <bruno@clisp.org>
21098
21099         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
21100         Needed for the alloca-opt module.
21101
21102 2007-09-30  Bruno Haible  <bruno@clisp.org>
21103
21104         * lib/alloca.in.h: Renamed from lib/alloca_.h.
21105         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
21106         alloca_.h.
21107         * lib/argz.in.h: Renamed from lib/argz_.h.
21108         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
21109         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
21110         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
21111         byteswap_.h.
21112         * lib/dirent.in.h: Renamed from lib/dirent_.h.
21113         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
21114         dirent_.h.
21115         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
21116         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
21117         fcntl_.h.
21118         * lib/float.in.h: Renamed from lib/float_.h.
21119         * modules/float (Files, Makefile.am): Use float.in.h instead of
21120         float_.h.
21121         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
21122         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
21123         fnmatch_.h.
21124         * lib/getopt.in.h: Renamed from lib/getopt_.h.
21125         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
21126         getopt_.h.
21127         * lib/glob.in.h: Renamed from lib/glob_.h.
21128         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
21129         * lib/iconv.in.h: Renamed from lib/iconv_.h.
21130         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
21131         iconv_.h.
21132         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
21133         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
21134         inttypes_.h.
21135         * lib/locale.in.h: Renamed from lib/locale_.h.
21136         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
21137         locale_.h.
21138         * lib/math.in.h: Renamed from lib/math_.h.
21139         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
21140         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
21141         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
21142         of netinet_in_.h. Add dependency.
21143         * lib/poll.in.h: Renamed from lib/poll_.h.
21144         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
21145         * lib/search.in.h: Renamed from lib/search_.h.
21146         * modules/search (Files, Makefile.am): Use search.in.h instead of
21147         search_.h.
21148         * lib/signal.in.h: Renamed from lib/signal_.h.
21149         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
21150         _signal.h.
21151         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
21152         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
21153         stdbool_.h.
21154         * lib/stdint.in.h: Renamed from lib/stdint_.h.
21155         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
21156         stdint_.h.
21157         * lib/stdio.in.h: Renamed from lib/stdio_.h.
21158         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
21159         stdio_.h.
21160         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
21161         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
21162         stdlib_.h.
21163         * lib/string.in.h: Renamed from lib/string_.h.
21164         * modules/string (Files, Makefile.am): Use string.in.h instead of
21165         string_.h.
21166         * doc/gnulib-tool.texi (Initial import): Update.
21167         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
21168         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
21169         of sys_select_.h. Add dependency.
21170         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
21171         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
21172         of sys_socket_.h.
21173         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
21174         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
21175         sys_stat_.h.
21176         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
21177         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
21178         sys_time_.h.
21179         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
21180         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
21181         sysexits_.h.
21182         * lib/time.in.h: Renamed from lib/time_.h.
21183         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
21184         * lib/unistd.in.h: Renamed from lib/unistd_.h.
21185         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
21186         unistd_.h.
21187         * lib/wchar.in.h: Renamed from lib/wchar_.h.
21188         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
21189         wchar_.h.
21190         * lib/wctype.in.h: Renamed from lib/wctype_.h.
21191         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
21192         wctype_.h.
21193         * build-aux/bootstrap (slurp): Update.
21194         * lib/.cppi-disable: Update.
21195
21196 2007-09-30  Bruno Haible  <bruno@clisp.org>
21197
21198         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
21199         Needed on BeOS.
21200
21201 2007-09-30  Bruno Haible  <bruno@clisp.org>
21202
21203         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
21204
21205 2007-09-29  Bruno Haible  <bruno@clisp.org>
21206
21207         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
21208
21209 2007-09-29  Bruno Haible  <bruno@clisp.org>
21210
21211         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
21212         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
21213         * build-aux/install-reloc: Compile also areadlink.c.
21214         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
21215
21216 2007-09-29  Bruno Haible  <bruno@clisp.org>
21217
21218         * gnulib-tool (func_emit_initmacro_done): Indentation.
21219
21220 2007-09-29  Bruno Haible  <bruno@clisp.org>
21221
21222         * README: Add CVS checkout update instructions.
21223         Info from Bob Proulx <bob@proulx.com>.
21224
21225 2007-09-28  Eric Blake  <ebb9@byu.net>
21226
21227         Provide move-if-change.
21228         * build-aux/move-if-change: New file, based on best practice
21229         rather than any canonical upstream location.
21230
21231 2007-09-28  Jim Meyering  <jim@meyering.net>
21232
21233         Fix canonicalize loop-detection corner case.
21234         Do not attempt to stat the symlink values stored via seen_triple.
21235         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
21236         on linux-2.6.18, (but not 2.6.22).
21237         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
21238         triple_compare.  The former compares dev,ino,filename, while the latter
21239         would actually stat dirname(filename) when dev and ino were equal.
21240         * lib/hash-triple.c: Install <string.h>.
21241         (STREQ): Define.
21242         (triple_compare_ino_str): New function.
21243         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
21244
21245 2007-09-28  Eric Blake  <ebb9@byu.net>
21246
21247         Enforce that AC_REPLACE_FUNCS files exist.
21248         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
21249         override check for typos.
21250
21251         Fix test-closein on Solaris 10.
21252         * tests/test-closein.c (main): Don't assume stdin can be inherited
21253         closed on all systems.
21254         * tests/test-closein.sh: Likewise.
21255         Reported by Piotr Tarnowski.
21256
21257 2007-09-28  Jim Meyering  <jim@meyering.net>
21258
21259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
21260
21261 2007-09-27  Jim Meyering  <jim@meyering.net>
21262
21263         canonicalize: Avoid a false-positive cycle failure.
21264         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
21265         Sort.  Remove cycle-check.
21266         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
21267         not cycle-check.h.
21268         (seen_triple): New function.
21269         (canonicalize_filename_mode): Use it instead of cycle-check.
21270         * tests/test-canonicalize.c: Add a test for this bug.
21271         * tests/test-canonicalize.sh: Set up and run the test.
21272
21273         New module, file-set, from coreutils.
21274         * modules/file-set: Define it.
21275         * lib/file-set.c, lib/file-set.h: Implement.
21276
21277         New module, hash-triple, from coreutils.
21278         * modules/hash-triple: Define it.
21279         * lib/hash-triple.c, lib/hash-triple.h: Implement.
21280
21281 2007-09-25  Eric Blake  <ebb9@byu.net>
21282
21283         Fix strerror on Interix.
21284         * lib/string_.h (strerror): Declare replacement.
21285         * doc/functions/strerror.texi (strerror): Document the Interix
21286         shortcoming.
21287         * modules/string (Makefile.am): Support new hooks.
21288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
21289         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
21290         gl_FUNC_STRERROR_SEPARATE.
21291         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
21292         * lib/strerror.c (rpl_strerror): Provide replacement.
21293         * modules/strerror (Depends-on): Add string.
21294         (configure.ac): Detect use of module.
21295         * tests/test-strerror.c: New file.
21296         * modules/strerror-tests: New test module.
21297         * modules/argp (Depends-on): Add strerror.
21298         * modules/error (Depends-on): Likewise.
21299         Reported by Martin Koeppe.
21300
21301 2007-09-24  Bruno Haible  <bruno@clisp.org>
21302
21303         * README: Update git instructions.
21304
21305 2007-09-24  Eric Blake  <ebb9@byu.net>
21306
21307         Revert fpending breakage from 2007-09-08.
21308         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
21309         __fpending.c.
21310
21311 2007-09-24  Jim Meyering  <jim@meyering.net>
21312
21313         filenamecat.c: Add a test.
21314         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
21315         showing how the function works when DIR is the empty string.
21316
21317 2007-09-21  Simon Josefsson  <simon@josefsson.org>
21318
21319         * tests/test-canonicalize.sh: Turn on executable bit.
21320
21321 2007-09-19  Eric Blake  <ebb9@byu.net>
21322
21323         * README: Update CVS instructions.
21324
21325 2007-09-18  Bruno Haible  <bruno@clisp.org>
21326
21327         * modules/areadlink: New file.
21328         * lib/areadlink.h (areadlink): New declaration.
21329         * lib/areadlink.c: New file, based on lib/xreadlink.c.
21330
21331 2007-09-17  Jim Meyering  <jim@meyering.net>
21332
21333         * lib/savewd.c (ESTALE) [!defined]: Define.
21334         Reported to be required on Interix by Martin Koeppe.
21335
21336 2007-09-17  Bruno Haible  <bruno@clisp.org>
21337
21338         * gnulib-tool (func_version): Use $version.
21339
21340 2007-09-16  Bruno Haible  <bruno@clisp.org>
21341
21342         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
21343         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
21344         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
21345         Reported by Greg Schafer <gschafer@zip.com.au>.
21346
21347 2007-09-15  Bruno Haible  <bruno@clisp.org>
21348
21349         * gnulib-tool (sed): Try a little harder to make bash understand the
21350         alias.
21351         Reported by Bruce Korb <bruce.korb@gmail.com>.
21352
21353 2007-09-13  Eric Blake  <ebb9@byu.net>
21354
21355         * ChangeLog: Remove conflict markers.
21356
21357 2007-09-13  Simon Josefsson  <simon@josefsson.org>
21358
21359         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
21360         Reported by Bruno Haible <bruno@clisp.org>.
21361
21362 2007-09-12  Bruno Haible  <bruno@clisp.org>
21363
21364         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
21365         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
21366         is not defined.
21367
21368 2007-09-12  Eric Blake  <ebb9@byu.net>
21369
21370         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
21371         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
21372         Autoconf definition.
21373         * modules/euidaccess (Depends-on): Add extensions, for
21374         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
21375         * modules/fnmatch (Depends-on): Likewise.
21376         * modules/getaddrinfo (Depends-on): Likewise.
21377         * modules/getdelim (Depends-on): Likewise.
21378         * modules/getline (Depends-on): Likewise.
21379         * modules/getsubopt (Depends-on): Likewise.
21380         * modules/gettext (Depends-on): Likewise.
21381         * modules/group-member (Depends-on): Likewise.
21382         * modules/mbchar (Depends-on): Likewise.
21383         * modules/memmem (Depends-on): Likewise.
21384         * modules/mempcpy (Depends-on): Likewise.
21385         * modules/memrchr (Depends-on): Likewise.
21386         * modules/pagealign_alloc (Depends-on): Likewise.
21387         * modules/readutmp (Depends-on): Likewise.
21388         * modules/stpcpy (Depends-on): Likewise.
21389         * modules/stpncpy (Depends-on): Likewise.
21390         * modules/strchrnul (Depends-on): Likewise.
21391         * modules/strndup (Depends-on): Likewise.
21392         * modules/strsep (Depends-on): Likewise.
21393         * modules/strverscmp (Depends-on): Likewise.
21394         * modules/vasprintf (Depends-on): Likewise.
21395         * modules/wcwidth (Depends-on): Likewise.
21396         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
21397         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
21398         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
21399         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
21400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21401         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21402         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
21403         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21404         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
21405         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21407         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
21408         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
21409         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21410         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
21411         * m4/readutmp.m4 (gl_READUTMP): Likewise.
21412         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21413         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
21414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21415         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
21416         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21417         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
21418         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
21419         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
21420         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
21421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21422         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
21423         so that lock.m4 can be used in gettext without extensions module.
21424
21425 2007-09-11  Bruno Haible  <bruno@clisp.org>
21426
21427         * m4/isc-posix.m4: Remove file.
21428         Suggested by Eric Blake.
21429
21430 2007-09-11  Eric Blake  <ebb9@byu.net>
21431
21432         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
21433
21434 2007-09-10  Bruno Haible  <bruno@clisp.org>
21435
21436         * posix-modules: Fix typo in error message.
21437         Reported by Matt <mkraai@beckman.com>.
21438
21439 2007-09-09  Bruno Haible  <bruno@clisp.org>
21440
21441         * doc/functions/getdelim.texi: Update list of platforms lacking the
21442         function.
21443         * doc/functions/getline.texi: Likewise.
21444
21445 2007-09-09  Jim Meyering  <jim@meyering.net>
21446
21447         * lib/hash.c (hash_initialize): Detect calloc failure.
21448         Reported by Bruno Haible.
21449
21450 2007-09-09  Bruno Haible  <bruno@clisp.org>
21451
21452         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
21453         malloc or realloc fails.
21454
21455 2007-09-09  Bruno Haible  <bruno@clisp.org>
21456
21457         * modules/getcwd (Depends-on): Add malloc-posix.
21458         * modules/glob (Depends-on): Likewise.
21459         * modules/putenv (Depends-on): Likewise.
21460         * modules/strdup (Depends-on): Likewise.
21461         * modules/getdelim (Depends-on): Add realloc-posix.
21462         * modules/read-file (Depends-on): Likewise.
21463
21464 2007-09-09  Bruno Haible  <bruno@clisp.org>
21465
21466         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
21467         (gl_FUNC_MALLOC_POSIX): Require it.
21468         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
21469         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
21470         * modules/realloc (Files): Add m4/malloc.m4.
21471         * modules/calloc (Files): Likewise.
21472
21473 2007-09-09  Bruno Haible  <bruno@clisp.org>
21474
21475         * modules/malloc-posix: New file.
21476         * modules/malloc (Depends-on): Add malloc-posix.
21477         * lib/malloc.c: Include errno.h.
21478         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
21479         and a POSIX-compatible malloc into a single function. Set ENOMEM
21480         when returning NULL.
21481         * m4/malloc.m4: New file.
21482         * doc/functions/malloc.texi: Mention the malloc-posix module.
21483         * lib/stdlib_.h (malloc): New declaration.
21484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21485         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
21486         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
21487         and HAVE_MALLOC_POSIX.
21488
21489 2007-09-09  Bruno Haible  <bruno@clisp.org>
21490
21491         * modules/realloc-posix: New file.
21492         * modules/realloc (Depends-on): Add realloc-posix.
21493         * lib/realloc.c: Include errno.h.
21494         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
21495         and a POSIX-compatible realloc into a single function. Set ENOMEM
21496         when returning NULL.
21497         * m4/realloc.m4: New file.
21498         * doc/functions/realloc.texi: Mention the realloc-posix module.
21499         * lib/stdlib_.h (realloc): New declaration.
21500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21501         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
21502         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
21503         and HAVE_REALLOC_POSIX.
21504
21505 2007-09-09  Bruno Haible  <bruno@clisp.org>
21506
21507         * modules/calloc-posix: New file.
21508         * modules/calloc (Depends-on): Add calloc-posix.
21509         * lib/calloc.c: Include errno.h.
21510         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
21511         and a POSIX-compatible calloc into a single function. Set ENOMEM
21512         when returning NULL.
21513         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
21514         * doc/functions/calloc.texi: Mention the calloc-posix module.
21515         * lib/stdlib_.h (calloc): New declaration.
21516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21517         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
21518         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
21519         and HAVE_CALLOC_POSIX.
21520
21521 2007-09-09  Bruno Haible  <bruno@clisp.org>
21522
21523         Allow for modules to show an arbitrary notice.
21524         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
21525         * gnulib-tool: New option --extract-notice.
21526         (func_usage): Document it.
21527         (sed_extract_prog): Update.
21528         (func_get_notice): New function.
21529         (func_modules_notice): New function.
21530         (func_import, func_create_testdir): Invoke it.
21531         Suggested by Jim Meyering.
21532
21533 2007-09-09  Bruno Haible  <bruno@clisp.org>
21534
21535         * gnulib-tool: New options --verbose, --quiet.
21536         (func_usage): Document them.
21537         (verbose): New variable.
21538         (func_execute_command): New function.
21539         (func_import): Don't show the module list and the file list if
21540         $verbose < 0.
21541         (func_create_testdir): Likewise. Use func_execute_command.
21542         (func_create_megatestdir): Use func_execute_command.
21543
21544 2007-09-08  Bruno Haible  <bruno@clisp.org>
21545
21546         * gnulib-tool (func_import): Prefer rsync over wget when available,
21547         for fetching the PO files.
21548
21549 2007-09-08  Bruno Haible  <bruno@clisp.org>
21550
21551         * posix-modules: New file. Portions copied from gnulib-tool.
21552         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
21553
21554 2007-09-08  Jim Meyering  <jim@meyering.net>
21555
21556         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
21557         * lib/fpending.h: Rename from __fpending.h.
21558         * lib/fpending.c: Rename from __fpending.c.
21559         Include "fpending.h", not "__fpending.h".
21560         * lib/__fpending.h, lib/__fpending.c: Remove files.
21561         * modules/fpending (Files): Reflect new file names.
21562         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
21563
21564 2007-09-08  Bruno Haible  <bruno@clisp.org>
21565
21566         * m4/inttypes-h.m4: Remove stub file.
21567
21568 2007-09-07  Simon Josefsson  <simon@josefsson.org>
21569
21570         * doc/headers/stdint.texi: Discuss #include_next issue.
21571
21572 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21573
21574         * build-aux/bootstrap: Remove obsolete comment about wget --help.
21575
21576 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21577
21578         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
21579         in variable name.
21580
21581 2007-09-03  Jim Meyering  <jim@meyering.net>
21582
21583         New module: git-version-gen.
21584         * modules/git-version-gen: New file.
21585
21586         Import changes from coreutils for bootstrap script.
21587
21588         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
21589
21590         bootstrap: uses rsync to download the .po files
21591         * build-aux/bootstrap (po_download_command_format): New global.
21592         (download_po_files): Use rsync.
21593         (update_po_files): Don't remove .po files after download,
21594         so future rsync runs can take advantage of the copies.
21595
21596         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
21597
21598         Solve the unnecessary-.po-file-regeneration problem once and for all.
21599         * build-aux/bootstrap (download_po_files): New function, renamed from
21600         get_translations.  Now, downloads, but doesn't update LINGUAS.
21601         (update_po_files): New function.
21602
21603         bootstrap: Ignore more.
21604         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
21605         uniwidth to e.g., lib/.gitignore.
21606         (slurp): Handle the sys_stat_.h -> sys mapping, too.
21607
21608         * build-aux/bootstrap: New setting: vc_ignore.
21609         (insert_sorted_if_absent): Create $file if absent.
21610         Adapt to new, possibly empty, list: $vc_ignore.
21611
21612         bootstrap: generate more ignorable names
21613         * build-aux/bootstrap (slurp): When generating ignorable names,
21614         also map .sin to .sed, .gperf to .c, and .y to .c.
21615
21616 2007-09-03  Jim Meyering  <jim@meyering.net>
21617
21618         * build-aux/git-version-gen: New file, from coreutils.  For details, see
21619         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
21620
21621 2007-09-02  Bruno Haible  <bruno@clisp.org>
21622
21623         Fix mis-recognition of 'mcs' on QNX 6.
21624         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
21625         output contains the string "Mono".
21626         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
21627         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
21628
21629 2007-09-01  Bruno Haible  <bruno@clisp.org>
21630
21631         Fix collision between uniwidth/* and linebreak modules.
21632         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
21633         u32_width): Remove declarations.
21634         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
21635         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
21636         streq3, streq2, streq1, streq0): Remove functions.
21637         (STREQ): Remove macro.
21638         (is_cjk_encoding): Remove function.
21639         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
21640         (uc_width, u8_width, u16_width, u32_width): Remove functions.
21641         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
21642         * NEWS: Document the change.
21643
21644 2007-09-01  Bruno Haible  <bruno@clisp.org>
21645
21646         * lib/streq.h: Add double-inclusion guard.
21647
21648 2007-09-01  Karl Berry  <karl@gnu.org>
21649
21650         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
21651
21652 2007-08-28  Jim Meyering  <jim@meyering.net>
21653
21654         Rename mreadlink_with_size to areadlink_with_size.
21655         * NEWS: Document the change.
21656         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
21657         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
21658         * lib/mreadlink.h: Rename this to...
21659         * lib/areadlink.h: ...this.
21660         * modules/mreadlink-with-size: Rename this to...
21661         * modules/areadlink-with-size: ...this.
21662         * lib/canonicalize.c: Reflect the renaming.
21663         * modules/canonicalize: Likewise.
21664
21665 2007-08-26  Bruno Haible  <bruno@clisp.org>
21666
21667         * gnulib-tool (func_import): When deciding which files to remove,
21668         consider also dangling symbolic links.
21669         Reported by Eric Blake.
21670
21671 2007-08-26  Bruno Haible  <bruno@clisp.org>
21672
21673         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
21674
21675 2007-08-23  Simon Josefsson  <simon@josefsson.org>
21676
21677         * lib/readline.c: Don't include getline.h, the prototype is now
21678         found in stdio.h.
21679
21680 2007-08-23  Jim Meyering  <jim@meyering.net>
21681
21682         Getdelim touchup.
21683         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
21684         around the funlockfile call, since funlockfile never sets errno.
21685         Don't set errno upon failed realloc.
21686
21687 2007-08-22  Eric Blake  <ebb9@byu.net>
21688
21689         Getline touchups.
21690         * lib/getdelim.c (getdelim): Revert regression that required *n to
21691         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
21692         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
21693         getdelim, rather than whether implementation is missing.
21694         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
21695         * lib/stdio_.h (getline): Also declare if replacement is
21696         required.
21697         * doc/functions/getdelim.texi: New file.
21698         * doc/functions/getline.texi: Likewise.
21699         * doc/gnulib.texi (Function Substitutes): Add new files.
21700         Reported by Bruno Haible.
21701
21702 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
21703
21704         * users.txt: Add Guile.
21705
21706 2007-08-22  Eric Blake  <ebb9@byu.net>
21707
21708         * tests/test-getdelim.c (main): Use remove, not unlink.
21709         * tests/test-getline.c (main): Likewise.
21710
21711         Move getline and getdelim into stdio.h, per POSIX 200x.
21712         * modules/getline (Files): Remove getline.h.
21713         (Depends-on): Add stdio.
21714         (configure.ac): Add module indicator.
21715         * modules/getdelim (Files): Remove getdelim.h.
21716         (Depends-on): Add stdio.
21717         (configure.ac): Add module indicator.
21718         * modules/stdio (Makefile.am): Work with new indicators.
21719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21720         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
21721         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21722         * lib/getdelim.h: Delete.
21723         * lib/getline.h: Delete.
21724         * lib/stdio_.h (getdelim, getline): Declare.
21725         * modules/getdelim-tests: New module.
21726         * modules/getline-tests: Likewise.
21727         * tests/test-getdelim.c: New file.
21728         * tests/test-getline.c: Likewise.
21729         * NEWS: Document the change.
21730         * lib/getline.c: Update choice of header.
21731         * lib/csharpcomp.c: Likewise.
21732         * lib/getpass.c: Likewise.
21733         * lib/javacomp.c: Likewise.
21734         * lib/javaversion.c: Likewise.
21735         * lib/yesno.c: Likewise.
21736         * lib/getdelim.c: Likewise.
21737         (getdelim): Set errno on failure, and avoid memory leak.
21738
21739 2007-08-19  Bruno Haible  <bruno@clisp.org>
21740
21741         * modules/closein (Depends-on): Add freadahead.
21742         * lib/closein.c: Include freadahead.h.
21743         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
21744         is zero.
21745
21746 2007-08-19  Bruno Haible  <bruno@clisp.org>
21747
21748         * modules/freadahead-tests: New file.
21749         * tests/test-freadahead.sh: New file.
21750         * tests/test-freadahead.c: New file.
21751
21752         * modules/freadahead: New file.
21753         * lib/freadahead.h: New file.
21754         * lib/freadahead.c: New file.
21755         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
21756         fbufmode, fpurge, freadable, fwritable.
21757
21758 2007-08-19  Eric Blake  <ebb9@byu.net>
21759
21760         Test yesno in combination with closein.
21761         * lib/yesno.c (yesno): Document use of stdin.
21762         * modules/yesno-tests (Files): New module.
21763         * tests/test-yesno.c (main): New file.
21764         * tests/test-yesno.sh: Likewise.
21765
21766 2007-08-19  Bruno Haible  <bruno@clisp.org>
21767
21768         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
21769         * lib/fseeko.c (rpl_fseeko): Likewise.
21770         * lib/fseterr.c (fseterr): Likewise.
21771
21772 2007-08-19  Bruno Haible  <bruno@clisp.org>
21773
21774         * tests/test-lseek.c (main): Disable a test for BeOS.
21775         * doc/functions/lseek.texi: Document the BeOS bug.
21776
21777 2007-08-19  Bruno Haible  <bruno@clisp.org>
21778             Eric Blake  <ebb9@byu.net>
21779
21780         * lib/lseek.c: Include <sys/stat.h>.
21781         (rpl_lseek): Add workaround code also for Unix platforms.
21782         Needed for BeOS.
21783         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
21784         * doc/functions/lseek.texi: Document BeOS definiency.
21785
21786 2007-08-18  Bruno Haible  <bruno@clisp.org>
21787
21788         * modules/fstrcmp-tests: New file.
21789         * tests/test-fstrcmp.c: New file.
21790
21791 2007-08-18  Bruno Haible  <bruno@clisp.org>
21792
21793         * modules/fstrcmp: New file, from GNU gettext with modifications.
21794         * lib/fstrcmp.h: New file, from GNU gettext.
21795         * lib/fstrcmp.c: New file, from GNU gettext.
21796         * MODULES.html.sh (String handling): Add fstrcmp.
21797
21798 2007-08-18  Bruno Haible  <bruno@clisp.org>
21799
21800         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
21801         'bool'.
21802         (diag, compareseq): Remove const from the ctxt argument.
21803         (USE_HEURISTIC): Undefine at the end.
21804
21805 2007-08-18  Jim Meyering  <jim@meyering.net>
21806
21807         New file: lib/idcache.h
21808         * NEWS: Mention the addition.
21809         * modules/idcache (Files): Add lib/idcache.h
21810         * lib/idcache.c: Include "idcache.h".
21811         Don't include <sys/types.h>.
21812         Add a FIXME comment.
21813         Move file-scoped "static" declarations to the top.
21814         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
21815
21816 2007-08-17  Bruno Haible  <bruno@clisp.org>
21817         and Paul Eggert  <eggert@cs.ucla.edu>
21818
21819         * MODULES.html.sh: Add diffseq.
21820         * modules/diffseq: New file.
21821         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
21822         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
21823
21824 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21825
21826         Import changes from coreutils for bootstrap script.
21827
21828         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
21829
21830         * build-aux/bootstrap (slurp): Work even in environments where
21831         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
21832         current code does not slurp files whose names start with ".", and
21833         this looks like it might be a troublesome area.
21834
21835         2007-07-11  Jim Meyering  <jim@meyering.net>
21836
21837         If there's a GPL vN copyright comment, require that N == 3.
21838
21839         2007-07-08  Jim Meyering  <jim@meyering.net>
21840
21841         Run the coreutils-specific code only if tests/Makefile.am.in exists.
21842         * build-aux/bootstrap (mam_template): Move definition out of loop.
21843
21844         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
21845
21846         * build-aux/bootstrap (symlink_to_dir): Rename function from
21847         symlink_to_gnulib.  Add a directory parameter.  Update all
21848         callers.
21849         (cp_mark_as_generated): Also check for -- and link to -- files in
21850         gl/.
21851
21852         2007-07-08  Jim Meyering  <jim@meyering.net>
21853
21854         Adapt to deeper hierarchy in gnulib.
21855         * build-aux/bootstrap (symlink_to_dir): If the destination
21856         directory doesn't exist, create it. This is required at least for
21857         "lib/uniwidth/cjk.h".
21858
21859         2007-05-15  Jim Meyering  <jim@meyering.net>
21860
21861         * build-aux/bootstrap: Now that generated Makefile.am files
21862         are no longer under version control, they must be created at
21863         bootstrap time.
21864
21865 2007-08-14  Ben Pfaff  <blp@gnu.org>
21866
21867         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
21868
21869 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21870
21871         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
21872         given the changes below.
21873         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
21874         even on hosts that have padding bits beyond the supported 64.
21875
21876 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21877
21878         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
21879         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
21880         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
21881         depends on it.
21882         (xstrtol_error): Remove.
21883         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
21884         but with a different signature.
21885         (ATTRIBUTE_NORETURN, __attribute__): New macros.
21886         * lib/xstrtol-error.c: Include exitfail.h.
21887         (xstrtol_fatal): New function, with a different signature from the
21888         old xstrtol_error, so that the caller need not worry about passing
21889         in an exit status, or about storage management of the option argument.
21890         (xstrtol_error): Now a static function.  Redo signature to
21891         implement xstrtol_fatal.  Output the correct number of hyphens in
21892         front of the option so that the caller need not worry about
21893         storage management.
21894         (N_): New macro.
21895         (_): Remove; not used now.
21896         * modules/xstrtol: Depend on getopt.
21897         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
21898         of old STRTOL_FATAL_ERROR macro.
21899         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
21900         of test program.
21901         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
21902         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
21903
21904 2007-08-08  Eric Blake  <ebb9@byu.net>
21905
21906         * lib/xstrtol-error.c: Add missing include.
21907
21908         Move xstrtol messages into gnulib domain, when --pobase is used.
21909         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
21910         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
21911         * modules/xstrtol (Files): Distribute new file.
21912         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
21913         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
21914         * tests/test-xstrtol.c: ...into new file.
21915         * tests/test-xstrtoul.c: Also test xstrtoul.
21916         * tests/test-xstrtoimax.c: Also test xstrtoimax.
21917         * tests/test-xstrtoumax.c: Also test xstrtoumax.
21918         * tests/test-xstrtol.sh: Drive the tests.
21919         * tests/test-xstrtoimax.sh: Likewise.
21920         * tests/test-xstrtoumax.sh: Likewise.
21921         * modules/xstrtol-tests: New module.
21922         * modules/xstrtoimax-tests: Likewise.
21923         * modules/xstrtoumax-tests: Likewise.
21924
21925 2007-08-08  Jim Meyering  <jim@meyering.net>
21926
21927         New function: mfile_name_concat.
21928         * lib/filenamecat.c (mfile_name_concat): New function, just like
21929         file_name_concat, but return NULL upon failure rather than exiting
21930         with a diagnostic.
21931         * lib/filenamecat.h: Declare it.
21932
21933 2007-08-07  Bruno Haible  <bruno@clisp.org>
21934
21935         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
21936         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
21937         warning from gcc.
21938         Reported by Eric Blake.
21939
21940 2007-08-07  Simon Josefsson  <simon@josefsson.org>
21941
21942         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
21943         * modules/crypto/arcfour (License): Likewise.
21944         * modules/crypto/des-tests (License): Likewise.
21945         * modules/crypto/gc-arctwo-tests (License): Likewise.
21946         * modules/crypto/gc-des-tests (License): Likewise.
21947         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
21948         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
21949         * modules/crypto/gc-md2-tests (License): Likewise.
21950         * modules/crypto/gc-md4-tests (License): Likewise.
21951         * modules/crypto/gc-md5-tests (License): Likewise.
21952         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
21953         * modules/crypto/gc-rijndael-tests (License): Likewise.
21954         * modules/crypto/gc-sha1-tests (License): Likewise.
21955         * modules/crypto/gc-tests (License): Likewise.
21956         * modules/crypto/hmac-md5 (License): Likewise.
21957         * modules/crypto/hmac-sha1 (License): Likewise.
21958         * modules/crypto/md2-tests (License): Likewise.
21959         * modules/crypto/md4-tests (License): Likewise.
21960         * modules/crypto/md5 (License): Likewise.
21961         * modules/crypto/rijndael (License): Likewise.
21962         * modules/crypto/sha1 (License): Likewise.
21963         * modules/memxor (License): Likewise.
21964
21965 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21966         and Bruno Haible  <bruno@clisp.org>
21967
21968         * NEWS: Describe interface changes to human, xstrtol.
21969         * lib/human.h: Include <xstrtol.h>.
21970         (human_options): Return enum strtol_error, not int.  Remove
21971         bool arg; take int * instead.
21972         * lib/human.c: Don't include "gettext.h".
21973         (_): Remove; no longer used.
21974         Don't include <xstrtol.h>, since human.h does it.
21975         (human_options): Adjust to abovementioned interface changes.
21976         Do not report error to stderr; that's now the caller's
21977         responsibility.
21978         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
21979         interface change.
21980         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
21981         Str, Argument_type_string.  All uses changed.  Put " argument"
21982         in diagnostics to make them clearer.  Change wording of suffix
21983         message for clarity.
21984         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
21985         Argument_type_string.
21986         (STRTOL_FATAL_WARN): Remove; no longer used.
21987         * modules/human (Depends-on): Remove gettext-h.
21988
21989 2007-08-06  Simon Josefsson  <simon@josefsson.org>
21990
21991         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
21992
21993 2007-07-31  Bruno Haible  <bruno@clisp.org>
21994
21995         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
21996         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
21997         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
21998
21999 2007-07-31  Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
22002         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
22003
22004 2007-07-30  Bruno Haible  <bruno@clisp.org>
22005
22006         * modules/base64 (License): Use the synonymous term "LGPLv2+".
22007         * modules/c-ctype (License): Likewise.
22008         * modules/c-strcase (License): Likewise.
22009         * modules/check-version (License): Likewise.
22010         * modules/iconv (License): Likewise.
22011         * modules/iconv_open (License): Likewise.
22012         * modules/read-file (License): Likewise.
22013         * modules/striconv (License): Likewise.
22014         * modules/strverscmp (License): Likewise.
22015         * modules/vasprintf (License): Likewise.
22016         * modules/crypto/des (License): Likewise.
22017         * modules/crypto/gc (License): Likewise.
22018         * modules/crypto/gc-arcfour (License): Likewise.
22019         * modules/crypto/gc-arctwo (License): Likewise.
22020         * modules/crypto/gc-des (License): Likewise.
22021         * modules/crypto/gc-hmac-md5 (License): Likewise.
22022         * modules/crypto/gc-hmac-sha1 (License): Likewise.
22023         * modules/crypto/gc-md2 (License): Likewise.
22024         * modules/crypto/gc-md4 (License): Likewise.
22025         * modules/crypto/gc-md5 (License): Likewise.
22026         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
22027         * modules/crypto/gc-random (License): Likewise.
22028         * modules/crypto/gc-rijndael (License): Likewise.
22029         * modules/crypto/gc-sha1 (License): Likewise.
22030         * modules/crypto/md2 (License): Likewise.
22031         * modules/crypto/md4 (License): Likewise.
22032
22033 2007-07-30  Jim Meyering  <jim@meyering.net>
22034
22035         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
22036         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
22037         it has valid stat data.  This bug would cause du not to count the
22038         sizes of inaccessible directories.
22039         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
22040         in <http://bugzilla.redhat.com/250077>.
22041
22042 2007-07-25  Peter O'Gorman  <peter@pogma.com>
22043             Bruno Haible  <bruno@clisp.org>
22044
22045         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
22046         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
22047         #include_next, gives a diagnostic about it, but reports no error in
22048         the exit code.
22049         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22050
22051 2007-07-24  Ben Pfaff  <blp@gnu.org>
22052
22053         Improve name: "count-one-bits" is better than "popcount".
22054         * MODULES.html.sh: Update name.
22055         * lib/popcount.h: Renamed lib/count-one-bits.h.
22056         (popcount): Renamed count_one_bits.
22057         (popcountl): Renamed count_one_bits_l.
22058         (popcountll): Renamed count_one_bits_ll.
22059         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
22060         * modules/popcount: Renamed module/count-one-bits.
22061         * modules/popcount-tests: Renamed module/count-one-bits-tests.
22062         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
22063
22064 2007-07-23  Ben Pfaff  <blp@gnu.org>
22065
22066         * lib/popcount.h (popcount32): Reduce size of constants, to allow
22067         better code generation, and add U to large constants to avoid
22068         warnings, in non-GCC case.
22069         Suggested by Bruno Haible.
22070
22071 2007-07-23  Ben Pfaff  <blp@gnu.org>
22072
22073         * lib/popcount.h: Use verify_true instead of if...abort.
22074         * modules/popcount: Depend on verify module.
22075         Suggested by Jim Meyering.
22076
22077 2007-07-23  Bruno Haible  <bruno@clisp.org>
22078
22079         * gnulib-tool (func_import): Create a .cvsignore file also when the
22080         directory is not yet in CVS but the toplevel directory is. When
22081         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
22082         Reported by Karl Berry.
22083
22084 2007-07-22  Ben Pfaff  <blp@gnu.org>
22085
22086         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
22087         case.
22088         Suggested by Eric Blake.
22089
22090 2007-07-22  Ben Pfaff  <blp@gnu.org>
22091
22092         New module: popcount.
22093         * MODULES.html.sh: Add popcount.
22094         * modules/popcount: New file.
22095         * modules/popcount-tests: New file.
22096         * tests/test-popcount.c: New file.
22097         * lib/popcount.h: New file.
22098         * m4/popcount.m4: New file.
22099
22100 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22101
22102         * build-aux/announce-gen: Update to GPLv3.
22103
22104         * build-aux/config.guess: Update from config.
22105
22106 2007-07-21  Bruno Haible  <bruno@clisp.org>
22107
22108         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
22109         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
22110
22111 2007-07-20  Jim Meyering  <jim@meyering.net>
22112
22113         * check-module: Diagnose a self-dependency.
22114
22115 2007-07-19  Bruno Haible  <bruno@clisp.org>
22116
22117         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
22118         empty.
22119         Reported by Eric Blake.
22120
22121 2007-07-18  Bruno Haible  <bruno@clisp.org>
22122
22123         * gnulib-tool: New options --po-base, --po-domain.
22124         (func_usage): Document them.
22125         (pobase, po_domain): New variables.
22126         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
22127         DEFAULT_TEXT_DOMAIN.
22128         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
22129         (func_import): Consider pobase and po_domain. Create a po/ directory.
22130         (func_create_testdir): Set pobase and po_domain to empty.
22131         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
22132         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
22133
22134 2007-07-18  Bruno Haible  <bruno@clisp.org>
22135
22136         * gnulib-tool (func_get_automake_snippet): Synthesize also an
22137         EXTRA_DIST augmentation for files in build-aux/.
22138
22139 2007-07-16  Bruno Haible  <bruno@clisp.org>
22140
22141         * modules/lseek (License): Use the synonymous term "LGPLv2+".
22142         * modules/getdelim (License): Likewise.
22143
22144 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22145
22146         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
22147         * modules/d-type (License): Likewise.
22148         * modules/extensions (License): Likewise.
22149         * modules/fnmatch (License): Likewise.
22150         * modules/fseeko (License): Likewise.
22151         * modules/getaddrinfo (License): Likewise.
22152         * modules/getline (License): Likewise.
22153         * modules/getlogin_r (License): Likewise.
22154         * modules/getpass (License): Likewise.
22155         * modules/gettimeofday (License): Likewise.
22156         * modules/glob (License): Likewise.
22157         * modules/inet_ntop (License): Likewise.
22158         * modules/malloc (License): Likewise.
22159         * modules/malloca (License): Likewise.
22160         * modules/memmem (License): Likewise.
22161         * modules/mempcpy (License): Likewise.
22162         * modules/memset (License): Likewise.
22163         * modules/minmax (License): Likewise.
22164         * modules/mktime (License): Likewise.
22165         * modules/netinet_in (License): Likewise.
22166         * modules/pathmax (License): Likewise.
22167         * modules/poll (License): Likewise.
22168         * modules/regex (License): Likewise.
22169         * modules/snprintf (License): Likewise.
22170         * modules/stdbool (License): Likewise.
22171         * modules/stdint (License): Likewise.
22172         * modules/stdio (License): Likewise.
22173         * modules/strcase (License): Likewise.
22174         * modules/strcasestr (License): Likewise.
22175         * modules/strdup (License): Likewise.
22176         * modules/string (License): Likewise.
22177         * modules/strndup (License): Likewise.
22178         * modules/strnlen (License): Likewise.
22179         * modules/strpbrk (License): Likewise.
22180         * modules/strptime (License): Likewise.
22181         * modules/strsep (License): Likewise.
22182         * modules/sys_select (License): Likewise.
22183         * modules/sys_socket (License): Likewise.
22184         * modules/sys_stat (License): Likewise.
22185         * modules/sys_time (License): Likewise.
22186         * modules/time (License): Likewise.
22187         * modules/time_r (License): Likewise.
22188         * modules/timegm (License): Likewise.
22189         * modules/unistd (License): Likewise.
22190         * modules/vsnprintf (License): Likewise.
22191         * modules/wctype (License): Likewise.
22192
22193 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22194
22195         * modules/argz (License): LGPLv2+.
22196
22197 2007-07-15  Karl Berry  <karl@gnu.org>
22198
22199         * doc/gnulib.texi: revise node structure per new fdl.texi.
22200
22201 2007-07-14  Bruno Haible  <bruno@clisp.org>
22202
22203         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
22204         the output file.
22205         * lib/uniname/uninames.h: Regenerated.
22206
22207 2007-07-14  Karl Berry  <karl@gnu.org>
22208
22209         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
22210         omitting sectioning and index commands.
22211
22212 2007-07-13  Bruno Haible  <bruno@clisp.org>
22213
22214         New gnulib-tool option --more-symlinks.
22215         * gnulib-tool (func_usage): Document --more-symlinks.
22216         (do_copyrights): New variable.
22217         Recognize option --more-symlinks.
22218         (func_import): Don't add a copyright notice transform to
22219         sed_transform_lib_file if do_copyrights is empty.
22220
22221 2007-07-13  Bruno Haible  <bruno@clisp.org>
22222
22223         * lib/vasnprintf.c (decimal_point_char): Define also if
22224         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
22225         && !NEED_PRINTF_DIRECTIVE_A.
22226         Reported by Clemens Koller <clemens.koller@anagramm.de> via
22227         Gary V. Vaughan <gary@gnu.org>.
22228
22229 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
22230
22231         * lib/inttypes_.h: Undo previous change, since it was fixed
22232         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
22233
22234 2007-07-13  Bruno Haible  <bruno@clisp.org>
22235
22236         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
22237         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
22238
22239 2007-07-13  Jim Meyering  <jim@meyering.net>
22240
22241         df: Don't fail for Tru64's "file-on-file mount".
22242         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
22243         so we fall through and use statfs instead.  Details here:
22244         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
22245         Reported by Albert Chin.
22246
22247 2007-07-13  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
22250         * modules/configmake (License): Likewise.
22251         * modules/gettext (License): Likewise.
22252         * modules/gettext-h (License): Likewise.
22253         * modules/include_next (License): Likewise.
22254         * modules/link-warning (License): Likewise.
22255         * modules/localcharset (License): Likewise.
22256         * modules/localename (License): Likewise.
22257         * modules/lock (License): Likewise.
22258         * modules/relocatable-lib-lgpl (License): Likewise.
22259         * modules/size_max (License): Likewise.
22260         * modules/vasnprintf (License): Likewise.
22261         * modules/wchar (License): Likewise.
22262         * modules/xsize (License): Likewise.
22263
22264 2007-07-13  Bruno Haible  <bruno@clisp.org>
22265
22266         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
22267         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
22268
22269 2007-07-12  Bruno Haible  <bruno@clisp.org>
22270
22271         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
22272         in the modules files.
22273
22274 2007-07-11  Karl Berry  <karl@gnu.org>
22275
22276         * MODULES.html.sh (func_module): use
22277          sed -e '\|^'"${includefile}"'$|d'
22278          instead of /.../d, to avoid errors on $includefile's containing /.
22279
22280 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22281
22282         * gnulib-tool (func_import): Avoid duplication of --avoid
22283         statements
22284         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
22285         names to `_' in variable names.
22286
22287 2007-07-10  Eric Blake  <ebb9@byu.net>
22288
22289         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
22290         * NEWS: Document this change.
22291
22292 2007-07-08  Bruno Haible  <bruno@clisp.org>
22293
22294         Update to Unicode 5.0.
22295         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
22296         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
22297         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
22298         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
22299         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
22300         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
22301         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
22302         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
22303         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
22304         U+10A3F, U+1D242..U+1D244.
22305         (nonspacing_table_ind): Update.
22306         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
22307         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
22308
22309 2007-07-08  Bruno Haible  <bruno@clisp.org>
22310
22311         Update to Unicode 5.0.
22312         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
22313         code transform. Extend the name index field of unicode_name_to_code and
22314         unicode_code_to_name from 16 to 24 bits.
22315         * lib/uniname/uniname.c (unicode_character_name,
22316         unicode_name_character): Add the range 0x12xxx to the code transform.
22317         * lib/uniname/uninames.h: Regenerated.
22318         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
22319
22320 2007-07-07  Bruno Haible  <bruno@clisp.org>
22321
22322         * modules/wcwidth-tests: New file.
22323         * tests/test-wcwidth.c: New file.
22324
22325         Work around MacOS X wcwidth() bug.
22326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
22327         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
22328         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
22329         original wcwidth in non-UTF-8 locales.
22330         * modules/wcwidth (Depends-on): Add localcharset, streq,
22331         uniwidth/width.
22332         * doc/functions/wcwidth.texi: Update.
22333
22334 2007-07-07  Bruno Haible  <bruno@clisp.org>
22335
22336         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
22337         (wcwidth): New declaration.
22338         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
22339         macros.
22340         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
22341         here. Prepare for creating <wchar.h> unconditionally.
22342         * modules/wchar (Depends-on): Add link-warning.
22343         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
22344         REPLACE_WCWIDTH, and GL_LINK_WARNING.
22345         * lib/wcwidth.h: Remove file.
22346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
22347         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
22348         * modules/wcwidth (Files): Remove lib/wcwidth.h.
22349         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
22350         (Include): Replace wcwidth.h with <wchar.h>.
22351         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
22352         * lib/mbchar.h: Don't include wcwidth.h.
22353         * lib/mbswidth.c: Likewise.
22354         * NEWS: Mention the change.
22355
22356 2007-07-07  Bruno Haible  <bruno@clisp.org>
22357
22358         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
22359         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
22360         definition with an external declaration.
22361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
22362         defined as a function. Remove AC_C_INLINE requirement.
22363         * modules/wcwidth (Files): Add lib/wcwidth.c.
22364         (Makefile.am): Remove redundant statement.
22365
22366 2007-07-07  Bruno Haible  <bruno@clisp.org>
22367
22368         * MODULES.html.sh (Unicode string functions): Add the new modules.
22369
22370         * tests/uniwidth/test-u32-strwidth.c: New file.
22371         * modules/uniwidth/u32-strwidth-tests: New file.
22372
22373         * lib/uniwidth/u32-strwidth.c: New file.
22374         * modules/uniwidth/u32-strwidth: New file.
22375
22376         * tests/uniwidth/test-u16-strwidth.c: New file.
22377         * modules/uniwidth/u16-strwidth-tests: New file.
22378
22379         * lib/uniwidth/u16-strwidth.c: New file.
22380         * modules/uniwidth/u16-strwidth: New file.
22381
22382         * tests/uniwidth/test-u8-strwidth.c: New file.
22383         * modules/uniwidth/u8-strwidth-tests: New file.
22384
22385         * lib/uniwidth/u8-strwidth.c: New file.
22386         * modules/uniwidth/u8-strwidth: New file.
22387
22388         * tests/uniwidth/test-u32-width.c: New file.
22389         * modules/uniwidth/u32-width-tests: New file.
22390
22391         * lib/uniwidth/u32-width.c: New file.
22392         * modules/uniwidth/u32-width: New file.
22393
22394         * tests/uniwidth/test-u16-width.c: New file.
22395         * modules/uniwidth/u16-width-tests: New file.
22396
22397         * lib/uniwidth/u16-width.c: New file.
22398         * modules/uniwidth/u16-width: New file.
22399
22400         * tests/uniwidth/test-u8-width.c: New file.
22401         * modules/uniwidth/u8-width-tests: New file.
22402
22403         * lib/uniwidth/u8-width.c: New file.
22404         * modules/uniwidth/u8-width: New file.
22405
22406         * tests/uniwidth/test-uc_width.c: New file.
22407         * modules/uniwidth/width-tests: New file.
22408
22409         * lib/uniwidth/width.c: New file, from GNU libiconv.
22410         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
22411         * modules/uniwidth/width: New file.
22412
22413         * lib/uniwidth.h: New file, from GNU libiconv.
22414         * modules/uniwidth/base: New file.
22415
22416 2007-07-07  Bruno Haible  <bruno@clisp.org>
22417
22418         * lib/uniname.h: New file, from GNU gettext.
22419         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
22420         * lib/uniname/uninames.h: New file, from GNU gettext.
22421         * lib/uniname/uniname.c: New file, from GNU gettext.
22422         * tests/uniname/test-uninames.sh: New file.
22423         * tests/uniname/test-uninames.c: New file, from GNU gettext.
22424         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
22425         * modules/uniname/base: New file.
22426         * modules/uniname/uniname: New file.
22427         * modules/uniname/uniname-tests: New file.
22428         * MODULES.html.sh (Unicode string functions): Add the new modules.
22429
22430 2007-07-06  Bruno Haible  <bruno@clisp.org>
22431
22432         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
22433
22434 2007-07-06  Bruno Haible  <bruno@clisp.org>
22435
22436         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
22437         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
22438         includes <cygwin/sys_time.h> which includes <sys/select.h> which
22439         include <sys/time.h>.
22440         Reported by Eric Blake.
22441
22442 2007-07-06  Eric Blake  <ebb9@byu.net>
22443
22444         Fix testing canonicalize on cygwin.
22445         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22446         Revert patch from 2007-06-19.
22447         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
22448         canonicalize module is also in use.
22449         * tests/test-canonicalize.c: New file.
22450         * tests/test-canonicalize.sh: Likewise.
22451         * modules/canonicalize-tests: Likewise.
22452
22453 2007-07-06  Jim Meyering  <jim@meyering.net>
22454
22455         * lib/getugroups.c (getugroups): Detect getgrent failure.
22456         Adjust comment to reflect reality: this function may return -1.
22457
22458 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22459
22460         * build-aux/bootstrap (TP_URL,get_translations): Update to use
22461         the new TP address.
22462         (usage): Fix typo
22463         (gnulib_mk): New variable.
22464
22465 2007-07-05  Jim Meyering  <jim@meyering.net>
22466
22467         Don't let endgrent clobber errno, no matter how improbable.
22468         * lib/getugroups.c (getugroups): Save and restore errno around
22469         endgrent call.
22470
22471         Close the group DB even when failing with 2^31 or more members.
22472         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
22473
22474 2007-07-04  Jim Meyering  <jim@meyering.net>
22475
22476         * lib/getugroups.h: New file.
22477         * lib/getugroups.c: Include "getugroups.h".
22478         Remove uses of "register" keyword.
22479         Move local variable, "cp", down into scope where used.
22480         Give "username" parameter the "const" attribute.
22481         * modules/getugroups (Files): Add lib/getugroups.h
22482
22483 2007-07-04  Karl Berry  <karl@gnu.org>
22484
22485         * MODULES.html.sh (func_all_modules): Complete rename of
22486         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
22487
22488 2007-07-02  Bruno Haible  <bruno@clisp.org>
22489
22490         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
22491         mode, when inttypes.h comes from gnulib.
22492         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22493
22494 2007-07-02  Simon Josefsson  <simon@josefsson.org>
22495
22496         * NEWS: Mention lgpl module name change.
22497
22498         * modules/lgpl-2.1: Renamed from lgpl.
22499
22500         * NEWS: Mention gpl module name change.
22501
22502         * modules/gpl-3.0: New file, based on gpl-2.0.
22503
22504         * modules/gpl-2.0: Renamed from gpl.
22505
22506         * modules/gpl: Fix filename, doc/gpl.texi is now found at
22507         doc/gpl-2.0.texi.
22508
22509 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22510
22511         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
22512         #define __STDC_LIMIT_MACROS temporarily while including
22513         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
22514         Problem reported by Joel E. Denny in
22515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
22516
22517 2007-07-01  Bruno Haible  <bruno@clisp.org>
22518
22519         * lib/unistdio.h: New file.
22520         * lib/unistdio/u-asnprintf.h: New file.
22521         * lib/unistdio/u-asprintf.h: New file.
22522         * lib/unistdio/u-printf-args.c: New file.
22523         * lib/unistdio/u-printf-args.h: New file.
22524         * lib/unistdio/u-printf-parse.h: New file.
22525         * lib/unistdio/u-snprintf.h: New file.
22526         * lib/unistdio/u-sprintf.h: New file.
22527         * lib/unistdio/u-vasprintf.h: New file.
22528         * lib/unistdio/u-vsnprintf.h: New file.
22529         * lib/unistdio/u-vsprintf.h: New file.
22530         * lib/unistdio/ulc-asnprintf.c: New file.
22531         * lib/unistdio/ulc-asprintf.c: New file.
22532         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
22533         * lib/unistdio/ulc-printf-parse.c: New file.
22534         * lib/unistdio/ulc-snprintf.c: New file.
22535         * lib/unistdio/ulc-sprintf.c: New file.
22536         * lib/unistdio/ulc-vasnprintf.c: New file.
22537         * lib/unistdio/ulc-vasprintf.c: New file.
22538         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
22539         * lib/unistdio/ulc-vsnprintf.c: New file.
22540         * lib/unistdio/ulc-vsprintf.c: New file.
22541         * lib/unistdio/u8-asnprintf.c: New file.
22542         * lib/unistdio/u8-asprintf.c: New file.
22543         * lib/unistdio/u8-printf-parse.c: New file.
22544         * lib/unistdio/u8-snprintf.c: New file.
22545         * lib/unistdio/u8-sprintf.c: New file.
22546         * lib/unistdio/u8-vasnprintf.c: New file.
22547         * lib/unistdio/u8-vasprintf.c: New file.
22548         * lib/unistdio/u8-vsnprintf.c: New file.
22549         * lib/unistdio/u8-vsprintf.c: New file.
22550         * lib/unistdio/u8-u8-asnprintf.c: New file.
22551         * lib/unistdio/u8-u8-asprintf.c: New file.
22552         * lib/unistdio/u8-u8-snprintf.c: New file.
22553         * lib/unistdio/u8-u8-sprintf.c: New file.
22554         * lib/unistdio/u8-u8-vasnprintf.c: New file.
22555         * lib/unistdio/u8-u8-vasprintf.c: New file.
22556         * lib/unistdio/u8-u8-vsnprintf.c: New file.
22557         * lib/unistdio/u8-u8-vsprintf.c: New file.
22558         * lib/unistdio/u16-asnprintf.c: New file.
22559         * lib/unistdio/u16-asprintf.c: New file.
22560         * lib/unistdio/u16-printf-parse.c: New file.
22561         * lib/unistdio/u16-snprintf.c: New file.
22562         * lib/unistdio/u16-sprintf.c: New file.
22563         * lib/unistdio/u16-vasnprintf.c: New file.
22564         * lib/unistdio/u16-vasprintf.c: New file.
22565         * lib/unistdio/u16-vsnprintf.c: New file.
22566         * lib/unistdio/u16-vsprintf.c: New file.
22567         * lib/unistdio/u16-u16-asnprintf.c: New file.
22568         * lib/unistdio/u16-u16-asprintf.c: New file.
22569         * lib/unistdio/u16-u16-snprintf.c: New file.
22570         * lib/unistdio/u16-u16-sprintf.c: New file.
22571         * lib/unistdio/u16-u16-vasnprintf.c: New file.
22572         * lib/unistdio/u16-u16-vasprintf.c: New file.
22573         * lib/unistdio/u16-u16-vsnprintf.c: New file.
22574         * lib/unistdio/u16-u16-vsprintf.c: New file.
22575         * lib/unistdio/u32-asnprintf.c: New file.
22576         * lib/unistdio/u32-asprintf.c: New file.
22577         * lib/unistdio/u32-printf-parse.c: New file.
22578         * lib/unistdio/u32-snprintf.c: New file.
22579         * lib/unistdio/u32-sprintf.c: New file.
22580         * lib/unistdio/u32-vasnprintf.c: New file.
22581         * lib/unistdio/u32-vasprintf.c: New file.
22582         * lib/unistdio/u32-vsnprintf.c: New file.
22583         * lib/unistdio/u32-vsprintf.c: New file.
22584         * lib/unistdio/u32-u32-asnprintf.c: New file.
22585         * lib/unistdio/u32-u32-asprintf.c: New file.
22586         * lib/unistdio/u32-u32-snprintf.c: New file.
22587         * lib/unistdio/u32-u32-sprintf.c: New file.
22588         * lib/unistdio/u32-u32-vasnprintf.c: New file.
22589         * lib/unistdio/u32-u32-vasprintf.c: New file.
22590         * lib/unistdio/u32-u32-vsnprintf.c: New file.
22591         * lib/unistdio/u32-u32-vsprintf.c: New file.
22592         * tests/unistdio/test-ulc-asnprintf1.c: New file.
22593         * tests/unistdio/test-ulc-asnprintf1.h: New file.
22594         * tests/unistdio/test-ulc-printf1.h: New file.
22595         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
22596         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
22597         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
22598         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
22599         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
22600         * tests/unistdio/test-ulc-vasprintf1.c: New file.
22601         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
22602         * tests/unistdio/test-ulc-vsprintf1.c: New file.
22603         * tests/unistdio/test-u8-asnprintf1.c: New file.
22604         * tests/unistdio/test-u8-asnprintf1.h: New file.
22605         * tests/unistdio/test-u8-printf1.h: New file.
22606         * tests/unistdio/test-u8-vasnprintf1.c: New file.
22607         * tests/unistdio/test-u8-vasnprintf2.c: New file.
22608         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
22609         * tests/unistdio/test-u8-vasnprintf3.c: New file.
22610         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
22611         * tests/unistdio/test-u8-vasprintf1.c: New file.
22612         * tests/unistdio/test-u8-vsnprintf1.c: New file.
22613         * tests/unistdio/test-u8-vsprintf1.c: New file.
22614         * tests/unistdio/test-u16-asnprintf1.c: New file.
22615         * tests/unistdio/test-u16-asnprintf1.h: New file.
22616         * tests/unistdio/test-u16-printf1.h: New file.
22617         * tests/unistdio/test-u16-vasnprintf1.c: New file.
22618         * tests/unistdio/test-u16-vasnprintf2.c: New file.
22619         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
22620         * tests/unistdio/test-u16-vasnprintf3.c: New file.
22621         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
22622         * tests/unistdio/test-u16-vasprintf1.c: New file.
22623         * tests/unistdio/test-u16-vsnprintf1.c: New file.
22624         * tests/unistdio/test-u16-vsprintf1.c: New file.
22625         * tests/unistdio/test-u32-asnprintf1.c: New file.
22626         * tests/unistdio/test-u32-asnprintf1.h: New file.
22627         * tests/unistdio/test-u32-printf1.h: New file.
22628         * tests/unistdio/test-u32-vasnprintf1.c: New file.
22629         * tests/unistdio/test-u32-vasnprintf2.c: New file.
22630         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
22631         * tests/unistdio/test-u32-vasnprintf3.c: New file.
22632         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
22633         * tests/unistdio/test-u32-vasprintf1.c: New file.
22634         * tests/unistdio/test-u32-vsnprintf1.c: New file.
22635         * tests/unistdio/test-u32-vsprintf1.c: New file.
22636         * modules/unistdio/base: New file.
22637         * modules/unistdio/u-printf-args: New file.
22638         * modules/unistdio/ulc-asnprintf: New file.
22639         * modules/unistdio/ulc-asprintf: New file.
22640         * modules/unistdio/ulc-fprintf: New file.
22641         * modules/unistdio/ulc-printf-parse: New file.
22642         * modules/unistdio/ulc-snprintf: New file.
22643         * modules/unistdio/ulc-sprintf: New file.
22644         * modules/unistdio/ulc-vasnprintf: New file.
22645         * modules/unistdio/ulc-vasprintf: New file.
22646         * modules/unistdio/ulc-vfprintf: New file.
22647         * modules/unistdio/ulc-vsnprintf: New file.
22648         * modules/unistdio/ulc-vsprintf: New file.
22649         * modules/unistdio/u8-asnprintf: New file.
22650         * modules/unistdio/u8-asprintf: New file.
22651         * modules/unistdio/u8-printf-parse: New file.
22652         * modules/unistdio/u8-snprintf: New file.
22653         * modules/unistdio/u8-sprintf: New file.
22654         * modules/unistdio/u8-vasnprintf: New file.
22655         * modules/unistdio/u8-vasprintf: New file.
22656         * modules/unistdio/u8-vsnprintf: New file.
22657         * modules/unistdio/u8-vsprintf: New file.
22658         * modules/unistdio/u8-u8-asnprintf: New file.
22659         * modules/unistdio/u8-u8-asprintf: New file.
22660         * modules/unistdio/u8-u8-snprintf: New file.
22661         * modules/unistdio/u8-u8-sprintf: New file.
22662         * modules/unistdio/u8-u8-vasnprintf: New file.
22663         * modules/unistdio/u8-u8-vasprintf: New file.
22664         * modules/unistdio/u8-u8-vsnprintf: New file.
22665         * modules/unistdio/u8-u8-vsprintf: New file.
22666         * modules/unistdio/u16-asnprintf: New file.
22667         * modules/unistdio/u16-asprintf: New file.
22668         * modules/unistdio/u16-printf-parse: New file.
22669         * modules/unistdio/u16-snprintf: New file.
22670         * modules/unistdio/u16-sprintf: New file.
22671         * modules/unistdio/u16-vasnprintf: New file.
22672         * modules/unistdio/u16-vasprintf: New file.
22673         * modules/unistdio/u16-vsnprintf: New file.
22674         * modules/unistdio/u16-vsprintf: New file.
22675         * modules/unistdio/u16-u16-asnprintf: New file.
22676         * modules/unistdio/u16-u16-asprintf: New file.
22677         * modules/unistdio/u16-u16-snprintf: New file.
22678         * modules/unistdio/u16-u16-sprintf: New file.
22679         * modules/unistdio/u16-u16-vasnprintf: New file.
22680         * modules/unistdio/u16-u16-vasprintf: New file.
22681         * modules/unistdio/u16-u16-vsnprintf: New file.
22682         * modules/unistdio/u16-u16-vsprintf: New file.
22683         * modules/unistdio/u32-asnprintf: New file.
22684         * modules/unistdio/u32-asprintf: New file.
22685         * modules/unistdio/u32-printf-parse: New file.
22686         * modules/unistdio/u32-snprintf: New file.
22687         * modules/unistdio/u32-sprintf: New file.
22688         * modules/unistdio/u32-vasnprintf: New file.
22689         * modules/unistdio/u32-vasprintf: New file.
22690         * modules/unistdio/u32-vsnprintf: New file.
22691         * modules/unistdio/u32-vsprintf: New file.
22692         * modules/unistdio/u32-u32-asnprintf: New file.
22693         * modules/unistdio/u32-u32-asprintf: New file.
22694         * modules/unistdio/u32-u32-snprintf: New file.
22695         * modules/unistdio/u32-u32-sprintf: New file.
22696         * modules/unistdio/u32-u32-vasnprintf: New file.
22697         * modules/unistdio/u32-u32-vasprintf: New file.
22698         * modules/unistdio/u32-u32-vsnprintf: New file.
22699         * modules/unistdio/u32-u32-vsprintf: New file.
22700         * modules/unistdio/ulc-asnprintf-tests: New file.
22701         * modules/unistdio/ulc-vasnprintf-tests: New file.
22702         * modules/unistdio/ulc-vasprintf-tests: New file.
22703         * modules/unistdio/ulc-vsnprintf-tests: New file.
22704         * modules/unistdio/ulc-vsprintf-tests: New file.
22705         * modules/unistdio/u8-asnprintf-tests: New file.
22706         * modules/unistdio/u8-vasnprintf-tests: New file.
22707         * modules/unistdio/u8-vasprintf-tests: New file.
22708         * modules/unistdio/u8-vsnprintf-tests: New file.
22709         * modules/unistdio/u8-vsprintf-tests: New file.
22710         * modules/unistdio/u16-asnprintf-tests: New file.
22711         * modules/unistdio/u16-vasnprintf-tests: New file.
22712         * modules/unistdio/u16-vasprintf-tests: New file.
22713         * modules/unistdio/u16-vsnprintf-tests: New file.
22714         * modules/unistdio/u16-vsprintf-tests: New file.
22715         * modules/unistdio/u32-asnprintf-tests: New file.
22716         * modules/unistdio/u32-vasnprintf-tests: New file.
22717         * modules/unistdio/u32-vasprintf-tests: New file.
22718         * modules/unistdio/u32-vsnprintf-tests: New file.
22719         * modules/unistdio/u32-vsprintf-tests: New file.
22720         * MODULES.html.sh (Unicode string functions): Add the new modules.
22721
22722 2007-07-01  Bruno Haible  <bruno@clisp.org>
22723
22724         * lib/sprintf.c (sprintf): Limit the available length estimation,
22725         to avoid address wraparound.
22726         * lib/vsprintf.c (vsprintf): Likewise.
22727         * modules/sprintf-posix (Dependencies): Add stdint.
22728         * modules/vsprintf-posix (Dependencies): Likewise.
22729
22730 2007-07-01  Bruno Haible  <bruno@clisp.org>
22731
22732         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
22733         Windows PATH as well. Conservative double-quoting. Comments.
22734
22735 2007-07-01  Bruno Haible  <bruno@clisp.org>
22736             Eric Blake  <ebb9@byu.net>
22737             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22738
22739         * gnulib-tool (self_abspathname): Fix algorithm to cope with
22740         empty components in $PATH, denoting '.'.
22741
22742 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22743
22744         * gnulib-tool: Fix indentation.
22745         (func_create_megatestdir): Likewise.
22746         Report by Bruno Haible.
22747
22748 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22749
22750         Sync from Automake.
22751         * build-aux/gnupload: Fix shell portability issues with for loops.
22752         Report by Karl Berry.
22753
22754 2007-06-29  Simon Josefsson  <simon@josefsson.org>
22755
22756         * build-aux/maint.mk (POURL): Use translationproject.org.
22757
22758 2007-06-27  Simon Josefsson  <simon@josefsson.org>
22759             Bruno Haible  <bruno@clisp.org>
22760
22761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
22762         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
22763         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
22764         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
22765         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
22766
22767 2007-06-27  Bruno Haible  <bruno@clisp.org>
22768
22769         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
22770         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
22771
22772 2007-06-26  Karl Berry  <karl@gnu.org>
22773
22774         * MODULES.html.sh: remove xreadlink-with-size.
22775
22776 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22777
22778         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
22779         method that I hope also handles the double-include problem noted
22780         by Bruno Haible in
22781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
22782
22783 2007-06-23  Bruno Haible  <bruno@clisp.org>
22784
22785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22786         Don't let the 'mostlyclean' target fail if the last subdirectory could
22787         not be removed.
22788         Reported by Karl Berry.
22789
22790 2007-06-23  Bruno Haible  <bruno@clisp.org>
22791
22792         * gnulib-tool (echo): Add a speedier workaround for ksh.
22793         * tests/test-echo.sh: Likewise.
22794
22795 2007-06-23  Bruno Haible  <bruno@clisp.org>
22796
22797         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
22798         * tests/test-echo.sh: Likewise.
22799
22800 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22801
22802         * gnulib-tool (IFS): Initialize early, so we don't set it to
22803         empty later.
22804         (self_abspathname): Rewrite algorithm to set it, reindent.
22805         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
22806         (func_create_megatestdir): Merge some sed scripts.
22807
22808 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22809
22810         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
22811         exposed by Sun Studio 11 cc on Solaris 8.
22812
22813 2007-06-22  Bruno Haible  <bruno@clisp.org>
22814
22815         * gnulib-tool (echo): Ensure the echo primitive does not interpret
22816         backslashes.
22817         * tests/test-echo.sh: New file.
22818
22819 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22820
22821         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
22822         simplify `sed_replace_build_aux' scripts, they are portable but
22823         echoing them with `echo' is not.
22824         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
22825
22826 2007-06-21  Karl Berry  <karl@gnu.org>
22827
22828         * config/srclist.txt: guess we can't handle the licenses via
22829         srclist at the moment.
22830
22831 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22832
22833         * MODULES.html.sh: Add include_next.
22834         * modules/include_next: New file.
22835
22836 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22837
22838         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
22839         INCLUDE_NEXT.
22840         (gl_CHECK_NEXT_HEADERS): New macro.
22841         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
22842         the obsolescent gl_ABSOLUTE_HEADER.
22843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22844         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22845         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22846         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22847         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22848         * m4/math_h.m4 (gl_MATH_H): Likewise.
22849         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22850         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22851         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22852         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22853         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22854         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22855         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22856         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22857         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22858         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22859         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22860         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22861         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
22862         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22863         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22864         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22865         * m4/inttypes.m4 (gl_INTTYPES_H): Define
22866         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
22867         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
22868         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
22869         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
22870         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
22871         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
22872         * lib/float_.h: Likewise.
22873         * lib/inttypes_.h: Likewise.
22874         * lib/math_.h: Likewise.
22875         * lib/search_.h: Likewise.
22876         * lib/signal_.h: Likewise.
22877         * lib/stdint_.h: Likewise.
22878         * lib/stdio_.h: Likewise.
22879         * lib/stdlib_.h: Likewise.
22880         * lib/string_.h: Likewise.
22881         * lib/sys_stat_.h: Likewise.
22882         * lib/sys_time_.h: Likewise.
22883         * lib/time_.h: Likewise.
22884         * lib/unistd_.h: Likewise.
22885         * lib/wchar_.h: Likewise.
22886         * lib/wctype_.h: Likewise.
22887         * lib/dirent_.h: Likewise.
22888         * lib/iconv_.h: Likewise.
22889         * lib/locale_.h: Likewise.
22890         * lib/netinet_in_.h: Likewise.
22891         * lib/sys_select_.h: Likewise.
22892         * lib/sys_socket_.h: Likewise.
22893         * lib/sysexits_.h: Likewise.
22894         * modules/fcntl (Depends-on): Depend on include_next, not
22895         absolute_header.
22896         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
22897         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
22898         * modules/fchdir: Likewise.
22899         * modules/float: Likewise.
22900         * modules/iconv_open: Likewise.
22901         * modules/inttypes: Likewise.
22902         * modules/locale: Likewise.
22903         * modules/math: Likewise.
22904         * modules/netinet_in: Likewise.
22905         * modules/search: Likewise.
22906         * modules/signal: Likewise.
22907         * modules/stdint: Likewise.
22908         * modules/stdio: Likewise.
22909         * modules/stdlib: Likewise.
22910         * modules/string: Likewise.
22911         * modules/sys_select: Likewise.
22912         * modules/sys_socket: Likewise.
22913         * modules/sys_stat: Likewise.
22914         * modules/sys_time: Likewise.
22915         * modules/sysexits: Likewise.
22916         * modules/time: Likewise.
22917         * modules/unistd: Likewise.
22918         * modules/wchar: Likewise.
22919         * modules/wctype: Likewise.
22920         * modules/sys_stat: Change maintainer to "all".
22921         * modules/unistd: Likewise.
22922
22923 2007-06-20  Karl Berry  <karl@gnu.org>
22924
22925         * config/srclist.txt: track www changes in license files.
22926
22927 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
22928
22929         * build-aux/bootstrap: Remove stray dot.
22930         Make sure build_aux settings are honored when linking
22931         gnulib_extra_files.
22932
22933 2007-06-19  Eric Blake  <ebb9@byu.net>
22934
22935         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22936         Allow compilation on cygwin.
22937
22938 2007-06-19  Jim Meyering  <jim@meyering.net>
22939
22940         xreadlink-with-size: Remove module.  No longer used.
22941         Ex-callers now use xreadlink or mreadlink-with-size.
22942         * modules/xreadlink-with-size: Remove module.
22943         * lib/xreadlink-with-size.c: Remove file.
22944         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
22945         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
22946         just before the function definition *is* accurate.
22947
22948         Eliminate one way canonicalize_filename_mode could exit.
22949         * lib/canonicalize.c (canonicalize_filename_mode):
22950         Use mreadlink_with_size, not xreadlink_with_size.
22951
22952 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         Detect porting problems to FreeBSD/arm, which has time_t wider than
22955         long int.  Original problem reported for GNU diff by Xin Li in
22956         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
22957         * modules/getdate (Depends-on): Add intprops, verify.
22958         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
22959         is an integer type no wider than long int.
22960
22961 2007-06-18  Jim Meyering  <jim@meyering.net>
22962
22963         New module: mreadlink-with-size.
22964         * MODULES.html.sh: Add mreadlink-with-size.
22965         * modules/mreadlink-with-size: New module
22966         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
22967         not xreadlink-with-size.
22968         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
22969
22970 2007-06-16  Bruno Haible  <bruno@clisp.org>
22971
22972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
22973         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
22974         Reported by Gary V. Vaughan <gary@gnu.org>.
22975
22976 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
22977
22978         Revamp lchown so that it lives in unistd.h where it belongs.
22979         * lib/lchown.h: Remove.
22980         * lib/dirchownmod.c: Don't include lib/lchown.h.
22981         * lib/fchownat.c: Likewise.
22982         * lib/openat.c: Likewise.
22983         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
22984         does not follow symlinks.
22985         (EOPNOTSUPP): Define if not defined.
22986         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
22987         is defined to 0.
22988         (lchown): New decl.
22989         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
22990         Do not check for lchown decl.
22991         Set REPLACE_LCHOWN.
22992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
22993         REPLACE_LCHOWN.
22994         * modules/chown: Make it clear it follows symlinks.
22995         * modules/lchown: Make it clear it doesn't follow symlinks.
22996         (Files): Remove lib/lchown.h
22997         (Depends-on): Add unistd.
22998         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
22999         (Include): Include <unistd.h>, not "lchown.h".
23000         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
23001         REPLACE_LCHOWN.
23002
23003 2007-06-15  Jim Meyering  <jim@meyering.net>
23004
23005         Change license (GPL to LGPL) of fsusage and dependents.
23006         * modules/fsusage (License): Change to LGPL.
23007         * modules/full-read (License): Likewise.
23008         * modules/full-write (License): Likewise.
23009         * modules/safe-read (License): Likewise.
23010         * modules/safe-write (License): Likewise.
23011
23012 2007-06-14  Ben Pfaff  <blp@gnu.org>
23013
23014         Missing part of allocsa -> malloca transition.
23015         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
23016         gl_MALLOCA.
23017
23018 2007-06-12  Bruno Haible  <bruno@clisp.org>
23019
23020         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
23021         to ia64, x86_64, i386.
23022         Reported by Eric Blake.
23023
23024 2007-06-12  Bruno Haible  <bruno@clisp.org>
23025
23026         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
23027         cross-compiling to x86_64.
23028
23029 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
23030
23031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
23032         glitch reported by Ralf Wildenhues in
23033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
23034
23035         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
23036         Vin Shelton.
23037
23038 2007-06-11  Bruno Haible  <bruno@clisp.org>
23039
23040         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
23041         replacement string.
23042         Reported by Eric Blake.
23043
23044 2007-06-10  Bruno Haible  <bruno@clisp.org>
23045
23046         Prepare vasnprintf code for use with Unicode strings.
23047         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
23048         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
23049         TYPE_U32_STRING.
23050         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
23051         a_u32_string variants.
23052         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23053         * lib/printf-args.c: Don't include config.h and the specification
23054         header if PRINTF_FETCHARGS is already defined.
23055         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23056         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
23057         TYPE_U16_STRING, TYPE_U32_STRING.
23058         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
23059         u16_directive, u16_directives, u32_directive, u32_directives): New
23060         types.
23061         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
23062         New declarations.
23063         * lib/printf-parse.c: Don't include config.h and the specification
23064         header if PRINTF_PARSE is already defined. Eliminate the set of
23065         parameters for WIDE_CHAR_VERSION; the user of this file must provide
23066         them now. Include c-ctype.h.
23067         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
23068         directive and CHAR_T_ONLY_ASCII.
23069         * lib/vasnprintf.c: Don't include config.h and the specification header
23070         if VASNPRINTF is already defined.
23071         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
23072         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
23073         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
23074         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
23075         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
23076         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
23077         code accordingly.
23078         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
23079         pad_ourselves also in this case, with the 'c' and 's' directives, and
23080         with a different notion of "width".
23081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
23082
23083 2007-06-10  Bruno Haible  <bruno@clisp.org>
23084
23085         * modules/unistr/u32-mbsnlen: New file.
23086         * lib/unistr/u32-mbsnlen.c: New file.
23087
23088         * modules/unistr/u16-mbsnlen: New file.
23089         * lib/unistr/u16-mbsnlen.c: New file.
23090
23091         * modules/unistr/u8-mbsnlen: New file.
23092         * lib/unistr/u8-mbsnlen.c: New file.
23093
23094         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
23095         declarations.
23096
23097 2007-06-10  Bruno Haible  <bruno@clisp.org>
23098
23099         * lib/string_.h (mbsnlen): New declaration.
23100         * lib/mbsnlen.c: New file.
23101         * m4/mbsnlen.m4: New file.
23102         * modules/mbsnlen: New file.
23103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
23104         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
23105         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
23106
23107 2007-06-10  Bruno Haible  <bruno@clisp.org>
23108
23109         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
23110
23111 2007-06-10  Bruno Haible  <bruno@clisp.org>
23112
23113         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
23114         * lib/mbuiter.h: Likewise.
23115
23116 2007-06-10  Bruno Haible  <bruno@clisp.org>
23117
23118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
23119         declaration.
23120
23121 2007-06-10  Karl Berry  <karl@gnu.org>
23122
23123         * config/srclist.txt: remove gettext entries, Bruno prefers
23124         to update individually.
23125
23126 2007-06-10  Bruno Haible  <bruno@clisp.org>
23127
23128         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
23129         'maxlen'. Ensure only length + width bytes are allocated, not
23130         length + 1 + width.
23131
23132 2007-06-09  Bruno Haible  <bruno@clisp.org>
23133
23134         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
23135         (CHAR_T): Remove macro.
23136         (VASNPRINTF): Update.
23137
23138 2007-06-09  Bruno Haible  <bruno@clisp.org>
23139
23140         * MODULES.html.sh (Unicode string functions): Add the new modules.
23141
23142         * modules/uniconv/u32-conv-to-enc: New file.
23143         * lib/uniconv/u32-conv-to-enc.c: New file.
23144         * modules/uniconv/u32-conv-to-enc-tests: New file.
23145         * tests/uniconv/test-u32-conv-to-enc.c: New file.
23146
23147         * modules/uniconv/u16-conv-to-enc: New file.
23148         * lib/uniconv/u16-conv-to-enc.c: New file.
23149         * lib/uniconv/u-conv-to-enc.h: New file.
23150         * modules/uniconv/u16-conv-to-enc-tests: New file.
23151         * tests/uniconv/test-u16-conv-to-enc.c: New file.
23152
23153         * modules/uniconv/u8-conv-to-enc: New file.
23154         * lib/uniconv/u8-conv-to-enc.c: New file.
23155         * modules/uniconv/u8-conv-to-enc-tests: New file.
23156         * tests/uniconv/test-u8-conv-to-enc.c: New file.
23157
23158         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23159         u32_conv_to_encoding): New declarations.
23160
23161 2007-06-09  Bruno Haible  <bruno@clisp.org>
23162
23163         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
23164
23165 2007-06-09  Bruno Haible  <bruno@clisp.org>
23166
23167         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
23168         * modules/malloca: Renamed from modules/allocsa, updated.
23169         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
23170         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
23171         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
23172         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
23173         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
23174         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
23175         * modules/xmalloca: Renamed from modules/xallocsa, updated.
23176         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
23177         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
23178         * modules/c-strcasestr (Depends-on): Update.
23179         * lib/c-strcasestr.c: Update.
23180         * modules/c-strstr (Depends-on): Update.
23181         * lib/c-strstr.c: Update.
23182         * modules/canonicalize-lgpl (Depends-on): Update.
23183         * lib/canonicalize-lgpl.c: Update.
23184         * modules/clean-temp (Depends-on): Update.
23185         * lib/clean-temp.c: Update.
23186         * modules/csharpcomp (Depends-on): Update.
23187         * lib/csharpcomp.c: Update.
23188         * modules/csharpexec (Depends-on): Update.
23189         * lib/csharpexec.c: Update.
23190         * modules/javacomp (Depends-on): Update.
23191         * lib/javacomp.c: Update.
23192         * modules/javaexec (Depends-on): Update.
23193         * lib/javaexec.c: Update.
23194         * modules/mbscasestr (Depends-on): Update.
23195         * lib/mbscasestr.c: Update.
23196         * modules/mbsstr (Depends-on): Update.
23197         * lib/mbsstr.c: Update.
23198         * modules/setenv (Depends-on): Update.
23199         * lib/setenv.c: Update.
23200         * modules/strcasestr (Depends-on): Update.
23201         * lib/strcasestr.c: Update.
23202         * modules/striconveha (Depends-on): Update.
23203         * lib/striconveha.c: Update.
23204         * modules/relocatable-prog-wrapper (Files): Update.
23205         * lib/relocwrapper.c: Update.
23206         * build-aux/install-reloc: Update.
23207         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
23208
23209 2007-06-08  Bruno Haible  <bruno@clisp.org>
23210
23211         Port to uClibc.
23212         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
23213         * lib/fpurge.c (fpurge): Likewise.
23214         * lib/freading.c (freading): Likewise.
23215         * lib/fseeko.c (rpl_fseeko): Likewise.
23216         * lib/fseterr.c (fseterr): Likewise.
23217         * lib/fwriting.c (fwriting): Likewise.
23218         * tests/test-fflush.c (main): Avoid a failure on uClibc.
23219
23220 2007-06-08  Bruno Haible  <bruno@clisp.org>
23221
23222         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
23223         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
23224         * modules/gettext (Files): Add m4/intlmacosx.m4.
23225
23226 2007-06-07  Bruno Haible  <bruno@clisp.org>
23227
23228         * modules/localename-tests: New file.
23229         * tests/test-localename.c: New file.
23230
23231         New module 'localename'.
23232         * lib/localename.h: New file.
23233         * lib/localename.c: New file, from GNU gettext.
23234         * m4/localename.m4: New file.
23235         * modules/localename: New file.
23236
23237 2007-06-07  Bruno Haible  <bruno@clisp.org>
23238
23239         Work around the lack of <wchar.h> on some builds of uClibc.
23240         * doc/headers/wchar.texi: Update.
23241         * lib/wchar_.h: Include <wchar.h> only if it exists.
23242         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
23243         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
23244         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
23245         doesn't exist.
23246         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
23247         * modules/mbfile (Depends-on): Add wchar.
23248         * modules/mbiter (Depends-on): Likewise.
23249         * modules/mbuiter (Depends-on): Likewise.
23250         Reported by Simon Josefsson.
23251
23252 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
23253
23254         Work around problem reported by Steven M. Schweda in
23255         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
23256         Tru64 5.1B with the Compaq compiler environment installed declares
23257         an 'isblank' function but does not define it in the C library.
23258         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
23259         * lib/regex_internal.h (isblank): Likewise.
23260         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
23261         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23262
23263 2007-06-05  Bruno Haible  <bruno@clisp.org>
23264
23265         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
23266         ia64.
23267         * modules/printf-safe: New file.
23268         * modules/fprintf-posix (Depends-on): Add printf-safe.
23269         * modules/printf-posix (Depends-on): Likewise.
23270         * modules/snprintf-posix (Depends-on): Likewise.
23271         * modules/sprintf-posix (Depends-on): Likewise.
23272         * modules/vasnprintf-posix (Depends-on): Likewise.
23273         * modules/vasprintf-posix (Depends-on): Likewise.
23274         * modules/vfprintf-posix (Depends-on): Likewise.
23275         * modules/vprintf-posix (Depends-on): Likewise.
23276         * modules/vsnprintf-posix (Depends-on): Likewise.
23277         * modules/vsprintf-posix (Depends-on): Likewise.
23278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
23279         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
23280         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
23281         "no" on i386, x86_64, ia64.
23282         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
23283         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23284         on i386, x86_64, ia64.
23285         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
23286         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23287         on i386, x86_64, ia64.
23288         * tests/test-vasnprintf-posix.c: Include float.h.
23289         (LDBL80_WORDS): New macro.
23290         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23291         on i386, x86_64, ia64.
23292         * tests/test-vasprintf-posix.c: Include float.h.
23293         (LDBL80_WORDS): New macro.
23294         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23295         on i386, x86_64, ia64.
23296         * tests/test-snprintf-posix.c: Include float.h.
23297         * tests/test-sprintf-posix.c: Likewise.
23298         * tests/test-vsnprintf-posix.c: Likewise.
23299         * tests/test-vsprintf-posix.c: Likewise.
23300
23301 2007-06-05  Bruno Haible  <bruno@clisp.org>
23302
23303         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
23304         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
23305         non-IEEE numbers on i386, x86_64, ia64.
23306         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
23307         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
23308         * tests/test-isnanl.h: Include float.h.
23309         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
23310
23311 2007-06-05  Bruno Haible  <bruno@clisp.org>
23312
23313         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
23314         also the %a / %A. Handle the %a / %A code before this extra handling.
23315
23316 2007-06-05  Bruno Haible  <bruno@clisp.org>
23317
23318         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
23319         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
23320
23321 2007-06-05  Bruno Haible  <bruno@clisp.org>
23322
23323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
23324         typo in variable name.
23325
23326 2007-06-05  Eric Blake  <ebb9@byu.net>
23327
23328         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
23329         Reported by Simon Josefsson.
23330
23331 2007-06-04  Bruno Haible  <bruno@clisp.org>
23332
23333         Avoid test failures on some PowerPC platforms.
23334         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
23335         Define differently for PowerPC.
23336         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
23337         Reported by Gary V. Vaughan <gary@gnu.org>.
23338
23339 2007-06-02  Bruno Haible  <bruno@clisp.org>
23340
23341         Fix test-stdint failure on FreeBSD/ia64.
23342         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
23343         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
23344         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
23345         * doc/headers/stdint.texi: Update.
23346
23347 2007-06-01  Bruno Haible  <bruno@clisp.org>
23348
23349         * tests/test-binary-io.c (main): Pass a third argument to open().
23350         Reported by Gary V. Vaughan <gary@gnu.org>.
23351
23352 2007-06-01  Bruno Haible  <bruno@clisp.org>
23353
23354         * doc/functions/frexpl.texi: Update for mingw.
23355
23356 2007-06-01  Bruno Haible  <bruno@clisp.org>
23357
23358         * tests/test-lseek.c (main): Disable test of errno for invalid third
23359         argument.
23360         * doc/functions/lseek.texi: Update.
23361         Reported by Gary V. Vaughan <gary@gnu.org>.
23362
23363 2007-05-28  Bruno Haible  <bruno@clisp.org>
23364
23365         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
23366
23367 2007-05-31  Eric Blake  <ebb9@byu.net>
23368
23369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
23370         cross compiling.
23371
23372 2007-05-30  Eric Blake  <ebb9@byu.net>
23373         and Bruno Haible  <bruno@clisp.org>
23374
23375         Work around mingw test failures exposed by m4-1.4.9b.
23376         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
23377         * tests/test-unistd.c: Disable uid_t and git_t tests for the
23378         moment.
23379
23380 2007-05-30  Bruno Haible  <bruno@clisp.org>
23381
23382         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
23383         assuming that they are closed. Needed on HP-UX 11.
23384
23385 2007-05-29  Bruno Haible  <bruno@clisp.org>
23386
23387         Fix a problem with #include_next.
23388         * lib/dirent_.h: Split the double-inclusion guard.
23389         * lib/fcntl_.h: Likewise.
23390         * lib/float_.h: Likewise.
23391         * lib/iconv_.h: Likewise.
23392         * lib/inttypes_.h: Likewise.
23393         * lib/locale_.h: Likewise.
23394         * lib/math_.h: Likewise.
23395         * lib/netinet_in_.h: Likewise.
23396         * lib/search_.h: Likewise.
23397         * lib/signal_.h: Likewise.
23398         * lib/stdint_.h: Likewise.
23399         * lib/stdio_.h: Likewise.
23400         * lib/stdlib_.h: Likewise.
23401         * lib/string_.h: Likewise.
23402         * lib/sys_select_.h: Likewise.
23403         * lib/sys_socket_.h: Likewise.
23404         * lib/sys_stat_.h: Likewise.
23405         * lib/sys_time_.h: Likewise.
23406         * lib/sysexits_.h: Likewise.
23407         * lib/time_.h: Likewise.
23408         * lib/unistd_.h: Likewise.
23409         * lib/wchar_.h: Likewise.
23410         * lib/wctype_.h: Likewise.
23411
23412 2007-05-29  Bruno Haible  <bruno@clisp.org>
23413
23414         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
23415         for the moment.
23416
23417 2007-05-29  Bruno Haible  <bruno@clisp.org>
23418
23419         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
23420         invocation.
23421         Reported by Eric Blake.
23422
23423 2007-05-29  Bruno Haible  <bruno@clisp.org>
23424
23425         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
23426         compiling case.
23427
23428 2007-05-29  Eric Blake  <ebb9@byu.net>
23429             Bruno Haible  <bruno@clisp.org>
23430
23431         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
23432         cross compiles.
23433
23434 2007-05-28  Eric Blake  <ebb9@byu.net>
23435
23436         * modules/closein-tests (test_closein_LDADD): Support test on
23437         cygwin with libtool.
23438
23439 2007-05-28  Bruno Haible  <bruno@clisp.org>
23440
23441         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
23442         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23443         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23444         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23445         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23446         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23447         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23448         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23449         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23450
23451 2007-05-28  Eric Blake  <ebb9@byu.net>
23452
23453         Unconditionally include <config.h> in unit tests.
23454         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
23455         * tests/test-allocsa.c, tests/test-arcfour.c,
23456         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
23457         tests/test-array_list.c, tests/test-array_oset.c,
23458         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
23459         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
23460         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
23461         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
23462         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
23463         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
23464         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
23465         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
23466         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
23467         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
23468         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
23469         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
23470         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
23471         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
23472         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
23473         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
23474         test-md5.c, test-memmem.c, test-printf-posix.c,
23475         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
23476         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
23477         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
23478         test-strcasestr.c, test-striconv.c, test-striconveh.c,
23479         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
23480         test-vasnprintf-posix2.c, test-vasnprintf.c,
23481         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
23482         test-vfprintf-posix.c, test-vprintf-posix.c,
23483         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
23484         test-xvasprintf.c: Likewise.
23485
23486 2007-05-28  Bruno Haible  <bruno@clisp.org>
23487
23488         * gnulib-tool (func_import): Remember the --with-tests command-line
23489         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
23490         Reported by Eric Blake.
23491
23492 2007-05-28  Bruno Haible  <bruno@clisp.org>
23493
23494         * modules/ftell-tests: New file.
23495         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
23496         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
23497
23498         * lib/ftell.c: New file.
23499         * modules/ftell: New file.
23500         * m4/ftell.m4: New file.
23501         * doc/functions/ftell.texi: Update.
23502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
23503         REPLACE_FTELL.
23504         * lib/stdio_.h (rpl_ftell): New declaration.
23505         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
23506         REPLACE_FTELL.
23507
23508 2007-05-28  Eric Blake  <ebb9@byu.net>
23509
23510         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
23511
23512 2007-05-28  Bruno Haible  <bruno@clisp.org>
23513
23514         * modules/fseek-tests: New file.
23515         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
23516         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
23517
23518         * lib/fseek.c: New file.
23519         * modules/fseek: New file.
23520         * m4/fseek.m4: New file.
23521         * doc/functions/fseek.texi: Update.
23522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
23523         REPLACE_FSEEK.
23524         * lib/stdio_.h (rpl_fseek): New declaration.
23525         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
23526         REPLACE_FSEEK.
23527
23528 2007-05-28  Bruno Haible  <bruno@clisp.org>
23529
23530         * lib/stdio_.h (fflush): More comments.
23531
23532 2007-05-28  Bruno Haible  <bruno@clisp.org>
23533
23534         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
23535         runtime test.
23536
23537 2007-05-28  Eric Blake  <ebb9@byu.net>
23538
23539         Improve lseek module.
23540         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
23541         * lib/unistd_.h (lseek): Scale back link warning message.
23542         * tests/test-lseek.c: Beef up test.
23543         * tests/test-lseek.sh: Exercise more facets of lseek.
23544         Reported by Bruno Haible.
23545
23546 2007-05-28  Bruno Haible  <bruno@clisp.org>
23547
23548         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
23549         to define.
23550
23551 2007-05-27  Bruno Haible  <bruno@clisp.org>
23552
23553         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
23554
23555 2007-05-27  Bruno Haible  <bruno@clisp.org>
23556
23557         * modules/openmp: New file.
23558         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
23559         Noah Misch.
23560
23561 2007-05-26  Bruno Haible  <bruno@clisp.org>
23562
23563         * modules/chdir-long (Depends-on): Add fchdir.
23564         * modules/chdir-safer (Depends-on): Likewise.
23565         * modules/fts (Depends-on): Likewise.
23566         * modules/fts-lgpl (Depends-on): Likewise.
23567         * modules/openat (Depends-on): Likewise.
23568         * modules/savewd (Depends-on): Likewise.
23569
23570 2007-05-24  Eric Blake  <ebb9@byu.net>
23571
23572         Fix lseek on mingw.
23573         * modules/lseek: New module.
23574         * m4/lseek.m4: New file.
23575         * lib/lseek.c: New file.
23576         * modules/lseek-tests: New file.
23577         * tests/test-lseek.c: New file.
23578         * tests/test-lseek.sh: New file.
23579         * MODULES.html.sh: Document lseek module.
23580         * modules/fflush (Depends-on): Add lseek, fseeko.
23581         * modules/fseeko (Depends-on): Likewise.
23582         * modules/ftello (Depends-on): Likewise.
23583         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
23584         broken.
23585         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
23586         broken.
23587         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
23588         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
23589         * lib/ftello.c (rpl_ftello): Likewise.
23590         * tests/test-fseeko.c (main): Test this.
23591         * tests/test-fseeko.sh: Likewise.
23592         * tests/test-ftello.c (main): Likewise.
23593         * tests/test-ftello.sh: Likewise.
23594         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
23595         implies replacing fseek.
23596         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
23597         HAVE_FTELLO.
23598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
23599         * modules/unistd (Makefile.am): Likewise.
23600         * lib/unistd_.h (lseek): Declare a replacement.
23601         * doc/functions/lseek.texi (lseek): Document this fix.
23602         * doc/functions/fseek.texi (fseek): Likewise.
23603         * doc/functions/ftell.texi (ftell): Likewise.
23604
23605 2007-05-24  Bruno Haible  <bruno@clisp.org>
23606
23607         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
23608         in the printed representation of a NaN.
23609         * tests/test-vasprintf-posix.c (test_function): Likewise.
23610         * tests/test-snprintf-posix.h (test_function): Likewise.
23611         * tests/test-sprintf-posix.h (test_function): Likewise.
23612         Reported by Eric Blake.
23613
23614 2007-05-23  Eric Blake  <ebb9@byu.net>
23615
23616         Fix fseeko/ftello on cygwin 1.5.24.
23617         * doc/functions/fseeko.texi (fseeko): Document the fix.
23618         * doc/functions/ftello.texi (ftello): Document the fix.
23619         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
23620         * doc/functions/stdout.text (stdout): New file.
23621         * doc/functions/stderr.text (stderr): New file.
23622         * doc/gnulib.texi (Function Substitutes): Use new files.
23623         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
23624         prior to 1.7.0.
23625         * tests/test-ftello.c (main): Likewise for ftello.
23626         * tests/test-fseeko.sh: New file.
23627         * tests/test-ftello.sh: New file.
23628         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
23629         with seekable stdin.
23630         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
23631         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
23632         (gl_REPLACE_FSEEKO): New macro.
23633         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
23634         * modules/fseeko (Files): Distribute fseeko.c.
23635         * modules/ftello (Files): Distribute ftello.c.
23636         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
23637         mode.
23638         * lib/ftello.c (rpl_ftello): New file.
23639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
23640         fseeko, ftello.
23641         (gl_STDIN_LARGE_OFFSET): New macro.
23642         * modules/stdio (Makefile.am): Perform the replacement.
23643         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
23644
23645 2007-05-23  Bruno Haible  <bruno@clisp.org>
23646
23647         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
23648         GNULIB_POSIXCHECK is defined.
23649
23650 2007-05-21  Bruno Haible  <bruno@clisp.org>
23651
23652         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
23653         Check also the output for NaN arguments. When cross-compiling, guess
23654         no on IRIX.
23655         * lib/vasnprintf.c: Update comments.
23656         * tests/test-vasnprintf-posix.c (strisnan): New function.
23657         (test_function): Use it.
23658         * tests/test-vasprintf-posix.c (strisnan): New function.
23659         (test_function): Use it.
23660         * tests/test-snprintf-posix.h (strisnan): New function.
23661         (test_function): Use it.
23662         * tests/test-sprintf-posix.h (strisnan): New function.
23663         (test_function): Use it.
23664         Reported by Eric Blake.
23665
23666 2007-05-20  Bruno Haible  <bruno@clisp.org>
23667
23668         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
23669         numbers that fails on BeOS.
23670         * doc/functions/frexpl.texi: Update.
23671
23672 2007-05-20  Jim Meyering  <jim@meyering.net>
23673
23674         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
23675         forced upon us by glibc-2.6.
23676
23677 2007-05-20  Bruno Haible  <bruno@clisp.org>
23678
23679         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
23680         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
23681         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
23682         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
23683         NEED_PRINTF_INFINITE.
23684         (is_infinitel): New function.
23685         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
23686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
23687         gl_PREREQ_VASNPRINTF_INFINITE.
23688         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
23689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23690         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
23691         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
23692         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
23693         gl_PREREQ_VASNPRINTF_INFINITE.
23694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23698         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23701         * doc/functions/fprintf.texi: Update.
23702         * doc/functions/printf.texi: Update.
23703         * doc/functions/snprintf.texi: Update.
23704         * doc/functions/sprintf.texi: Update.
23705         * doc/functions/vfprintf.texi: Update.
23706         * doc/functions/vprintf.texi: Update.
23707         * doc/functions/vsnprintf.texi: Update.
23708         * doc/functions/vsprintf.texi: Update.
23709
23710 2007-05-20  Bruno Haible  <bruno@clisp.org>
23711
23712         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
23713         was not found in libc.
23714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23715
23716 2007-05-20  Bruno Haible  <bruno@clisp.org>
23717
23718         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23719         printed as "-nan" instead of "nan".
23720         * tests/test-vasprintf-posix.c (test_function): Likewise.
23721         * tests/test-snprintf-posix.h (test_function): Likewise.
23722         * tests/test-sprintf-posix.h (test_function): Likewise.
23723         Needed for HP-UX 11.
23724
23725 2007-05-20  Jim Meyering  <jim@meyering.net>
23726
23727         Fix buggy test for the fchownat-deref bug.
23728         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
23729         symlink required for the run-test.  Without it, this test would
23730         always declare that fchownat doesn't work, and client code would
23731         unnecessarily use the replacement function with fixed libc.
23732         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
23733         Reported by Greg Schafer.
23734
23735 2007-05-19  Bruno Haible  <bruno@clisp.org>
23736
23737         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
23738         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
23739         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
23740         Needed for IRIX 6.5 and Solaris 2.5.1.
23741
23742 2007-05-19  Bruno Haible  <bruno@clisp.org>
23743
23744         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
23745         (test_function): Skip tests involving -0.0 on platforms where
23746         -0.0 = 0.0.
23747         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
23748         (test_function): Skip tests involving -0.0 on platforms where
23749         -0.0 = 0.0.
23750         * tests/test-snprintf-posix.h (have_minus_zero): New function.
23751         (test_function): Skip tests involving -0.0 on platforms where
23752         -0.0 = 0.0.
23753         * tests/test-sprintf-posix.h (have_minus_zero): New function.
23754         (test_function): Skip tests involving -0.0 on platforms where
23755         -0.0 = 0.0.
23756         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
23757         tests.
23758         * tests/test-printf-posix.h (test_function): Likewise.
23759         * tests/test-printf-posix.output: Remove all -0.0 related results.
23760         Needed for IRIX 6.5.
23761
23762 2007-05-19  Bruno Haible  <bruno@clisp.org>
23763
23764         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23765         printed as "nan0x7fffffff" instead of "nan".
23766         * tests/test-vasprintf-posix.c (test_function): Likewise.
23767         * tests/test-snprintf-posix.h (test_function): Likewise.
23768         * tests/test-sprintf-posix.h (test_function): Likewise.
23769         * tests/test-fprintf-posix.h (NaN): Remove macro.
23770         (test_function): Remove all NaN related tests.
23771         * tests/test-printf-posix.h (NaN): Remove macro.
23772         (test_function): Remove all NaN related tests.
23773         * tests/test-printf-posix.output: Remove all NaN related results.
23774         Needed for IRIX 6.5.
23775
23776 2007-05-19  Bruno Haible  <bruno@clisp.org>
23777
23778         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
23779         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23780
23781 2007-05-19  Bruno Haible  <bruno@clisp.org>
23782
23783         * lib/float_.h: New file.
23784         * m4/float_h.m4: New file.
23785         * modules/float: New file.
23786         * modules/isnanl (Dependencies): Add float.
23787         * modules/isnanl-nolibm (Dependencies): Likewise.
23788         * modules/mathl (Dependencies): Likewise.
23789         * modules/printf-frexpl (Dependencies): Likewise.
23790         * modules/signbit (Dependencies): Likewise.
23791         * modules/vasnprintf (Dependencies): Likewise.
23792         * doc/headers/float.texi: Update.
23793
23794 2007-05-19  Jim Meyering  <jim@meyering.net>
23795
23796         * lib/utimens.c (gl_futimens): Rename from futimens,
23797         now that glibc-2.6 declares futimens.
23798         * lib/utimens.h: Likewise.
23799
23800 2007-05-19  Bruno Haible  <bruno@clisp.org>
23801
23802         Avoid test failures on mingw.
23803         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
23804         * tests/test-printf-posix.sh: Likewise.
23805         * tests/test-vfprintf-posix.sh: Likewise.
23806         * tests/test-vprintf-posix.sh: Likewise.
23807
23808 2007-05-19  Bruno Haible  <bruno@clisp.org>
23809
23810         Fix *printf result for NaN, Inf, -0.0 on mingw.
23811         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
23812         * lib/vasnprintf.c: Include math.h and isnan.h.
23813         (is_infinite_or_zero): New function.
23814         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
23815         values in the %f, %F, %e, %E, %g, %G directives.
23816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
23817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23818         gl_PRINTF_INFINITE and test its result. Invoke
23819         gl_PREREQ_VASNPRINTF_INFINITE.
23820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23821         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23822         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23823         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23824         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23826         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23827         * doc/functions/fprintf.texi: Update.
23828         * doc/functions/printf.texi: Update.
23829         * doc/functions/snprintf.texi: Update.
23830         * doc/functions/sprintf.texi: Update.
23831         * doc/functions/vfprintf.texi: Update.
23832         * doc/functions/vprintf.texi: Update.
23833         * doc/functions/vsnprintf.texi: Update.
23834         * doc/functions/vsprintf.texi: Update.
23835
23836 2007-05-19  Bruno Haible  <bruno@clisp.org>
23837
23838         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
23839         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
23840         Instead of multiplying with 10^k, set extra_zeroes to k.
23841         (scale10_round_long_double): Remove function.
23842
23843 2007-05-18  Bruno Haible  <bruno@clisp.org>
23844
23845         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
23846         introduced on 2007-05-06.
23847
23848 2007-05-18  Bruno Haible  <bruno@clisp.org>
23849
23850         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
23851         %g directives.
23852         * tests/test-vasprintf-posix.c (test_function): Likewise.
23853         * tests/test-snprintf-posix.h (test_function): Likewise.
23854         * tests/test-sprintf-posix.h (test_function): Likewise.
23855
23856 2007-05-18  Bruno Haible  <bruno@clisp.org>
23857
23858         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
23859         (strmatch): New function.
23860         (test_function): Test the %f directive on numbers of various exponents.
23861         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
23862         (strmatch): New function.
23863         (test_function): Test the %f directive on numbers of various exponents.
23864         * tests/test-snprintf-posix.h (strmatch): New function.
23865         (test_function): Test the %f directive on numbers of various exponents.
23866         * tests/test-sprintf-posix.h (strmatch): New function.
23867         (test_function): Test the %f directive on numbers of various exponents.
23868         * tests/test-snprintf-posix.c (SIZEOF): New macro.
23869         * tests/test-sprintf-posix.c (SIZEOF): New macro.
23870         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
23871         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
23872
23873 2007-05-18  Bruno Haible  <bruno@clisp.org>
23874
23875         Add support for 'long double' number output.
23876         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
23877         * lib/vasnprintf.c: Include math.h and float+.h.
23878         (mp_limb_t): New type.
23879         (GMP_LIMB_BITS): New macro.
23880         (mp_twolimb_t): New type.
23881         (GMP_TWOLIMB_BITS): New macro.
23882         (mpn_t): New type.
23883         (multiply, divide, convert_to_decimal, decode_long_double,
23884         scale10_round_long_double, scale10_round_decimal_long_double,
23885         floorlog10l): New functions.
23886         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
23887         for the %f, %F, %e, %E, %g, %G directives.
23888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
23889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23890         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
23891         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
23892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23899         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
23900         * modules/snprintf-posix (Depends-on): Likewise.
23901         * modules/sprintf-posix (Depends-on): Likewise.
23902         * modules/vasnprintf-posix (Depends-on): Likewise.
23903         * modules/vasprintf-posix (Depends-on): Likewise.
23904         * modules/vfprintf-posix (Depends-on): Likewise.
23905         * modules/vsnprintf-posix (Depends-on): Likewise.
23906         * modules/vsprintf-posix (Depends-on): Likewise.
23907         * modules/vasnprintf (Files): Add lib/float+.h.
23908         * doc/functions/fprintf.texi: Update.
23909         * doc/functions/printf.texi: Update.
23910         * doc/functions/snprintf.texi: Update.
23911         * doc/functions/sprintf.texi: Update.
23912         * doc/functions/vfprintf.texi: Update.
23913         * doc/functions/vprintf.texi: Update.
23914         * doc/functions/vsnprintf.texi: Update.
23915         * doc/functions/vsprintf.texi: Update.
23916
23917 2007-05-18  Bruno Haible  <bruno@clisp.org>
23918
23919         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
23920
23921 2007-05-18  Bruno Haible  <bruno@clisp.org>
23922
23923         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
23924         for printing 64-bit integers. Needed for mingw.
23925
23926 2007-05-18  Bruno Haible  <bruno@clisp.org>
23927
23928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
23929         gl_FUNC_FREXPL_WORKS.
23930         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
23931
23932 2007-05-18  Bruno Haible  <bruno@clisp.org>
23933
23934         * modules/frexpl-nolibm-tests: New file.
23935
23936         * modules/frexpl-nolibm: New file.
23937         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
23938
23939 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23940
23941         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
23942         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23943         GCC 4.2, which otherwise issues a lot of warnings.
23944         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
23945         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
23946         Likewise.
23947         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
23948         * modules/iconv_open (iconv.h): Likewise.
23949         * modules/locale (locale.h): Likewise.
23950         * modules/netinet_in (netinet/in.h): Likewise.
23951         * modules/sys_select (sys_select.h): Likewise.
23952         * modules/sys_socket (sys/socket.h): Likewise.
23953         * modules/sys_stat (sys/stat.h): Likewise.
23954         * modules/sysexits (sysexits.h): Likewise.
23955         * modules/unistd (unistd.h): Likewise.
23956
23957 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23958
23959         * modules/closein-tests (Makefile.am): Distribute
23960         `test-closein.sh'.
23961
23962 2007-05-17  Bruno Haible  <bruno@clisp.org>
23963
23964         * tests/test-printf-posix.output: Renamed from
23965         tests/test-fprintf-posix.out.
23966         * modules/fprintf-posix-tests: Update.
23967         * modules/printf-posix-tests: Update.
23968         * modules/vfprintf-posix-tests: Update.
23969         * modules/vprintf-posix-tests: Update.
23970         * tests/test-fprintf-posix.sh: Update.
23971         * tests/test-printf-posix.sh: Update.
23972         * tests/test-vfprintf-posix.sh: Update.
23973         * tests/test-vprintf-posix.sh: Update.
23974         Reported by Ralf Wildenhues.
23975
23976 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23977
23978         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
23979         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23980         GCC 4.2, which otherwise issues a lot of warnings.
23981         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
23982         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
23983         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
23984         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
23985         it should no longer be needed.
23986         * lib/string_.h: Likewise.
23987         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
23988         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
23989         * modules/inttypes (inttypes.h): Likewise.
23990         * modules/math (math.h): Likewise.
23991         * modules/search (search.h): Likewise.
23992         * modules/signal (signal.h): Likewise.
23993         * modules/stdint (stdint.h): Likewise.
23994         * modules/stdio (stdio.h): Likewise.
23995         * modules/stdlib (stdlib.h): Likewise.
23996         * modules/string (string.h): Likewise.
23997         * modules/sys_time (sys/time.h): Likewise.
23998         * modules/time (time.h): Likewise.
23999         * modules/wchar (wchar.h): Likewise.
24000         * modules/wctype (wtype.h): Likewise.
24001
24002 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24003
24004         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
24005
24006 2007-05-13  Bruno Haible  <bruno@clisp.org>
24007
24008         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
24009         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24010         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
24011         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24012         (gl_PREREQ_STRTOK_R): Don't require it here.
24013
24014 2007-05-13  Bruno Haible  <bruno@clisp.org>
24015
24016         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
24017         when used in C++ mode.
24018
24019 2007-05-12  Bruno Haible  <bruno@clisp.org>
24020
24021         * lib/linebuffer.h: Tweak doc.
24022         * lib/linebuffer.c: Likewise.
24023
24024 2007-05-12  James Youngman  <jay@gnu.org>
24025
24026         * lib/linebuffer.c (readlinebuffer_delim): New function,
24027         like readlinebuffer, but use a caller-specified delimiter.
24028         (readlinebuffer): Just call readlinebuffer_delim with '\n'
24029         as the delimiter.
24030         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
24031
24032 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24033
24034         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
24035         * modules/openat (Files): Remove openat-die.c.
24036         (Depends-on): Add openat-die.
24037         * modules/openat-die: New module.
24038
24039 2007-05-06  Bruno Haible  <bruno@clisp.org>
24040
24041         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
24042         Update with info about Cygwin.
24043         * doc/functions/fprintf.texi: Update.
24044         * doc/functions/printf.texi: Update.
24045         * doc/functions/snprintf.texi: Update.
24046         * doc/functions/sprintf.texi: Update.
24047         * doc/functions/vfprintf.texi: Update.
24048         * doc/functions/vprintf.texi: Update.
24049         * doc/functions/vsnprintf.texi: Update.
24050         * doc/functions/vsprintf.texi: Update.
24051         Reported by Eric Blake.
24052
24053 2007-05-06  Bruno Haible  <bruno@clisp.org>
24054
24055         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
24056         padding ourselves for the floating-point directives.
24057         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
24058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
24059         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24060         gl_PRINTF_FLAG_ZERO and test its result. Invoke
24061         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
24062         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24063         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
24064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24069         * tests/test-snprintf-posix.h (test_function): Also check the width
24070         and some flags in the %f directive.
24071         * tests/test-sprintf-posix.h (test_function): Likewise.
24072         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24073         * tests/test-vasprintf-posix.c (test_function): Likewise.
24074         * doc/functions/fprintf.texi: Update.
24075         * doc/functions/printf.texi: Update.
24076         * doc/functions/snprintf.texi: Update.
24077         * doc/functions/sprintf.texi: Update.
24078         * doc/functions/vfprintf.texi: Update.
24079         * doc/functions/vprintf.texi: Update.
24080         * doc/functions/vsnprintf.texi: Update.
24081         * doc/functions/vsprintf.texi: Update.
24082
24083 2007-05-06  Bruno Haible  <bruno@clisp.org>
24084
24085         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
24086         pass the ' flag character to sprintf or snprintf.
24087         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
24088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
24089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24090         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
24091         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
24092         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24093         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
24094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24099         * tests/test-snprintf-posix.h (test_function): Also check the grouping
24100         flag.
24101         * tests/test-sprintf-posix.h (test_function): Likewise.
24102         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24103         * tests/test-vasprintf-posix.c (test_function): Likewise.
24104         * doc/functions/fprintf.texi: Update.
24105         * doc/functions/printf.texi: Update.
24106         * doc/functions/snprintf.texi: Update.
24107         * doc/functions/sprintf.texi: Update.
24108         * doc/functions/vfprintf.texi: Update.
24109         * doc/functions/vprintf.texi: Update.
24110         * doc/functions/vsnprintf.texi: Update.
24111         * doc/functions/vsprintf.texi: Update.
24112
24113 2007-05-01  Bruno Haible  <bruno@clisp.org>
24114
24115         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
24116
24117 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
24118
24119         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
24120         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
24121
24122 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24123
24124         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
24125         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
24126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
24127
24128 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
24129
24130         * lib/argp-help.c (struct hol_entry): New member `ord'.
24131         (HOL_ENTRY_PTRCMP): Use ord for comparison
24132         (hol_sort): Initialize ord.
24133
24134 2007-05-01  Bruno Haible  <bruno@clisp.org>
24135
24136         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
24137         Reported by Eric Blake.
24138         * doc/gnulib.texi (Function Substitutes): Update.
24139
24140 2007-05-01  Bruno Haible  <bruno@clisp.org>
24141
24142         * doc/functions.texi: Remove file, now redundant through
24143         doc/functions/*.texi.
24144
24145 2007-05-01  Bruno Haible  <bruno@clisp.org>
24146
24147         * modules/argp (Depends-on): Add sleep.
24148
24149 2007-05-01  Bruno Haible  <bruno@clisp.org>
24150
24151         * modules/sleep-tests: New file.
24152         * tests/test-sleep.c: New file.
24153
24154         * modules/sleep: New file.
24155         * lib/sleep.c: New file.
24156         * m4/sleep.m4: New file.
24157         * lib/unistd_.h (sleep): New declaration.
24158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
24159         HAVE_SLEEP.
24160         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
24161         * doc/functions/sleep.texi: Document the sleep module.
24162
24163 2007-05-01  Bruno Haible  <bruno@clisp.org>
24164
24165         * lib/sigprocmask.h: Remove file.
24166         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
24167         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
24168         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
24169         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
24170         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
24171         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
24172         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
24173         HAVE_SIGSET_T as a shell variable.
24174         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
24175         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
24176         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
24177         (Depends-on): Add signal. Remove verify.
24178         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
24179         (Include): Mention <signal.h> instead of sigprocmask.h.
24180         * NEWS: Mention the change.
24181         * lib/fatal-signal.c: Don't include sigprocmask.h.
24182
24183 2007-05-01  Bruno Haible  <bruno@clisp.org>
24184
24185         * modules/signal: New file.
24186         * lib/signal_.h: New file.
24187         * m4/signal_h.m4: New file.
24188
24189 2007-05-01  Bruno Haible  <bruno@clisp.org>
24190
24191         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
24192         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
24193         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
24194         HAVE_WCTYPE_CTMP_BUG into wctype.h.
24195
24196 2007-05-01  Bruno Haible  <bruno@clisp.org>
24197
24198         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
24199         configure time.
24200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
24201         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
24202         * modules/sys_stat (Makefile.am): Substitute their values into
24203         sys/stat.h.
24204
24205 2007-05-01  Bruno Haible  <bruno@clisp.org>
24206
24207         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
24208         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
24209         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
24210
24211 2007-05-01  Bruno Haible  <bruno@clisp.org>
24212
24213         * doc/header/assert.texi: Undo last change: don't mention the gnulib
24214         'assert' module here.
24215
24216 2007-05-01  Bruno Haible  <bruno@clisp.org>
24217
24218         * doc/functions/*.texi: New files.
24219         * doc/functions/google-ranking.txt: New file.
24220         * doc/gnulib.texi (Function Substitutes): New chapter.
24221         (ctime, inet_ntoa): Remove sections.
24222         * doc/ctime.texi: Remove file.
24223         * doc/inet_ntoa.texi: Remove file.
24224         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
24225         dependencies.
24226         (%.info): New rule, specifying a --reference-limit.
24227
24228 2007-05-01  Bruno Haible  <bruno@clisp.org>
24229
24230         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
24231
24232 2007-05-01  Bruno Haible  <bruno@clisp.org>
24233
24234         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
24235         the portability of 'mkdir' to mingw systems.
24236
24237 2007-05-01  Bruno Haible  <bruno@clisp.org>
24238
24239         * doc/headers/google-ranking.txt: New file.
24240
24241 2007-04-30  Eric Blake  <ebb9@byu.net>
24242
24243         Prefer fseeko to fseek.
24244         * modules/getpass (Depends-on): Add fseeko.
24245         * lib/getpass.c (getpass): Use fseeko, not fseek.
24246
24247 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
24248
24249         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
24250         assumes the sorting is stable, while most qsort implementations
24251         are not.  Use argument addresses to ensure they never compare as
24252         equal.
24253
24254         * tests/test-argp-2.sh (usage-indent test): Fix output
24255         (func_compare): Restore diff options
24256         * tests/test-argp.c: Restore #include "progname.h"
24257
24258 2007-04-29  Bruno Haible  <bruno@clisp.org>
24259
24260         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
24261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24262         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
24263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24264         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
24265         (configure.ac): Define CHECK_SNPRINTF_POSIX.
24266         (TESTS, check_PROGRAMS): Add test-snprintf.
24267         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
24268         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
24269         (TESTS, check_PROGRAMS): Add test-vsnprintf.
24270         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
24271         assertions that fail on HP-UX, OSF/1, or IRIX.
24272         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
24273
24274 2007-04-29  Bruno Haible  <bruno@clisp.org>
24275
24276         * MODULES.html.sh (posix_functions): Remove 'contents'.
24277
24278 2007-04-29  Karl Berry  <karl@gnu.org>
24279
24280         * config/srclist.txt (gendocs_template_min): new entry.
24281
24282 2007-04-29  Bruno Haible  <bruno@clisp.org>
24283
24284         Work around fpurge bug on BSD systems.
24285         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
24286         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
24287         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
24288         fpurge to rpl_fpurge if the system already has this function.
24289         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
24290         the case where the system already has this function. Correct invariants
24291         on BSD systems.
24292         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
24293         BSD systems.
24294
24295 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24296
24297         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
24298         proposed by Sven Verdoolaege.
24299
24300         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
24301         options.
24302         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
24303         (usage and help tests): Update
24304
24305 2007-04-29  Bruno Haible  <bruno@clisp.org>
24306
24307         * tests/test-fflush.c (main): Use a file of size 17, not 10.
24308         Print more information in case of failure. Disable a test on BeOS.
24309
24310 2007-04-29  Bruno Haible  <bruno@clisp.org>
24311
24312         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
24313         This helps debugging on systems on which no gdb is available.
24314
24315 2007-04-29  Bruno Haible  <bruno@clisp.org>
24316
24317         * lib/freading.h: Improve comments.
24318         * lib/fwriting.h: Likewise.
24319         * tests/test-freading.c (main): Don't check freading immediately after
24320         repositioning. Needed for glibc.
24321
24322 2007-04-29  Bruno Haible  <bruno@clisp.org>
24323
24324         * lib/freading.c (freading): Trivial simplification.
24325
24326 2007-04-28  Bruno Haible  <bruno@clisp.org>
24327
24328         * tests/test-fwriting.c (main): Also test the interaction between
24329         fflush and fwriting.
24330         * modules/fwriting-tests (Depends-on): Add fflush.
24331
24332         * tests/test-freading.c (main): Also test the interaction between
24333         fflush and freading.
24334         * modules/freading-tests (Depends-on): Add fflush.
24335
24336 2007-04-28  Bruno Haible  <bruno@clisp.org>
24337
24338         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
24339         fseeko and ftello.
24340         Suggested by Eric Blake.
24341
24342 2007-04-28  Jim Meyering  <jim@meyering.net>
24343
24344         Avoid false-negative in gl_STDINT_H's C99 conformance test.
24345         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
24346         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
24347
24348 2007-04-27  Eric Blake  <ebb9@byu.net>
24349
24350         * doc/headers/assert.texi (assert.h): Document assert module use.
24351
24352 2007-04-27  Bruno Haible  <bruno@clisp.org>
24353
24354         * doc/headers/*.texi: New files.
24355         * doc/gnulib.texi (Header File Substitutes): New chapter.
24356         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
24357         dependencies.
24358         (standards.info ,standards.html, standards.dvi): Update dependencies.
24359         (mostlyclean, clean): New targets.
24360
24361 2007-04-27  Bruno Haible  <bruno@clisp.org>
24362
24363         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
24364         * modules/sysexits (Files, Makefile.am): Update.
24365
24366         * lib/sys_socket_.h: Renamed from lib/socket_.h.
24367         * modules/sys_socket (Files, Makefile.am): Update.
24368
24369         * lib/sys_stat_.h: Renamed from lib/stat_.h.
24370         * modules/sys_stat (Files, Makefile.am): Update.
24371
24372 2007-04-27  Eric Blake  <ebb9@byu.net>
24373
24374         * lib/freading.h: Improve comments.
24375         * lib/fwriting.h: Likewise.
24376         * lib/fflush.c: Likewise.
24377
24378         Fix closein for mingw.
24379         * modules/closein-tests: Add tests for closein.
24380         * tests/test-closein.c: New file.
24381         * tests/test-closein.sh: Likewise.
24382         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
24383         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
24384
24385 2007-04-27  Bruno Haible  <bruno@clisp.org>
24386
24387         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
24388         version is < 6.
24389         * lib/math_.h [__DECC]: Likewise.
24390         * lib/stdio_.h [__DECC]: Likewise.
24391         * lib/stdlib_.h [__DECC]: Likewise.
24392         * lib/string_.h [__DECC]: Likewise.
24393         * lib/time_.h [__DECC]: Likewise.
24394         * lib/wchar_.h [__DECC]: Likewise.
24395         * lib/wctype_.h [__DECC]: Likewise.
24396
24397 2007-04-27  Bruno Haible  <bruno@clisp.org>
24398
24399         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
24400
24401 2007-04-27  Bruno Haible  <bruno@clisp.org>
24402
24403         * lib/fflush.c: Add comments.
24404         * modules/fpurge-tests (Depends-on): Add fflush.
24405         * modules/freadable-tests (Depends-on): Likewise.
24406         * modules/fwritable-tests (Depends-on): Likewise.
24407
24408 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
24409
24410         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
24411         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
24412         Report by Bruno Haible <bruno@clisp.org>.
24413
24414 2007-04-26  Eric Blake  <ebb9@byu.net>
24415
24416         Fix fflush on mingw.
24417         * modules/fflush (Depends-on): Add freading.
24418         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
24419         but unread data.
24420
24421 2007-04-26  Eric Blake  <ebb9@byu.net>
24422         and Bruno Haible  <bruno@clisp.org>
24423
24424         Implement freading and fwriting.
24425         * lib/freading.c: New file.
24426         * lib/freading.h: Likewise.
24427         * m4/freading.m4: Likewise.
24428         * modules/freading: Likewise.
24429         * modules/freading-tests: Likewise.
24430         * tests/test-freading.c: Likewise.
24431         * lib/fwriting.c: New file.
24432         * lib/fwriting.h: Likewise.
24433         * m4/fwriting.m4: Likewise.
24434         * modules/fwriting: Likewise.
24435         * modules/fwriting-tests: Likewise.
24436         * tests/test-fwriting.c: Likewise.
24437         * MODULES.html.sh (File stream based Input/Output): Mention them.
24438
24439 2007-04-26  Bruno Haible  <bruno@clisp.org>
24440
24441         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
24442         'long' when we assume it.
24443         Suggested by Eric Blake.
24444
24445 2007-04-26  Bruno Haible  <bruno@clisp.org>
24446
24447         Ensure fseeko, ftello are declared on glibc systems.
24448         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
24449         * modules/fseeko (configure.ac-early): Likewise.
24450         * modules/ftello (configure.ac-early): Likewise.
24451         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
24452         AC_FUNC_FSEEKO for this.
24453         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
24454         (gl_CHECK_FSEEKO): Remove macro.
24455
24456 2007-04-26  Bruno Haible  <bruno@clisp.org>
24457
24458         * tests/test-fflush.c (main): Also check the ftell result after
24459         fflush and fseek/fseeko.
24460         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
24461         file descriptor position cache in the stream.
24462         * lib/fseeko.c (rpl_fseeko): Likewise.
24463
24464 2007-04-26  Bruno Haible  <bruno@clisp.org>
24465
24466         * modules/fflush-tests (Depends-on): Add fseeko.
24467
24468 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
24469             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24470
24471         * lib/argz_.h: ensure error_t definition is obtained in same
24472         mechanism system argz.h would have.
24473         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
24474         argz facilities are known bad.  Err on the side of caution if
24475         cross-compiling.
24476
24477 2007-04-25  Eric Blake  <ebb9@byu.net>
24478
24479         * lib/fpurge.c (includes): Use stdlib.h for free.
24480         * tests/test-fflush.c (main): Also test fflush-fseeko.
24481
24482 2007-04-25  Bruno Haible  <bruno@clisp.org>
24483
24484         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
24485         * lib/fseeko.c: New file.
24486         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
24487         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
24488         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
24489         gl_FUNC_FSEEKO.
24490         (gl_FUNC_FSEEKO): Invoke it.
24491         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
24492         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
24493         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
24494
24495 2007-04-25  Bruno Haible  <bruno@clisp.org>
24496
24497         * modules/fflush (Depends-on): Add ftello.
24498
24499 2007-04-25  Bruno Haible  <bruno@clisp.org>
24500
24501         * modules/ftello-tests: New file.
24502         * tests/test-ftello.c: New file.
24503
24504         * modules/ftello: New file.
24505         * m4/ftello.m4: New file.
24506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
24507         HAVE_FTELLO.
24508         * lib/stdio_.h (ftello): New declaration.
24509         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
24510         HAVE_FTELLO.
24511
24512 2007-04-25  Bruno Haible  <bruno@clisp.org>
24513
24514         * modules/fseeko-tests: New file.
24515         * tests/test-fseeko.c: New file.
24516
24517         * modules/fseeko: New file.
24518         * m4/fseeko.m4: New file.
24519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
24520         HAVE_FSEEKO.
24521         * lib/stdio_.h (fseeko): New declaration.
24522         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
24523         HAVE_FSEEKO.
24524
24525 2007-04-25  Bruno Haible  <bruno@clisp.org>
24526
24527         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
24528
24529 2007-04-25  Bruno Haible  <bruno@clisp.org>
24530
24531         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
24532         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
24533         * tests/test-unistd.c: Likewise.
24534         * tests/test-fcntl.c: Likewise.
24535
24536 2007-04-23  Eric Blake  <ebb9@byu.net>
24537
24538         * lib/fflush.c: Fix missing include.
24539         Reported by Bruno Haible.
24540
24541 2007-04-23  Bruno Haible  <bruno@clisp.org>
24542
24543         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
24544         Reported by Eric Blake.
24545
24546 2007-04-23  Bruno Haible  <bruno@clisp.org>
24547
24548         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
24549
24550 2007-04-23  Bruno Haible  <bruno@clisp.org>
24551
24552         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
24553
24554 2007-04-23  Bruno Haible  <bruno@clisp.org>
24555
24556         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
24557         Needed on HP-UX 11.
24558
24559 2007-04-16  Eric Blake  <ebb9@byu.net>
24560
24561         Make fflush rely on fpurge.
24562         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
24563         open coding all variants.
24564         * modules/fflush (Depends-on): Add fpurge and unistd.
24565         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
24566         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
24567
24568         Fix --with-tests compilation on cygwin.
24569         * modules/argmatch-tests (Makefile.am): List gnulib library first
24570         in LDADD.
24571         * modules/argp-tests (Makefile.am): Likewise.
24572         * modules/array-list-tests (Makefile.am): Likewise.
24573         * modules/array-oset-tests (Makefile.am): Likewise.
24574         * modules/avltree-list-tests (Makefile.am): Likewise.
24575         * modules/avltree-oset-tests (Makefile.am): Likewise.
24576         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24577         * modules/carray-list-tests (Makefile.am): Likewise.
24578         * modules/dirname-tests (Makefile.am): Likewise.
24579         * modules/frexp-tests (Makefile.am): Likewise.
24580         * modules/isnanl-tests (Makefile.am): Likewise.
24581         * modules/linked-list-tests (Makefile.am): Likewise.
24582         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24583         * modules/lock-tests (Makefile.am): Likewise.
24584         * modules/rbtree-list-tests (Makefile.am): Likewise.
24585         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24586         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24587         * modules/tls-tests (Makefile.am): Likewise.
24588         * modules/tsearch-tests (Makefile.am): Likewise.
24589         * modules/xvasprintf-tests (Makefile.am): Likewise.
24590
24591         Fix fpurge for cygwin.
24592         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
24593         value.
24594         * modules/fpurge-tests (Depends-on): Clean up trash.
24595
24596 2007-04-16  Simon Josefsson  <simon@josefsson.org>
24597
24598         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
24599
24600         * m4/autobuild.m4: Re-indent.
24601
24602 2007-04-13  Bruno Haible  <bruno@clisp.org>
24603
24604         * modules/fpurge-tests: New file.
24605         * tests/test-fpurge.c: New file.
24606
24607         * modules/fpurge: New file.
24608         * lib/fpurge.h: New file.
24609         * lib/fpurge.c: New file.
24610         * m4/fpurge.m4: New file.
24611
24612 2007-04-13  Bruno Haible  <bruno@clisp.org>
24613
24614         * modules/fbufmode-tests: New file.
24615         * tests/test-fbufmode.c: New file.
24616
24617         * modules/fbufmode: New file.
24618         * lib/fbufmode.h: New file.
24619         * lib/fbufmode.c: New file.
24620         * m4/fbufmode.m4: New file.
24621
24622 2007-04-13  Bruno Haible  <bruno@clisp.org>
24623
24624         * modules/fwritable-tests: New file.
24625         * tests/test-fwritable.c: New file.
24626
24627         * modules/fwritable: New file.
24628         * lib/fwritable.h: New file.
24629         * lib/fwritable.c: New file.
24630         * m4/fwritable.m4: New file.
24631
24632 2007-04-13  Bruno Haible  <bruno@clisp.org>
24633
24634         * modules/freadable-tests: New file.
24635         * tests/test-freadable.c: New file.
24636
24637         * modules/freadable: New file.
24638         * lib/freadable.h: New file.
24639         * lib/freadable.c: New file.
24640         * m4/freadable.m4: New file.
24641
24642 2007-04-13  Bruno Haible  <bruno@clisp.org>
24643
24644         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
24645         MOSTLYCLEANFILES.
24646
24647 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24648
24649         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
24650         gzip bootstrap.conf to avoid dragging in i18n machinery.
24651         (gnulib_tool_option): Use it.
24652
24653 2007-04-13  Bruno Haible  <bruno@clisp.org>
24654
24655         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
24656         %F directives.
24657         * tests/test-vasprintf-posix.c (test_function): Likewise.
24658         * tests/test-snprintf-posix.h (test_function): Likewise.
24659         * tests/test-sprintf-posix.h (test_function): Likewise.
24660         * tests/test-fprintf-posix.h (test_function): Likewise.
24661         * tests/test-printf-posix.h (test_function): Likewise.
24662         * tests/test-fprintf-posix.out: Likewise.
24663
24664 2007-04-13  Bruno Haible  <bruno@clisp.org>
24665
24666         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
24667         * modules/tls-tests (configure.ac): Likewise.
24668         Reported by Arto C. Nirkko <anirkko@insel.ch>.
24669
24670 2007-04-13  Bruno Haible  <bruno@clisp.org>
24671
24672         * lib/tls.c (glthread_tls_get): Fix return type.
24673         Patch by Arto C. Nirkko <anirkko@insel.ch>.
24674
24675 2007-04-12  Eric Blake  <ebb9@byu.net>
24676
24677         * modules/gettime (Depends-on): Remove gettime.
24678         Reported by Dmitry V. Levin.
24679
24680 2007-04-12  Bruno Haible  <bruno@clisp.org>
24681
24682         * modules/fflush (Include): Mention <stdio.h>.
24683         * modules/strtoimax (Include): Mention <inttypes.h>.
24684         * modules/strtoumax (Include): Likewise.
24685
24686 2007-04-12  Eric Blake  <ebb9@byu.net>
24687
24688         * .cvsignore: New file.
24689         * .gitignore: Likewise.
24690
24691 2007-04-12  Bruno Haible  <bruno@clisp.org>
24692
24693         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
24694         not before, since $(LDADD) often contains libgnu.a.
24695         * modules/striconv-tests (test_striconv_LDADD): Likewise.
24696         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
24697         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
24698         Needed on Cygwin.
24699
24700 2007-04-12  Eric Blake  <ebb9@byu.net>
24701
24702         Work around glibc's failure to flush stdin on fclose.
24703         * lib/closein.c (close_stdin): Flush stdin before closing.
24704
24705         Work around glibc's failure to reset seekable stdin on exit.
24706         * modules/closein: New module.
24707         * lib/closein.c: New file.
24708         * lib/closein.h: Likewise.
24709         * m4/closein.m4: Likewise.
24710         * MODULES.html.sh (File stream based Input/Output): Document it.
24711
24712 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24713
24714         * gnulib-tool: Rename generated 'autobuild' script to
24715         'do-autobuild' in --create-megatestdir output.
24716
24717         * doc/gnulib.texi (Build robot for gnulib): Fix.
24718
24719 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24720
24721         * modules/sysexits (Depends-on): Add absolute-header.
24722
24723 2007-04-12  Eric Blake  <ebb9@byu.net>
24724
24725         No need to preserve errno on success.
24726         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
24727         Reported by Bruno Haible.
24728
24729 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24730
24731         * MODULES.html.sh (Support for maintaining and releasing
24732         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
24733
24734 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24735
24736         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
24737
24738 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24739
24740         * modules/autobuild: New module.
24741
24742         * m4/autobuild.m4: New file.
24743
24744 2007-04-11  Bruno Haible  <bruno@clisp.org>
24745
24746         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
24747         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
24748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
24749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
24750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24751         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24752         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24754         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24755         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24756         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
24757         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24758         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24759         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
24760         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24761         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
24763         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24764         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
24766         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24767         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
24769         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24770         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
24772         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24773         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24774         Reported by Eric Blake.
24775
24776 2007-04-11  Bruno Haible  <bruno@clisp.org>
24777
24778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
24779
24780 2007-04-10  Bruno Haible  <bruno@clisp.org>
24781
24782         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
24783         for NaN and Infinity. Needed on FreeBSD 6.1.
24784         * tests/test-vasnprintf-posix.c (test_function): Undo last change
24785         regarding results for "%010a" of Infinity and NaN.
24786         * tests/test-vasprintf-posix.c (test_function): Likewise.
24787         * tests/test-snprintf-posix.h (test_function): Likewise.
24788         * tests/test-sprintf-posix.h (test_function): Likewise.
24789         * tests/test-fprintf-posix.h (test_function): Likewise.
24790         * tests/test-printf-posix.h (test_function): Likewise.
24791         * tests/test-fprintf-posix.out: Likewise.
24792
24793 2007-04-10  Bruno Haible  <bruno@clisp.org>
24794
24795         * modules/locale-tests: New file.
24796         * tests/test-locale.c: New file.
24797
24798         * modules/locale: New file.
24799         * lib/locale_.h: New file.
24800         * m4/locale_h.m4: New file.
24801
24802 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
24803             Bruno Haible  <bruno@clisp.org>
24804
24805         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
24806         be determined, test for availability of the copysignf, copysign,
24807         copysignl functions.
24808         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
24809         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
24810         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
24811
24812 2007-04-09  Eric Blake  <ebb9@byu.net>
24813
24814         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
24815         * modules/stdio (Makefile.am): Support fflush.
24816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24817         * modules/fflush: New file.
24818         * lib/fflush.c: Likewise.
24819         * m4/fflush.m4: Likewise.
24820         * modules/fflush-tests: New test.
24821         * tests/test-fflush.c: Likewise.
24822         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
24823
24824 2007-04-06  Bruno Haible  <bruno@clisp.org>
24825
24826         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
24827         (VASNPRINTF): Use signbit for faster determination whether to print a
24828         minus sign.
24829         * modules/vasnprintf (Files): Remove lib/float+.h.
24830         * modules/fprintf-posix (Depends-on): Add signbit.
24831         * modules/snprintf-posix (Depends-on): Likewise.
24832         * modules/sprintf-posix (Depends-on): Likewise.
24833         * modules/vasnprintf-posix (Depends-on): Likewise.
24834         * modules/vasprintf-posix (Depends-on): Likewise.
24835         * modules/vfprintf-posix (Depends-on): Likewise.
24836         * modules/vsnprintf-posix (Depends-on): Likewise.
24837         * modules/vsprintf-posix (Depends-on): Likewise.
24838
24839 2007-04-06  Bruno Haible  <bruno@clisp.org>
24840
24841         * tests/test-frexp.c (main): Test also the sign bit of zero results.
24842         * tests/test-frexpl.c (main): Likewise.
24843         * tests/test-ldexpl.c (main): Likewise.
24844         * modules/frexp-tests (Depends-on): Add signbit.
24845         * modules/frexpl-tests (Depdends-on): Likewise.
24846         * modules/ldexpl-tests (Depdends-on): Likewise.
24847
24848 2007-04-06  Bruno Haible  <bruno@clisp.org>
24849
24850         * modules/signbit-tests: New file.
24851         * tests/test-signbit.c: New file.
24852
24853         * modules/signbit: New file.
24854         * lib/signbitf.c: New file.
24855         * lib/signbitd.c: New file.
24856         * lib/signbitl.c: New file.
24857         * m4/signbit.m4: New file.
24858         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
24859         (signbit): New macro.
24860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
24861         REPLACE_SIGNBIT.
24862         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
24863         REPLACE_FREXPL into math.h.
24864
24865 2007-04-06  Bruno Haible  <bruno@clisp.org>
24866
24867         * modules/isnanf-nolibm-tests: New file.
24868         * tests/test-isnanf.c: New file.
24869
24870         * modules/isnanf-nolibm: New file.
24871         * lib/isnanf.h: New file.
24872         * lib/isnanf.c: New file.
24873         * lib/isnan.c: Consider the USE_FLOAT macro.
24874         * m4/isnanf.m4: New file.
24875
24876 2007-04-06  Bruno Haible  <bruno@clisp.org>
24877
24878         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
24879         (Link): New section.
24880
24881         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
24882
24883 2007-04-06  Bruno Haible  <bruno@clisp.org>
24884
24885         Assume the 'long double' type.
24886         * m4/longdouble.m4: Remove file.
24887         * config/srclist.txt: Don't mention longdouble.m4.
24888         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
24889         * lib/float+.h: Likewise.
24890         * lib/frexp.c: Likewise.
24891         * lib/printf-args.h: Likewise.
24892         * lib/printf-args.c: Likewise.
24893         * lib/printf-frexp.c: Likewise.
24894         * lib/printf-parse.c: Likewise.
24895         * lib/vasnprintf.c: Likewise.
24896         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
24897         * m4/intl.m4: Likewise.
24898         * m4/isnanl.m4: Likewise.
24899         * m4/printf.m4: Likewise.
24900         * m4/printf-frexpl.m4: Likewise.
24901         * m4/vasnprintf.m4: Likewise.
24902         * modules/allocsa (Files): Remove m4/longdouble.m4.
24903         * modules/gettext (Files): Likewise.
24904         * modules/relocatable-prog-wrapper (Files): Likewise.
24905         * modules/vasnprintf (Files): Likewise.
24906         * modules/isnanl (Files): Likewise.
24907         (Include): Simplify.
24908         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
24909         (Include): Simplify.
24910         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
24911         (Include): Simplify.
24912         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
24913         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24914         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
24915         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24916         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24917         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24918         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
24919         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24920         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24921         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24922         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
24923         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24924         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
24925         * tests/test-isnanl.c: Likewise.
24926         * tests/test-snprintf-posix.h: Likewise.
24927         * tests/test-sprintf-posix.h: Likewise.
24928         * tests/test-vasnprintf-posix.c: Likewise.
24929         * tests/test-vasnprintf-posix2.c: Likewise.
24930         * tests/test-vasprintf-posix.c: Likewise.
24931
24932 2007-04-06  Bruno Haible  <bruno@clisp.org>
24933
24934         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
24935         * lib/math_.h [__DECC]: Include the overridden include file through
24936         #include_next, outside the double-inclusion guard.
24937         * lib/stdio_.h [__DECC]: Likewise.
24938         * lib/stdlib_.h [__DECC]: Likewise.
24939         * lib/string_.h [__DECC]: Likewise.
24940         * lib/time_.h [__DECC]: Likewise.
24941         * lib/wchar_.h [__DECC]: Likewise.
24942         * lib/wctype_.h [__DECC]: Likewise.
24943         * lib/inttypes_.h [__DECC]: Likewise.
24944         Reported by Albert Chin <china@thewrittenword.com> in
24945         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
24946
24947 2007-04-04  Eric Blake  <ebb9@byu.net>
24948
24949         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
24950         1.5.x.
24951
24952 2007-04-04  Bruno Haible  <bruno@clisp.org>
24953
24954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
24955         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
24956
24957 2007-04-04  Bruno Haible  <bruno@clisp.org>
24958
24959         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
24960         results for "%010a" of Infinity and NaN.
24961         * tests/test-vasprintf-posix.c (test_function): Likewise.
24962         * tests/test-snprintf-posix.h (test_function): Likewise.
24963         * tests/test-sprintf-posix.h (test_function): Likewise.
24964         * tests/test-fprintf-posix.h (test_function): Remove these tests.
24965         * tests/test-printf-posix.h (test_function): Likewise.
24966         * tests/test-fprintf-posix.out: Update.
24967         Needed for FreeBSD 6.1.
24968
24969 2007-04-04  Bruno Haible  <bruno@clisp.org>
24970
24971         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
24972         directly used by the gnulib modules nor by gnulib-tool.
24973
24974 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24975
24976         * DEPENDENCIES: Give overall description of version dependency
24977         desirability.  Use more-typical names for apps.
24978         Add shell, coreutils, diffutils, grep, tar, gzip.
24979
24980 2007-04-04  Simon Josefsson  <simon@josefsson.org>
24981
24982         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
24983
24984 2007-04-04  Karl Berry  <karl@gnu.org>
24985
24986         * MODULES.html.sh (func_module): missing '.
24987
24988 2007-04-03  Bruno Haible  <bruno@clisp.org>
24989
24990         * modules/argmatch-tests (Makefile.am): New variable
24991         test_argmatch_LDADD.
24992         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
24993         * modules/array-list-tests (Makefile.am): New variable
24994         test_array_list_LDADD.
24995         * modules/array-oset-tests (Makefile.am): New variable
24996         test_array_oset_LDADD.
24997         * modules/avltree-list-tests (Makefile.am): New variable
24998         test_avltree_list_LDADD.
24999         * modules/avltree-oset-tests (Makefile.am): New variable
25000         test_avltree_oset_LDADD.
25001         * modules/avltreehash-list-tests (Makefile.am): New variable
25002         test_avltreehash_list_LDADD.
25003         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
25004         test_canonicalize_lgpl_LDADD.
25005         * modules/carray-list-tests (Makefile.am): New variable
25006         test_carray_list_LDADD.
25007         * modules/dirname-tests (Makefile.am): New variable
25008         test_dirname_LDADD.
25009         * modules/linked-list-tests (Makefile.am): New variable
25010         test_linked_list_LDADD.
25011         * modules/linkedhash-list-tests (Makefile.am): New variable
25012         test_linkedhash_list_LDADD.
25013         * modules/rbtree-list-tests (Makefile.am): New variable
25014         test_rbtree_list_LDADD.
25015         * modules/rbtree-oset-tests (Makefile.am): New variable
25016         test_rbtree_oset_LDADD.
25017         * modules/rbtreehash-list-tests (Makefile.am): New variable
25018         test_rbtreehash_list_LDADD.
25019         * modules/xvasprintf-tests (Makefile.am): New variable
25020         test_xvasprintf_LDADD.
25021         Reported by Eric Blake.
25022
25023 2007-04-03  Eric Blake  <ebb9@byu.net>
25024
25025         * DEPENDENCIES: Weaken m4 requirements.
25026
25027 2007-04-03  Bruno Haible  <bruno@clisp.org>
25028
25029         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
25030         * modules/isnanl-tests (configure.ac): Likewise.
25031
25032 2007-04-03  Ben Pfaff  <blp@gnu.org>
25033
25034         * modules/iconv_open: Add $(srcdir)/ to source directory
25035         references in Makefile fragments that call gperf, to fix VPATH
25036         builds.
25037
25038 2007-04-03  Bruno Haible  <bruno@clisp.org>
25039
25040         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
25041         * lib/ldexpl.c: Undo last change.
25042
25043 2007-04-03  Bruno Haible  <bruno@clisp.org>
25044
25045         * modules/printf-frexpl (Depends-on): Undo last change.
25046         (Files): Add m4/ldexpl.m4.
25047
25048 2007-04-03  Bruno Haible  <bruno@clisp.org>
25049
25050         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
25051         * modules/isnanl (Link): New section.
25052
25053         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
25054         * modules/frexp (Link): New section.
25055
25056         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
25057         * modules/frexpl (Link): New section.
25058
25059         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
25060         * modules/ldexpl (Link): New section.
25061
25062 2007-04-03  Bruno Haible  <bruno@clisp.org>
25063
25064         * modules/TEMPLATE-EXTENDED: New file.
25065         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
25066
25067 2007-04-03  Bruno Haible  <bruno@clisp.org>
25068
25069         * DEPENDENCIES: New file.
25070         Suggested by Simon Josefsson.
25071
25072 2007-04-03  Bruno Haible  <bruno@clisp.org>
25073
25074         * doc/gnulib.texi: Escape @.
25075
25076 2007-04-03  James Youngman  <jay@gnu.org>
25077         and Paul Eggert  <eggert@cs.ucla.edu>
25078
25079         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
25080         birthtime on all systems that have birthtime, not just those which
25081         use st_birthtimensec rather than st_birthtim.  Putting zero in
25082         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
25083         that the birth time is not available for files on an NFS mount.
25084
25085 2007-04-03  Simon Josefsson  <simon@josefsson.org>
25086
25087         * modules/memxor: Move back from crypto/, suggested by Bruno.
25088         * modules/crypto/hmac-sha1: Fix memxor dependency.
25089
25090         * modules/crypto/gc: Moved from ../.
25091
25092 2007-04-02  Eric Blake  <ebb9@byu.net>
25093
25094         * lib/ldexpl.c (includes): Avoid libm.
25095
25096         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
25097
25098 2007-04-02  Bruno Haible  <bruno@clisp.org>
25099
25100         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
25101         on IRIX.
25102
25103 2007-04-02  Bruno Haible  <bruno@clisp.org>
25104
25105         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
25106         x86 or x86_64 platforms running MacOS X.
25107         Reported by Ryan Schmidt <@ryandesign.com>.
25108
25109 2007-04-02  Bruno Haible  <bruno@clisp.org>
25110
25111         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
25112         i386.
25113
25114 2007-04-01  Simon Josefsson  <simon@josefsson.org>
25115
25116         * modules/crypto/arcfour: Moved from ../.
25117         * modules/crypto/arcfour-tests: Moved from ../.
25118         * modules/crypto/arctwo: Moved from ../.
25119         * modules/crypto/arctwo-tests: Moved from ../.
25120         * modules/crypto/des: Moved from ../.
25121         * modules/crypto/des-tests: Moved from ../.
25122         * modules/crypto/gc-arcfour: Moved from ../.
25123         * modules/crypto/gc-arcfour-tests: Moved from ../.
25124         * modules/crypto/gc-arctwo: Moved from ../.
25125         * modules/crypto/gc-arctwo-tests: Moved from ../.
25126         * modules/crypto/gc-des: Moved from ../.
25127         * modules/crypto/gc-des-tests: Moved from ../.
25128         * modules/crypto/gc-hmac-md5: Moved from ../.
25129         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
25130         * modules/crypto/gc-hmac-sha1: Moved from ../.
25131         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
25132         * modules/crypto/gc-md2: Moved from ../.
25133         * modules/crypto/gc-md2-tests: Moved from ../.
25134         * modules/crypto/gc-md4: Moved from ../.
25135         * modules/crypto/gc-md4-tests: Moved from ../.
25136         * modules/crypto/gc-md5: Moved from ../.
25137         * modules/crypto/gc-md5-tests: Moved from ../.
25138         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
25139         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
25140         * modules/crypto/gc-random: Moved from ../.
25141         * modules/crypto/gc-rijndael: Moved from ../.
25142         * modules/crypto/gc-rijndael-tests: Moved from ../.
25143         * modules/crypto/gc-sha1: Moved from ../.
25144         * modules/crypto/gc-sha1-tests: Moved from ../.
25145         * modules/crypto/gc-tests: Moved from ../.
25146         * modules/crypto/hmac-md5: Moved from ../.
25147         * modules/crypto/hmac-md5-tests: Moved from ../.
25148         * modules/crypto/hmac-sha1: Moved from ../.
25149         * modules/crypto/hmac-sha1-tests: Moved from ../.
25150         * modules/crypto/md2: Moved from ../.
25151         * modules/crypto/md2-tests: Moved from ../.
25152         * modules/crypto/md4: Moved from ../.
25153         * modules/crypto/md4-tests: Moved from ../.
25154         * modules/crypto/md5: Moved from ../.
25155         * modules/crypto/md5-tests: Moved from ../.
25156         * modules/crypto/memxor: Moved from ../.
25157         * modules/crypto/rijndael: Moved from ../.
25158         * modules/crypto/rijndael-tests: Moved from ../.
25159         * modules/crypto/sha1: Moved from ../.
25160
25161 2007-03-30  James Youngman  <jay@gnu.org>
25162
25163         * tests/test-stat-time.c (prepare_test): use chmod() rather than
25164         rename() to change the ctime of a file (because ctime is unaffected
25165         by rename on jfs2 on AIX 5.1).
25166         (main): Start by doing cleanup, in case a previous run failed leaving
25167         test files behind.
25168
25169 2007-03-31  Bruno Haible  <bruno@clisp.org>
25170
25171         Support old proprietary implementations of iconv.
25172         * modules/iconv_open: New file.
25173         * lib/iconv_.h: New file.
25174         * m4/iconv_h.m4: New file.
25175         * lib/iconv_open.c: New file.
25176         * lib/iconv_open-aix.gperf: New file.
25177         * lib/iconv_open-hpux.gperf: New file.
25178         * lib/iconv_open-irix.gperf: New file.
25179         * lib/iconv_open-osf.gperf: New file.
25180         * m4/iconv_open.m4: New file.
25181         * modules/linebreak (Depends-on): Add iconv_open.
25182         * modules/striconv (Depends-on): Likewise.
25183         * modules/striconveh (Depends-on): Likewise.
25184         * modules/unicodeio (Depends-on): Likewise.
25185         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
25186         (iconv_t)(-1).
25187         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
25188         conversion if cd is (iconv_t)(-1).
25189         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
25190         is not possible.
25191
25192 2007-03-31  Bruno Haible  <bruno@clisp.org>
25193
25194         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
25195         work on Solaris either. Protect also second use of "autodetect_jp".
25196
25197 2007-03-31  Bruno Haible  <bruno@clisp.org>
25198
25199         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
25200         the function is not present.
25201
25202 2007-03-31  Bruno Haible  <bruno@clisp.org>
25203
25204         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
25205         the function is not present.
25206
25207 2007-03-31  Bruno Haible  <bruno@clisp.org>
25208
25209         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
25210         a bug in HP-UX iconv_open().
25211
25212 2007-03-31  Bruno Haible  <bruno@clisp.org>
25213
25214         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
25215         (Mathematics <math.h>): New section, add fpieee.
25216         (Input/output <stdio.h>): Add fseterr.
25217         (Mathematics <math.h>): New section, add printf-frexp.
25218         (Container data structures): Add sublist.
25219         (Core language properties): Add fpucw, inline.
25220         (Functions for greatest-width integer types <inttypes.h>): Add
25221         imaxabs, imaxdiv, inttypes.
25222         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
25223         isnanl-nolibm, ldexp.
25224         (Mathematics <math.h>): New section, add printf-frexpl.
25225         (Support for systems lacking POSIX:2001): Add fprintf-posix,
25226         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
25227         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
25228         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
25229         (Unicode string functions): Add unistr/u*-mbtoucr.
25230         (Java): Add javacomp-script, javaexec-script.
25231         (C#): Add csharpcomp-script, csharpexec-script.
25232         (Support for building libraries and executables): Add havelib,
25233         relocatable-*.
25234         (Support for maintaining and releasing projects): Renamed from
25235         'Support for maintaining and release projects'. Add announce-gen.
25236
25237 2007-03-31  Bruno Haible  <bruno@clisp.org>
25238
25239         * README: Talk primarily about git.
25240         (git and CVS): Renamed from CVS.
25241         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
25242         gnulib is available through git.
25243         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
25244
25245 2007-03-30  Bruno Haible  <bruno@clisp.org>
25246
25247         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
25248         * lib/poll_.h: Likewise.
25249         * lib/stat_.h: Likewise.
25250         * lib/sys_time_.h: Likewise.
25251         * lib/sysexit_.h: Likewise.
25252         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
25253         * lib/stdbool_.h: Likewise.
25254         * lib/byteswap_.h: Add double-inclusion guard.
25255
25256 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
25257
25258         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
25259
25260 2007-03-30  Karl Berry  <karl@gnu.org>
25261
25262         * config/srclist-update: double space after USA in the license
25263         substitution, since that's how it's usually (?) written.
25264
25265 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25266
25267         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
25268         reported by Bruno Haible.
25269
25270 2007-03-29  Bruno Haible  <bruno@clisp.org>
25271
25272         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
25273         a bug in AIX iconv().
25274
25275 2007-03-29  Bruno Haible  <bruno@clisp.org>
25276
25277         * modules/ldexpl-tests: New file.
25278         * tests/test-ldexpl.c: New file.
25279
25280 2007-03-29  Bruno Haible  <bruno@clisp.org>
25281
25282         * lib/ldexpl.c: Include fpucw.h.
25283         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
25284         multiplication.
25285         * modules/ldexpl (Depends-on): Add fpucw.
25286
25287 2007-03-29  Bruno Haible  <bruno@clisp.org>
25288
25289         * modules/ldexpl: New file.
25290         * m4/ldexpl.m4: New file.
25291         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
25292         set.
25293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
25294         REPLACE_LDEXPL.
25295         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
25296         REPLACE_LDEXPL.
25297         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25298         gl_FUNC_LDEXPL_WORKS.
25299         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
25300         * modules/mathl (Files): Remove lib/ldexpl.c.
25301         (Depends-on): Add ldexpl.
25302
25303 2007-03-29  Bruno Haible  <bruno@clisp.org>
25304
25305         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
25306
25307 2007-03-29  Bruno Haible  <bruno@clisp.org>
25308
25309         * tests/test-striconveh.c (main): Don't assume that a direct conversion
25310         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
25311         and possibly also HP-UX.
25312         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
25313         work on AIX, IRIX, HP-UX, OSF/1.
25314         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25315         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25316         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25317         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25318         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
25319         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25320
25321 2007-03-29  Bruno Haible  <bruno@clisp.org>
25322
25323         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
25324
25325 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25326
25327         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
25328         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
25329
25330 2007-03-29  Eric Blake  <ebb9@byu.net>
25331
25332         * lib/acl-internal.h: Remove redundant include.
25333         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
25334         Cygwin when a file is locked.
25335
25336 2007-03-29  Bruno Haible  <bruno@clisp.org>
25337
25338         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
25339         file.
25340         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
25341
25342 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25343
25344         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
25345         try to remove a parent directory if the child couldn't be removed
25346         (except for the first rmdir, which could fail because the child
25347         doesn't exist).  Problem reported by Jeff Blaine in
25348         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
25349
25350 2007-03-28  Bruno Haible  <bruno@clisp.org>
25351
25352         * lib/striconveh.c (utf8conv_carefully): New function.
25353         (mem_cd_iconveh_internal): Invoke it.
25354
25355 2007-03-28  Bruno Haible  <bruno@clisp.org>
25356
25357         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
25358         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
25359         input.
25360         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
25361         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
25362         unistr/u8-uctomb.
25363
25364 2007-03-28  Bruno Haible  <bruno@clisp.org>
25365
25366         * modules/unistr/u8-mbtoucr: New file.
25367         * lib/unistr/u8-mbtoucr.c: New file.
25368         * modules/unistr/u16-mbtoucr: New file.
25369         * lib/unistr/u16-mbtoucr.c: New file.
25370         * modules/unistr/u16-mbtoucr: New file.
25371         * lib/unistr/u16-mbtoucr.c: New file.
25372         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
25373
25374 2007-03-27  Simon Josefsson  <simon@josefsson.org>
25375             Bruno Haible  <bruno@clisp.org>
25376
25377         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
25378         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
25379         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
25380
25381         * m4/stdio_h.m4: Add stubs for vasprintf too.
25382
25383         * modules/stdio: Support vasprintf in sed command.
25384
25385         * modules/vasprintf: Depend on stdio for prototypes.  Remove
25386         vasprintf.h.  Add stdio module indicator.
25387
25388         * lib/stdio_.h: Declare asprintf and vasprintf, based on
25389         vasprintf.h.
25390
25391         * lib/vasprintf.h: File removed.
25392
25393         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
25394         * lib/vasprintf.c: Ditto.
25395         * lib/xvasprintf.c: Ditto.
25396         * tests/test-vasprintf-posix.c: Ditto.
25397         * tests/test-vasprintf.c: Ditto.
25398
25399 2007-03-27  Bruno Haible  <bruno@clisp.org>
25400
25401         Make vasnprintf multithread-safe.
25402         * lib/vasnprintf.c (decimal_point_char): New function.
25403         (VASNPRINTF): Use it.
25404         Suggested by Simon Josefsson.
25405
25406 2007-03-27  Eric Blake  <ebb9@byu.net>
25407
25408         Support sub-second birthtime on cygwin.
25409         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
25410         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
25411         (get_stat_birthtime): Also work with st_birthtim.
25412
25413 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25414
25415         * lib/stat-time.h (USE_BIRTHTIME): Remove.
25416         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
25417         (get_stat_birthtime_ns): Do not try to use "spare" fields.
25418         (get_stat_birthtime_ns): Simplify compile-time tests.
25419         (get_stat_birthtime): Change the API to look like
25420         get_stat_mtime etc., except return a negative tv_nsec on error.
25421         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
25422         Don't check for "spare" fields.
25423         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
25424         or for struct stat.st_birthtime, as these tests aren't used.
25425         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
25426
25427 2007-03-27  Bruno Haible  <bruno@clisp.org>
25428
25429         * lib/stat-time.h: Include <sys/stat.h>.
25430
25431 2007-03-27  James Youngman  <jay@gnu.org>
25432
25433         * lib/stat-time.h (get_stat_birthtime): New function for
25434           retrieving st_birthtime as provided by UFS2 (hence *BSD).
25435         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
25436           and its variants.
25437         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
25438         * modules/stat-time-test: New file.
25439         * tests/test-stat-time.c: New test, devised by Bruno Haible.
25440
25441 2007-03-26  Bruno Haible  <bruno@clisp.org>
25442
25443         Better support of signalling NaNs.
25444         * lib/atanl.c: Include isnanl.h.
25445         (atanl): Perform test for NaN at the beginning of the function and
25446         through a call to isnanl.
25447         * lib/cosl.c: Include isnanl.h.
25448         (cosl): Perform test for NaN at the beginning of the function and
25449         through a call to isnanl.
25450         * lib/ldexpl.c: Include isnanl.h.
25451         (ldexpl): Perform test for NaN through a call to isnanl.
25452         * lib/logl.c: Include isnanl.h.
25453         (logl): Perform test for NaN at the beginning of the function and
25454         through a call to isnanl.
25455         * lib/sinl.c: Include isnanl.h.
25456         (sinl): Perform test for NaN at the beginning of the function and
25457         through a call to isnanl.
25458         * lib/sqrtl.c: Include isnanl.h.
25459         (sqrtl): Perform test for NaN at the beginning of the function and
25460         through a call to isnanl.
25461         * lib/tanl.c: Include isnanl.h.
25462         (tanl): Perform test for NaN at the beginning of the function and
25463         through a call to isnanl.
25464         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
25465         * modules/mathl (Depends-on): Add isnanl.
25466
25467 2007-03-26  Eric Blake  <ebb9@byu.net>
25468
25469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
25470         regression in logic sense of previous patch.
25471
25472 2007-03-26  Bruno Haible  <bruno@clisp.org>
25473
25474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
25475         unportable shell command "if ! ...".
25476         Reported by Ralf Wildenhues.
25477
25478 2007-03-25  Bruno Haible  <bruno@clisp.org>
25479
25480         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
25481         <sysexits.h> file, and only add EX_CONFIG.
25482         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
25483         absolute file name and whether it is sufficient. Substitute also
25484         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
25485         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
25486         ABSOLUTE_SYSEXITS_H into sysexits.h.
25487
25488 2007-03-25  Bruno Haible  <bruno@clisp.org>
25489
25490         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
25491         hints is NULL.
25492
25493 2007-03-25  Bruno Haible  <bruno@clisp.org>
25494
25495         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
25496         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25497
25498 2007-03-25  Bruno Haible  <bruno@clisp.org>
25499
25500         * lib/vasnprintf.c: Include langinfo.h.
25501         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
25502         multithread-safe.
25503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
25504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
25505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25506         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25507         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25508         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
25511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25512         Reported by Simon Josefsson.
25513
25514 2007-03-25  Bruno Haible  <bruno@clisp.org>
25515
25516         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
25517         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
25518         * modules/vasnprintf (Depends-on): Add stdint.
25519
25520 2007-03-25  Bruno Haible  <bruno@clisp.org>
25521
25522         * modules/fpieee: New file.
25523         * m4/fpieee.m4: New file.
25524         * modules/isnan-nolibm (Depends-on): Add fpieee.
25525         * modules/isnanl-nolibm (Depends-on): Add fpieee.
25526         * modules/isnanl (Depends-on): Add fpieee.
25527
25528 2007-03-25  Bruno Haible  <bruno@clisp.org>
25529
25530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
25531
25532 2007-03-25  Bruno Haible  <bruno@clisp.org>
25533
25534         Avoid test failures on IRIX 6.5.
25535         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
25536         (main): Use it.
25537         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
25538         macros.
25539         (main): Use them.
25540
25541 2007-03-25  Bruno Haible  <bruno@clisp.org>
25542
25543         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
25544         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
25545         exists but doesn't work.
25546         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
25547         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
25548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
25549         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
25550
25551 2007-03-25  Bruno Haible  <bruno@clisp.org>
25552
25553         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
25554         returns inf. Needed on IRIX 6.5.
25555
25556 2007-03-25  Bruno Haible  <bruno@clisp.org>
25557
25558         * tests/test-frexpl.c: Include isnanl-nolibm.h.
25559         (main): Use isnanl instead of x != x idiom.
25560         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
25561
25562         * tests/test-frexp.c: Include isnan.h.
25563         (main): Use isnan instead of x != x idiom.
25564         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
25565
25566 2007-03-25  Bruno Haible  <bruno@clisp.org>
25567
25568         * tests/test-frexp.c (NaN): New function/macro.
25569         (main): Use it instead of 0.0 / 0.0.
25570         * tests/test-isnan.c (NaN): New function/macro.
25571         (main): Use it instead of 0.0 / 0.0.
25572         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
25573         (test_function): Use it instead of 0.0 / 0.0.
25574         * tests/test-vasprintf-posix.c (NaN): New function/macro.
25575         (test_function): Use it instead of 0.0 / 0.0.
25576         * tests/test-snprintf-posix.h (NaN): New function/macro.
25577         (test_function): Use it instead of 0.0 / 0.0.
25578         * tests/test-sprintf-posix.h (NaN): New function/macro.
25579         (test_function): Use it instead of 0.0 / 0.0.
25580         * tests/test-fprintf-posix.h (NaN): New function/macro.
25581         (test_function): Use it instead of 0.0 / 0.0.
25582         * tests/test-printf-posix.h (NaN): New function/macro.
25583         (test_function): Use it instead of 0.0 / 0.0.
25584
25585         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
25586
25587 2007-03-25  Bruno Haible  <bruno@clisp.org>
25588
25589         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
25590
25591 2007-03-25  Bruno Haible  <bruno@clisp.org>
25592
25593         * lib/regexec.c (merge_state_with_log): Make static.
25594
25595 2007-03-25  Bruno Haible  <bruno@clisp.org>
25596
25597         * lib/trigl.c (kernel_rem_pio2): Make static.
25598
25599 2007-03-25  Bruno Haible  <bruno@clisp.org>
25600
25601         * lib/sincosl.c (sincosl_table): Make static.
25602
25603 2007-03-25  Bruno Haible  <bruno@clisp.org>
25604
25605         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
25606         if the compiler does not support C99.
25607
25608 2007-03-25  Bruno Haible  <bruno@clisp.org>
25609
25610         * modules/time (Makefile.am): Ensure all rule action lines start with a
25611         tab.
25612
25613 2007-03-24  Bruno Haible  <bruno@clisp.org>
25614
25615         * modules/tsearch-tests: New file.
25616         * tests/test-tsearch.sh: New file.
25617         * tests/test-tsearch.c: New file, mostly copied from glibc.
25618
25619         * modules/search-tests: New file.
25620         * tests/test-search.c: New file.
25621
25622         * modules/search: New file.
25623         * lib/search_.h: New file, incorporating lib/tsearch.h.
25624         * m4/search_h.m4: New file.
25625         * lib/tsearch.h: Remove file.
25626         * lib/tsearch.c: Include search.h instead of tsearch.h.
25627         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
25628         HAVE_TSEARCH.
25629         * modules/tsearch (Files): Remove lib/tsearch.h.
25630         (Depends-on): Add search.
25631         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
25632         (Include): Change tsearch.h into search.h.
25633
25634 2007-03-24  Bruno Haible  <bruno@clisp.org>
25635
25636         * modules/fpucw: New file.
25637         * lib/fpucw.h: New file.
25638         * lib/frexp.c: Include fpucw.h.
25639         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25640         (FUNC): Use them.
25641         * lib/printf-frexp.c: Include fpucw.h.
25642         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25643         (FUNC): Use them.
25644         * lib/vasnprintf.c: Include fpucw.h.
25645         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
25646         'long double' calculations.
25647         * tests/test-frexpl.c: Include fpucw.h.
25648         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25649         * tests/test-printf-frexpl.c: Include fpucw.h.
25650         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25651         * modules/frexpl (Depends-on): Add fpucw.
25652         * modules/printf-frexpl (Depends-on): Likewise.
25653         * modules/fprintf-posix (Depends-on): Likewise.
25654         * modules/snprintf-posix (Depends-on): Likewise.
25655         * modules/sprintf-posix (Depends-on): Likewise.
25656         * modules/vasnprintf-posix (Depends-on): Likewise.
25657         * modules/vasprintf-posix (Depends-on): Likewise.
25658         * modules/vfprintf-posix (Depends-on): Likewise.
25659         * modules/vsnprintf-posix (Depends-on): Likewise.
25660         * modules/vsprintf-posix (Depends-on): Likewise.
25661         * modules/frexpl-tests (Depends-on): Likewise.
25662         * modules/printf-frexpl-tests (Depends-on): Likewise.
25663
25664 2007-03-24  Bruno Haible  <bruno@clisp.org>
25665
25666         * lib/float+.h: New file.
25667         * lib/isnan.c: Include float+.h.
25668         (SIZE): New macro.
25669         (FUNC): Compare only SIZE bytes of the value.
25670         * lib/vasnprintf.c: Include float+.h.
25671         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
25672         SIZEOF_LDBL or SIZEOF_DBL bytes.
25673         * modules/isnan-nolibm (Files): Add lib/float+.h.
25674         * modules/isnanl-nolibm (Files): Add lib/float+.h.
25675         * modules/isnanl (Files): Add lib/float+.h.
25676         * modules/vasnprintf (Files): Add lib/float+.h.
25677
25678 2007-03-24  Bruno Haible  <bruno@clisp.org>
25679
25680         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
25681         include isnanl-nolibm.h.
25682
25683 2007-03-24  Bruno Haible  <bruno@clisp.org>
25684
25685         * tests/test-read-file.c (main): Don't produce spurious output for
25686         expected situations. Make the test fail if it encountered unexpected
25687         results.
25688
25689 2007-03-24  Bruno Haible  <bruno@clisp.org>
25690
25691         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
25692         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
25693
25694 2007-03-24  Bruno Haible  <bruno@clisp.org>
25695
25696         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
25697
25698 2007-03-24  Bruno Haible  <bruno@clisp.org>
25699
25700         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
25701         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
25702
25703         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
25704         * modules/utf8-ucs4: Turn into a symbolic link to module
25705         unistr/u8-mbtouc.
25706
25707         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
25708         utf8-ucs4-unsafe.
25709         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
25710         unistr/u8-mbtouc-unsafe.
25711
25712         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
25713         * modules/utf16-ucs4: Turn into a symbolic link to module
25714         unistr/u16-mbtouc.
25715
25716         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
25717         utf16-ucs4-unsafe.
25718         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
25719         unistr/u16-mbtouc-unsafe.
25720
25721         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
25722         * modules/ucs4-utf8: Turn into a symbolic link to module
25723         unistr/u8-ubtomb.
25724
25725         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
25726         * modules/ucs4-utf16: Turn into a symbolic link to module
25727         unistr/u16-ubtomb.
25728
25729 2007-03-24  Bruno Haible  <bruno@clisp.org>
25730
25731         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
25732         Enable the function only if HAVE_INLINE.
25733         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
25734         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25735         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
25736         Enable the function only if HAVE_INLINE.
25737         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
25738         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25739         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
25740         Enable the function only if HAVE_INLINE.
25741         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
25742         Enable the function only if HAVE_INLINE.
25743         * modules/utf8-ucs4: Update.
25744         * modules/utf8-ucs4-unsafe: Update.
25745         * modules/utf16-ucs4: Update.
25746         * modules/utf16-ucs4-unsafe: Update.
25747         * modules/ucs4-utf8: Update.
25748         * modules/ucs4-utf16: Update.
25749
25750 2007-03-24  Bruno Haible  <bruno@clisp.org>
25751
25752         * lib/utf8-ucs4.h: Remove file.
25753         * lib/utf8-ucs4-unsafe.h: Remove file.
25754         * lib/utf16-ucs4.h: Remove file.
25755         * lib/utf16-ucs4-unsafe.h: Remove file.
25756         * lib/ucs4-utf8.h: Remove file.
25757         * lib/ucs4-utf16.h: Remove file.
25758         * lib/unistr.h: Include their previous contents.
25759         * m4/utf-ucs4.m4: Remove file.
25760         * m4/ucs4-utf.m4: Remove file.
25761         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
25762         (Depends-on): Add unistr/base.
25763         (configure.ac): Remove gl_UTF_UCS4.
25764         (Makefile.am): Update.
25765         (Include): Change to unistr.h.
25766         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
25767         (Depends-on): Add unistr/base.
25768         (configure.ac): Remove gl_UTF_UCS4.
25769         (Makefile.am): Update.
25770         (Include): Change to unistr.h.
25771         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
25772         (Depends-on): Add unistr/base.
25773         (configure.ac): Remove gl_UTF_UCS4.
25774         (Makefile.am): Update.
25775         (Include): Change to unistr.h.
25776         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
25777         (Depends-on): Add unistr/base.
25778         (configure.ac): Remove gl_UTF_UCS4.
25779         (Makefile.am): Update.
25780         (Include): Change to unistr.h.
25781         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
25782         (Depends-on): Add unistr/base.
25783         (configure.ac): Remove gl_UCS4_UTF.
25784         (Makefile.am): Update.
25785         (Include): Change to unistr.h.
25786         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
25787         (Depends-on): Add unistr/base.
25788         (configure.ac): Remove gl_UCS4_UTF.
25789         (Makefile.am): Update.
25790         (Include): Change to unistr.h.
25791         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
25792         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
25793         utf8-ucs4-unsafe.h.
25794         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
25795         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
25796         utf16-ucs4-unsafe.h.
25797         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
25798         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
25799         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
25800         * lib/unistr/u8-strchr.c: Likewise.
25801         * lib/unistr/u8-strrchr.c: Likewise.
25802         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
25803         * lib/unistr/u16-strchr.c: Likewise.
25804         * lib/unistr/u16-strrchr.c: Likewise.
25805         * lib/striconveh.c: Update.
25806         * lib/linebreak.c: Update.
25807
25808 2007-03-24  Bruno Haible  <bruno@clisp.org>
25809
25810         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
25811         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
25812
25813 2007-03-22  Bruno Haible  <bruno@clisp.org>
25814
25815         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
25816
25817 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
25818
25819         * MODULES.html.sh (File system functions): New module write-any-file.
25820         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
25821         * m4/write-any-file.m4: New files.
25822
25823 2007-03-23  Eric Blake  <ebb9@byu.net>
25824
25825         * gnulib-tool: Rearrange space-tab sequences, since some editors
25826         like to eat them.
25827
25828 2007-03-23  Eric Blake  <ebb9@byu.net>
25829
25830         * lib/version-etc.c (version_etc_va): Update license wording to
25831         be more concise.  Recommended by Richard Stallman.
25832
25833 2007-03-22  Bruno Haible  <bruno@clisp.org>
25834
25835         * lib/poll.c (MSG_PEEK): New fallback definition.
25836
25837 2007-03-22  Bruno Haible  <bruno@clisp.org>
25838
25839         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
25840         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
25841         (main): Update.
25842         Fixes a compilation error on BeOS.
25843
25844 2007-03-22  Bruno Haible  <bruno@clisp.org>
25845
25846         * modules/frexpl-tests: New file.
25847         * tests/test-frexpl.c: New file.
25848
25849         * modules/frexpl: New file.
25850         * m4/frexpl.m4: New file.
25851         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
25852         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
25853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
25854         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
25855         (Depends-on): Add frexpl. Remove isnanl-nolibm.
25856         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
25857
25858 2007-03-22  Bruno Haible  <bruno@clisp.org>
25859
25860         * lib/frexpl.c: Share code with lib/frexp.c.
25861         * modules/mathl (Files): Add lib/frexp.c.
25862         (Depends-on): Add isnanl-nolibm.
25863
25864 2007-03-22  Bruno Haible  <bruno@clisp.org>
25865
25866         * modules/printf-frexp (Files): Add m4/frexp.m4.
25867         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
25868         only if the found frexp function actually works.
25869
25870 2007-03-22  Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/frexp.c: Remove older implementation that uses divisions.
25873
25874 2007-03-21  Bruno Haible  <bruno@clisp.org>
25875
25876         * modules/frexp-tests: New file.
25877         * tests/test-frexp.c: New file.
25878
25879         * modules/frexp: New file.
25880         * lib/frexp.c: New file.
25881         * m4/frexp.m4: New file.
25882         * lib/math_.h (frexp): New declaration.
25883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
25884         REPLACE_FREXP.
25885         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
25886
25887 2007-03-21  Bruno Haible  <bruno@clisp.org>
25888
25889         * modules/isnanl-tests: New file.
25890         * tests/test-isnanl.c: New file.
25891
25892         * modules/isnanl: New file.
25893         * lib/isnanl.h: New file.
25894         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
25895         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
25896         gl_FUNC_ISNANL_WORKS.
25897         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
25898         New macros.
25899
25900 2007-03-21  Bruno Haible  <bruno@clisp.org>
25901
25902         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
25903         lib/isnanl.h.
25904         (Include): Update.
25905         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
25906         * lib/vasnprintf.c: Update.
25907         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
25908         tests/test-isnanl.h, remove tests/test-isnanl.c.
25909         (Makefile.am): Update.
25910         * tests/test-isnanl-nolibm.c: New file.
25911         * tests/test-isnanl.h: New file.
25912         * tests/test-isnanl.c: Remove file.
25913
25914 2007-03-21  Jim Meyering  <jim@meyering.net>
25915
25916         When trying to open ".", treat ESTALE like EACCES.
25917         * lib/savewd.c (savewd_save): Resort to forking not just upon
25918         failure with EACCES, but also when errno is ESTALE.
25919
25920 2007-03-20  Bruno Haible  <bruno@clisp.org>
25921
25922         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
25923         Needed on AIX 5.1. Reported by Matthew Woehlke.
25924
25925 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25926
25927         Suggestions by Bruno Haible:
25928         * lib/acl-internal.h: Include "gettext.h" rather than rolling
25929         our own.
25930         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
25931         * modules/acl (Depends-on): Add gettext.
25932
25933 2007-03-19  Bruno Haible  <bruno@clisp.org>
25934
25935         * modules/iconvme: Remove file.
25936         * lib/iconvme.h: Remove file.
25937         * lib/iconvme.c: Remove file.
25938         * m4/iconvme.m4: Remove file.
25939
25940 2007-03-19  Bruno Haible  <bruno@clisp.org>
25941
25942         * doc/relocatable-maint.texi: Break long shell script line.
25943         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25944
25945 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25946
25947         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
25948         handle file_has_acl.
25949         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
25950         * lib/acl.c: Move header inclusions and related macro defns into
25951         lib/acl-internal.h.
25952         (S_ISLNK): Remove defn, since that's now done for us.
25953         (file_has_acl): Move to lib/file-has-acl.c.
25954         Call acl_trivial if available.  This is the crucial part of the fix.
25955         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
25956         shared within the library.  Rewrite a bit, partly to make it compatible
25957         with the GNU coding style.
25958         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
25959         Remove unnecessary double-quotes.
25960         Don't test for acl_to_text; the build will catch that.
25961         Replace acl_entries if it doesn't exist and it is needed.
25962         Check for -lsec and acl_trivial (as used on Solaris 10).
25963         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
25964         lib/file-has-acl.c.
25965         (Depends-on): Add sys_stat, for S_ISLNK.
25966
25967 2007-03-19  Ben Pfaff  <blp@gnu.org>
25968
25969         * doc/gnulib.texi: Fix typos.
25970         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25971
25972 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25973
25974         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
25975         If size is zero here, buf must be zero.
25976
25977 2007-03-19  Simon Josefsson  <simon@josefsson.org>
25978
25979         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
25980         <bruno@clisp.org>.
25981
25982 2007-03-18  Bruno Haible  <bruno@clisp.org>
25983
25984         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
25985         Suggested by Eric Blake.
25986
25987 2007-03-18  Ben Pfaff  <blp@gnu.org>
25988
25989         * doc/relocatable.texi: Recommend using as prefix a directory
25990         that does not exist and will never be created.  Based on
25991         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
25992         and others.
25993
25994 2007-03-17  Bruno Haible  <bruno@clisp.org>
25995
25996         * lib/fchownat.c: Include lchown.h.
25997
25998 2007-03-17  Bruno Haible  <bruno@clisp.org>
25999
26000         Fix endless loop when the given allocated size was > INT_MAX.
26001         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
26002         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
26003         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
26004         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
26005         * lib/sprintf.c (sprintf): Likewise.
26006
26007 2007-03-17  Bruno Haible  <bruno@clisp.org>
26008
26009         * tests/test-argp-2.sh (func_compare): Output a context diff.
26010
26011 2007-03-17  Bruno Haible  <bruno@clisp.org>
26012
26013         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
26014         locale's decimal-point character.
26015
26016 2007-03-17  Bruno Haible  <bruno@clisp.org>
26017
26018         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
26019         before comparing it. Needed because on some platforms (e.g. x86) a
26020         'long double' occupies less bytes than sizeof (long double).
26021
26022 2007-03-17  Bruno Haible  <bruno@clisp.org>
26023
26024         * tests/test-crc.c (main): Make printf statements 64-bit clean.
26025         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
26026         * tests/test-getaddrinfo.c (simple): Likewise.
26027         * tests/test-read-file.c (main): Likewise.
26028
26029 2007-03-17  Bruno Haible  <bruno@clisp.org>
26030
26031         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
26032
26033 2007-03-17  Bruno Haible  <bruno@clisp.org>
26034
26035         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
26036         unused variable.
26037
26038 2007-03-17  Bruno Haible  <bruno@clisp.org>
26039
26040         * tests/test-c-strcasecmp.c: Include c-strcase.h.
26041         * tests/test-c-strncasecmp.c: Likewise.
26042
26043 2007-03-17  Bruno Haible  <bruno@clisp.org>
26044
26045         * modules/stdlib (Depends-on): Add unistd.
26046         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
26047         Needed for MacOS X 10.3.
26048
26049 2007-03-17  Bruno Haible  <bruno@clisp.org>
26050
26051         * lib/unistr/u-strdup.h: Include <stdlib.h>.
26052
26053 2007-03-17  Bruno Haible  <bruno@clisp.org>
26054
26055         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
26056
26057 2007-03-17  Bruno Haible  <bruno@clisp.org>
26058
26059         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
26060         to reflect files copied from gnulib (with or without modifications).
26061         Suggested by Jim Meyering.
26062
26063 2007-03-17  Eric Blake  <ebb9@byu.net>
26064
26065         * NEWS: Document stdlib change from 2007-02-18.
26066
26067 2007-03-17  Jim Meyering  <jim@meyering.net>
26068
26069         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
26070         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
26071         someone uses a name containing shell meta-characters.
26072         Reported by Alfred M. Szmidt.
26073
26074         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
26075
26076 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
26077
26078         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
26079         and copy gettext configuration files only if configure.ac contains
26080         a use of AM_GNU_GETTEXT_VERSION.
26081
26082 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
26083
26084         * build-aux/bootstrap (gnulib_name): New variable.
26085         (gnulib_tool_options): Use it.
26086
26087 2007-03-13  Simon Josefsson  <simon@josefsson.org>
26088
26089         * tests/test-des.c: Use new namespace.
26090
26091 2007-03-15  Bruno Haible  <bruno@clisp.org>
26092
26093         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
26094         Reported by James Youngman <jay@gnu.org>.
26095
26096 2007-03-15  Bruno Haible  <bruno@clisp.org>
26097
26098         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
26099         declared prototype. Needed with cc on OSF/1 5.1.
26100
26101 2007-03-15  Bruno Haible  <bruno@clisp.org>
26102
26103         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
26104         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
26105         (struct gl_list_implementation): Add dispose_fn argument to the
26106         'create_empty', 'create' methods.
26107         (struct gl_list_impl_base): Add field 'dispose_fn'.
26108         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
26109         argument.
26110         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
26111         dispose_fn argument.
26112         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
26113         dispose_fn on the dropped values.
26114         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
26115         dispose_fn argument.
26116         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
26117         dropped values.
26118         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
26119         (gl_tree_remove_node): Call dispose_fn on the dropped value.
26120         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
26121         (gl_tree_remove_node): Call dispose_fn on the dropped value.
26122         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
26123         argument.
26124         (gl_tree_list_free): Call dispose_fn on the dropped values.
26125         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
26126         the dropped values.
26127         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26128         Add dispose_fn argument.
26129         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
26130         Call dispose_fn on the dropped values.
26131         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
26132         Add dispose_fn argument.
26133         (gl_sublist_create): Initialize the 'dispose_fn' field.
26134         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
26135         * tests/test-array_list.c (main): Update.
26136         * tests/test-carray_list.c (main): Update.
26137         * tests/test-avltree_list.c (main): Update.
26138         * tests/test-rbtree_list.c (main): Update.
26139         * tests/test-avltreehash_list.c (main): Update.
26140         * tests/test-rbtreehash_list.c (main): Update.
26141         * tests/test-linked_list.c (main): Update.
26142         * tests/test-linkedhash_list.c (main): Update.
26143         * tests/test-array_oset.c (main): Update.
26144
26145 2007-03-15  Bruno Haible  <bruno@clisp.org>
26146
26147         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
26148         (gl_oset_create_empty): Add dispose_fn argument.
26149         (struct gl_oset_implementation): Add dispose_fn argument to
26150         'create_empty' method.
26151         (struct gl_oset_impl_base): Add dispose_fn field.
26152         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
26153         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
26154         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
26155         values.
26156         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
26157         (gl_tree_oset_free): Call dispose_fn on the dropped values.
26158         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
26159         dropped value.
26160         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
26161         dropped value.
26162         * tests/test-array_oset.c (main): Update.
26163         * tests/test-avltree_oset.c (main): Update.
26164         * tests/test-rbtree_oset.c (main): Update.
26165         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
26166
26167 2007-03-13  Bruno Haible  <bruno@clisp.org>
26168
26169         * tests/test-stdbool.c (i): Update after last patch.
26170
26171 2007-03-12  Bruno Haible  <bruno@clisp.org>
26172
26173         * lib/quotearg.c: Include <wctype.h> early, before the definition of
26174         the iswprint macro. Needed on Solaris 2.5.1.
26175
26176 2007-03-12  Bruno Haible  <bruno@clisp.org>
26177
26178         * tests/test-printf-frexp.c (main): Declare x as volatile.
26179
26180 2007-03-12  Simon Josefsson  <simon@josefsson.org>
26181
26182         * doc/gnulib.texi (Build robot for gnulib): New section.
26183
26184 2007-03-12  Jim Meyering  <jim@meyering.net>
26185
26186         * build-aux/bootstrap: New file.
26187         * build-aux/bootstrap.conf: New file, from coreutils.
26188
26189 2007-03-11  Bruno Haible  <bruno@clisp.org>
26190
26191         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
26192
26193 2007-03-12  Simon Josefsson  <simon@josefsson.org>
26194
26195         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
26196         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
26197         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
26198
26199 2007-03-11  Bruno Haible  <bruno@clisp.org>
26200
26201         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
26202         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
26203
26204 2007-03-11  Bruno Haible  <bruno@clisp.org>
26205
26206         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
26207         formula. Needed for SunPRO C 5.0.
26208
26209 2007-03-11  Bruno Haible  <bruno@clisp.org>
26210
26211         * modules/long-options (Depends-on): Add getopt.
26212
26213 2007-03-11  Bruno Haible  <bruno@clisp.org>
26214
26215         * modules/modechange (Depends-on): Add stdbool.
26216
26217 2007-03-11  Bruno Haible  <bruno@clisp.org>
26218
26219         * modules/i-ring (Depends-on): Add stdbool.
26220
26221 2007-03-11  Bruno Haible  <bruno@clisp.org>
26222
26223         * modules/gc-des (Depends-on): Add stdbool.
26224
26225 2007-03-11  Bruno Haible  <bruno@clisp.org>
26226
26227         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
26228
26229 2007-03-11  Bruno Haible  <bruno@clisp.org>
26230
26231         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
26232
26233 2007-03-11  Bruno Haible  <bruno@clisp.org>
26234
26235         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
26236
26237 2007-03-11  Bruno Haible  <bruno@clisp.org>
26238
26239         * lib/vasnprintf.c (sprintf): Undefine.
26240
26241 2007-03-11  Bruno Haible  <bruno@clisp.org>
26242
26243         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
26244         initializers in SunPRO C and Compaq C compilers.
26245
26246 2007-03-11  Bruno Haible  <bruno@clisp.org>
26247
26248         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
26249         decrementing code ANSI C compliant.
26250
26251 2007-03-11  Bruno Haible  <bruno@clisp.org>
26252
26253         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
26254         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
26255
26256 2007-03-11  Bruno Haible  <bruno@clisp.org>
26257
26258         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
26259         <stdbool.h> substitute doesn't pass.
26260
26261 2007-03-11  Bruno Haible  <bruno@clisp.org>
26262
26263         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
26264
26265 2007-03-11  Bruno Haible  <bruno@clisp.org>
26266
26267         * gnulib-tool (func_create_megatestdir): Create also an autobuild
26268         script, for submission to autobuild.josefsson.org.
26269
26270 2007-03-10  Bruno Haible  <bruno@clisp.org>
26271
26272         * modules/canonicalize-lgpl-tests: New file.
26273         * tests/test-canonicalize-lgpl.sh: New file.
26274         * tests/test-canonicalize-lgpl.c: New file.
26275
26276         * modules/c-strcase-tests: New file.
26277         * tests/test-c-strcase.sh: New file.
26278         * tests/test-c-strcasecmp.c: New file.
26279         * tests/test-c-strncasecmp.c: New file.
26280
26281         * modules/atexit-tests: New file.
26282         * tests/test-atexit.sh: New file.
26283         * tests/test-atexit.c: New file.
26284
26285 2007-03-10  Bruno Haible  <bruno@clisp.org>
26286
26287         * tests/test-binary-io.sh: Use temporary filenames that are not so
26288         likely to clash with those of other tests (in a parallel make).
26289         * tests/test-binary-io.c: Likewise.
26290
26291 2007-03-10  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
26294         fallback; use #error instead.
26295         Suggested by Simon Josefsson.
26296
26297 2007-03-10  Bruno Haible  <bruno@clisp.org>
26298
26299         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
26300         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
26301         first and the last.
26302
26303 2007-03-10  Bruno Haible  <bruno@clisp.org>
26304
26305         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
26306
26307 2007-03-10  Bruno Haible  <bruno@clisp.org>
26308
26309         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
26310         "make distcheck".
26311         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
26312         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
26313         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
26314
26315 2007-03-10  Bruno Haible  <bruno@clisp.org>
26316
26317         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
26318         variable.
26319         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
26320         variable.
26321
26322 2007-03-09  Eric Blake  <ebb9@byu.net>
26323         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
26324
26325         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
26326         types are not being provided by gnulib.
26327         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
26328         types are supported.
26329
26330 2007-03-10  Bruno Haible  <bruno@clisp.org>
26331
26332         * lib/stdio_.h (__attribute__): New macro.
26333         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
26334         vsprintf): Specify __attribute__ __format__ for GCC.
26335         Suggested by Eric Blake.
26336
26337 2007-03-09  Bruno Haible  <bruno@clisp.org>
26338
26339         * modules/printf-posix-tests: New file.
26340         * tests/test-printf-posix.sh: New file.
26341         * tests/test-printf-posix.c: New file.
26342
26343         * modules/printf-posix: New file.
26344         * lib/printf.c: New file.
26345         * m4/printf-posix-rpl.m4: New file.
26346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
26347         REPLACE_PRINTF.
26348         * lib/stdio_.h (printf): New declaration.
26349         (format, __format__, ____printf____, ____scanf____, ____strftime____,
26350         ____strfmon____): New macros.
26351         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
26352         REPLACE_PRINTF.
26353
26354 2007-03-09  Bruno Haible  <bruno@clisp.org>
26355
26356         * tests/test-vasnprintf-posix2.sh: New file.
26357         * tests/test-vasnprintf-posix2.c: New file.
26358         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
26359         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26360         (Makefile.am): Activate test-vasnprintf-posix2.sh.
26361
26362         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
26363         a locale dependent decimal point, rather than always '.'.
26364
26365 2007-03-09  Eric Blake  <ebb9@byu.net>
26366
26367         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
26368         spite of platforms like Tandem/NSK that define it to -1.
26369
26370 2007-03-08  Bruno Haible  <bruno@clisp.org>
26371
26372         * modules/vprintf-posix-tests: New file.
26373         * tests/test-vprintf-posix.sh: New file.
26374         * tests/test-vprintf-posix.c: New file.
26375         * tests/test-printf-posix.h: New file.
26376
26377         * modules/vprintf-posix: New file.
26378         * lib/vprintf.c: New file.
26379         * m4/vprintf-posix.m4: New file.
26380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
26381         REPLACE_VPRINTF.
26382         * lib/stdio_.h (vprintf): New declaration.
26383         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
26384         REPLACE_VPRINTF.
26385
26386 2007-03-08  Bruno Haible  <bruno@clisp.org>
26387
26388         * modules/fprintf-posix-tests: New file.
26389         * tests/test-fprintf-posix.sh: New file.
26390         * tests/test-fprintf-posix.c: New file.
26391
26392         * modules/fprintf-posix: New file.
26393         * lib/fprintf.c: New file.
26394         * m4/fprintf-posix.m4: New file.
26395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
26396         REPLACE_FPRINTF.
26397         * lib/stdio_.h (fprintf): New declaration.
26398         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
26399         REPLACE_FPRINTF.
26400
26401 2007-03-08  Bruno Haible  <bruno@clisp.org>
26402
26403         * modules/vfprintf-posix-tests: New file.
26404         * tests/test-vfprintf-posix.sh: New file.
26405         * tests/test-vfprintf-posix.c: New file.
26406         * tests/test-fprintf-posix.h: New file.
26407         * tests/test-fprintf-posix.out: New file.
26408
26409         * modules/vfprintf-posix: New file.
26410         * lib/vfprintf.c: New file.
26411         * m4/vfprintf-posix.m4: New file.
26412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
26413         REPLACE_VFPRINTF.
26414         * lib/stdio_.h (vfprintf): New declaration.
26415         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
26416         REPLACE_VFPRINTF.
26417
26418 2007-03-08  Bruno Haible  <bruno@clisp.org>
26419
26420         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
26421
26422 2007-03-08  Bruno Haible  <bruno@clisp.org>
26423
26424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
26425         instead of 'expr' invocations.
26426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26430         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26431         Suggested by Paul Eggert.
26432
26433 2007-03-08  Bruno Haible  <bruno@clisp.org>
26434
26435         * modules/fseterr-tests: New file.
26436         * tests/test-fseterr.c: New file.
26437
26438         * modules/fseterr: New file.
26439         * lib/fseterr.h: New file.
26440         * lib/fseterr.c: New file.
26441
26442 2007-03-08  Bruno Haible  <bruno@clisp.org>
26443
26444         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
26445         * lib/getopt_.h: Likewise.
26446         * lib/mbswidth.h: Likewise.
26447         * lib/setenv.h: Likewise.
26448         * lib/vasnprintf.h: Likewise.
26449         * lib/vasprintf.h: Likewise.
26450         * lib/verror.h: Likewise.
26451         * lib/xsetenv.h: Likewise.
26452         * lib/xvasprintf.h: Likewise.
26453
26454 2007-03-08  Jim Meyering  <jim@meyering.net>
26455
26456         * users.txt: Add parted.
26457
26458         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
26459
26460 2007-03-07  Bruno Haible  <bruno@clisp.org>
26461
26462         * m4/printf.m4: Make the shell script snippets copy&pastable.
26463
26464 2007-03-02  Bruno Haible  <bruno@clisp.org>
26465
26466         * lib/netinet_in_.h: New file.
26467         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
26468         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
26469         * modules/netinet_in (Files): Add lib/netinet_in_.h.
26470         (Depends-on): Add absolute-header.
26471         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
26472         into netinet/in.h.
26473
26474 2007-03-03  Bruno Haible  <bruno@clisp.org>
26475
26476         * lib/sys_select_.h: New file.
26477         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
26478         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
26479         * modules/sys_select (Files): Add lib/sys_select_.h.
26480         (Depends-on): Add absolute-header.
26481         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
26482         into sys/select.h.
26483
26484 2007-03-02  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
26487         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
26488         values.
26489         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
26490         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
26491         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
26492         * modules/sys_socket (Depends-on): Add absolute-header.
26493         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
26494         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
26495         (Include): Remove requirement of inclusion of <sys/types.h>.
26496
26497 2007-03-02  Bruno Haible  <bruno@clisp.org>
26498
26499         * lib/byteswap_.h (bswap_32): Fix formula.
26500
26501 2007-03-06  Bruno Haible  <bruno@clisp.org>
26502
26503         * modules/sprintf-posix-tests: New file.
26504         * tests/test-sprintf-posix.c: New file.
26505
26506         * modules/sprintf-posix: New file.
26507         * lib/sprintf.c: New file.
26508         * m4/sprintf-posix.m4: New file.
26509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
26510         REPLACE_SPRINTF.
26511         * lib/stdio_.h (sprintf): New declaration.
26512         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
26513         REPLACE_SPRINTF.
26514
26515 2007-03-06  Bruno Haible  <bruno@clisp.org>
26516
26517         * modules/vsprintf-posix-tests: New file.
26518         * tests/test-vsprintf-posix.c: New file.
26519         * tests/test-sprintf-posix.h: New file.
26520
26521         * modules/vsprintf-posix: New file.
26522         * lib/vsprintf.c: New file.
26523         * m4/vsprintf-posix.m4: New file.
26524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
26525         REPLACE_VSPRINTF.
26526         * lib/stdio_.h (vsprintf): New declaration.
26527         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
26528         REPLACE_VSPRINTF.
26529
26530 2007-03-06  Bruno Haible  <bruno@clisp.org>
26531
26532         * modules/vsnprintf (Depend-on): Remove minmax.
26533
26534 2007-03-06  Bruno Haible  <bruno@clisp.org>
26535
26536         * modules/snprintf-posix-tests: New file.
26537         * tests/test-snprintf-posix.c: New file.
26538
26539         * modules/snprintf-posix: New file.
26540         * m4/snprintf-posix.m4: New file.
26541         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
26542         gl_FUNC_SNPRINTF.
26543         (gl_FUNC_SNPRINTF): Invoke it.
26544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
26545         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
26546         is set.
26547         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
26548
26549 2007-03-06  Bruno Haible  <bruno@clisp.org>
26550
26551         * modules/vsnprintf-posix-tests: New file.
26552         * tests/test-vsnprintf-posix.c: New file.
26553         * tests/test-snprintf-posix.h: New file.
26554
26555         * modules/vsnprintf-posix: New file.
26556         * m4/vsnprintf-posix.m4: New file.
26557         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
26558         gl_FUNC_VSNPRINTF.
26559         (gl_FUNC_VSNPRINTF): Invoke it.
26560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
26561         * lib/stdio_.h (vsnprintf): Define as a replacement if
26562         REPLACE_VSNPRINTF is set.
26563         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
26564
26565 2007-03-06  Bruno Haible  <bruno@clisp.org>
26566
26567         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
26568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
26569
26570 2007-03-06  Bruno Haible  <bruno@clisp.org>
26571
26572         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
26573         (asinl): Declare also if HAVE_DECL_ASINL is set.
26574         (atanl): Declare also if HAVE_DECL_ATANL is set.
26575         (ceill): Declare also if HAVE_DECL_CEILL is set.
26576         (cosl): Declare also if HAVE_DECL_COSL is set.
26577         (expl): Declare also if HAVE_DECL_EXPL is set.
26578         (floorl): Declare also if HAVE_DECL_FLOORL is set.
26579         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
26580         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
26581         (logl): Declare also if HAVE_DECL_LOGL is set.
26582         (sinl): Declare also if HAVE_DECL_SINL is set.
26583         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
26584         (tanl): Declare also if HAVE_DECL_TANL is set.
26585         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
26586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
26587         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
26588         declaration of frexpl, ldexpl.
26589         * modules/printf-frexpl (Depends-on): Add math.
26590         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
26591
26592 2007-03-05  Bruno Haible  <bruno@clisp.org>
26593
26594         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
26595         frexpl and ldexpl are declared.
26596         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
26597
26598 2007-03-05  Bruno Haible  <bruno@clisp.org>
26599
26600         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
26601         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
26602
26603 2007-03-05  Bruno Haible  <bruno@clisp.org>
26604
26605         * lib/stdio_.h: Include <stddef.h>.
26606
26607 2007-03-05  Bruno Haible  <bruno@clisp.org>
26608
26609         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
26610
26611 2007-03-05  Bruno Haible  <bruno@clisp.org>
26612
26613         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
26614         NetBSD 4, from Ralf Wildenhues.
26615
26616 2007-03-04  Bruno Haible  <bruno@clisp.org>
26617
26618         * lib/vasprintf.h: Update #if logic for the case when the functions
26619         exist but are overridden.
26620
26621 2007-03-04  Bruno Haible  <bruno@clisp.org>
26622
26623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
26624         implementations: glibc-2.4 and MacOS X 10.3.
26625         * tests/test-vasnprintf-posix.c (test_function): Test also the case
26626         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
26627         * tests/test-vasprintf-posix.c (test_function): Likewise.
26628
26629 2007-03-04  Bruno Haible  <bruno@clisp.org>
26630
26631         * modules/vasprintf-posix-tests: New file.
26632         * tests/test-vasprintf-posix.c: New file.
26633
26634         * modules/vasprintf-posix: New file.
26635         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
26636         defined.
26637         * m4/vasprintf-posix.m4: New file.
26638         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
26639         gl_FUNC_VASPRINTF.
26640         (gl_FUNC_VASPRINTF): Invoke it.
26641         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
26642         here.
26643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
26644
26645 2007-03-04  Bruno Haible  <bruno@clisp.org>
26646
26647         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
26648         REPLACE_GETTIMEOFDAY.
26649         * modules/sys_time (Makefile.am): Likewise.
26650         * m4/sys_time_h.m4: Likewise.
26651         * m4/gettimeofday.m4: Likewise.
26652
26653 2007-03-04  Bruno Haible  <bruno@clisp.org>
26654
26655         * modules/vasnprintf-posix-tests: New file.
26656         * tests/test-vasnprintf-posix.c: New file.
26657
26658         * modules/vasnprintf-posix: New file.
26659         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
26660         printf-frexpl.h.
26661         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
26662         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
26663         REPLACE_VASNPRINTF is defined.
26664         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
26665         gl_FUNC_VASNPRINTF.
26666         (gl_FUNC_VASNPRINTF): Invoke it.
26667         * m4/vasnprintf-posix.m4: New file.
26668         * m4/printf.m4: New file.
26669
26670 2007-03-04  Bruno Haible  <bruno@clisp.org>
26671
26672         Compile progreloc.c only if --enable-relocatable is specified.
26673         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
26674         if --enable-relocatable was specified.
26675         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
26676         lib_SOURCES.
26677
26678 2007-03-04  Jim Meyering  <jim@meyering.net>
26679
26680         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
26681         Use it consistently, rather than enumerating errno constants.
26682
26683 2007-03-04  Bruno Haible  <bruno@clisp.org>
26684
26685         * modules/xvasprintf-tests: New file.
26686         * tests/test-xvasprintf.c: New file.
26687
26688         * modules/vasprintf-tests: New file.
26689         * tests/test-vasprintf.c: New file.
26690
26691         * modules/vasnprintf-tests: New file.
26692         * tests/test-vasnprintf.c: New file.
26693
26694         * modules/vsnprintf-tests: New file.
26695         * tests/test-vsnprintf.c: New file.
26696
26697         * modules/snprintf-tests: New file.
26698         * tests/test-snprintf.c: New file.
26699
26700 2007-03-04  Bruno Haible  <bruno@clisp.org>
26701
26702         Compile relocatable.c only if --enable-relocatable is specified.
26703         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
26704         gl_RELOCATABLE_LIBRARY.
26705         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
26706         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
26707         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
26708         gl_RELOCATABLE_LIBRARY.
26709         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
26710         (Makefile.am): Remove lib_SOURCES.
26711         * modules/relocatable-lib-lgpl (configure.ac): Invoke
26712         gl_RELOCATABLE_LIBRARY.
26713         (Makefile.am): Remove lib_SOURCES.
26714         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
26715         always.
26716         * modules/relocatable-prog-wrapper (configure.ac): Invoke
26717         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
26718
26719 2007-03-04  Bruno Haible  <bruno@clisp.org>
26720
26721         * modules/argmatch-tests: New file.
26722         * tests/test-argmatch.c: New file.
26723
26724         * tests/test-allocsa.c (main): Halve the number of loop runs.
26725
26726         * modules/alloca-opt-tests: New file.
26727         * tests/test-alloca-opt.c: New file.
26728
26729 2007-03-04  Jim Meyering  <jim@meyering.net>
26730
26731         Work around difference between Linux ACLs and Solaris 10 ZFS.
26732         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
26733         for EINVAL.
26734
26735 2007-03-03  Bruno Haible  <bruno@clisp.org>
26736
26737         * modules/relocatable-prog (Depends-on): Add back progreloc's
26738         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
26739
26740 2007-03-03  Bruno Haible  <bruno@clisp.org>
26741
26742         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
26743         * modules/relocatable-lib: New file.
26744
26745 2007-03-03  Bruno Haible  <bruno@clisp.org>
26746
26747         * modules/relocatable-prog: Renamed from modules/relocatable.
26748         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
26749
26750 2007-03-03  Bruno Haible  <bruno@clisp.org>
26751
26752         * modules/relocatable-script (Files): Add doc/relocatable.texi,
26753         m4/relocatable-lib.m4.
26754         (Depends-on): Remove 'relocatable'.
26755         (configure.ac): Add gl_RELOCATABLE_NOP.
26756
26757 2007-03-03  Bruno Haible  <bruno@clisp.org>
26758
26759         * modules/relocatable-prog-wrapper: New file.
26760         * modules/relocatable (Depends-on): Add it. Remove all other
26761         dependencies except progname.
26762         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
26763
26764         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
26765         (gl_FUNC_STRERROR): Nop.
26766         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
26767
26768         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
26769         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
26770
26771         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
26772         (gl_FUNC_READLINK): Update.
26773
26774         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
26775
26776 2007-03-03  Bruno Haible  <bruno@clisp.org>
26777
26778         * lib/xreadlink.c: Include <unistd.h> unconditionally.
26779         * modules/xreadlink (Depends-on): Add unistd.
26780         * modules/xreadlink-with-size (Depends-on): Likewise.
26781
26782 2007-03-03  Bruno Haible  <bruno@clisp.org>
26783
26784         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
26785         extracted from gt_FUNC_SETENV.
26786         (gt_FUNC_SETENV): Remove macro.
26787         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
26788         remove gt_FUNC_SETENV.
26789
26790 2007-03-03  Bruno Haible  <bruno@clisp.org>
26791
26792         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
26793         ENABLE_RELOCATABLE here.
26794         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
26795
26796 2007-03-03  Bruno Haible  <bruno@clisp.org>
26797
26798         * modules/rbtreehash-list-tests (Depends-on): Add progname.
26799         * tests/test-rbtreehash_list.c: Include progname.h.
26800         (main): Call set_program_name.
26801
26802         * modules/rbtree-oset-tests (Depends-on): Add progname.
26803         * tests/test-rbtree_oset.c: Include progname.h.
26804         (main): Call set_program_name.
26805
26806         * modules/rbtree-list-tests (Depends-on): Add progname.
26807         * tests/test-rbtree_list.c: Include progname.h.
26808         (main): Call set_program_name.
26809
26810         * modules/linked-list-tests (Depends-on): Add progname.
26811         * tests/test-linked_list.c: Include progname.h.
26812         (main): Call set_program_name.
26813
26814 2007-03-03  Bruno Haible  <bruno@clisp.org>
26815
26816         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
26817         All uses of __restrict changed to _Restrict_.
26818         * lib/glob_.h (__restrict): Remove macro.
26819
26820 2007-03-02  Bruno Haible  <bruno@clisp.org>
26821
26822         * modules/gettext (configure.ac): Require gettext infrastructure
26823         from version 0.16.1.
26824
26825 2007-03-02  Bruno Haible  <bruno@clisp.org>
26826
26827         * modules/linkedhash-list-tests (Depends-on): Add progname.
26828         * tests/test-linkedhash_list.c: Include progname.h.
26829         (main): Call set_program_name.
26830
26831         * modules/carray-list-tests (Depends-on): Add progname.
26832         * tests/test-carray_list.c: Include progname.h.
26833         (main): Call set_program_name.
26834
26835         * modules/avltreehash-list-tests (Depends-on): Add progname.
26836         * tests/test-avltreehash_list.c: Include progname.h.
26837         (main): Call set_program_name.
26838
26839         * modules/avltree-oset-tests (Depends-on): Add progname.
26840         * tests/test-avltree_oset.c: Include progname.h.
26841         (main): Call set_program_name.
26842
26843         * modules/avltree-list-tests (Depends-on): Add progname.
26844         * tests/test-avltree_list.c: Include progname.h.
26845         (main): Call set_program_name.
26846
26847         * modules/array-oset-tests (Depends-on): Add progname.
26848         * tests/test-array_oset.c: Include progname.h.
26849         (main): Call set_program_name.
26850
26851         * modules/array-list-tests (Depends-on): Add progname.
26852         * tests/test-array_list.c: Include progname.h.
26853         (main): Call set_program_name.
26854
26855         * modules/argp-tests (Depends-on): Add progname.
26856         * tests/test-argp.c: Include argp.h first. Include progname.h.
26857         (main): Call set_program_name.
26858
26859 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
26860
26861         * doc/gnulib-tool.texi (Initial import): Reword description of
26862         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
26863         limited effect even if defined after the first system include.
26864
26865 2007-03-01  Bruno Haible  <bruno@clisp.org>
26866
26867         * build-aux/config.libpath: Update to libtool-1.5.22.
26868         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26869
26870 2007-03-01  Bruno Haible  <bruno@clisp.org>
26871
26872         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
26873         foo_CFLAGS.
26874         Reported by Ralf Wildenhues.
26875
26876 2007-03-01  Bruno Haible  <bruno@clisp.org>
26877
26878         * build-aux/install-reloc: Remove object files left over by some
26879         compilers.
26880         Reported by Ralf Wildenhues.
26881
26882 2007-03-01  Bruno Haible  <bruno@clisp.org>
26883
26884         * build-aux/install-reloc: Break long lines.
26885
26886 2007-03-01  Bruno Haible  <bruno@clisp.org>
26887
26888         * doc/relocatable.texi: Document that it may not work on OpenBSD.
26889         Reported by Ralf Wildenhues.
26890
26891 2007-03-01  Bruno Haible  <bruno@clisp.org>
26892
26893         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
26894         include ordering constraints.
26895
26896 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26897
26898         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
26899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
26900         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
26901         as another example.
26902         * lib/time_.h: Fix misspelling.
26903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
26904         Require gl_HEADER_TIME_H_DEFAULTS.
26905         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
26906         * m4/time_r.m4 (gl_TIME_R): Likewise.
26907         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
26908
26909 2007-03-01  Bruno Haible  <bruno@clisp.org>
26910
26911         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
26912         * m4/utimens.m4 (gl_UTIMENS): Likewise.
26913
26914 2007-03-01  Jim Meyering  <jim@meyering.net>
26915
26916         * modules/xreadlink (Maintainer): Add my name.
26917         * modules/xreadlink-with-size (Depends-on): Alphabetize.
26918
26919 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
26920             Bruno Haible  <bruno@clisp.org>
26921
26922         * build-aux/install-reloc: Compile also c-ctype.c.
26923         * build-aux/relocatable.sh.in: New file.
26924         * doc/relocatable.texi: New file.
26925         * doc/relocatable-maint.texi: New file.
26926         * doc/gnulib.texi: Include relocatable-maint.texi.
26927         * lib/progreloc.c: Include unistd.h unconditionally.
26928         * lib/relocwrapper.c: Include unistd.h unconditionally.
26929         Include c-ctype.h.
26930         (add_dotbin): Use c_tolower.
26931         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
26932         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
26933         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
26934         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
26935         to m4/relocatable-lib.m4.
26936         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
26937         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
26938         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
26939         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
26940         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
26941         * modules/relocatable: New file.
26942         * modules/relocatable-lib: New file.
26943         * modules/relocatable-script: New file.
26944
26945 2007-02-28  Bruno Haible  <bruno@clisp.org>
26946
26947         Import --enable-relocatable infrastructure.
26948         * build-aux/config.libpath: New file, from GNU gettext.
26949         * build-aux/install-reloc: New file, from GNU gettext.
26950         * build-aux/reloc-ldflags: New file, from GNU gettext.
26951         * lib/relocatable.h: New file, from GNU gettext.
26952         * lib/relocatable.c: New file, from GNU gettext.
26953         * lib/relocwrapper.c: New file, from GNU gettext.
26954         * m4/relocatable.m4: New file, from GNU gettext.
26955
26956 2007-02-28  Bruno Haible  <bruno@clisp.org>
26957
26958         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
26959
26960         * modules/xreadlink: New file, from GNU gettext with modifications.
26961         * lib/xreadlink.c: New file, from GNU gettext.
26962         * lib/xreadlink.h: Add comments.
26963         (xreadlink): New declaration.
26964
26965         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
26966         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
26967         lib/xreadlink-with-size.c.
26968         (configure.ac): Remove gl_XREADLINK invocation.
26969         (Makefile.am): Augment lib_SOURCES.
26970         * m4/xreadlink.m4: Remove file.
26971         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
26972         (xreadlink_with_size): Renamed from xreadink.
26973         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
26974         * modules/canonicalize (Depends-on): Replace xreadlink with
26975         xreadlink-with-size.
26976         * lib/canonicalize.c (canonicalize_filename_mode): Update.
26977
26978 2007-02-25  Jim Meyering  <jim@meyering.net>
26979
26980         * build-aux/announce-gen: When complaining about excess arguments,
26981         list them.
26982
26983 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26984
26985         * README: Document signed integer overflow situation more
26986         accurately.
26987
26988 2007-02-25  Bruno Haible  <bruno@clisp.org>
26989
26990         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
26991         'a' or 'A' conversion.
26992
26993 2007-02-25  Bruno Haible  <bruno@clisp.org>
26994
26995         * modules/filename: Renamed from modules/pathname.
26996         (Files): Replace lib/pathname.h with lib/filename.h. Replace
26997         lib/concatpath.c with lib/concat-filename.c.
26998         (Makefile.am): Update.
26999         (Include): Replace pathname.h with filename.h.
27000         * lib/filename.h: Renamed from lib/pathname.h.
27001         (concatenated_filename): Renamed from concatenated_pathname.
27002         * lib/concat-filename.c: Renamed from lib/concatpath.c.
27003         (concatenated_filename): Renamed from concatenated_pathname.
27004         * lib/findprog.c: Include filename.h instead of pathname.h.
27005         (find_in_path): Update.
27006         * lib/javacomp.c: Include filename.h instead of pathname.h.
27007         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27008         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27009         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27010         is_oldgcj_14_13_usable, is_javac_usable): Update.
27011         * lib/javaexec.c: Include filename.h instead of pathname.h.
27012         (execute_java_class): Update.
27013         * modules/findprog: Update.
27014         * modules/javacomp: Update.
27015         * modules/javaexec: Update.
27016         * MODULES.html.sh (File system functions): Add 'filename', remove
27017         'pathname'.
27018
27019 2007-02-25  Bruno Haible  <bruno@clisp.org>
27020
27021         * modules/printf-frexpl-tests: New file.
27022         * tests/test-printf-frexpl.c: New file.
27023
27024         * modules/printf-frexpl: New file.
27025         * lib/printf-frexpl.h: New file.
27026         * lib/printf-frexpl.c: New file.
27027         * m4/printf-frexpl.m4: New file.
27028
27029 2007-02-25  Bruno Haible  <bruno@clisp.org>
27030
27031         * modules/printf-frexp-tests: New file.
27032         * tests/test-printf-frexp.c: New file.
27033
27034         * modules/printf-frexp: New file.
27035         * lib/printf-frexp.h: New file.
27036         * lib/printf-frexp.c: New file.
27037         * m4/printf-frexp.m4: New file.
27038
27039 2007-02-25  Bruno Haible  <bruno@clisp.org>
27040
27041         Assume automake >= 1.10 for the tests.
27042         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
27043         * modules/arctwo-tests: Likewise.
27044         * modules/argp-tests: Likewise.
27045         * modules/avltree-list-tests: Likewise.
27046         * modules/avltree-oset-tests: Likewise.
27047         * modules/avltreehash-list-tests: Likewise.
27048         * modules/carray-list-tests: Likewise.
27049         * modules/crc-tests: Likewise.
27050         * modules/des-tests: Likewise.
27051         * modules/gc-arcfour-tests: Likewise.
27052         * modules/gc-arctwo-tests: Likewise.
27053         * modules/gc-des-tests: Likewise.
27054         * modules/gc-hmac-md5-tests: Likewise.
27055         * modules/gc-hmac-sha1-tests: Likewise.
27056         * modules/gc-md2-tests: Likewise.
27057         * modules/gc-md4-tests: Likewise.
27058         * modules/gc-md5-tests: Likewise.
27059         * modules/gc-pbkdf2-sha1-tests: Likewise.
27060         * modules/gc-rijndael-tests: Likewise.
27061         * modules/gc-sha1-tests: Likewise.
27062         * modules/gc-tests: Likewise.
27063         * modules/getaddrinfo-tests: Likewise.
27064         * modules/hmac-md5-tests: Likewise.
27065         * modules/hmac-sha1-tests: Likewise.
27066         * modules/linked-list-tests: Likewise.
27067         * modules/linkedhash-list-tests: Likewise.
27068         * modules/lock-tests: Likewise.
27069         * modules/md2-tests: Likewise.
27070         * modules/md4-tests: Likewise.
27071         * modules/md5-tests: Likewise.
27072         * modules/rbtree-list-tests: Likewise.
27073         * modules/rbtree-oset-tests: Likewise.
27074         * modules/rbtreehash-list-tests: Likewise.
27075         * modules/read-file-tests: Likewise.
27076         * modules/rijndael-tests: Likewise.
27077         * modules/stdint-tests: Likewise.
27078         * modules/tls-tests: Likewise.
27079
27080 2007-02-24  Bruno Haible  <bruno@clisp.org>
27081
27082         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
27083         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
27084         function; instead check whether isnan with a double argument links.
27085         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
27086         function; instead check whether isnan with a 'long double' argument
27087         links.
27088         Reported by Eric Blake <ebb9@byu.net>.
27089
27090 2007-02-24  Bruno Haible  <bruno@clisp.org>
27091
27092         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
27093         defined.
27094         * lib/isnanl.c: Remove all code. Just include isnan.c.
27095         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
27096
27097 2007-02-25  Jim Meyering  <jim@meyering.net>
27098
27099         Avoid conflicting types for 'unsetenv' on FreeBSD.
27100         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
27101         conflicting with FreeBSD's (5.0 and 6.1) function declaration
27102         in stdlib.h.
27103
27104 2007-02-24  Bruno Haible  <bruno@clisp.org>
27105
27106         * modules/isnanl-nolibm-tests: New file.
27107         * tests/test-isnanl.c: New file.
27108
27109         * modules/isnanl-nolibm: New file.
27110         * lib/isnanl.h: New file.
27111         * lib/isnanl.c: New file.
27112         * m4/isnanl.m4: New file.
27113
27114 2007-02-24  Bruno Haible  <bruno@clisp.org>
27115
27116         * modules/isnan-nolibm-tests: New file.
27117         * tests/test-isnan.c: New file.
27118
27119         * modules/isnan-nolibm: New file.
27120         * lib/isnan.h: New file.
27121         * lib/isnan.c: New file.
27122         * m4/isnan.m4: New file.
27123
27124 2007-02-24  Bruno Haible  <bruno@clisp.org>
27125
27126         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
27127         assume that an exponent fits in 20 bits.
27128
27129 2007-02-24  Jim Meyering  <jim@meyering.net>
27130
27131         * m4/regex.m4: Update the description of the configure-time option,
27132         --without-included-regex, to state accurately what the defaults are,
27133         and perhaps to give people an idea why using this option is risky.
27134
27135 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27136
27137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
27138         loops on small arguments.  This attempts to avoid the problem
27139         Bruno Haible reported for AIX 4.3.2 in
27140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
27141
27142 2007-02-23  Bruno Haible  <bruno@clisp.org>
27143
27144         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
27145         Needed for help2man.
27146
27147 2007-02-23  Karl Berry  <karl@gnu.org>
27148
27149         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
27150         exists, foo.h should be cvs-ignored, not committed.
27151
27152 2007-02-23  Eric Blake  <ebb9@byu.net>
27153
27154         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
27155         * lib/stat-time.h (includes): Likewise.
27156         * lib/utimecmp.c (includes): Likewise.
27157         * lib/utimens.h (includes): Likewise.
27158         * lib/getdate.y (includes): Also include "timespec.h" for use
27159         internal to the module.
27160         * modules/utimens (Depends-on): Revert yesterday's patch.
27161         * modules/nanosleep (Depends-on): Add missing dependency.
27162
27163 2007-02-22  Bruno Haible  <bruno@clisp.org>
27164
27165         * lib/glob.c: Don't include getlogin_r.h.
27166
27167 2007-02-22  Jim Meyering  <jim@meyering.net>
27168
27169         * modules/utimens (Depends-on): Add timespec, required for
27170         utimens.h's inclusion of timespec.h.
27171
27172 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27173
27174         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
27175         long unreadable paths in GNU/Linux.  Problem reported by Andreas
27176         Schwab in
27177         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
27178         I'll try to think of a better way to fix the Solaris problem.
27179
27180         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
27181         like glibc; on Solaris 10, it fails with errno == EINVAL.
27182         POSIX says the behavior is unspecified if the first argument is NULL,
27183         so play it safe and never pass NULL to the system getcwd.
27184
27185 2007-02-21  Jim Meyering  <jim@meyering.net>
27186
27187         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
27188         of gettimeofday.  It would conflict with the one now always
27189         provided via sys_time_.h.  Reported by Matthew Woehlke, as
27190         an IRIX 6.5 build failure.
27191
27192 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27193
27194         Minor fixups to port to Solaris 10 with Sun C 5.8.
27195         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
27196         * modules/getcwd (Depends-on): Add dirfd.
27197         * lib/putenv.c (putenv): #undef it.
27198         (rpl_putenv): New decl.
27199         (malloc, free): Include <stdlib.h> rather than prototyping separately.
27200
27201 2007-02-20  Bruno Haible  <bruno@clisp.org>
27202
27203         * modules/stdio-tests: New file.
27204         * tests/test-stdio.c: New file.
27205
27206         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
27207         (Depends-on): Add stdio.
27208         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27209         (Include): Use <stdio.h> instead of vsnprintf.h.
27210         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
27211         HAVE_DECL_VSNPRINTF.
27212         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
27213
27214         * modules/snprintf (Files): Remove lib/snprintf.h.
27215         (Depends-on): Add stdio.
27216         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27217         (Include): Use <stdio.h> instead of snprintf.h.
27218         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
27219         HAVE_DECL_SNPRINTF.
27220         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
27221         * lib/getaddrinfo.c: Likewise.
27222
27223         * modules/stdio: New file.
27224         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
27225         * lib/snprintf.h: Remove file.
27226         * lib/vsnprintf.h: Remove file.
27227         * lib/.cppi-disable: Remove snprintf.h.
27228         * m4/stdio_h.m4: New file.
27229         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
27230
27231 2007-02-20  Jim Meyering  <jim@meyering.net>
27232
27233         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
27234         used by e.g., mingw.  From Bruno Haible.
27235
27236 2007-02-19  Bruno Haible  <bruno@clisp.org>
27237
27238         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
27239         warnings.
27240         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27241
27242 2007-02-19  Bruno Haible  <bruno@clisp.org>
27243
27244         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
27245         from mingw users.
27246
27247 2007-02-19  Bruno Haible  <bruno@clisp.org>
27248
27249         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
27250         warnings.
27251         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
27252
27253 2007-02-19  Jim Meyering  <jim@meyering.net>
27254
27255         Don't use FD after a successful "fdopendir (fd)".
27256         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
27257         Reset it by calling dirfd on the just-obtained DIR*.
27258
27259         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
27260         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
27261
27262 2007-02-18  Bruno Haible  <bruno@clisp.org>
27263
27264         * lib/readlink.c: Include <unistd.h>.
27265         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
27266         HAVE_READLINK.
27267         * modules/readlink (Depends-on): Add unistd.
27268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27269         (Include): Add <unistd.h>.
27270
27271         * lib/getlogin_r.h: Remove file.
27272         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
27273         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
27274         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
27275         HAVE_DECL_GETLOGIN_R.
27276         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
27277         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27278         (Include): Use <unistd.h> instead of getlogin_r.h.
27279
27280         * lib/getcwd.h: Remove file.
27281         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
27282         * lib/xgetcwd.c: Likewise.
27283         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
27284         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
27285         * modules/getcwd (Files): Remove lib/getcwd.h.
27286         (Depends-on): Add unistd.
27287         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27288         (Include): Use <unistd.h> instad of getcwd.h.
27289
27290         * lib/ftruncate.c: Include <unistd.h> first.
27291         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
27292         Set HAVE_FTRUNCATE.
27293         * modules/ftruncate (Depends-on): Add unistd.
27294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27295
27296         * lib/fchdir.c: Include <unistd.h> first.
27297         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
27298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
27299         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
27300         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27301         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
27302
27303         * lib/dup2.c: Include <unistd.h> first.
27304         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
27305         HAVE_DUP2.
27306         * modules/dup2 (Depends-on): Add unistd.
27307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27308
27309         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
27310         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
27311         REPLACE_CHOWN. Don't define chown as a macro here.
27312         * modules/chown (Depends-on): Add unistd.
27313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27314
27315         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
27316         Add definition for GL_LINK_WARNING.
27317         (chown, dup2): New declarations.
27318         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
27319         link warning.
27320         (ftruncate): New declaration.
27321         (getcwd): New declaration, taken from old getcwd.h.
27322         (getlogin_r): New declaration, taken from old getlogin_r.h.
27323         (readlink): New declaration.
27324         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
27325         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
27326         (gl_PREREQ_UNISTD): Remove macro.
27327         (gl_UNISTD_MODULE_INDICATOR): New macro.
27328         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
27329         many new variables. Don't set UNISTD_H.
27330         * modules/unistd (Description): Change.
27331         (Depends-on): Add link-warning.
27332         (configure.ac): Update.
27333         (Makefile.am): Create unistd.h always. Substitute many new variables
27334         into it.
27335
27336 2007-02-18  Bruno Haible  <bruno@clisp.org>
27337
27338         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
27339         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
27340         HAVE_GETSUBOPT.
27341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
27342         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
27343         * lib/getsubopt.h: Remove file.
27344         * modules/getsubopt (Files): Remove lib/getsubopt.h.
27345         (Depends-on): Add stdlib.
27346         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27347         (Includes): Use <stdlib.h> instead of getsubopt.h.
27348         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
27349         Set HAVE_GETSUBOPT.
27350         * lib/getsubopt.c: Don't include getsubopt.h.
27351
27352 2007-02-18  Bruno Haible  <bruno@clisp.org>
27353
27354         * modules/fchdir (Depends-on): Add dup2.
27355
27356 2007-02-18  Bruno Haible  <bruno@clisp.org>
27357
27358         * lib/stdlib_.h: Handle glibc's special invocation convention
27359         specially.
27360
27361 2007-02-18  Bruno Haible  <bruno@clisp.org>
27362
27363         * modules/stdlib-tests: New file.
27364         * tests/test-stdlib.c: New file.
27365
27366         * modules/mkstemp (Files): Remove lib/mkstemp.h.
27367         (Depends-on): Add stdlib.
27368         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27369         (Includes): Use <stdlib.h> instead of mkstemp.h.
27370         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27371         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
27372         * lib/mkstemp.c: Don't include mkstemp.h.
27373         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
27374         * lib/stdlib--.h: Don't include mkstemp.h.
27375
27376         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
27377         (Depends-on): Add stdlib.
27378         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27379         (Includes): Use <stdlib.h> instead of mkdtemp.h.
27380         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27381         HAVE_MKDTEMP.
27382         * lib/mkdtemp.c: Don't include mkdtemp.h.
27383         * lib/clean-temp.c: Don't include mkdtemp.h.
27384
27385         * modules/exit (Files): Remove lib/exit.h.
27386         (Depends-on): Add stdlib.
27387         (Makefile.am): Remove lib_SOURCES.
27388         (Include): Use <stdlib.h> instead of exit.h.
27389         * lib/argmatch.c: Don't include exit.h.
27390         * lib/execute.c: Likewise.
27391         * lib/pagealign_alloc.c: Likewise.
27392         * lib/pipe.c: Likewise.
27393         * lib/wait-process.c: Likewise.
27394         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
27395         * lib/exitfail.c: Likewise.
27396         * lib/savewd.c: Likewise.
27397         * lib/xsetenv.c: Likewise.
27398
27399         * modules/stdlib: New file.
27400         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
27401         and extra comments about mkstemp().
27402         * lib/exit.h: Remove file.
27403         * lib/mkdtemp.h: Remove file.
27404         * lib/mkstemp.h: Remove file.
27405         * m4/stdlib_h.m4: New file.
27406         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
27407
27408 2007-02-18  Bruno Haible  <bruno@clisp.org>
27409
27410         * modules/math-tests: New file.
27411         * tests/test-math.c: New file.
27412
27413         * modules/math: New file.
27414         * modules/mathl (Files): Remove lib/mathl.h.
27415         (Depends-on): Add math.
27416         (Makefile.am): Don't mention mathl.h.
27417         (Include): Use <math.h> instead of mathl.h.
27418         * lib/math_.h: New file.
27419         * lib/mathl.h: Remove file.
27420         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
27421         mathl.h.
27422         * lib/asinl.c: Likewise.
27423         * lib/atanl.c: Likewise.
27424         * lib/ceill.c: Likewise.
27425         * lib/cosl.c: Likewise.
27426         * lib/expl.c: Likewise.
27427         * lib/floorl.c: Likewise.
27428         * lib/frexpl.c: Likewise.
27429         * lib/ldexpl.c: Likewise.
27430         * lib/logl.c: Likewise.
27431         * lib/sincosl.c: Likewise.
27432         * lib/sinl.c: Likewise.
27433         * lib/sqrtl.c: Likewise.
27434         * lib/tanl.c: Likewise.
27435         * lib/trigl.c: Likewise.
27436         * m4/math_h.m4: New file.
27437         * MODULES.html.sh (Mathematics): Add math.
27438
27439 2007-02-17  Bruno Haible  <bruno@clisp.org>
27440
27441         * modules/wctype-tests: New file.
27442         * tests/test-wctype.c: New file.
27443
27444         * modules/wchar-tests: New file.
27445         * tests/test-wchar.c: New file.
27446
27447         * modules/unistd-tests: New file.
27448         * tests/test-unistd.c: New file.
27449
27450         * modules/time-tests: New file.
27451         * tests/test-time.c: New file.
27452
27453         * modules/sysexits-tests: New file.
27454         * tests/test-sysexits.c: New file.
27455
27456         * modules/sys_time-tests: New file.
27457         * tests/test-sys_time.c: New file.
27458
27459         * modules/sys_stat-tests: New file.
27460         * tests/test-sys_stat.c: New file.
27461
27462         * modules/sys_socket-tests: New file.
27463         * tests/test-sys_socket.c: New file.
27464
27465         * modules/sys_select-tests: New file.
27466         * tests/test-sys_select.c: New file.
27467
27468         * modules/string-tests: New file.
27469         * tests/test-string.c: New file.
27470
27471         * modules/stdbool-tests: New file.
27472         * tests/test-stdbool.c: New file.
27473
27474         * modules/netinet_in-tests: New file.
27475         * tests/test-netinet_in.c: New file.
27476
27477         * modules/inttypes-tests: New file.
27478         * tests/test-inttypes.c: New file.
27479
27480         * modules/fcntl-tests: New file.
27481         * tests/test-fcntl.c: New file.
27482
27483         * modules/byteswap-tests: New file.
27484         * tests/test-byteswap.c: New file.
27485
27486         * modules/arpa_inet-tests: New file.
27487         * tests/test-arpa_inet.c: New file.
27488
27489 2007-02-17  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
27492         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
27493         if the corresponding module is not enabled. Emit link warnings if
27494         the function is used nevertheless.
27495         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
27496         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
27497         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
27498         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
27499         * modules/inttypes (Depends-on): Add link-warning.
27500         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27501         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
27502         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
27503         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
27504         * modules/imaxdiv (configure.ac): Likewise.
27505         * modules/strtoimax (configure.ac): Likewise.
27506         * modules/strtoumax (configure.ac): Likewise.
27507
27508 2007-02-17  Bruno Haible  <bruno@clisp.org>
27509
27510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
27511         gl_STRING_MODULE_INDICATOR_DEFAULTS.
27512         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
27513         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
27514
27515 2007-02-17  Bruno Haible  <bruno@clisp.org>
27516
27517         * modules/link-warning: New file.
27518         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
27519         * lib/string_.h (GL_LINK_WARNING): Remove definition.
27520         * modules/string (Depends-on): Add link-warning.
27521         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27522         string.h.
27523         * MODULES.html.sh (Support for building libraries and executables): Add
27524         link-warning.
27525
27526 2007-02-17  Bruno Haible  <bruno@clisp.org>
27527
27528         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
27529         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
27530         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
27531         long lines.
27532
27533 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
27534             Bruno Haible  <bruno@clisp.org>
27535
27536         * modules/tmpfile: New file.
27537         * lib/tmpfile.c: New file.
27538         * m4/tmpfile.m4: New file.
27539         * MODULES.html.sh (func_all_modules): New section "Input/output".
27540
27541 2007-02-15  Bruno Haible  <bruno@clisp.org>
27542
27543         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
27544         (supports_delete_on_close): New function.
27545         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
27546
27547 2007-02-14  Bruno Haible  <bruno@clisp.org>
27548
27549         * modules/mbspcasecmp-tests: New file.
27550         * tests/test-mbspcasecmp.sh: New file.
27551         * tests/test-mbspcasecmp.c: New file.
27552
27553         New module mbspcasecmp.
27554         * modules/mbspcasecmp: New file.
27555         * lib/mbspcasecmp.c: New file.
27556         * lib/string_.h (strncasecmp): Change warning message.
27557         (mbspcasecmp): New declaration.
27558         * m4/mbspcasecmp.m4: New file.
27559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27560         GNULIB_MBSPCASECMP.
27561         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
27562         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
27563
27564 2007-02-14  Bruno Haible  <bruno@clisp.org>
27565
27566         * modules/mbsncasecmp-tests: New file.
27567         * tests/test-mbsncasecmp.sh: New file.
27568         * tests/test-mbsncasecmp.c: New file.
27569
27570         New module mbsncasecmp.
27571         * modules/mbsncasecmp: New file.
27572         * lib/mbsncasecmp.c: New file.
27573         * lib/string_.h (mbsncasecmp): New declaration.
27574         * m4/mbsncasecmp.m4: New file.
27575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27576         GNULIB_MBSNCASECMP.
27577         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
27578         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
27579
27580 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27581
27582         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
27583         Verify that it doesn't overlap with our flags.
27584         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
27585         do not have the desired effect in multibyte locales; instead, use
27586         mbscasecmp.
27587         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
27588         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
27589         we don't require GNU fnmatch ourselves (if our users require it, they
27590         should do so explicitly).
27591
27592         Fix regex code so it doesn't rely on strcasecmp.
27593         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
27594         Otherwise, include gnulib's langinfo.h.
27595         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
27596         undesirable behavior in non-C locales.  Instead, rely on localecharset.
27597         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
27598         * modules/regex (FILES): Remove m4/codeset.m4.
27599         (Depends-on): Add localcharset.  Remove strcase.
27600
27601 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27602
27603         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
27604         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27605
27606 2007-02-13  Bruno Haible  <bruno@clisp.org>
27607
27608         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
27609         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27610
27611 2007-02-12  Bruno Haible  <bruno@clisp.org>
27612
27613         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27614         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
27615         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
27616         time warning rather than a link error.
27617
27618 2007-02-12  Bruno Haible  <bruno@clisp.org>
27619
27620         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
27621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27623
27624 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27625
27626         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
27627         args, not 2.
27628
27629 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27630
27631         New module 'time', so that apps can include <time.h> as per
27632         POSIX and GNU instead of separate include files like time_r.h
27633         and timegm.h.  This implementation tries out a simpler approach
27634         for replacing decls in standard include files (as compared to
27635         the string module), somewhat as an experiment.
27636
27637         * config/srclist.txt: Comment out mktime.c for now.
27638         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
27639         since it doesn't apply any more.  Use generic wording instead.
27640         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
27641         'time'.
27642         * lib/time_.h, m4/time_h.m4, modules/time: New files.
27643         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
27644         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
27645         Don't include <sys/types.h>; no longer needed since we assume C89.
27646         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
27647         * lib/strftime.c: Likewise.
27648         * lib/time_r.c: Likewise.
27649         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
27650         * lib/nanosleep.c: Include <time.h> first, to check interface.
27651         * lib/strptime.c: Likewise.
27652         * lib/time_r.c: Likewise.
27653         * lib/timegm.c: Likewise.
27654         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
27655         needed.
27656         * lib/timegm.c: Don't include timegm.h; no longer needed.
27657         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
27658         time.h now handles any problems in that area.
27659         (struct timespec, nanosleep): Remove; time.h now arranges for these.
27660         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
27661         that time.h defines struct timespec.
27662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
27663         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
27664         handles that.
27665         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
27666         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
27667         needed.  Set REPLACE_LOCALTIME.
27668         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
27669         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
27670         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
27671         nanosleep; time_h.m4 now does that.  Don't require
27672         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
27673         module handles this now.
27674         * modules/getdate (Depends-on): Remove timespec.  Add time.
27675         * modules/nanosleep (Depends-on): Likewise.
27676         * modules/stat-time (Depends-on): Likewise.
27677         * modules/nanosleep (Include): Include time.h, not timespec.h.
27678         * modules/strptime (Files): Remove lib/strptime.h.
27679         (Depends-on): Add extensions, time.
27680         (Include): Include time.h, not strptime.h.
27681         * modules/time_r (Files): Remove lib/time_r.h.
27682         (Depends-on): Add time.
27683         (Include): Include time.h, not time_r.h.
27684         * modules/timegm: Likewise.
27685         * modules/timespec (Description): Now does timespec-related decls
27686         of our own, instead of struct timespec itself.
27687         (Depends-on): Add time; remove extensions.
27688         (Maintainer): Add self.
27689         * modules/utimecmp (Depends-on): Add time; remove timespec.
27690         * modules/utimens (Depends-on): Likewise.
27691         * modules/xnanosleep (Depends-on): Likewise.
27692
27693 2007-02-11  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/c-strstr.c: Include allocsa.h.
27696         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27697         * lib/c-strcasestr.c: Include allocsa.h.
27698         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27699         * lib/strcasestr.c: Include allocsa.h.
27700         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27701         * lib/mbsstr.c: Include allocsa.h.
27702         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27703         allocsa/freesa instead of malloc/free.
27704         * lib/mbscasestr.c: Include allocsa.h.
27705         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27706         allocsa/freesa instead of malloc/free.
27707         * modules/c-strstr (Depends-on): Add allocsa.
27708         * modules/c-strcasestr (Depends-on): Likewise.
27709         * modules/strcasestr (Depends-on): Likewise.
27710         * modules/mbsstr (Depends-on): Likewise.
27711         * modules/mbscasestr (Depends-on): Likewise.
27712
27713 2007-02-11  Bruno Haible  <bruno@clisp.org>
27714
27715         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
27716
27717         * modules/mbsspn-tests: New file.
27718         * tests/test-mbsspn.sh: New file.
27719         * tests/test-mbsspn.c: New file.
27720
27721 2007-02-11  Bruno Haible  <bruno@clisp.org>
27722
27723         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
27724
27725         * modules/mbspbrk-tests: New file.
27726         * tests/test-mbspbrk.sh: New file.
27727         * tests/test-mbspbrk.c: New file.
27728
27729 2007-02-11  Bruno Haible  <bruno@clisp.org>
27730
27731         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
27732         unneeded cast.
27733
27734         * modules/mbscspn-tests: New file.
27735         * tests/test-mbscspn.sh: New file.
27736         * tests/test-mbscspn.c: New file.
27737
27738 2007-02-11  Bruno Haible  <bruno@clisp.org>
27739
27740         * modules/mbscasecmp-tests: New file.
27741         * tests/test-mbscasecmp.sh: New file.
27742         * tests/test-mbscasecmp.c: New file.
27743
27744 2007-02-11  Bruno Haible  <bruno@clisp.org>
27745
27746         Ensure O(n) worst-case complexity of mbscasestr.
27747         * lib/mbscasestr.c: Include stdbool.h.
27748         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27749         functions.
27750         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
27751         the bookkeeping indicates that it's worth it.
27752         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
27753
27754         * modules/mbscasestr-tests: New file.
27755         * tests/test-mbscasestr1.c: New file.
27756         * tests/test-mbscasestr2.sh: New file.
27757         * tests/test-mbscasestr2.c: New file.
27758         * tests/test-mbscasestr3.sh: New file.
27759         * tests/test-mbscasestr3.c: New file.
27760         * tests/test-mbscasestr4.sh: New file.
27761         * tests/test-mbscasestr4.c: New file.
27762         * m4/locale-tr.m4: New file.
27763
27764 2007-02-11  Bruno Haible  <bruno@clisp.org>
27765
27766         Ensure O(n) worst-case complexity of mbsstr.
27767         * lib/mbsstr.c: Include stdbool.h.
27768         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27769         functions.
27770         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
27771         bookkeeping indicates that it's worth it.
27772         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
27773
27774         * modules/mbsstr-tests: New file.
27775         * tests/test-mbsstr1.c: New file.
27776         * tests/test-mbsstr2.sh: New file.
27777         * tests/test-mbsstr2.c: New file.
27778         * tests/test-mbsstr3.sh: New file.
27779         * tests/test-mbsstr3.c: New file.
27780         * m4/locale-fr.m4: New file.
27781
27782 2007-02-11  Bruno Haible  <bruno@clisp.org>
27783
27784         * lib/mbsrchr.c (mbsrchr): Fix bug.
27785
27786         * modules/mbsrchr-tests: New file.
27787         * tests/test-mbsrchr.sh: New file.
27788         * tests/test-mbsrchr.c: New file.
27789
27790 2007-02-11  Bruno Haible  <bruno@clisp.org>
27791
27792         * lib/mbschr.c (mbschr): Fix bug.
27793
27794         * modules/mbschr-tests: New file.
27795         * tests/test-mbschr.sh: New file.
27796         * tests/test-mbschr.c: New file.
27797         * m4/locale-zh.m4: New file.
27798
27799 2007-02-11  Bruno Haible  <bruno@clisp.org>
27800
27801         Support for copying multibyte string iterators.
27802         * lib/mbiter.h: Include <string.h>.
27803         (mbiter_multi_copy): New function.
27804         (mbi_copy): New macro.
27805         * lib/mbuiter.h: Include <string.h>.
27806         (mbuiter_multi_copy): New function.
27807         (mbui_copy): New macro.
27808
27809 2007-02-11  Bruno Haible  <bruno@clisp.org>
27810
27811         New module mbslen.
27812         * modules/mbslen: New file.
27813         * lib/mbslen.c: New file.
27814         * lib/string_.h (mbslen): New declaration.
27815         * m4/mbslen.m4: New file.
27816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27817         GNULIB_MBSLEN.
27818         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
27819         * MODULES.html.sh (Internationalization functions): Add mbslen.
27820
27821 2007-02-11  Bruno Haible  <bruno@clisp.org>
27822
27823         Ensure O(n) worst-case complexity of strcasestr substitute.
27824         * lib/strcasestr.c: Include stdbool.h.
27825         (knuth_morris_pratt): New function.
27826         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
27827         bookkeeping indicates that it's worth it.
27828         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
27829
27830         * modules/strcasestr-tests: New file.
27831         * tests/test-strcasestr.c: New file.
27832
27833 2007-02-11  Bruno Haible  <bruno@clisp.org>
27834
27835         Ensure O(n) worst-case complexity of c_strcasestr.
27836         * lib/c-strcasestr.c: Include stdbool.h, string.h.
27837         (knuth_morris_pratt): New function.
27838         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
27839         the bookkeeping indicates that it's worth it.
27840         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
27841
27842         * modules/c-strcasestr-tests: New file.
27843         * tests/test-c-strcasestr.c: New file.
27844
27845 2007-02-11  Bruno Haible  <bruno@clisp.org>
27846
27847         Ensure O(n) worst-case complexity of c_strstr.
27848         * lib/c-strstr.c: Include stdbool.h, string.h.
27849         (knuth_morris_pratt): New function.
27850         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
27851         bookkeeping indicates that it's worth it.
27852         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
27853
27854         * lib/c-strstr.c: Complete rewrite for maintainability.
27855
27856         * modules/c-strstr-tests: New file.
27857         * tests/test-c-strstr.c: New file.
27858
27859 2007-02-11  Bruno Haible  <bruno@clisp.org>
27860
27861         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
27862         5.2.1 and earlier, whereby \055 was treated just like the range
27863         delimiter '-'.
27864         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27865
27866 2007-02-08  Bruno Haible  <bruno@clisp.org>
27867
27868         * modules/regex (Depends-on): Add stdbool.
27869         Reported by Dalibor Topic <robilad@kaffe.org>.
27870
27871 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27872
27873         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
27874         Prefer returning from main to exiting from it.
27875         Remove unnecessary parens after sizeof.
27876
27877 2007-02-05  Bruno Haible  <bruno@clisp.org>
27878
27879         New module mbssep.
27880         * modules/mbssep: New file.
27881         * lib/mbssep.c: New file.
27882         * lib/string_.h (strsep): Add a conditional link warning.
27883         (mbssep): New declaration.
27884         * m4/mbssep.m4: New file.
27885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27886         GNULIB_MBSSEP.
27887         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
27888         * MODULES.html.sh (Internationalization functions): Add mbssep.
27889
27890 2007-02-05  Bruno Haible  <bruno@clisp.org>
27891
27892         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
27893         Optimize search in case of 1 delimiter.
27894
27895 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27896
27897         * lib/acl.h: Include sys/types.h before sys/acl.h.
27898
27899 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27900
27901         Merge upstream fix for glibc bugzilla #3957:
27902
27903         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
27904
27905         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
27906         bit for RE_HAT_LISTS_NOT_NEWLINE.
27907         (build_charclass_op): Remove bogus comment.
27908
27909 2007-02-05  Simon Josefsson  <simon@josefsson.org>
27910
27911         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
27912
27913 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27914
27915         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
27916         * lib/memmem.c [!defined _LIBC]: Include config.h.
27917
27918 2007-02-04  Bruno Haible  <bruno@clisp.org>
27919
27920         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
27921         warning message.
27922
27923 2007-02-04  Bruno Haible  <bruno@clisp.org>
27924
27925         New module mbstok_r.
27926         * modules/mbstok_r: New file.
27927         * lib/mbstok_r.c: New file.
27928         * lib/string_.h (strtok_r): Change argument names to match the
27929         comments. Add a conditional link warning.
27930         (mbstok_r): New declaration.
27931         * m4/mbstok_r.m4: New file.
27932         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27933         GNULIB_MBSTOK_R.
27934         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
27935         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
27936
27937 2007-02-04  Bruno Haible  <bruno@clisp.org>
27938
27939         New module mbsspn.
27940         * modules/mbsspn: New file.
27941         * lib/mbsspn.c: New file.
27942         * lib/string_.h (strspn): Add a conditional link warning.
27943         (mbsspn): New declaration.
27944         * m4/mbsspn.m4: New file.
27945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27946         GNULIB_MBSSPN.
27947         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
27948         * MODULES.html.sh (Internationalization functions): Add mbsspn.
27949
27950 2007-02-04  Bruno Haible  <bruno@clisp.org>
27951
27952         New module mbspbrk.
27953         * modules/mbspbrk: New file.
27954         * lib/mbspbrk.c: New file.
27955         * lib/string_.h (strpbrk): Add a conditional link warning.
27956         (mbspbrk): New declaration.
27957         * m4/mbspbrk.m4: New file.
27958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27959         GNULIB_MBSPBRK.
27960         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
27961         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
27962
27963 2007-02-04  Bruno Haible  <bruno@clisp.org>
27964
27965         New module mbscspn.
27966         * modules/mbscspn: New file.
27967         * lib/mbscspn.c: New file.
27968         * lib/string_.h (strcspn): Add a conditional link warning.
27969         (mbscspn): New declaration.
27970         * m4/mbscspn.m4: New file.
27971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27972         GNULIB_MBSCSPN.
27973         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
27974         * MODULES.html.sh (Internationalization functions): Add mbscspn.
27975
27976 2007-02-04  Bruno Haible  <bruno@clisp.org>
27977
27978         New module mbscasestr, reduced goal of strcasestr.
27979         * modules/mbscasestr: New file.
27980         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
27981         (mbscasestr): Renamed from strcasestr.
27982         * lib/strcasestr.c: Don't include mbuiter.h.
27983         (strcasestr): Remove support for multibyte locales.
27984         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
27985         Change the conditional link warning.
27986         (mbscasestr): New declaration.
27987         * m4/mbscasestr.m4: New file.
27988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
27989         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
27990         REPLACE_STRCASESTR.
27991         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
27992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27993         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27994         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
27995         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
27996         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27997         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
27998         (Depends-on): Remove mbuiter.
27999         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
28000
28001 2007-02-04  Bruno Haible  <bruno@clisp.org>
28002
28003         Simplify handling of strncasecmp.
28004         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
28005         the conditional link warning.
28006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28007         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
28008         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
28009         * modules/strcase (configure.ac): Don't invoke
28010         gl_STRING_MODULE_INDICATOR.
28011         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
28012
28013 2007-02-04  Bruno Haible  <bruno@clisp.org>
28014
28015         New module mbscasecmp, reduced goal of strcasecmp.
28016         * modules/mbscasecmp: New file.
28017         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
28018         (mbscasecmp): Renamed from strcasecmp.
28019         * lib/strcasecmp.c: Don't include mbuiter.h.
28020         (strcasecmp): Remove support for multibyte locales.
28021         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
28022         Change the conditional link warning.
28023         (mbscasecmp): New declaration.
28024         * m4/mbscasecmp.m4: New file.
28025         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
28026         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
28027         REPLACE_STRCASECMP.
28028         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
28029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28030         GNULIB_MBSCASECMP.
28031         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
28032         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
28033         * modules/strcase (Files): Remove m4/mbrtowc.m4.
28034         (Depends-on): Remove mbuiter.
28035         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
28036
28037 2007-02-04  Bruno Haible  <bruno@clisp.org>
28038
28039         New module mbsstr. Remove module strstr.
28040         * modules/mbsstr: New file.
28041         * modules/strstr: Remove file.
28042         * lib/mbsstr.c: Renamed from lib/strstr.c.
28043         (mbsstr): Renamed from strstr.
28044         * lib/string_.h (strstr): Remove declaration. Change the conditional
28045         link warning.
28046         (mbsstr): New declaration.
28047         * m4/mbsstr.m4: New file.
28048         * m4/strstr.m4: Remove file.
28049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28050         REPLACE_STRSTR.
28051         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
28052         Don't initialize GNULIB_STRSTR.
28053         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
28054         substitute GNULIB_STRSTR and REPLACE_STRSTR.
28055         * MODULES.html.sh (Internationalization functions): Add mbsstr.
28056         (Support for systems lacking ANSI C 89): Remove strstr.
28057
28058 2007-02-04  Bruno Haible  <bruno@clisp.org>
28059
28060         New module mbsrchr.
28061         * modules/mbsrchr: New file.
28062         * lib/mbsrchr.c: New file.
28063         * lib/string_.h (strrchr): Add a conditional link warning.
28064         (mbsrchr): New declaration.
28065         * m4/mbsrchr.m4: New file.
28066         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28067         GNULIB_MBSRCHR.
28068         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
28069         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
28070
28071 2007-02-04  Bruno Haible  <bruno@clisp.org>
28072
28073         New module mbschr.
28074         * modules/mbschr: New file.
28075         * lib/mbschr.c: New file.
28076         * lib/string_.h (strchr): Add a conditional link warning.
28077         (mbschr): New declaration.
28078         * m4/mbschr.m4: New file.
28079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28080         GNULIB_MBSCHR.
28081         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
28082         * MODULES.html.sh (Internationalization functions): Add mbschr.
28083
28084 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
28085
28086         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
28087
28088         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
28089
28090 2007-02-04  Bruno Haible  <bruno@clisp.org>
28091
28092         New module description section 'configure.ac-early'.
28093         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
28094         (func_get_autoconf_early_snippet): New function.
28095         (func_import, func_create_testdir): Use it. Remove special cases for
28096         modules 'extensions' and 'lock'.
28097         * modules/extensions (configure.ac-early): Require
28098         gl_USE_SYSTEM_EXTENSIONS.
28099         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
28100
28101 2007-02-04  Bruno Haible  <bruno@clisp.org>
28102
28103         Make use of gcj-4.3's -fsource and -ftarget option.
28104         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
28105         and if so try the options -fsource and -ftarget.
28106         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
28107         source_version, ftarget_option, target_version arguments.
28108         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
28109         (is_envjavac_oldgcj_14_14_usable): Renamed from
28110         is_envjavac_gcj_14_14_usable.
28111         (is_envjavac_oldgcj_14_13_usable): Renamed from
28112         is_envjavac_gcj_14_13_usable.
28113         (is_gcj_present): Update.
28114         (is_gcj_43, is_gcj43_usable): New functions.
28115         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
28116         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
28117         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
28118         try the options -fsource and -ftarget.
28119
28120 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28121
28122         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
28123         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
28124         larger value.
28125
28126 2007-02-03  Jim Meyering  <jim@meyering.net>
28127
28128         Give tools a better chance to allocate space for very large buffers.
28129         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
28130
28131         Make pwd and readlink work also when run with an unreadable parent dir
28132         on systems with openat support.
28133         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
28134         provided getcwd function, even when we have openat support.
28135         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
28136
28137 2007-02-02  Bruno Haible  <bruno@clisp.org>
28138
28139         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
28140         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
28141         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
28142         portability problems if one of these functions is only used on specific
28143         platforms.
28144         Reported by Paul Eggert.
28145
28146 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28147
28148         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
28149         is causing more trouble than it's curing.
28150         * lib/regex_internal.h (__mempcpy): Remove.
28151         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
28152         (and make the code a tad smaller to boot).
28153         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
28154
28155 2007-02-02  Jim Meyering  <jim@meyering.net>
28156
28157         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
28158         section, not in the Makefile.am: one.
28159
28160 2007-02-02  Eric Blake  <ebb9@byu.net>
28161
28162         * lib/strchrnul.c: Always include config.h first.
28163
28164         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
28165         gnulib strstr is not necessary here.
28166
28167 2007-02-02  Simon Josefsson  <simon@josefsson.org>
28168
28169         * m4/socklen.m4: Fix typo.
28170
28171 2007-02-02  Eric Blake  <ebb9@byu.net>
28172
28173         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
28174         * modules/netinet_in (Makefile.am): Likewise.
28175
28176 2007-02-01  Bruno Haible  <bruno@clisp.org>
28177
28178         * lib/string_.h (GL_LINK_WARNING): New macro.
28179         (strcasecmp, strstr, strcasestr): If provided by the system,
28180         conditionally define as a macro that leads to a warning instead of to
28181         an error.
28182         (strncasecmp): Conditionally define as a macro that leads to a warning.
28183
28184 2007-02-01  Karl Berry  <karl@gnu.org>
28185
28186         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
28187
28188 2007-02-01  Bruno Haible  <bruno@clisp.org>
28189
28190         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
28191         renamings.
28192
28193 2007-02-01  Eric Blake  <ebb9@byu.net>
28194
28195         * modules/regex (Depends-on): Revert dependence on mempcpy.
28196         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
28197         module's definition of mempcpy.
28198         Reported by Paul Eggert.
28199
28200 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
28201
28202         * lib/string_.h: If the gnulib module XYZ is not present, undefine
28203         the symbol XYZ before redefining it.  This fixes a problem with
28204         programs that don't use XYZ, when compiled on systems that define
28205         XYZ to something else.
28206
28207 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
28208
28209         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
28210         occurs when "mkdir -m foo" creates a setgid directory that is (1)
28211         writeable to group or other and (2) is intended to have a special
28212         mode bit that is set or cleared.  In such a case, the directory
28213         should be neither group- nor other-writeable until the special
28214         mode bits are right.
28215
28216 2007-01-31  Eric Blake  <ebb9@byu.net>
28217
28218         * modules/mountlist (Depends-on): Add strstr.
28219
28220         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
28221         bug.
28222         * modules/string (Makefile.am): Remove redundant replacement.
28223         * modules/regex (Depends-on): Add mempcpy.
28224
28225 2007-01-31  Bruno Haible  <bruno@clisp.org>
28226
28227         New module description field 'Link'.
28228         * gnulib-tool (func_usage): Document --extract-link-directive.
28229         (sed_extract_prog): Recognize 'Link' directive.
28230         (func_get_link_directive): New function.
28231         (func_import): Show summary of link directives.
28232         Handle --extract-link-directive option.
28233         * modules/acl (Link): New section.
28234         * modules/clock-time (Link): New section.
28235         * modules/euidaccess (Link): New section.
28236         * modules/gettext (Link): New section.
28237         * modules/iconv (Link): New section.
28238         * modules/lock (Link): New section.
28239         * modules/nanosleep (Link): New section.
28240         * modules/readline (Link): New section.
28241
28242 2007-01-27  Bruno Haible  <bruno@clisp.org>
28243
28244         Enforce the use of gnulib modules for unportable <string.h> functions.
28245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
28246         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
28247         (gl_HEADER_STRING_H_BODY): Require it.
28248         * lib/string_.h: If the gnulib module XYZ is not present, redefine
28249         the symbol XYZ to one that gives a link error.
28250         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
28251         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
28252         * modules/mempcpy (configure.ac): Likewise.
28253         * modules/memrchr (configure.ac): Likewise.
28254         * modules/stpcpy (configure.ac): Likewise.
28255         * modules/stpncpy (configure.ac): Likewise.
28256         * modules/strcase (configure.ac): Likewise.
28257         * modules/strcasestr (configure.ac): Likewise.
28258         * modules/strchrnul (configure.ac): Likewise.
28259         * modules/strdup (configure.ac): Likewise.
28260         * modules/strndup (configure.ac): Likewise.
28261         * modules/strnlen (configure.ac): Likewise.
28262         * modules/strpbrk (configure.ac): Likewise.
28263         * modules/strsep (configure.ac): Likewise.
28264         * modules/strstr (configure.ac): Likewise.
28265         * modules/strtok_r (configure.ac): Likewise.
28266
28267 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
28268
28269         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
28270
28271 2007-01-30  Jim Meyering  <jim@meyering.net>
28272
28273         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
28274
28275 2007-01-29  Bruno Haible  <bruno@clisp.org>
28276
28277         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
28278         * lib/execute.c: Likewise.
28279         * lib/pipe.c: Likewise.
28280         * lib/printf-args.h: Likewise.
28281         * lib/printf-args.c: Likewise.
28282         * lib/printf-parse.c: Likewise.
28283         * lib/vasnprintf.c: Likewise.
28284
28285 2007-01-29  Eric Blake  <ebb9@byu.net>
28286
28287         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
28288         declaration.
28289
28290 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
28291
28292         * lib/strptime.h (strptime): Use 'restrict' for args where
28293         POSIX requires this.
28294         * lib/strptime.c (strptime): Likewise.
28295         Change license notice from LGPL to GPL, since gnulib-tool will
28296         change this as needed.
28297         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
28298         defined.
28299         Include "strptime.h" first, to check interface.
28300         Do not #undef _LIBC and _NL_CURRENT.
28301         Do not include <stdlib.h>; no longer needed.
28302         Include "time_r.h" and declare ptime_locale_status
28303         only if _LIBC is not defined.
28304         (__P): Remove unused macro.
28305         (match_string): Bring back glibc version, but use it only if _LIBC
28306         is defined.
28307         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
28308         Remove unnecessary assertion and abort() call.
28309         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
28310         * m4/strptime.m4: Fix serial number comment.
28311         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
28312         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
28313         (Depends-on): Add time_r.
28314
28315 2007-01-29  Bruno Haible  <bruno@clisp.org>
28316
28317         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28318         strptime.
28319         * modules/strptime (Depends-on): Add stdbool.
28320         * lib/strptime.h: Include <time.h> always. Add comments.
28321
28322 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28323
28324         * modules/strptime: New file.
28325         * lib/strptime.h: New file.
28326         * lib/strptime.c: New file.
28327         * m4/strptime.m4: New file.
28328
28329 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
28330
28331         * MODULES.html.sh: New module mpsort.
28332         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
28333
28334         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
28335         a circularity problem with HP-UX ia64 reported by Bob Proulx in
28336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
28337         All uses changed.
28338         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
28339         All uses changed.
28340         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
28341         to _Restrict_.
28342         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
28343         the parameter matches the prototype.
28344
28345 2007-01-28  Jim Meyering  <jim@meyering.net>
28346
28347         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
28348         sys/time.h here, reverting that part of the previous patch:
28349         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
28350
28351 2007-01-28  Bruno Haible  <bruno@clisp.org>
28352
28353         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
28354         value of $(SYS_TIME_H).
28355         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
28356         remove it conditionally, too. [added by Jim Meyering]
28357         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
28358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28359         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
28360         GETTIMEOFDAY_REPLACEMENT to 1.
28361
28362 2007-01-28  Bruno Haible  <bruno@clisp.org>
28363
28364         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
28365         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
28366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
28367         Set UNISTD_H instead of UNISTD_H2.
28368         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
28369
28370 2007-01-28  Bruno Haible  <bruno@clisp.org>
28371
28372         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
28373         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
28374
28375 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28376
28377         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
28378         (func_create_testdir): Ensure C locale for `grep' and `tr'
28379         character ranges.
28380         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
28381         ACLOCAL_AMFLAGS parsing state machine.
28382
28383 2007-01-27  Bruno Haible  <bruno@clisp.org>
28384
28385         * modules/unistr/base: Update.
28386
28387 2007-01-27  Bruno Haible  <bruno@clisp.org>
28388
28389         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
28390         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
28391         * modules/unistr/u32-mbtouc-unsafe: Renamed from
28392         modules/unistr/u32-mbtouc.
28393         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
28394         * lib/unistr.h: Update.
28395         * lib/linebreak.c: Update.
28396         * modules/unistr/u32-mbtouc: Renamed from
28397         modules/unistr/u32-mbtouc-safe.
28398         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
28399         * lib/unistr.h: Update.
28400         * lib/unistr/u32-to-u8.c: Update.
28401         * lib/unistr/u32-to-u16.c: Update.
28402
28403 2007-01-27  Bruno Haible  <bruno@clisp.org>
28404
28405         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
28406         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
28407         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
28408         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
28409         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
28410         * modules/unistr/u16-mbtouc-unsafe: Renamed from
28411         modules/unistr/u16-mbtouc.
28412         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
28413         * lib/unistr.h: Update.
28414         * lib/linebreak.c: Update.
28415         * modules/linebreak: Update.
28416         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
28417         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
28418         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
28419         * modules/unistr/u16-mbtouc: Renamed from
28420         modules/unistr/u16-mbtouc-safe.
28421         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
28422         * lib/unistr.h: Update.
28423         * lib/unistr/u16-to-u8.c: Update.
28424         * modules/unistr/u16-to-u8: Update.
28425         * lib/unistr/u16-to-u32.c: Update.
28426         * modules/unistr/u16-to-u32: Update.
28427
28428 2007-01-27  Bruno Haible  <bruno@clisp.org>
28429
28430         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
28431         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
28432         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
28433         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
28434         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
28435         * modules/unistr/u8-mbtouc-unsafe: Renamed from
28436         modules/unistr/u8-mbtouc.
28437         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
28438         * lib/unistr.h: Update.
28439         * lib/striconveh.c: Update.
28440         * modules/striconveh: Update.
28441         * lib/linebreak.c: Update.
28442         * modules/linebreak: Update.
28443         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
28444         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
28445         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
28446         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
28447         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
28448         * lib/unistr.h: Update.
28449         * lib/striconveh.c: Update.
28450         * modules/striconveh: Update.
28451         * lib/unistr/u8-to-u16.c: Update.
28452         * modules/unistr/u8-to-u16: Update.
28453         * lib/unistr/u8-to-u32.c: Update.
28454         * modules/unistr/u8-to-u32: Update.
28455
28456 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28457
28458         Sync from Libtool.
28459         * lib/argz.c: Do not include strings.h nor memory.h, include
28460         string.h unconditionally.  Patch by Simon Josefsson.
28461
28462 2007-01-27  Bruno Haible  <bruno@clisp.org>
28463
28464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
28465         from gl_HEADER_STRING_H_BODY.
28466         (gl_HEADER_STRING_H_BODY): Require it.
28467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
28468         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28469         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28470         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28472         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
28473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28474         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28475         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
28476         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28477         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28478         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
28479         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28480         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28481         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28482
28483 2007-01-27  Bruno Haible  <bruno@clisp.org>
28484
28485         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
28486         check_PROGRAMS into noinst_PROGRAMS.
28487         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
28488         check_PROGRAMS in this case.
28489         (func_import): Set for_test to false.
28490         (func_create_testdir): Set for_test to true.
28491
28492 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28493             Bruno Haible  <bruno@clisp.org>
28494
28495         * modules/strcasestr (Files): Remove lib/strcasestr.h.
28496         (Depends-on): Add string.
28497         (Includes): Use <string.h> instead of strcasestr.h.
28498         * modules/string (Makefile.am): Also substitute the value of
28499         REPLACE_STRCASESTR.
28500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
28501         assume strcasestr is declared in <string.h> not <strings.h>. Also
28502         set REPLACE_STRCASESTR.
28503         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
28504         REPLACE_STRCASESTR.
28505         * lib/strcasestr.h: Remove file.
28506         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
28507         * lib/string_.h (strcasestr): New declaration.
28508
28509 2007-01-27  Bruno Haible  <bruno@clisp.org>
28510
28511         * lib/string_.h: Use 'extern'.
28512
28513 2007-01-27  Jim Meyering  <jim@meyering.net>
28514
28515         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
28516         of set-but-not-used local, "q".
28517
28518         * lib/mempcpy.c: Include <config.h> before <string.h>.
28519         This fixes a compilation error on HP-UX, due to the system's
28520         "restrict"-using mempcpy prototype.
28521
28522 2007-01-26  Bruno Haible  <bruno@clisp.org>
28523
28524         Small optimization.
28525         * lib/javacomp.c: Include c-strstr.h.
28526          (is_envjavac_gcj): Use c_strstr instead of strstr.
28527         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
28528
28529 2007-01-26  Bruno Haible  <bruno@clisp.org>
28530
28531         * MODULES.html.sh (Unicode string functions): Add the new modules.
28532
28533         * modules/uniconv/u32-strconv-to-locale: New file.
28534         * lib/uniconv/u32-strconv-to-locale.c: New file.
28535
28536         * modules/uniconv/u16-strconv-to-locale: New file.
28537         * lib/uniconv/u16-strconv-to-locale.c: New file.
28538
28539         * modules/uniconv/u8-strconv-to-locale: New file.
28540         * lib/uniconv/u8-strconv-to-locale.c: New file.
28541
28542         * modules/uniconv/u32-strconv-from-locale: New file.
28543         * lib/uniconv/u32-strconv-from-locale.c: New file.
28544
28545         * modules/uniconv/u16-strconv-from-locale: New file.
28546         * lib/uniconv/u16-strconv-from-locale.c: New file.
28547
28548         * modules/uniconv/u8-strconv-from-locale: New file.
28549         * lib/uniconv/u8-strconv-from-locale.c: New file.
28550
28551         * modules/uniconv/u32-strconv-to-enc: New file.
28552         * lib/uniconv/u32-strconv-to-enc.c: New file.
28553         * modules/uniconv/u32-strconv-to-enc-tests: New file.
28554         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
28555
28556         * modules/uniconv/u16-strconv-to-enc: New file.
28557         * lib/uniconv/u16-strconv-to-enc.c: New file.
28558         * lib/uniconv/u-strconv-to-enc.h: New file.
28559         * modules/uniconv/u16-strconv-to-enc-tests: New file.
28560         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
28561
28562         * modules/uniconv/u8-strconv-to-enc: New file.
28563         * lib/uniconv/u8-strconv-to-enc.c: New file.
28564         * modules/uniconv/u8-strconv-to-enc-tests: New file.
28565         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
28566
28567         * modules/uniconv/u32-strconv-from-enc: New file.
28568         * lib/uniconv/u32-strconv-from-enc.c: New file.
28569         * modules/uniconv/u32-strconv-from-enc-tests: New file.
28570         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
28571
28572         * modules/uniconv/u16-strconv-from-enc: New file.
28573         * lib/uniconv/u16-strconv-from-enc.c: New file.
28574         * modules/uniconv/u16-strconv-from-enc-tests: New file.
28575         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
28576
28577         * modules/uniconv/u8-strconv-from-enc: New file.
28578         * lib/uniconv/u8-strconv-from-enc.c: New file.
28579         * lib/uniconv/u-strconv-from-enc.h: New file.
28580         * modules/uniconv/u8-strconv-from-enc-tests: New file.
28581         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
28582
28583         * modules/uniconv/u32-conv-from-enc: New file.
28584         * lib/uniconv/u32-conv-from-enc.c: New file.
28585         * modules/uniconv/u32-conv-from-enc-tests: New file.
28586         * tests/uniconv/test-u32-conv-from-enc.c: New file.
28587
28588         * modules/uniconv/u16-conv-from-enc: New file.
28589         * lib/uniconv/u16-conv-from-enc.c: New file.
28590         * lib/uniconv/u-conv-from-enc.h: New file.
28591         * modules/uniconv/u16-conv-from-enc-tests: New file.
28592         * tests/uniconv/test-u16-conv-from-enc.c: New file.
28593
28594         * modules/uniconv/u8-conv-from-enc: New file.
28595         * lib/uniconv/u8-conv-from-enc.c: New file.
28596         * modules/uniconv/u8-conv-from-enc-tests: New file.
28597         * tests/uniconv/test-u8-conv-from-enc.c: New file.
28598
28599         * modules/uniconv/base: New file.
28600         * lib/uniconv.h: New file.
28601
28602 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28603
28604         * doc/gnulib-tool.texi (Initial import): Update to match current
28605         behavior with strdup module.
28606         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
28607         * lib/memmem.h: Remove; all uses removed.  This is now done
28608         by <string.h>.
28609         * lib/mempcpy.h: Likewise.
28610         * lib/memrchr.h: Likewise.
28611         * lib/stpcpy.h: Likewise.
28612         * lib/stpncpy.h: Likewise.
28613         * lib/strcase.h: Likewise.
28614         * lib/strchrnul.h: Likewise.
28615         * lib/strdup.h: Likewise.
28616         * lib/strndup.h: Likewise.
28617         * lib/strnlen.h: Likewise.
28618         * lib/strpbrk.h: Likewise.
28619         * lib/strsep.h: Likewise.
28620         * lib/strstr.h: Likewise.
28621         * lib/strtok_r.h: Likewise.
28622         * lib/string_.h: New file.
28623         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
28624         Rely on <string.h> instead.
28625         * lib/canon-host.c: Likewise.
28626         * lib/chdir-long.c: Likewise.
28627         * lib/concatpath.c: Likewise.
28628         * lib/exclude.c: Likewise.
28629         * lib/fchdir.c: Likewise.
28630         * lib/getaddrinfo.c: Likewise.
28631         * lib/getcwd.c: Likewise.
28632         * lib/getsubopt.c: Likewise.
28633         * lib/glob.c: Likewise.
28634         * lib/hard-locale.c: Likewise.
28635         * lib/iconvme.c: Likewise.
28636         * lib/javacomp.c: Likewise.
28637         * lib/mempcpy.c: Likewise.
28638         * lib/memrchr.c: Likewise.
28639         * lib/regex_internal.h: Likewise.
28640         * lib/stpncpy.c: Likewise.
28641         * lib/strcasecmp.c: Likewise.
28642         * lib/strchrnul.c: Likewise.
28643         * lib/strdup.c: Likewise.
28644         * lib/striconv.c: Likewise.
28645         * lib/striconveh.c: Likewise.
28646         * lib/striconveha.c: Likewise.
28647         * lib/strncasecmp.c: Likewise.
28648         * lib/strndup.c: Likewise.
28649         * lib/strnlen.c: Likewise.
28650         * lib/strsep.c: Likewise.
28651         * lib/strstr.c: Likewise.
28652         * lib/strtok_r.c: Likewise.
28653         * lib/userspec.c: Likewise.
28654         * lib/w32spawn.h: Likewise.
28655         * lib/xstrndup.c: Likewise.
28656         * lib/mountlist.c (strstr): Remove decl.
28657         * m4/string_h.m4: New file.
28658         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
28659         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
28660         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
28661         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
28662         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
28663         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
28664         Set REPLACE_STRCASECMP if necessary.
28665         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
28666         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
28667         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
28668         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
28669         HAVE_DECL_STRDUP if necessary.
28670         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
28671         since gl_FUNC_STRNDUP does that now.
28672         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
28673         Check for decl here...
28674         (gl_PREREQ_STRNLEN): ... not here.
28675         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
28676         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
28677         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
28678         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
28679         necessary.
28680         * modules/string: New file.
28681         * modules/memmem (Files): Remove special-purpose include file.
28682         (Depends-on): Add string.
28683         (Include): Include <string.h>, not the removed file.
28684         * modules/mempcpy: Likewise.
28685         * modules/memrchr: Likewise.
28686         * modules/stpcpy: Likewise.
28687         * modules/stpncpy: Likewise.
28688         * modules/strcase: Likewise.
28689         * modules/strchrnul: Likewise.
28690         * modules/strdup: Likewise.
28691         * modules/strndup: Likewise.
28692         * modules/strnlen: Likewise.
28693         * modules/strpbrk: Likewise.
28694         * modules/strsep: Likewise.
28695         * modules/strstr: Likewise.
28696         * modules/strtok_r: Likewise.
28697         * tests/test-dirname.c: Don't include "strdup.h", since
28698         <string.h> now suffices.
28699         * tests/test-memmem.c: Don't include "memmem.h", since
28700         <string.h> now suffices.
28701
28702 2007-01-25  Bruno Haible  <bruno@clisp.org>
28703
28704         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
28705         *resultp is 0.
28706
28707         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
28708         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
28709         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
28710         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
28711
28712         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
28713         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
28714         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
28715         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
28716         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
28717         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
28718
28719 2007-01-24  Bruno Haible  <bruno@clisp.org>
28720
28721         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
28722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
28723         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
28724         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
28725         gl_FUNC_FTS_CORE.
28726         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
28727         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
28728         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28729         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
28730         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
28731         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
28732         gl_FUNC_FCHOWNAT.
28733         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
28734         gl_FUNC_STRFTIME.
28735         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
28736         Reported by Ralf Wildenhues.
28737
28738 2007-01-24  Bruno Haible  <bruno@clisp.org>
28739
28740         Drop AC_REQUIRE calls that are redundant with the module dependencies.
28741         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
28742         gl_GETADDRINFO.
28743         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
28744         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
28745         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
28746
28747 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28748
28749         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
28750         Don't use 'exit'; just return from 'main'.
28751         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
28752
28753         * lib/fnmatch_.h: Readjust white space and comments to match
28754         glibc, to avoid spurious diffs.
28755
28756 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28757
28758         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
28759         2004-12-01 change by Jakub Jelinek, since this code won't compile
28760         if !LIBC.  Problem reported by Bob Proulx.
28761
28762 2007-01-23  Bruno Haible  <bruno@clisp.org>
28763
28764         * lib/striconveh.c: Include c-strcaseeq.h.
28765         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
28766         * modules/striconveh (Depends-on): Add c-strcaseeq.
28767
28768 2007-01-23  Bruno Haible  <bruno@clisp.org>
28769
28770         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
28771
28772         * modules/c-strcaseeq: New file.
28773         * lib/c-strcaseeq.h: New file.
28774
28775         * modules/streq: New file.
28776         * lib/streq.h: New file.
28777
28778 2007-01-23  Bruno Haible  <bruno@clisp.org>
28779
28780         * modules/striconveha-tests: New file.
28781         * tests/test-striconveha.c: New file.
28782
28783         * lib/striconveha.h: Include <stdbool.h>.
28784         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
28785         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
28786         (mem_iconveha_notranslit): Renamed from mem_iconveha.
28787         (mem_iconveha): New function.
28788         (str_iconveha_notranslit): Renamed from str_iconveha.
28789         (str_iconveha): New function.
28790         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
28791         c-strcase.
28792
28793 2007-01-23  Bruno Haible  <bruno@clisp.org>
28794
28795         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
28796         encodings without forgiving before trying any encoding with handler.
28797         (str_iconveha): Try all encodings without forgiving before trying any
28798         encoding with handler.
28799
28800 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28801
28802         Import the following changes from libc.
28803
28804         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
28805
28806         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
28807
28808         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
28809
28810         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
28811         normal_bracket label.
28812
28813         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
28814
28815         [BZ #361]
28816         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
28817         to normal_bracket after fetching the next character.
28818
28819 2007-01-22  Bruno Haible  <bruno@clisp.org>
28820
28821         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
28822         argument.
28823         * lib/striconveh.c (iconv_carefully_1): New function.
28824         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
28825         argument.
28826         (str_cd_iconveh): Update.
28827         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
28828         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
28829         * tests/test-striconveh.c (MAGIC): New macro.
28830         (new_offsets): New function.
28831         (main): Test call with and without offsets.
28832
28833 2007-01-22  Bruno Haible  <bruno@clisp.org>
28834
28835         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
28836         * modules/sys_select (Makefile.am): Likewise.
28837         * modules/sys_socket (Makefile.am): Likewise.
28838         * modules/sys_time (Makefile.am): Likewise.
28839
28840 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28841
28842         * modules/gettimeofday (License): Change from GPL to LGPL, since
28843         gettimeofday is a library function.
28844
28845 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28846
28847         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
28848
28849 2007-01-21  Bruno Haible  <bruno@clisp.org>
28850
28851         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
28852
28853 2007-01-21  Bruno Haible  <bruno@clisp.org>
28854
28855         * modules/striconveha: New file.
28856         * lib/striconveha.h: New file.
28857         * lib/striconveha.c: New file.
28858         * MODULES.html.sh (Internationalization functions): Add striconveha.
28859         * lib/striconv.c (str_iconv): Optimize the case of an empty input
28860         string.
28861         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
28862
28863 2007-01-21  Bruno Haible  <bruno@clisp.org>
28864
28865         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
28866         * lib/striconveh.c (str_iconveh): Likewise.
28867
28868 2007-01-21  Bruno Haible  <bruno@clisp.org>
28869
28870         * lib/striconveh.h (mem_iconveh): New declaration.
28871         * lib/striconveh.c (mem_iconveh): New function.
28872         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
28873
28874 2007-01-21  Bruno Haible  <bruno@clisp.org>
28875
28876         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
28877
28878         * lib/striconveh.h (mem_cd_iconveh): Change specification.
28879         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
28880         original result buffer.
28881         (str_cd_iconveh): Update.
28882         * tests/test-striconveh.c (main): Update.
28883
28884         * lib/striconv.h (mem_cd_iconv): Change specification.
28885         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
28886         result buffer.
28887         (str_cd_iconv): Update.
28888         * tests/test-striconv.c (main): Update.
28889
28890 2007-01-21  Bruno Haible  <bruno@clisp.org>
28891
28892         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
28893
28894 2007-01-20  Jim Meyering  <jim@meyering.net>
28895
28896         * lib/userspec.c (parse_with_separator): If a user or group string
28897         starts with "+", skip the corresponding name-to-ID look-up, since
28898         such a look-up must fail: user and group names may not include "+".
28899
28900 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
28901
28902         * lib/poll.c: Include sys/time.h and time.h unconditionally,
28903         since we now assume the sys_time module.
28904         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
28905         check for sys/time.h; no longer needed.
28906         * modules/poll (Depends-on): Depend on sys_time.
28907
28908 2007-01-18  Bruno Haible  <bruno@clisp.org>
28909
28910         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
28911         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
28912
28913         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
28914         gettimeofday.
28915
28916         * tests/test-gettimeofday.c: Include <time.h>.
28917         (dummy): Remove variable.
28918
28919         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
28920         gl_HEADER_SYS_TIME_H.
28921         (gl_HEADER_SYS_TIME_H): New macro.
28922
28923         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
28924         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
28926         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
28927         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28928         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
28929         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
28930         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28931         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
28932         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
28933         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28934
28935         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
28936         last change; it caused a compilation error when cross-compiling to
28937         Cygwin.
28938
28939 2007-01-18  Jim Meyering  <jim@meyering.net>
28940
28941         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
28942         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
28943         than the race-prone "test -d sys || mkdir sys".
28944         (configure.ac): Use AC_PROG_MKDIR_P.
28945         * modules/sys_select: Likewise.
28946         * modules/sys_socket: Likewise.
28947         * modules/sys_time: Likewise.
28948
28949 2007-01-18  Eric Blake  <ebb9@byu.net>
28950
28951         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
28952         replace gettimeofday.
28953         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
28954         name, to avoid infinite recursion.
28955
28956 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
28957
28958         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
28959         module sys_time.
28960         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
28961         assume timespec.h defines struct timeval.
28962         * lib/settime.c: Likewise.
28963         * lib/utimens.c: Likewise.
28964         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
28965         since we now assume the gettimeofday module.
28966         * lib/tempname.c (__gen_tempname): Likewise.
28967         * lib/gettimeofday.h: Remove.
28968         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
28969         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
28970         Include <time.h>, for 'time()'.
28971         (localtime_buffer_addr): Also use this workaround if
28972         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
28973         to simplify the uses.  All uses changed.
28974         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
28975         that #undef is inside {}, and 'const' follows type name consistently.
28976         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
28977         (gettimeofday): Do not use the maximum possible value for
28978         tv->tv_usec, since that might break usages other than ls.c.
28979         Instead, we'll leave ls.c alone.  This undoes today's patch
28980         by Bruno.  Add a compile-time warning for 1s-clock resolution;
28981         we've never observed the problem but might as well keep the
28982         canary.
28983         * lib/nanosleep.c: Include timespec.h first, for interface check.
28984         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
28985         now assume the sys_time module.
28986         * lib/tempname.c: Likewise.
28987         * lib/timespec.h: Likewise.
28988         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
28989         needed.
28990         * lib/strftime.c: Likewise.
28991         * lib/timespec.h: Likewise.
28992         * lib/posixtm.c: Include posixtm.h first, for interface check.
28993         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
28994         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
28995         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
28996         * lib/sys_time_.h: New file.
28997         * lib/timespec.h (struct timespec): Use long int, not long.
28998         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28999         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
29000         Remove obsolescent call to AC_HEADER_TIME.
29001         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29003         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29004         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
29005         Likewise.
29006         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
29007         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
29008         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
29009         into the sys_time module.  Check for gettimeofday just once.
29010         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
29011         for gettimeofday signature to just check the signature.  Merely
29012         compile it, since linking doesn't test signature.  Improve test for
29013         whether gettimeofday.o is actually needed.
29014         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
29015         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
29016         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
29017         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29018         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
29019         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
29020         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
29021         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
29022         than worrying about sys/time.h.
29023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29024         Don't bother worrying about TIME_WITH_SYS_TIME.
29025         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29026         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
29027         * m4/sys_time_h.m4: New file.
29028         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
29029         Don't include sys/time.h.  Return from main rather than exiting.
29030         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
29031         all uses changed.
29032         * modules/gethrxtime (Depends-on): Add sys_time.
29033         * modules/gettime (Depends-on): Likewise.
29034         * modules/gettimeofday (Depends-on): Likewise.
29035         * modules/nanosleep (Depends-on): Likewise.
29036         * modules/settime (Depends-on): Likewise.
29037         * modules/tempname (Depends-on): Likewise.
29038         * modules/utimens (Depends-on): Likewise.
29039         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
29040         (Include:) Change back to <sys/time.h>.
29041         (Maintainer:) Add self.
29042         * modules/sys_time: New file.
29043         * modules/tempname (Depends-on): Add gettimeofday.
29044         * tests/test-gettimeofday.c: Include <sys/time.h>
29045         rather than gettimeofday.h.
29046
29047 2007-01-17  Bruno Haible  <bruno@clisp.org>
29048
29049         * gnulib-tool (func_get_license): Revert last patch. Instead, let
29050         the license default to GPL.
29051         (func_create_testdir): Don't complain if a module is LGPL and its
29052         tests module depends on GPLed modules.
29053
29054 2007-01-17  Bruno Haible  <bruno@clisp.org>
29055
29056         * lib/gettimeofday.c (gettimeofday): Add code for the case
29057         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
29058         maximum possible value for tv->tv_usec, rather than the minimum one.
29059
29060 2005-10-08  Martin Lambers  <marlam@marlam.de>
29061 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29062 2007-01-16  Bruno Haible  <bruno@clisp.org>
29063
29064         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
29065         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
29066         gl_FUNC_GETTIMEOFDAY.
29067         (Include): Add gettimeofday.h.
29068         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
29069         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
29070         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
29071         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
29072         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
29073         * lib/gettimeofday.h: New file.
29074         * lib/gettimeofday.c: Include <sys/timeb.h>.
29075         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
29076         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29077         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
29078         fall back on time().
29079
29080         * tests/test-gettimeofday.c: New file.
29081         * modules/gettimeofday-tests: New file.
29082
29083 2007-01-16  Eric Blake  <ebb9@byu.net>
29084
29085         * modules/fnmatch (Depends-on): Depend on wchar.
29086         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
29087         * m4/fnmatch.m4: Likewise.
29088         * modules/mbchar (Makefile.am): Assume <wchar.h>.
29089         * m4/mbchar.m4: Likewise.
29090         * modules/mbswidth (Depends-on): Depend on wchar.
29091         * lib/mbswidth.c: Assume <wchar.h>.
29092         * m4/mbswidth.m4: Likewise.
29093         * modules/quotearg (Depends-on): Depend on wchar.
29094         * lib/quotearg.c: Assume <wchar.h>.
29095         * m4/quotearg.m4: Likewise.
29096         * modules/regex (Depends-on): Depend on wchar.
29097         * lib/regex_internal.h: Assume <wchar.h>.
29098         * m4/regex.m4: Likewise.
29099         * modules/stdint (Depends-on): Depend on wchar.
29100         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
29101         * m4/stdint.m4: Likewise.
29102         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
29103         * modules/strftime (Depends-on): Depend on wchar.
29104         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
29105         * modules/strtol (Depends-on): Depend on wchar.
29106         * lib/strtol.c: Assume <wchar.h>.
29107         * modules/wcwidth (Depends-on): Depend on wchar.
29108         * lib/wcwidth.h: Assume <wchar.h>.
29109         * m4/wcwidth.m4: Likewise.
29110
29111 2007-01-16  Bruno Haible  <bruno@clisp.org>
29112
29113         * modules/csharpexec-script: New, created from...
29114         * modules/csharpexec: ... this.
29115
29116 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
29117
29118         * modules/javaexec-script: New, created from...
29119         * modules/javaexec: ... this.
29120
29121 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29122
29123         * modules/poll (Dependencies): Add sys_select.
29124
29125 2007-01-15  Jim Meyering  <jim@meyering.net>
29126
29127         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
29128         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
29129         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
29130         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
29131
29132 2007-01-15  Bruno Haible  <bruno@clisp.org>
29133
29134         * modules/striconveh: New file.
29135         * lib/striconveh.h: New file.
29136         * lib/striconveh.c: New file.
29137         * MODULES.html.sh (Internationalization functions): Add striconveh.
29138
29139         * modules/striconveh-tests: New file.
29140         * tests/test-striconveh.c: New file.
29141
29142 2007-01-15  Bruno Haible  <bruno@clisp.org>
29143
29144         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
29145         not from GNU libiconv or GNU libc.
29146
29147 2007-01-15  Bruno Haible  <bruno@clisp.org>
29148
29149         * doc/gnulib-intro.texi (Copyright): Explain the different license
29150         terms for module descriptions, autoconf macros, tests, documentation.
29151
29152 2007-01-14  Bruno Haible  <bruno@clisp.org>
29153
29154         * modules/striconv-tests: New file.
29155         * tests/test-striconv.c: New file.
29156
29157 2007-01-14  Bruno Haible  <bruno@clisp.org>
29158
29159         * modules/iconv-tests: New file.
29160         * tests/test-iconv.c: New file.
29161
29162 2007-01-14  Bruno Haible  <bruno@clisp.org>
29163
29164         * gnulib-tool (func_get_license): For test modules, use the license of
29165         the main module.
29166
29167 2007-01-14  Bruno Haible  <bruno@clisp.org>
29168
29169         * modules/iconv (Include): Clarify that <iconv.h> can only be included
29170         if iconv is found to exist.
29171
29172 2007-01-14  Bruno Haible  <bruno@clisp.org>
29173
29174         * modules/c-ctype-tests: New file.
29175         * tests/test-c-ctype.c: New file.
29176
29177 2007-01-14  Bruno Haible  <bruno@clisp.org>
29178
29179         * modules/binary-io-tests: New file.
29180         * tests/test-binary-io.sh: New file.
29181         * tests/test-binary-io.c: New file.
29182
29183 2007-01-14  Bruno Haible  <bruno@clisp.org>
29184
29185         * modules/array-oset-tests: New file.
29186         * tests/test-array_oset.c: New file.
29187
29188 2007-01-14  Bruno Haible  <bruno@clisp.org>
29189
29190         * modules/array-list-tests: New file.
29191         * tests/test-array_list.c: New file.
29192
29193 2007-01-14  Bruno Haible  <bruno@clisp.org>
29194
29195         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
29196         and make.
29197         Reported by Simon Josefsson in
29198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
29199
29200 2007-01-14  Bruno Haible  <bruno@clisp.org>
29201
29202         * modules/allocsa-tests: New file.
29203         * tests/test-allocsa.c: New file.
29204
29205 2007-01-14  Bruno Haible  <bruno@clisp.org>
29206
29207         * modules/fchdir (Depends-on): Add absolute-header.
29208         * modules/unistd (Depends-on): Likewise.
29209
29210 2006-12-30  Bruno Haible  <bruno@clisp.org>
29211
29212         * modules/fchdir: New file.
29213         * modules/unistd (Files): Add lib/unistd_.h.
29214         (Makefile.am): Generate unistd.h from unistd_.h.
29215         * lib/fchdir.c: New file.
29216         * lib/dirent_.h: New file.
29217         * lib/unistd_.h: New file.
29218         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
29219         * m4/fchdir.m4: New file.
29220         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
29221         (gl_HEADER_UNISTD): Invoke it.
29222         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
29223         function.
29224         * lib/backupfile.c (opendir, closedir): Undefine.
29225         * lib/chown.c (open, close): Undefine.
29226         * lib/clean-temp.c (open, close): Undefine.
29227         * lib/copy-file.c (open, close): Undefine.
29228         * lib/execute.c (open, close): Undefine.
29229         * lib/fsusage.c (open, close): Undefine.
29230         * lib/gc-gnulib.c (open, close): Undefine.
29231         * lib/getcwd.c (opendir, closedir): Undefine.
29232         * lib/glob.c (opendir, closedir): Undefine.
29233         * lib/javacomp.c (open, close): Undefine.
29234         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
29235         * lib/openat-proc.c (open, close): Undefine.
29236         * lib/pagealign_alloc.c (open, close): Undefine.
29237         * lib/pipe.c (open, close): Undefine.
29238         * lib/progreloc.c (open, close): Undefine.
29239         * lib/savedir.c (opendir, closedir): Undefine.
29240         * lib/utime.c (open, close): Undefine.
29241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
29242
29243 2007-01-10  Bruno Haible  <bruno@clisp.org>
29244
29245         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
29246
29247 2007-01-12  Eric Blake  <ebb9@byu.net>
29248
29249         Provide a robust <wchar.h>.  Further simplifications are now
29250         possible in other modules, but not included here.
29251         * modules/wchar: New module.
29252         * m4/wchar.m4: New file.
29253         * lib/wchar_.h: Likewise.
29254         * modules/mbchar (Depends-on): Depend on wchar, as the first use
29255         of the new module.
29256         * MODULES.html.sh (Extended multibyte and wide character utilities):
29257         New section.
29258
29259 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29260
29261         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
29262         to a reasonable default for memory allocation.
29263         (xreadlink): Don't allocate a huge buffer, to work around a buggy
29264         file system that reports garbage st_size values for symlinks.
29265         Problem reported by Liyang Hu.
29266
29267 2007-01-11  Simon Josefsson  <simon@josefsson.org>
29268
29269         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
29270         Emacs .#* auto-save files).
29271
29272 2007-01-11  Bruno Haible  <bruno@clisp.org>
29273
29274         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
29275         directory.
29276
29277 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
29278
29279         Use @...@ consistently in lib/wctype_.h.
29280         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
29281         on it being set to 1 or 0.
29282         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
29283         go back to AC_SUBSTing it.
29284         * modules/wctype (Makefile.am): Undo previous change.
29285
29286 2007-01-10  Eric Blake  <ebb9@byu.net>
29287
29288         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
29289         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
29290         * modules/wctype (Makefile.am): Likewise.
29291         Reported by Chris McGuire.
29292
29293 2007-01-10  Jim Meyering  <jim@meyering.net>
29294
29295         fts.c: a small readability/maintainability improvement
29296         * lib/fts.c (fts_read): Make this code slightly more readable and
29297         maintainable by hoisting the "sp->fts_cur = p" assignments to
29298         immediately follow the statements that set P.  Derived from
29299         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
29300
29301 2007-01-10  Eric Blake  <ebb9@byu.net>
29302
29303         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
29304         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
29305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29306         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29307         Reported by Chris McGuire.
29308
29309 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29310
29311         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
29312         in sed script.
29313
29314 2007-01-09  Bruno Haible  <bruno@clisp.org>
29315
29316         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
29317         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
29318         variables.
29319         (func_module): Use them.
29320
29321 2007-01-09  Bruno Haible  <bruno@clisp.org>
29322
29323         * modules/unistr/base: New file.
29324         * lib/unistr.h: New file.
29325
29326         * modules/unistr/u8-to-u16: New file.
29327         * lib/unistr/u8-to-u16.c: New file.
29328
29329         * modules/unistr/u8-to-u32: New file.
29330         * lib/unistr/u8-to-u32.c: New file.
29331
29332         * modules/unistr/u16-to-u8: New file.
29333         * lib/unistr/u16-to-u8.c: New file.
29334
29335         * modules/unistr/u16-to-u32: New file.
29336         * lib/unistr/u16-to-u32.c: New file.
29337
29338         * modules/unistr/u32-to-u8: New file.
29339         * lib/unistr/u32-to-u8.c: New file.
29340
29341         * modules/unistr/u32-to-u16: New file.
29342         * lib/unistr/u32-to-u16.c: New file.
29343
29344         * modules/unistr/u8-check: New file.
29345         * modules/unistr/u16-check: New file.
29346         * modules/unistr/u32-check: New file.
29347         * lib/unistr/u8-check.c: New file.
29348         * lib/unistr/u16-check.c: New file.
29349         * lib/unistr/u32-check.c: New file.
29350
29351         * modules/unistr/u8-chr: New file.
29352         * modules/unistr/u16-chr: New file.
29353         * modules/unistr/u32-chr: New file.
29354         * lib/unistr/u8-chr.c: New file.
29355         * lib/unistr/u16-chr.c: New file.
29356         * lib/unistr/u32-chr.c: New file.
29357
29358         * modules/unistr/u8-cmp: New file.
29359         * modules/unistr/u16-cmp: New file.
29360         * modules/unistr/u32-cmp: New file.
29361         * lib/unistr/u8-cmp.c: New file.
29362         * lib/unistr/u16-cmp.c: New file.
29363         * lib/unistr/u32-cmp.c: New file.
29364
29365         * modules/unistr/u8-cpy: New file.
29366         * modules/unistr/u16-cpy: New file.
29367         * modules/unistr/u32-cpy: New file.
29368         * lib/unistr/u8-cpy.c: New file.
29369         * lib/unistr/u16-cpy.c: New file.
29370         * lib/unistr/u32-cpy.c: New file.
29371         * lib/unistr/u-cpy.h: New file.
29372
29373         * modules/unistr/u8-cpy-alloc: New file.
29374         * modules/unistr/u16-cpy-alloc: New file.
29375         * modules/unistr/u32-cpy-alloc: New file.
29376         * lib/unistr/u8-cpy-alloc.c: New file.
29377         * lib/unistr/u16-cpy-alloc.c: New file.
29378         * lib/unistr/u32-cpy-alloc.c: New file.
29379         * lib/unistr/u-cpy-alloc.h: New file.
29380
29381         * modules/unistr/u8-endswith: New file.
29382         * modules/unistr/u16-endswith: New file.
29383         * modules/unistr/u32-endswith: New file.
29384         * lib/unistr/u8-endswith.c: New file.
29385         * lib/unistr/u16-endswith.c: New file.
29386         * lib/unistr/u32-endswith.c: New file.
29387         * lib/unistr/u-endswith.h: New file.
29388
29389         * modules/unistr/u8-mblen: New file.
29390         * modules/unistr/u16-mblen: New file.
29391         * modules/unistr/u32-mblen: New file.
29392         * lib/unistr/u8-mblen.c: New file.
29393         * lib/unistr/u16-mblen.c: New file.
29394         * lib/unistr/u32-mblen.c: New file.
29395
29396         * modules/unistr/u8-mbtouc: New file.
29397         * modules/unistr/u16-mbtouc: New file.
29398         * modules/unistr/u32-mbtouc: New file.
29399         * lib/unistr/u8-mbtouc.c: New file.
29400         * lib/unistr/u16-mbtouc.c: New file.
29401         * lib/unistr/u32-mbtouc.c: New file.
29402
29403         * modules/unistr/u8-mbtouc-safe: New file.
29404         * modules/unistr/u16-mbtouc-safe: New file.
29405         * modules/unistr/u32-mbtouc-safe: New file.
29406         * lib/unistr/u8-mbtouc-safe.c: New file.
29407         * lib/unistr/u16-mbtouc-safe.c: New file.
29408         * lib/unistr/u32-mbtouc-safe.c: New file.
29409
29410         * modules/unistr/u8-move: New file.
29411         * modules/unistr/u16-move: New file.
29412         * modules/unistr/u32-move: New file.
29413         * lib/unistr/u8-move.c: New file.
29414         * lib/unistr/u16-move.c: New file.
29415         * lib/unistr/u32-move.c: New file.
29416         * lib/unistr/u-move.h: New file.
29417
29418         * modules/unistr/u8-next: New file.
29419         * modules/unistr/u16-next: New file.
29420         * modules/unistr/u32-next: New file.
29421         * lib/unistr/u8-next.c: New file.
29422         * lib/unistr/u16-next.c: New file.
29423         * lib/unistr/u32-next.c: New file.
29424
29425         * modules/unistr/u8-prev: New file.
29426         * modules/unistr/u16-prev: New file.
29427         * modules/unistr/u32-prev: New file.
29428         * lib/unistr/u8-prev.c: New file.
29429         * lib/unistr/u16-prev.c: New file.
29430         * lib/unistr/u32-prev.c: New file.
29431
29432         * modules/unistr/u8-set: New file.
29433         * modules/unistr/u16-set: New file.
29434         * modules/unistr/u32-set: New file.
29435         * lib/unistr/u8-set.c: New file.
29436         * lib/unistr/u16-set.c: New file.
29437         * lib/unistr/u32-set.c: New file.
29438         * lib/unistr/u-set.h: New file.
29439
29440         * modules/unistr/u8-startswith: New file.
29441         * modules/unistr/u16-startswith: New file.
29442         * modules/unistr/u32-startswith: New file.
29443         * lib/unistr/u8-startswith.c: New file.
29444         * lib/unistr/u16-startswith.c: New file.
29445         * lib/unistr/u32-startswith.c: New file.
29446         * lib/unistr/u-startswith.h: New file.
29447
29448         * modules/unistr/u8-stpcpy: New file.
29449         * modules/unistr/u16-stpcpy: New file.
29450         * modules/unistr/u32-stpcpy: New file.
29451         * lib/unistr/u8-stpcpy.c: New file.
29452         * lib/unistr/u16-stpcpy.c: New file.
29453         * lib/unistr/u32-stpcpy.c: New file.
29454         * lib/unistr/u-stpcpy.h: New file.
29455
29456         * modules/unistr/u8-stpncpy: New file.
29457         * modules/unistr/u16-stpncpy: New file.
29458         * modules/unistr/u32-stpncpy: New file.
29459         * lib/unistr/u8-stpncpy.c: New file.
29460         * lib/unistr/u16-stpncpy.c: New file.
29461         * lib/unistr/u32-stpncpy.c: New file.
29462         * lib/unistr/u-stpncpy.h: New file.
29463
29464         * modules/unistr/u8-strcat: New file.
29465         * modules/unistr/u16-strcat: New file.
29466         * modules/unistr/u32-strcat: New file.
29467         * lib/unistr/u8-strcat.c: New file.
29468         * lib/unistr/u16-strcat.c: New file.
29469         * lib/unistr/u32-strcat.c: New file.
29470         * lib/unistr/u-strcat.h: New file.
29471
29472         * modules/unistr/u8-strchr: New file.
29473         * modules/unistr/u16-strchr: New file.
29474         * modules/unistr/u32-strchr: New file.
29475         * lib/unistr/u8-strchr.c: New file.
29476         * lib/unistr/u16-strchr.c: New file.
29477         * lib/unistr/u32-strchr.c: New file.
29478
29479         * modules/unistr/u8-strcmp: New file.
29480         * modules/unistr/u16-strcmp: New file.
29481         * modules/unistr/u32-strcmp: New file.
29482         * lib/unistr/u8-strcmp.c: New file.
29483         * lib/unistr/u16-strcmp.c: New file.
29484         * lib/unistr/u32-strcmp.c: New file.
29485
29486         * modules/unistr/u8-strcpy: New file.
29487         * modules/unistr/u16-strcpy: New file.
29488         * modules/unistr/u32-strcpy: New file.
29489         * lib/unistr/u8-strcpy.c: New file.
29490         * lib/unistr/u16-strcpy.c: New file.
29491         * lib/unistr/u32-strcpy.c: New file.
29492         * lib/unistr/u-strcpy.h: New file.
29493
29494         * modules/unistr/u8-strcspn: New file.
29495         * modules/unistr/u16-strcspn: New file.
29496         * modules/unistr/u32-strcspn: New file.
29497         * lib/unistr/u8-strcspn.c: New file.
29498         * lib/unistr/u16-strcspn.c: New file.
29499         * lib/unistr/u32-strcspn.c: New file.
29500         * lib/unistr/u-strcspn.h: New file.
29501
29502         * modules/unistr/u8-strdup: New file.
29503         * modules/unistr/u16-strdup: New file.
29504         * modules/unistr/u32-strdup: New file.
29505         * lib/unistr/u8-strdup.c: New file.
29506         * lib/unistr/u16-strdup.c: New file.
29507         * lib/unistr/u32-strdup.c: New file.
29508         * lib/unistr/u-strdup.h: New file.
29509
29510         * modules/unistr/u8-strlen: New file.
29511         * modules/unistr/u16-strlen: New file.
29512         * modules/unistr/u32-strlen: New file.
29513         * lib/unistr/u8-strlen.c: New file.
29514         * lib/unistr/u16-strlen.c: New file.
29515         * lib/unistr/u32-strlen.c: New file.
29516         * lib/unistr/u-strlen.h: New file.
29517
29518         * modules/unistr/u8-strmblen: New file.
29519         * modules/unistr/u16-strmblen: New file.
29520         * modules/unistr/u32-strmblen: New file.
29521         * lib/unistr/u8-strmblen.c: New file.
29522         * lib/unistr/u16-strmblen.c: New file.
29523         * lib/unistr/u32-strmblen.c: New file.
29524
29525         * modules/unistr/u8-strmbtouc: New file.
29526         * modules/unistr/u16-strmbtouc: New file.
29527         * modules/unistr/u32-strmbtouc: New file.
29528         * lib/unistr/u8-strmbtouc.c: New file.
29529         * lib/unistr/u16-strmbtouc.c: New file.
29530         * lib/unistr/u32-strmbtouc.c: New file.
29531
29532         * modules/unistr/u8-strncat: New file.
29533         * modules/unistr/u16-strncat: New file.
29534         * modules/unistr/u32-strncat: New file.
29535         * lib/unistr/u8-strncat.c: New file.
29536         * lib/unistr/u16-strncat.c: New file.
29537         * lib/unistr/u32-strncat.c: New file.
29538         * lib/unistr/u-strncat.h: New file.
29539
29540         * modules/unistr/u8-strncmp: New file.
29541         * modules/unistr/u16-strncmp: New file.
29542         * modules/unistr/u32-strncmp: New file.
29543         * lib/unistr/u8-strncmp.c: New file.
29544         * lib/unistr/u16-strncmp.c: New file.
29545         * lib/unistr/u32-strncmp.c: New file.
29546
29547         * modules/unistr/u8-strncpy: New file.
29548         * modules/unistr/u16-strncpy: New file.
29549         * modules/unistr/u32-strncpy: New file.
29550         * lib/unistr/u8-strncpy.c: New file.
29551         * lib/unistr/u16-strncpy.c: New file.
29552         * lib/unistr/u32-strncpy.c: New file.
29553         * lib/unistr/u-strncpy.h: New file.
29554
29555         * modules/unistr/u8-strnlen: New file.
29556         * modules/unistr/u16-strnlen: New file.
29557         * modules/unistr/u32-strnlen: New file.
29558         * lib/unistr/u8-strnlen.c: New file.
29559         * lib/unistr/u16-strnlen.c: New file.
29560         * lib/unistr/u32-strnlen.c: New file.
29561         * lib/unistr/u-strnlen.h: New file.
29562
29563         * modules/unistr/u8-strpbrk: New file.
29564         * modules/unistr/u16-strpbrk: New file.
29565         * modules/unistr/u32-strpbrk: New file.
29566         * lib/unistr/u8-strpbrk.c: New file.
29567         * lib/unistr/u16-strpbrk.c: New file.
29568         * lib/unistr/u32-strpbrk.c: New file.
29569         * lib/unistr/u-strpbrk.h: New file.
29570
29571         * modules/unistr/u8-strrchr: New file.
29572         * modules/unistr/u16-strrchr: New file.
29573         * modules/unistr/u32-strrchr: New file.
29574         * lib/unistr/u8-strrchr.c: New file.
29575         * lib/unistr/u16-strrchr.c: New file.
29576         * lib/unistr/u32-strrchr.c: New file.
29577
29578         * modules/unistr/u8-strspn: New file.
29579         * modules/unistr/u16-strspn: New file.
29580         * modules/unistr/u32-strspn: New file.
29581         * lib/unistr/u8-strspn.c: New file.
29582         * lib/unistr/u16-strspn.c: New file.
29583         * lib/unistr/u32-strspn.c: New file.
29584         * lib/unistr/u-strspn.h: New file.
29585
29586         * modules/unistr/u8-strstr: New file.
29587         * modules/unistr/u16-strstr: New file.
29588         * modules/unistr/u32-strstr: New file.
29589         * lib/unistr/u8-strstr.c: New file.
29590         * lib/unistr/u16-strstr.c: New file.
29591         * lib/unistr/u32-strstr.c: New file.
29592         * lib/unistr/u-strstr.h: New file.
29593
29594         * modules/unistr/u8-strtok: New file.
29595         * modules/unistr/u16-strtok: New file.
29596         * modules/unistr/u32-strtok: New file.
29597         * lib/unistr/u8-strtok.c: New file.
29598         * lib/unistr/u16-strtok.c: New file.
29599         * lib/unistr/u32-strtok.c: New file.
29600         * lib/unistr/u-strtok.h: New file.
29601
29602         * modules/unistr/u8-uctomb: New file.
29603         * modules/unistr/u16-uctomb: New file.
29604         * modules/unistr/u32-uctomb: New file.
29605         * lib/unistr/u8-uctomb.c: New file.
29606         * lib/unistr/u16-uctomb.c: New file.
29607         * lib/unistr/u32-uctomb.c: New file.
29608
29609         * MODULES.html.sh (Unicode string functions): Add the new modules.
29610
29611 2007-01-08  Bruno Haible  <bruno@clisp.org>
29612
29613         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
29614         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
29615         subdirectories.
29616
29617 2007-01-08  Karl Berry  <karl@gnu.org>
29618
29619         * doc/error.texi: mention that main() fns must set program_name
29620         when progname is used.
29621
29622 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
29623
29624         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
29625         WCTYPE_H is empty, for the benefit of builds from non-distclean
29626         directories.  Problem reported by Eric Blake in
29627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
29628
29629 2007-01-08  Bruno Haible  <bruno@clisp.org>
29630
29631         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
29632         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
29633         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
29634         PROVIDE_CANONICALIZE_FILENAME_MODE.
29635         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
29636
29637 2007-01-08  Bruno Haible  <bruno@clisp.org>
29638
29639         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
29640         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
29641         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
29642         * lib/fts.c: Likewise.
29643         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
29644
29645 2006-12-25  Bruno Haible  <bruno@clisp.org>
29646
29647         * modules/utf8-ucs4-safe: New file.
29648         * lib/utf8-ucs4-safe.h: New file.
29649         * lib/unistr/utf8-ucs4-safe.c: New file.
29650
29651         * modules/utf16-ucs4-safe: New file.
29652         * lib/utf16-ucs4-safe.h: New file.
29653         * lib/unistr/utf16-ucs4-safe.c: New file.
29654
29655         * MODULES.html.sh (Unicode string functions): Add the new modules.
29656
29657 2007-01-08  Bruno Haible  <bruno@clisp.org>
29658
29659         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
29660         (Depends-on): Add unitypes.
29661         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29662         (u8_mbtouc_aux): Move out to separate file.
29663         (u8_mbtouc): Use ucs4_t, uint8_t types.
29664         * lib/unistr/utf8-ucs4.c: New file.
29665
29666         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
29667         (Depends-on): Add unitypes.
29668         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29669         (u16_mbtouc_aux): Move out to separate file.
29670         (u16_mbtouc): Use ucs4_t, uint16_t types.
29671         * lib/unistr/utf16-ucs4.c: New file.
29672
29673         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
29674         (Depends-on): Add unitypes.
29675         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
29676         (u8_uctomb_aux): Move out to separate file.
29677         (u8_uctomb): Use ucs4_t, uint8_t types.
29678         * lib/unistr/ucs4-utf8.c: New file.
29679
29680         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
29681         (Depends-on): Add unitypes.
29682         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
29683         (u16_uctomb_aux): Move out to separate file.
29684         (u16_uctomb): Use ucs4_t, uint16_t types.
29685         * lib/unistr/ucs4-utf16.c: New file.
29686
29687 2006-12-25  Bruno Haible  <bruno@clisp.org>
29688
29689         * modules/unitypes: New file.
29690         * lib/unitypes.h: New file.
29691         * MODULES.html.sh (func_all_modules): New section "Unicode string
29692         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
29693         this section. Add unitypes.
29694
29695 2007-01-08  Bruno Haible  <bruno@clisp.org>
29696
29697         Avoid variable names that conflict with those from libtool.
29698         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
29699         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
29700         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
29701         library_names_spec to acl_library_names_spec, hardcode_* to
29702         acl_hardcode_*.
29703         Reported by Ralf Wildenhues.
29704
29705 2007-01-08  Bruno Haible  <bruno@clisp.org>
29706
29707         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
29708         definition.
29709         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
29710         definition.
29711         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
29712         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
29713         definition.
29714         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
29715         definition.
29716         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
29717         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
29718         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
29719         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
29720         definition.
29721         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
29722         definition.
29723         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
29724         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
29725         GC_USE_<algorithm>.
29726         * lib/gc-libgcrypt.c: Likewise.
29727         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
29728         * modules/gc-arctwo (configure.ac): Likewise.
29729         * modules/gc-des (configure.ac): Likewise.
29730         * modules/gc-hmac-md5 (configure.ac): Likewise.
29731         * modules/gc-hmac-sha1 (configure.ac): Likewise.
29732         * modules/gc-md2 (configure.ac): Likewise.
29733         * modules/gc-md4 (configure.ac): Likewise.
29734         * modules/gc-md5 (configure.ac): Likewise.
29735         * modules/gc-random (configure.ac): Likewise.
29736         * modules/gc-rijndael (configure.ac): Likewise.
29737         * modules/gc-sha1 (configure.ac): Likewise.
29738
29739 2007-01-08  Bruno Haible  <bruno@clisp.org>
29740
29741         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
29742         macro definition.
29743         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
29744         definition.
29745         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
29746         definition.
29747         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
29748         * modules/fcntl-safer (configure.ac): Likewise.
29749         * modules/fopen-safer (configure.ac): Likewise.
29750         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
29751         GNULIB_FWRITEERROR macro definition.
29752
29753 2007-01-08  Bruno Haible  <bruno@clisp.org>
29754
29755         * m4/gnulib-common.m4: New file.
29756         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
29757         (func_get_filelist): Add m4/gnulib-common.m4.
29758
29759 2007-01-08  Bruno Haible  <bruno@clisp.org>
29760
29761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
29762         command.
29763
29764 2007-01-08  Jim Meyering  <jim@meyering.net>
29765
29766         Use a more robust test for a "can't happen" condition.
29767         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
29768         narrowed the st_size value.  Presuming the "can't happen" condition
29769         is true, that narrowing could conceivably convert an invalid st_size
29770         value into a valid one.  Instead, use a change based on Matthew
29771         Woehlke's original patch.
29772
29773         Slight readability improvement: use an assert-like macro
29774         in place of literal "abort ()" uses.
29775         * lib/fts.c (fts_assert): Define.
29776         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
29777         Use this macro instead of a bare 'abort'.
29778
29779 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
29780
29781         Don't worry about using IRIX 5.3's wctype.h broken definitions;
29782         simply work around them.
29783         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
29784         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
29785         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
29786         declaring.
29787         Don't bother to define as macros, since the standard doesn't require it.
29788         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
29789         longer worry about IRIX 5.3.
29790         (HAVE_WCTYPE_CTMP_BUG): Remove.
29791
29792 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29793
29794         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
29795         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
29796         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29797         Problems reported by Georg Schwarz for IRIX 5.3.
29798
29799         * gnulib-tool (autoconf_minversion): Take the maximum version number
29800         found, not the minimum.  Problem reported by James Youngman.
29801
29802 2007-01-03  Karl Berry  <karl@gnu.org>
29803
29804         * doc/error.texi: new file, explaining interaction with progname.
29805         * doc/gnulib.texi: include it.  Update copyright.
29806
29807 2007-01-03  Simon Josefsson  <simon@josefsson.org>
29808
29809         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
29810         AC_CANONICAL_HOST, to improve autobuild outputs.
29811
29812 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
29813             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29814
29815         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
29816         sockets, server sockets, and other file descriptors.  Count errors
29817         to compute the return value.  Reorder the code a bit to be easier
29818         to follow.  Don't set event bits that were not requested (except
29819         POLLERR and POLLHUP).
29820
29821 2007-01-01  Bruno Haible  <bruno@clisp.org>
29822
29823         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
29824
29825 2007-01-03  Jim Meyering  <jim@meyering.net>
29826
29827         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
29828
29829 2007-01-02  Bruno Haible  <bruno@clisp.org>
29830
29831         * modules/settime (Include): Require timespec.h.
29832         * modules/nanosleep (Include): Likewise.
29833
29834 2007-01-01  Bruno Haible  <bruno@clisp.org>
29835
29836         * gnulib-tool (func_emit_copyright_notice): Bump year.
29837         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
29838
29839 2007-01-01  Bruno Haible  <bruno@clisp.org>
29840
29841         Improve support for OpenBSD.
29842         * build-aux/config.rpath (libname_spec): Export.
29843         (library_names_spec): New variable. Export.
29844         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
29845         library_names_spec from the config.rpath output. Locate shared library
29846         through the name pattern in library_names_spec.
29847
29848 2007-01-01  Eric Blake  <ebb9@byu.net>
29849
29850         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
29851
29852 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
29853
29854         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
29855         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
29856         assume the C locale, and avoid an "eval" that could cause trouble.
29857         Problem with SORT reported by Bob Proulx.
29858
29859         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
29860         Define.  Trivial patch from Henning Nielsen Lund, originally
29861         sent to bug-grep@gnu.org today.
29862
29863 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
29864
29865         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
29866         struct stat.  Problem reported by Henning Nielsen Lund.
29867         * lib/acl.c: Include acl.h first, to check interface.  Don't
29868         bother to include sys/types.h and sys/stat.h again.
29869
29870 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29871
29872         Import the following change from libc; problem reported by
29873         Sven Verdoolaege.
29874
29875         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
29876
29877         [BZ #1373]
29878         * lib/argp.h: Remove __NTH for __argp_usage inline function.
29879
29880 2006-12-28  Jim Meyering  <jim@meyering.net>
29881
29882         * build-aux/announce-gen: Do not assume that the package
29883         builds any of tar.gz, tar.bz2, and .xdelta files.
29884         Suggestion from Simon Josefsson.
29885
29886 2006-12-28  Simon Josefsson  <simon@josefsson.org>
29887
29888         * modules/announce-gen: New file.
29889
29890 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
29891
29892         * lib/mbchar.h: Just include <wctype.h>; the wctype module
29893         handles its gotchas now.
29894         * lib/mbswidth.c: Likewise.
29895         * lib/wcwidth.h: Likewise.
29896         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
29897         and iswcntrl; the wctype module does this stuff now.
29898         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29900         * modules/mbchar (Depends-on): Add wctype.
29901         * modules/mbswidth (Depends-on): Likewise.
29902         * modules/wcwidth (Depends-on): Likewise.
29903
29904 2006-12-27  Eric Blake  <ebb9@byu.net>
29905
29906         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
29907         module uses more than what <wctype.h> is required to provide.
29908
29909 2006-12-26  Eric Blake  <ebb9@byu.net>
29910
29911         * gnulib-tool (sed_extract_prog): Avoid space-tab.
29912
29913 2006-12-26  Eric Blake  <ebb9@byu.net>
29914
29915         * modules/absolute-header: New module.
29916         * modules/fcntl (Depends-on): Depend on it.
29917         * modules/inttypes (Depends-on): Likewise.
29918         * modules/stdint (Depends-on): Likewise.
29919         * modules/sys_stat (Depends-on): Likewise.
29920         * modules/wctype (Depends-on): Likewise.
29921         * MODULES.html.sh (Support for building libraries and
29922         executables): Document it.
29923
29924 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
29925
29926         * gnulib-tool (SED): Remove, undoing previous change.
29927         The problem was that it broke coreutils on Solaris, because
29928         "sed --posix" leaked into a makefile.
29929         (sed): New alias, if 'alias' and GNU sed.
29930
29931 2006-12-24  Jim Meyering  <jim@meyering.net>
29932
29933         Work around an fchownat bug in glibc-2.4:
29934         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
29935         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
29936         in spite of the -P option.
29937         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
29938         New macros.
29939         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
29940         * modules/openat (Files): Add lib/fchownat.c.
29941         * lib/openat.c (fchownat): Don't define here.  Move to...
29942         * lib/fchownat.c: ...this new file.
29943
29944 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29945
29946         Fix bug reported by Bruno Haible in
29947         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
29948         where quotearg.c didn't compile on Mac OS X 10.2 because it
29949         lacks <wchar.h> and wint_t.
29950         * lib/wctype_.h (__wctype_wint_t): New type.
29951         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
29952         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
29953         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
29954         Arg is now of type __wctype_wint_t, not wint_t.
29955         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
29956         substitute HAVE_WINT_T.
29957         * modules/wctype (Files): Add m4/wint_t.m4.
29958         (wctype.h): Substitute HAVE_WINT_T.
29959
29960 2006-12-23  Bruno Haible  <bruno@clisp.org>
29961
29962         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
29963
29964 2006-12-23  Bruno Haible  <bruno@clisp.org>
29965
29966         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
29967         S_ISLNK.
29968         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
29969         mingw.
29970
29971 2006-12-22  Bruno Haible  <bruno@clisp.org>
29972
29973         * lib/copy-file.c: Include acl.h.
29974         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
29975         Close the file descriptors only after being done with copy_acl.
29976         * modules/copy-file (Depends-on): Add acl.
29977
29978 2006-12-22  Bruno Haible  <bruno@clisp.org>
29979
29980         * gnulib-tool (SED): New variable.
29981         Use $SED instead of sed everywhere.
29982
29983 2006-12-22  Bruno Haible  <bruno@clisp.org>
29984
29985         * modules/no-c++: New file.
29986         * m4/no-c++.m4: New file.
29987         * MODULES.html.sh (Support for building libraries and executables):
29988         Add no-c++.
29989
29990 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
29991
29992         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29993         Include <limits.h>, and use its INT_MAX to rewrite the
29994         j loop so that it does not overflow 'int'.  Problem reported by
29995         Ralf Wildenhues in
29996         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
29997         Play it safe by shifting left by 1 rather than multiplying by 2,
29998         as GCC is less likely to optimize this away when the value
29999         is signed (when it assumes overflow leads to undefined behavior).
30000         Also, don't assume time_t uses two's complement.
30001
30002 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
30003
30004         * MODULES.html.sh: New module wctype.
30005         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
30006         * lib/fnmatch.c: Don't bother to include <wchar.h> before
30007         <wctype.h>, since the new wctype module should fix this.
30008         * lib/quotearg.c: Include <wctype.h> unconditionally, since
30009         the wctype module should arrange for it.
30010         * lib/regex_internal.h: Likewise.
30011         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
30012         since the wctype module should handle this now.
30013         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
30014         * modules/fnmatch (Depends-on): Add wctype.
30015         * modules/quotearg (Depends-on): Likewise.
30016         * modules/regex (Depends-on): Likewise.
30017
30018 2006-12-19  Bruno Haible  <bruno@clisp.org>
30019
30020         * lib/strdup.h [C++]: Wrap definitions in extern "C".
30021         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
30022
30023 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30024
30025         * modules/savewd (Depends-on): Fix dependency on fcntl.
30026
30027 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30028
30029         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
30030         conforms to C99, rather than relying on the user's environment
30031         setting of STDINT_H.
30032
30033 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30034         and Eric Blake  <ebb9@byu.net>
30035
30036         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
30037         This is more consistent with the other defines here.
30038         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
30039         Port to z/OS.  Problem reported by Paul Gilmartin.
30040         Change local vars to use gl_ prefix rather than ac_.
30041         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
30042         with other defines.
30043         * modules/double-slash-root: New module.
30044         * modules/dirname (Files): Remove m4/double-slash-root.m4.
30045         (Depends-on): Add double-slash-root.
30046         * MODULES.html.sh (File system functions): Mention new module.
30047
30048 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
30049
30050         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
30051         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
30052         This is for the benefit of gzip, which doesn't do i18n.
30053
30054 2006-12-12  Jim Meyering  <jim@meyering.net>
30055
30056         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
30057         Reported by Andreas Schwab <schwab@suse.de>.
30058
30059 2006-12-12  Bruno Haible  <bruno@clisp.org>
30060
30061         Merge these changes.
30062         2006-09-05  Bruno Haible  <bruno@clisp.org>
30063         * lib/iconvme.c (iconv_string): No need to save and restore errno when
30064         iconv_alloc succeeded.
30065         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
30066         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
30067         test for " && dest " at the end - dest is always != NULL there. Call
30068         iconv with 4xNULL arguments initially, to reset the state. Call iconv
30069         with 2xNULL arguments, also to flush the state storage. Handle the
30070         IRIX iconv behaviour. Realloc the final result, to throw away unused
30071         memory.
30072
30073 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
30074
30075         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
30076         and fchmodat unconditionally, since glibc 2.4 has them.
30077         Problem reported by Arkadiusz Miskiewicz.
30078
30079 2006-12-10  Bruno Haible  <bruno@clisp.org>
30080
30081         * gnulib-tool (func_import): Show the include files only for those
30082         modules that are copied and specified.
30083         Reported by Karl Berry.
30084
30085 2006-12-08  Jim Meyering  <jim@meyering.net>
30086
30087         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
30088         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
30089
30090         * build-aux/announce-gen: Add two new options, both optional:
30091         --bootstrap-tools=TOOL_LIST
30092               a comma-separated list of tools, e.g.,
30093               autoconf,automake,bison,gnulib
30094         --gnulib-snapshot-date=DATE
30095               if gnulib is in the bootstrap tool list,
30096               then report this as the snapshot date.
30097               If not specified, use the current date/time.
30098               If you specify a date here, be sure it's UTC.
30099
30100 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30101
30102         * tests/test-argp-2.sh: Fix test to match actual output.
30103         (func_compare): Fix sed script to be portable.
30104
30105 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30106
30107         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
30108         workaround for this case.  It is not autoconfigured now; offhand
30109         it's hard to see how to autoconfigure it.
30110
30111 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
30112
30113         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
30114         a directory that is about to be chowned.  Such a directory's
30115         initial file permissions should permit the owner only and this
30116         should not be changed until after the chown, since the group and
30117         other bits would be incorrect if they granted permission before
30118         the chown.
30119
30120         Fix porting problem for iswctype reported by Georg Schwarz in:
30121         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
30122         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
30123         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
30124         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
30125         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30126
30127 2006-12-03  Jim Meyering  <jim@meyering.net>
30128
30129         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
30130         p->fts_statp may not yet be defined.
30131         (fts_read): Instead, set it in the caller, once p->fts_statp is
30132         sure to be defined, and corresponds to a top-level directory.
30133         This bug made du -x fail.  Here's the coreutils test case:
30134         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
30135         Reported by Mike Frysinger.
30136
30137 2006-12-01  Jim Meyering  <jim@meyering.net>
30138
30139         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
30140         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
30141         Reported by Simon Josefsson.
30142
30143 2006-11-30  Jim Meyering  <jim@meyering.net>
30144
30145         * m4/warning.m4: Use the all-permissive copyright notice
30146         recommended by RMS (rather than LGPL).
30147         * m4/vararrays.m4: Likewise.
30148         * m4/flexmember.m4: Likewise.
30149
30150 2006-11-29  Bruno Haible  <bruno@clisp.org>
30151
30152         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
30153         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
30154         using +=.
30155         Reported by Simon Josefsson <simon@josefsson.org>.
30156
30157 2006-11-28  James Youngman <jay@gnu.org>
30158
30159         * README: Advise users that they might find the bug-gnulib@gnu.org
30160         and autotools-announce@gnu.org mailing lists useful.
30161
30162 2006-11-28  Bruno Haible  <bruno@clisp.org>
30163
30164         * m4/ptrdiff_max.m4: Remove file.
30165
30166 2006-11-21  Bruno Haible  <bruno@clisp.org>
30167
30168         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
30169         _AC_COMPUTE_INT.
30170         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30171         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
30172         _AC_COMPUTE_INT.
30173         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30174         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
30175         _AC_COMPUTE_INT.
30176         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30177
30178 2006-11-28  Jim Meyering  <jim@meyering.net>
30179
30180         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
30181         warning from "gcc -Wshadow" about shadowing the builtin.
30182
30183 2006-11-27  Bruno Haible  <bruno@clisp.org>
30184
30185         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
30186         _AC_COMPUTE_INT.
30187         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30188
30189 2006-11-27  Bruno Haible  <bruno@clisp.org>
30190             Paul Eggert  <eggert@cs.ucla.edu>
30191
30192         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
30193
30194 2006-11-26  Bruno Haible  <bruno@clisp.org>
30195
30196         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
30197         noinst_LTLIBRARIES.
30198
30199 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30200             Bruno Haible  <bruno@clisp.org>
30201
30202         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
30203         if compiling with "gcc -ansi".
30204
30205 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
30206
30207         Fix some incompatibilities with gcc -ansi -pedantic.
30208         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
30209         if compiling pedantically with GCC, unless it's C99 or later.
30210         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
30211         it mishandles gcc -ansi -pedantic as well.
30212         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
30213         if gcc -pedantic.
30214         * lib/regexec.c (check_node_accept_bytes): Don't use auto
30215         initializers for struct if -pedantic, unless it's C99 or later.
30216
30217 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
30218
30219         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
30220         Don't close an fd more than once. Identical atimes indicate
30221         success, not failure.
30222
30223 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
30224
30225         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
30226
30227 2006-11-23  Jim Meyering  <jim@meyering.net>
30228
30229         * build-aux/announce-gen: New file.  From coreutils.
30230
30231 2006-11-22  Jim Meyering  <jim@meyering.net>
30232
30233         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
30234         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
30235         (fts_read): Use a temporary to narrow the overused st_size member
30236         before using it in a switch statement.  Reported by Matthew Woehlke.
30237
30238         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
30239         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30240
30241 2006-11-20  Bruno Haible  <bruno@clisp.org>
30242
30243         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
30244         changequote instead of pairs of brackets.
30245         Reported by Andreas Schwab <schwab@suse.de>.
30246
30247 2006-11-21  Jim Meyering  <jim@meyering.net>
30248
30249         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
30250         so as to remain compatible with older compilers.
30251         Patch from Michael Deutschmann.
30252
30253 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30254
30255         * MODULES.html.sh (File system functions): Add openat.
30256
30257         * lib/openat.h (rpl_fstatat): New macro, if
30258         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
30259         (fstatat): Define to rpl_fstatat under the same conditions,
30260         unless COMPILING_FSTATAT.
30261         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
30262         seems to have the bug.
30263         * lib/fstatat.c: New file.
30264         * modules/openat (Files): Add it.
30265
30266 2006-11-20  Bruno Haible  <bruno@clisp.org>
30267
30268         * Makefile: New file.
30269
30270 2006-11-20  Jim Meyering  <jim@meyering.net>
30271
30272         The beginnings of syntax-related checks for gnulib.
30273         * lib/Makefile: New file.
30274         * lib/t-idcache: New script.  Ensure that the two halves of
30275         idcache.c stay in sync.
30276
30277         * lib/idcache.c: Adjust comments in user- and group- portions to
30278         be more accurate, and to be consistent with one another.
30279
30280 2006-11-20  Jim Meyering  <jim@meyering.net>
30281
30282         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
30283         continue using the flexible array member (thus, this module performs
30284         half as many malloc calls), with the addition that...
30285         (getgroup, getuser): Consistently record a non-match via an empty
30286         "name" string, and map an empty string match to a NULL return value.
30287         * modules/idcache (Depends-on): Re-add flexmember.
30288
30289         * lib/idcache.c (getuser): Remove all uses of the register keyword.
30290         (getuidbyname, getgroup, getgidbyname): Likewise.
30291
30292         Use cleaner syntax: NULL rather than 0.
30293         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
30294
30295 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30296
30297         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
30298         It mishandled the case where the group was missing.
30299         Problem reported by Greg Schafer.
30300         * modules/idcache: Likewise.
30301
30302 2006-11-18  Jim Meyering  <jim@meyering.net>
30303
30304         * check-module (%exempt_header): Add exception for some
30305         conditionally-included headers.
30306
30307         * modules/i-ring (Depends-on): Add verify.
30308         (License): Change to LGPL.
30309
30310 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30311
30312         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
30313         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
30314         and inttostr.h.  Use snprintf rather than uinttostr, so that
30315         LGPLed code doesn't depend on GPLed.
30316
30317 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30318
30319         * modules/inline (License): Change from GPL to LGPL.
30320
30321 2006-11-17  Jim Meyering  <jim@meyering.net>
30322
30323         * modules/d-type (License): Switch to LGPL.
30324
30325 2006-11-15  Bruno Haible  <bruno@clisp.org>
30326
30327         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
30328
30329 2006-11-15  Eric Blake  <ebb9@byu.net>
30330
30331         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
30332         the module dependency.
30333
30334 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30335             Bruno Haible  <bruno@clisp.org>
30336
30337         * gnulib-tool (func_create_testdir): Add license consistency check.
30338
30339 2006-11-15  Eric Blake  <ebb9@byu.net>
30340
30341         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
30342         random "(cached)" in configure output.
30343
30344 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30345
30346         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
30347         test for conforming inttypes.h is both announced and cached.
30348
30349         * MODULES.html.sh (seen_modules, seen_files): New variables.
30350         (func_module): Rewrite to use a few less gnulib-tool and sed
30351         invocations.  Avoid a couple of quadratic algorithms for ...
30352         (missed_modules, missed_files): ... these, with ...
30353         (func_append, func_tmpdir): ... these new functions, from
30354         gnulib-tool.  Analogously, install traps for cleanup.
30355
30356         * tests/test-gc.c (main): Remove unused variables.
30357         * tests/test-read-file.c: Include stdlib.h, for 'free'.
30358
30359 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30360
30361         * modules/inttostr (License): Change to LGPL.
30362
30363 2006-11-14  Eric Blake  <ebb9@byu.net>
30364
30365         * modules/tempname (License): Change to LGPL.
30366
30367 2006-11-14  Eric Blake  <ebb9@byu.net>
30368
30369         * doc/functions.texi (Function Portability): *printf functions on
30370         Cygwin now understand all POSIX size specifiers.
30371
30372 2006-11-14  Bruno Haible  <bruno@clisp.org>
30373
30374         * modules/c-ctype (License): Change to LGPL.
30375
30376 2006-11-12  Bruno Haible  <bruno@clisp.org>
30377
30378         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30379         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
30380         for GNOME libraries, for which the include files are installed in
30381         subdirectories of $prefix/include.
30382
30383 2006-11-12  Bruno Haible  <bruno@clisp.org>
30384
30385         * m4/lib-link.m4: Require at least autoconf-2.54.
30386         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
30387         name to underscores for the --with option.
30388
30389 2006-11-13  Bruno Haible  <bruno@clisp.org>
30390
30391         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
30392         the tests directory.
30393         Reported by Ralf Wildenhues.
30394
30395 2006-11-13  Bruno Haible  <bruno@clisp.org>
30396
30397         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
30398         (func_emit_initmacro_end): Undo the override here.
30399         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
30400         Works around the famous automake error in coreutils.
30401
30402 2006-11-13  Eric Blake  <ebb9@byu.net>
30403
30404         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
30405         element, not its node.
30406
30407 2006-11-12  Bruno Haible  <bruno@clisp.org>
30408
30409         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
30410         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
30411
30412 2006-11-12  Bruno Haible  <bruno@clisp.org>
30413
30414         * gnulib-tool: New option --local-symlink.
30415         (func_usage): Document it.
30416         (lsymbolic): New variable.
30417         (func_import, func_create_testdir): If --symlink was not specified,
30418         test whether --local-symlink was specified and the file comes from
30419         the local_gnulib_dir.
30420
30421 2006-11-12  Bruno Haible  <bruno@clisp.org>
30422
30423         * gnulib-tool (func_ln): New function.
30424         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
30425
30426 2006-11-12  Bruno Haible  <bruno@clisp.org>
30427
30428         Finish support for source files in subdirectories.
30429         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
30430         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
30431         AUTOMAKE_OPTIONS.
30432         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
30433
30434 2006-11-12  Bruno Haible  <bruno@clisp.org>
30435
30436         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30437         EXTRA_lib_SOURCES augmentation.
30438         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
30439
30440 2006-11-12  Jim Meyering  <jim@meyering.net>
30441
30442         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
30443         file descriptors.  This also averts a failure on systems with
30444         native openat support when a traversed directory lacks "x" access.
30445         * lib/fts_.h: Include "i-ring.h"
30446         (struct FTS) [fts_fd_ring]: New member.
30447         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
30448         (FCHDIR): Add parentheses.
30449         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
30450         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
30451         When descending, rather than simply closing the previous
30452         fts_cwd_fd value, push that file descriptor onto the ring.
30453         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
30454         (fts_open): Initialize the new fd_ring member.
30455         (fts_close): Clear the ring.
30456         (fts_safe_changedir): When possible, use our new fd_ring to skip
30457         the diropen and fstat and dev/ino comparison that would normally
30458         accompany a virtual `chdir ("..")'.
30459
30460         * modules/fts (Depends-on): Add i-ring.
30461         * modules/i-ring: New module.
30462         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
30463         * m4/i-ring.m4: New file.
30464
30465 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30466
30467         * gnulib-tool (func_create_testdir): Fix replacement of
30468         `build-aux' in configure.ac.  Run autotools in gltests
30469         subdirectory.
30470         (func_create_testdir, func_create_megatestdir, test): There is
30471         no need for '--force' in most autotool invocations in a new
30472         tree.  Actually fail the whole test if any of the tools, or the
30473         configure or make stages fail.
30474
30475         Sync from Automake.
30476         * build-aux/gnupload: Revert last change.  Add pointer to upload
30477         instructions of the GNU Maintenance Instructions.
30478         Suggestion by Karl Berry.
30479
30480 2006-11-10  Jim Meyering  <jim@meyering.net>
30481
30482         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
30483
30484 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30485
30486         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
30487         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
30488         (bind_textdomain_codeset) [! ENABLE_NLS]:
30489         Evaluate all the arguments.  That way, callers get compatible behavior
30490         if the arguments have side effects.  Also, it avoids some GCC
30491         diagnostics in some cases; Joel E. Denny reported problems when Bison
30492         was configured with --enable-gcc-warnigs.
30493
30494 2006-11-10  Jim Meyering  <jim@meyering.net>
30495
30496         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
30497         relevant options in CFLAGS (like -O, -fno-inline) are taken into
30498         account.
30499
30500 2006-11-10  Jim Meyering  <jim@meyering.net>
30501
30502         * modules/inline: New file/module.
30503         * modules/xalloc (Files): Remove m4/inline.m4.
30504         (Depends-on): Add inline, instead.
30505         * modules/oset: Likewise.
30506         * modules/list: Likewise.
30507
30508 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30509
30510         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
30511         Problem reported by Matthew Woehlke.
30512
30513 2006-11-09  Bruno Haible  <bruno@clisp.org>
30514
30515         * lib/tempname.c (gen_tempname): Remove variant that invokes
30516         __gen_tempname.
30517         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
30518         __gen_tempname.
30519
30520 2006-11-08  Bruno Haible  <bruno@clisp.org>
30521
30522         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
30523         to 'yes' instead of 'cross-compiling'.
30524
30525 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30526
30527         * lib/quotearg.h (quotearg_free): New decl.
30528         * lib/quotearg.c (quotearg_free): New function.
30529         (slot0, nslots, slotvec0, slotvec):
30530         Now file-scope so that quotearg_free can get at them.
30531
30532 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30533
30534         Sync from Automake.
30535         * build-aux/gnupload: Add missing 'gnu' to example URL.
30536         Report by Karl Berry.
30537
30538 2006-11-08  Bruno Haible  <bruno@clisp.org>
30539
30540         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
30541         Suggested by Paul Eggert.
30542
30543 2006-11-08  Jim Meyering  <jim@meyering.net>
30544
30545         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
30546         It's already included if !_LIBC.
30547         (fts_safe_changedir): Add a comment.
30548
30549 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30550
30551         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
30552         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
30553         Matthew Woehlke.
30554
30555         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
30556         definitions up, to avoid colliding with change below.
30557         (static_inline) [HAVE_INLINE]: New macro.
30558         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
30559         Provide extern decls when !HAVE_INLINE.  Do not define unless
30560         static_inline is defined, either by us or by xmalloc.c.  Use
30561         static_inline rather than static inline.
30562         (XCALLOC): Optimize sizeof(T) = 1 case.
30563         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
30564
30565 2006-11-07  Bruno Haible  <bruno@clisp.org>
30566
30567         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
30568         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
30569         AC_C_INLINE.
30570         * modules/xalloc (Files): Add m4/inline.m4.
30571
30572 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30573
30574         * README: Fix typo.
30575         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
30576         (Miscellanous Notes): ...from this.
30577
30578 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30579
30580         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
30581         Mention that offsetof should be used instead of sizeof.
30582         From Bruno Haible.
30583
30584 2006-11-07  Bruno Haible  <bruno@clisp.org>
30585
30586         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
30587
30588 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30589
30590         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30591         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
30592         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30593         (gl_tree_add_before, gl_tree_add_after):
30594         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
30595         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
30596         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30597         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
30598         (gl_linked_add_after, gl_linked_add_at): Likewise.
30599         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
30600         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30601         (gl_tree_add_before, gl_tree_add_after): Likewise.
30602         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
30603         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
30604         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30605
30606 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30607
30608         * lib/gl_oset.h: Use C comment style, not C++ comment style.
30609
30610 2006-11-06  Bruno Haible  <bruno@clisp.org>
30611
30612         * m4/inline.m4: New file.
30613         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
30614         * modules/list (Files): Add m4/inline.m4.
30615         * modules/oset (Files): Likewise.
30616
30617 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30618
30619         * lib/idcache.c: Include <stddef.h>, for offsetof.
30620         (struct userid.name): Change from char * to a flexible array member.
30621         All uses changed.
30622         * modules/idcache (Depends-on): Add flexmember.
30623
30624         * MODULES.html.sh (Core language properties): New module flexmember.
30625         * modules/flexmember, m4/flexmember.m4: New files.
30626
30627         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
30628         inline functions that are identical with the old xnmalloc_inline,
30629         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
30630         that we can avoid some unnecessary integer multiplications and
30631         divisions in the common case where the element size is known at
30632         compile time.
30633         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
30634         needed.
30635         (xnboundedmalloc): Remove.
30636         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
30637         arguments, for consistency with rest of this header.
30638         (xcharalloc): Rewrite using XNMALLOC.
30639         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
30640         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
30641         versions have been moved to lib/xalloc.h and renamed to be the
30642         non-*_inline versions.
30643         (xmalloc, xrealloc): Implement without reference to the xnmalloc
30644         and xnrealloc functions, since those functions are now inline and
30645         now call us.
30646         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
30647         renaming described above.
30648         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
30649         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
30650         captures the dependency in AC_C_INLINE.
30651
30652         New module canonicalize-lgpl, proposed by Charles Wilson in
30653         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
30654         with a few small changes afterwards.
30655         * MODULES.html.sh (File system functions): New module
30656         canonicalize-lgpl.
30657         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
30658         and canonicalize_file_name.
30659         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
30660         * modules/canonicalize-lgpl: New files.
30661
30662 2006-11-05  Bruno Haible  <bruno@clisp.org>
30663
30664         * gnulib-tool (func_import, func_create_testdir): Create directories
30665         also for files in subdirectories of lib/.
30666
30667 2006-11-05  Bruno Haible  <bruno@clisp.org>
30668
30669         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
30670         ANSI C compliant.
30671
30672 2006-11-03  Bruno Haible  <bruno@clisp.org>
30673
30674         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30675         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
30676         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
30677         (xnboundedmalloc): New inline function.
30678         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
30679         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
30680         xmalloc.
30681         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
30682         xmalloc.
30683         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
30684         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
30685         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
30686         xmalloc.
30687         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30688         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
30689         xmalloc.
30690         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
30691         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30692         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
30693         xmalloc.
30694         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30695         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
30696         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30697         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
30698         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
30699         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
30700         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
30701
30702 2006-11-03  Bruno Haible  <bruno@clisp.org>
30703
30704         * lib/c-ctype.h [C++]: Define functions without name mangling.
30705         * lib/fwriteerror.h [C++]: Likewise.
30706         * lib/gcd.h [C++]: Likewise.
30707         * lib/linebreak.h [C++]: Likewise.
30708
30709 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30710
30711         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
30712         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
30713         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
30714         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30715         Check for functions and headers just once.
30716         Check for declaration of canonicalize_file_name.
30717         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
30718
30719 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30720
30721         * gnulib-tool (func_import): Fix typo in actioncmd.
30722
30723 2006-11-02  Bruno Haible  <bruno@clisp.org>
30724
30725         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
30726         newline sequence in the Makefile.am snippet as a space, like "make"
30727         does.
30728         Reported by Roger Persson <perrog@gmail.com>.
30729
30730 2006-11-01  Bruno Haible  <bruno@clisp.org>
30731
30732         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
30733         already declared in <string.h>.
30734         * lib/strcase.h (strncasecmp): Don't declare it if yes.
30735
30736 2006-11-01  Bruno Haible  <bruno@clisp.org>
30737
30738         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
30739         * lib/strcase.h: Include <string.h>.
30740         (strcasecmp): Define to rpl_strcasecmp here.
30741
30742 2006-11-01  Bruno Haible  <bruno@clisp.org>
30743
30744         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
30745
30746 2006-11-01  Eric Blake  <ebb9@byu.net>
30747
30748         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
30749
30750         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
30751
30752 2006-10-29  Bruno Haible  <bruno@clisp.org>
30753
30754         Make it compile in C++ mode.
30755         * lib/full-write.c (full_rw): Add a cast.
30756
30757 2006-11-01  Bruno Haible  <bruno@clisp.org>
30758
30759         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
30760         be POSIX compliant.
30761         Reported by Roger Persson <perrog@gmail.com>.
30762
30763 2006-11-01  Eric Blake  <ebb9@byu.net>
30764
30765         * lib/getopt_.h: Fix comments.
30766
30767 2006-10-31  Eric Blake  <ebb9@byu.net>
30768
30769         * modules/tmpdir (Depends-on): Add sys_stat.
30770         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
30771         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
30772         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
30773         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
30774         tempname.
30775
30776 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30777
30778         Avoid some C++ diagnostics reported by Bruno Haible.
30779         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
30780         xmalloc.
30781         (quotearg_alloc): Use xcharalloc rather than xmalloc.
30782         (struct slotvec): Move to top level.
30783         (quotearg_n_options): Rewrite to avoid xmalloc.
30784         * lib/xalloc.h (xcharalloc): New function.
30785         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
30786         [defined __cplusplus]: Add function template that provides result
30787         type propagation.  This part of the change is from Bruno Haible.
30788
30789 2006-10-29  Bruno Haible  <bruno@clisp.org>
30790
30791         Make it compile in C++ mode.
30792         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
30793         * lib/strnlen1.c (strnlen1): Cast memchr result.
30794         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
30795         * lib/clean-temp.c (string_equals, string_hash): Add casts.
30796         (create_temp_dir): Rename local variable 'template'.
30797         (compile_csharp_using_sscli): Add cast.
30798         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
30799         * lib/findprog.c (find_in_path): Likewise.
30800         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
30801         * lib/wait-process.c (register_slave_subprocess): Likewise.
30802
30803 2006-10-22  Bruno Haible  <bruno@clisp.org>
30804
30805         * modules/tsearch: New file.
30806         * lib/tsearch.h: New file.
30807         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
30808         * m4/tsearch.m4: New file.
30809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
30810
30811 2006-10-29  Eric Blake  <ebb9@byu.net>
30812
30813         * lib/arcfour.c: Assume config.h.
30814         * lib/arctwo.c: Likewise.
30815         * lib/base64.c: Likewise.
30816         * lib/check-version.c: Likewise.
30817         * lib/crc.c: Likewise.
30818         * lib/des.c: Likewise.
30819         * lib/gc-gnulib.c: Likewise.
30820         * lib/gc-libgcrypt.c: Likewise.
30821         * lib/gc-pbkdf2-sha1.c: Likewise.
30822         * lib/getaddrinfo.c: Likewise.
30823         * lib/getdelim.c: Likewise.
30824         * lib/getline.c: Likewise.
30825         * lib/hmac-md5.c: Likewise.
30826         * lib/hmac-sha1.c: Likewise.
30827         * lib/iconvme.c: Likewise.
30828         * lib/md2.c: Likewise.
30829         * lib/md4.c: Likewise.
30830         * lib/memxor.c: Likewise.
30831         * lib/read-file.c: Likewise.
30832         * lib/readline.c: Likewise.
30833         * lib/rijndael-alg-fst.c: Likewise.
30834         * lib/rijndael-api-fst.c: Likewise.
30835         * lib/xgetdomainname.c: Likewise.
30836
30837 2006-10-28  Eric Blake  <ebb9@byu.net>
30838
30839         * lib/xstrndup.c: Assume config.h.
30840
30841 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30842
30843         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
30844         stat-macros.h is now for our own macros, whereas stat_h is for
30845         macros in the <sys/stat.h> name space.
30846         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
30847         (STAT_MACROS_H): Remove.
30848         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
30849         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
30850         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
30851         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
30852         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
30853         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
30854         Move these macros to ...
30855         * lib/stat_.h: here.  Don't include stat-macros.h.
30856         * lib/canonicalize.c: Don't include stat-macros.h.
30857         * lib/chown.c: Likewise.
30858         * lib/euidaccess.c: Likewise.
30859         * lib/file-type.c: Likewise.
30860         * lib/filemode.c: Likewise.
30861         * lib/glob.c: Likewise.
30862         * lib/isapipe.c: Likewise.
30863         * lib/lchown.c: Likewise.
30864         * lib/lstat.c: Likewise.
30865         * lib/mkdir-p.c: Likewise.
30866         * lib/rmdir.c: Likewise.
30867         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
30868         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
30869         unless mkdir isn't declared, to speed up 'configure'.
30870         Always create sys/stat.h, since it's unlikely any real sys/stat.h
30871         would define all the S_* symbols.
30872         * modules/canonicalize (Depends-on):
30873         Depend on sys_stat, not stat-macros.
30874         * modules/chown: Likewise.
30875         * modules/euidaccess: Likewise.
30876         * modules/filemode: Likewise.
30877         * modules/file-type: Likewise.
30878         * modules/glob: Likewise.
30879         * modules/isapipe: Likewise.
30880         * modules/lchown: Likewise.
30881         * modules/lstat: Likewise.
30882         * modules/mkancesdirs: Likewise.
30883         * modules/rmdir: Likewise.
30884         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
30885         * modules/modechange: Likewise.
30886         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
30887         (configure.ac): Remove gl_STAT_MACROS.
30888         * modules/sys_stat (Depends-on): Remove stat-macros.
30889
30890 2006-10-27  Bruno Haible  <bruno@clisp.org>
30891
30892         * m4/signed.m4: Remove file.
30893         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
30894         invocation.
30895         * modules/vasnprintf (Files): Remove m4/signed.m4.
30896
30897 2006-10-27  Bruno Haible  <bruno@clisp.org>
30898
30899         Update to GNU gettext 0.16.
30900         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
30901         m4/inttypes-h.m4, m4/signed.m4.
30902         * m4/gettext.m4: Update to GNU gettext 0.16.
30903         * m4/intl.m4: New file, from GNU gettext.
30904         * m4/intldir.m4: New file, from GNU gettext.
30905         * config/srclist.txt: Update
30906
30907 2006-10-27  Eric Blake  <ebb9@byu.net>
30908
30909         * MODULES.html.sh: Document tempname.
30910         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
30911         dependencies.
30912         (Files): Move lib/tempname.c...
30913         * modules/tempname: ...to this new module.
30914         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
30915         (gl_PREREQ_TEMPNAME): Move...
30916         * m4/tempname.m4: ...to this new file.
30917         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
30918         * modules/sys_stat (Depends-on): Add stat-macros.
30919         * lib/stat_.h (includes): Pick up stat macros.
30920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
30921         if stat macros are broken.
30922         * lib/tempname.c (includes): No need to include "stat-macros.h".
30923         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
30924         (direxists, __path_search) [!_LIBC]: Don't compile these in
30925         gnulib; the tmpdir module covers that.
30926         * lib/tempname.h: New file.
30927
30928 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30929
30930         * COPYING: Explain how gnulib-tool converts licence headers.
30931         Almost all wording by Eric Blake.
30932
30933 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
30934
30935         * lib/mbchar.h (is_basic_table): Make read-only.
30936         * lib/mbchar.c (is_basic_table): Likewise.
30937         Reported by John Darrington.
30938
30939 2006-10-25  Bruno Haible  <bruno@clisp.org>
30940
30941         * lib/progname.h (set_program_name): Undefine before defining.
30942
30943 2006-10-25  Bruno Haible  <bruno@clisp.org>
30944
30945         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
30946         false for non-gcc C++ compilers.
30947         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30948
30949 2006-10-24  Bruno Haible  <bruno@clisp.org>
30950
30951         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
30952         iconv implementations like Irix iconv.
30953
30954 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30955
30956         * modules/vararrays: New file.
30957         * m4/vararrays.m4: New file, taken from diffutils.
30958         * MODULES.html.sh: New module vararrays.
30959
30960 2006-10-24  Karl Berry  <karl@gnu.org>
30961
30962         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
30963         Don't call GNU Unix.
30964
30965 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30966
30967         * users.txt: Add Libtool.
30968
30969         Sync from Libtool:
30970
30971         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30972
30973         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
30974         to gnulib's policy of including config.h unconditionally.
30975
30976 2006-10-24  Bruno Haible  <bruno@clisp.org>
30977
30978         * modules/wcwidth (Files): Add m4/wint_t.m4.
30979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
30980         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
30981
30982 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30983
30984         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
30985         to pacify GCC with some -W flags enabled.  Problem reported by
30986         Bruno Haible.
30987
30988 2006-10-24  Jim Meyering  <jim@meyering.net>
30989
30990         * MODULES.html.sh: Remove uinttostr.  It's not a module.
30991         Reported by Karl Berry.
30992
30993 2006-10-23  Bruno Haible  <bruno@clisp.org>
30994
30995         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
30996
30997 2006-10-24  Bruno Haible  <bruno@clisp.org>
30998
30999         * lib/gl_list.h: Use C comment style, not C++ comment style.
31000
31001 2006-10-23  Eric Blake  <ebb9@byu.net>
31002
31003         * lib/getaddrinfo.c (includes): Add missing include.
31004
31005 2006-10-23  Bruno Haible  <bruno@clisp.org>
31006             Paul Eggert  <eggert@cs.ucla.edu>
31007
31008         Ability to rename obstack_free.
31009         * lib/obstack.h (__obstack_free): New macro. Declare instead of
31010         obstack_free.
31011         (obstack_free): Invoke the __obstack_free macro.
31012         * lib/obstack.c (obstack_free): Use __obstack_free macro.
31013
31014 2006-10-23  Bruno Haible  <bruno@clisp.org>
31015             Paul Eggert  <eggert@cs.ucla.edu>
31016
31017         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
31018         __argc, __argv from the declaration. (They are defined as macros on
31019         mingw.)
31020
31021 2006-10-22  Bruno Haible  <bruno@clisp.org>
31022
31023         * doc/gnulib-intro.texi: New file.
31024         * doc/gnulib.texi: Include it.
31025
31026 2006-10-21  Bruno Haible  <bruno@clisp.org>
31027
31028         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
31029         "Introduction", "Miscellanous Notes", "Particular Modules".
31030
31031 2006-10-21  Bruno Haible  <bruno@clisp.org>
31032
31033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31034         Change mostlyclean-local rule to avoid sh syntax error from bash
31035         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
31036
31037 2006-10-23  Jim Meyering  <jim@meyering.net>
31038
31039         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
31040         in place of snprintf.
31041
31042         * modules/inttostr (Files): Add lib/uinttostr.c.
31043         * lib/uinttostr.c (inttostr): New file/function.
31044         * lib/inttostr.h (uinttostr): Declare.
31045         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
31046         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
31047         Add uinttostr.
31048         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
31049
31050 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
31051
31052         * lib/canonicalize.c (ELOOP): Define if not already defined.
31053         Problem reported by Bruno Haible in
31054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
31055
31056 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
31057
31058         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
31059         Problem reported by Perry Smith and Ville Laurikari.
31060
31061         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
31062         uses.
31063
31064 2006-10-19  Bruno Haible  <bruno@clisp.org>
31065
31066         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
31067         for mingw.
31068
31069 2006-10-19  Bruno Haible  <bruno@clisp.org>
31070
31071         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
31072         Needed for mingw.
31073
31074 2006-10-19  Bruno Haible  <bruno@clisp.org>
31075
31076         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
31077
31078 2006-10-19  Bruno Haible  <bruno@clisp.org>
31079
31080         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
31081         it.
31082
31083 2006-10-19  Bruno Haible  <bruno@clisp.org>
31084
31085         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
31086         invocation.
31087
31088 2006-10-19  Bruno Haible  <bruno@clisp.org>
31089
31090         * gnulib-tool (func_create_testdir): Don't include ftruncate and
31091         mountlist by default.
31092
31093 2006-10-16  Bruno Haible  <bruno@clisp.org>
31094
31095         * lib/c-strstr.c: Include c-strstr.h.
31096
31097 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31098
31099         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
31100         in a slash.
31101
31102 2006-10-18  Bruno Haible  <bruno@clisp.org>
31103
31104         * lib/lock.h [C++]: Wrap definitions in extern "C".
31105
31106 2006-10-18  Bruno Haible  <bruno@clisp.org>
31107
31108         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
31109         gl_LIBOBJS list.
31110
31111 2006-10-18  Bruno Haible  <bruno@clisp.org>
31112
31113         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
31114
31115 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
31116
31117         * lib/xstrtol.h: Include gettext.h.
31118         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
31119         Problem reported by Eric Blake.
31120         * modules/xstrtol (Depends-on): Add gettext-h.
31121
31122 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
31123
31124         * lib/strftime.c (advance): New macro.
31125         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
31126         incomplete type, so you can't add 0 to it.  Problem and patch
31127         reported by Eelco Dolstra for dietlibc.
31128
31129 2006-10-18  Jim Meyering  <jim@meyering.net>
31130
31131         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
31132         type for a local, and rename it: s/up/user_proc/.
31133
31134 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31135
31136         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
31137         READ_UTMP_USER_PROCESS.
31138         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
31139
31140 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31141
31142         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
31143         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
31144
31145 2006-10-17  Eric Blake  <ebb9@byu.net>
31146
31147         * lib/sigprocmask.c (sigprocmask): Fix typo.
31148
31149         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
31150
31151         * modules/clean-temp (Makefile.am): Don't add to make output...
31152         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
31153         config.h.
31154
31155 2006-10-17  Bruno Haible  <bruno@clisp.org>
31156
31157         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
31158         differently if DEFAULT_TEXT_DOMAIN is set.
31159
31160 2006-10-16  Bruno Haible  <bruno@clisp.org>
31161
31162         * lib/clean-temp.c: Include fwriteerror.h.
31163
31164 2006-10-16  Bruno Haible  <bruno@clisp.org>
31165
31166         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
31167
31168 2006-10-16  Bruno Haible  <bruno@clisp.org>
31169
31170         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
31171         * lib/sigprocmask.h: Include <sys/types.h>.
31172         (sigset_t): Use the system's definition if present.
31173
31174 2006-10-17  Eric Blake  <ebb9@byu.net>
31175
31176         * lib/xvasprintf.c (includes): Assume config.h.
31177         * lib/xasprintf.c (includes): Likewise.
31178
31179 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31180
31181         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
31182         at least as wide as intmax_t.
31183
31184 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
31185
31186         (Imported from Automake.)
31187         * build-aux/gnupload: Update to version 1.1 of directive file.
31188
31189 2006-10-16  Eric Blake  <ebb9@byu.net>
31190
31191         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
31192         match Automake 1.10a.
31193
31194 2006-10-14  Bruno Haible  <bruno@clisp.org>
31195
31196         * modules/sigprocmask: New file.
31197         * lib/sigprocmask.h: New file.
31198         * lib/sigprocmask.c: New file.
31199         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
31200         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
31201         request sigprocmask.o.
31202         (gl_PREREQ_SIGPROCMASK): New macro.
31203         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
31204         (Depends-on): Add sigprocmask.
31205         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
31206         gt_SIGNALBLOCKING. Test for 'raise' only once.
31207         * lib/fatal-signal.c: Include sigprocmask.h.
31208         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
31209         unblock_fatal_signals): Define always.
31210         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31211         sigprocmask.
31212
31213 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31214
31215         Sync from Automake.
31216         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
31217         which incorrectly sets the mode of an existing destination
31218         directory.  In some cases the unpatched install-sh could do the
31219         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
31220         system.  We hope this is rare in practice, but it's clearly worth
31221         fixing.  Problem reported by Alex Unleashed in
31222         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
31223         Also, don't bother to check for -m bugs unless we're using -m;
31224         suggested by Stepan Kasal.
31225
31226 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31227
31228         Sync from Automake.
31229         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
31230         `-c' flag, so they appear at the same position as in %FASTDEP%
31231         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
31232         which ignores unknown options only after the first non-option.
31233         Bug report against M4 by Nelson H. F. Beebe.
31234
31235 2006-10-13  Jim Meyering  <jim@meyering.net>
31236
31237         Fix a bug in yesterday's change.
31238         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
31239         p->fts_statp->st_dev would be used uninitialized.
31240         Ensures that we always call fts_stat on the very first entry.
31241         Miklos Szeredi reported that find -xdev stopped working.
31242
31243 2006-10-12  Bruno Haible  <bruno@clisp.org>
31244
31245         * gnulib-tool (func_get_automake_snippet): Append an automatically
31246         computed EXTRA_DIST augmentation.
31247         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
31248         * modules/alloca-opt (Makefile.am): Likewise.
31249         * modules/allocsa (Makefile.am): Likewise.
31250         * modules/arcfour (Makefile.am): Likewise.
31251         * modules/arctwo (Makefile.am): Likewise.
31252         * modules/argmatch (Makefile.am): Likewise.
31253         * modules/argz (Makefile.am): Likewise.
31254         * modules/atexit (Makefile.am): Likewise.
31255         * modules/backupfile (Makefile.am): Likewise.
31256         * modules/byteswap (Makefile.am): Likewise.
31257         * modules/c-strtod (Makefile.am): Likewise.
31258         * modules/c-strtold (Makefile.am): Likewise.
31259         * modules/calloc (Makefile.am): Likewise.
31260         * modules/canon-host (Makefile.am): Likewise.
31261         * modules/canonicalize (Makefile.am): Likewise.
31262         * modules/chdir-long (Makefile.am): Likewise.
31263         * modules/chdir-safer (Makefile.am): Likewise.
31264         * modules/check-version (Makefile.am): Likewise.
31265         * modules/chown (Makefile.am): Likewise.
31266         * modules/cloexec (Makefile.am): Likewise.
31267         * modules/close-stream (Makefile.am): Likewise.
31268         * modules/closeout (Makefile.am): Likewise.
31269         * modules/crc (Makefile.am): Likewise.
31270         * modules/csharpexec (Makefile.am): Likewise.
31271         * modules/cycle-check (Makefile.am): Likewise.
31272         * modules/des (Makefile.am): Likewise.
31273         * modules/dev-ino (Makefile.am): Likewise.
31274         * modules/dirfd (Makefile.am): Likewise.
31275         * modules/dirname (Makefile.am): Likewise.
31276         * modules/dup2 (Makefile.am): Likewise.
31277         * modules/eealloc (Makefile.am): Likewise.
31278         * modules/error (Makefile.am): Likewise.
31279         * modules/euidaccess (Makefile.am): Likewise.
31280         * modules/exclude (Makefile.am): Likewise.
31281         * modules/exitfail (Makefile.am): Likewise.
31282         * modules/fcntl-safer (Makefile.am): Likewise.
31283         * modules/fcntl (Makefile.am): Likewise.
31284         * modules/file-type (Makefile.am): Likewise.
31285         * modules/fileblocks (Makefile.am): Likewise.
31286         * modules/filemode (Makefile.am): Likewise.
31287         * modules/filenamecat (Makefile.am): Likewise.
31288         * modules/fnmatch (Makefile.am): Likewise.
31289         * modules/fopen-safer (Makefile.am): Likewise.
31290         * modules/fpending (Makefile.am): Likewise.
31291         * modules/fprintftime (Makefile.am): Likewise.
31292         * modules/free (Makefile.am): Likewise.
31293         * modules/fsusage (Makefile.am): Likewise.
31294         * modules/ftruncate (Makefile.am): Likewise.
31295         * modules/fts (Makefile.am): Likewise.
31296         * modules/gc-arcfour (Makefile.am): Likewise.
31297         * modules/gc-des (Makefile.am): Likewise.
31298         * modules/gc-hmac-md5 (Makefile.am): Likewise.
31299         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
31300         * modules/gc-md4 (Makefile.am): Likewise.
31301         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31302         * modules/gc-sha1 (Makefile.am): Likewise.
31303         * modules/gc (Makefile.am): Likewise.
31304         * modules/getaddrinfo (Makefile.am): Likewise.
31305         * modules/getcwd (Makefile.am): Likewise.
31306         * modules/getdelim (Makefile.am): Likewise.
31307         * modules/getdomainname (Makefile.am): Likewise.
31308         * modules/getgroups (Makefile.am): Likewise.
31309         * modules/gethostname (Makefile.am): Likewise.
31310         * modules/gethrxtime (Makefile.am): Likewise.
31311         * modules/getline (Makefile.am): Likewise.
31312         * modules/getloadavg (Makefile.am): Likewise.
31313         * modules/getlogin_r (Makefile.am): Likewise.
31314         * modules/getndelim2 (Makefile.am): Likewise.
31315         * modules/getopt (Makefile.am): Likewise.
31316         * modules/getpagesize (Makefile.am): Likewise.
31317         * modules/getpass-gnu (Makefile.am): Likewise.
31318         * modules/getpass (Makefile.am): Likewise.
31319         * modules/getsubopt (Makefile.am): Likewise.
31320         * modules/gettime (Makefile.am): Likewise.
31321         * modules/gettimeofday (Makefile.am): Likewise.
31322         * modules/getugroups (Makefile.am): Likewise.
31323         * modules/getusershell (Makefile.am): Likewise.
31324         * modules/glob (Makefile.am): Likewise.
31325         * modules/group-member (Makefile.am): Likewise.
31326         * modules/hard-locale (Makefile.am): Likewise.
31327         * modules/hash (Makefile.am): Likewise.
31328         * modules/hmac-md5 (Makefile.am): Likewise.
31329         * modules/hmac-sha1 (Makefile.am): Likewise.
31330         * modules/human (Makefile.am): Likewise.
31331         * modules/idcache (Makefile.am): Likewise.
31332         * modules/imaxabs (Makefile.am): Likewise.
31333         * modules/imaxdiv (Makefile.am): Likewise.
31334         * modules/inet_ntop (Makefile.am): Likewise.
31335         * modules/inet_pton (Makefile.am): Likewise.
31336         * modules/intprops (Makefile.am): Likewise.
31337         * modules/inttostr (Makefile.am): Likewise.
31338         * modules/inttypes (Makefile.am): Likewise.
31339         * modules/isapipe (Makefile.am): Likewise.
31340         * modules/javaversion (Makefile.am): Likewise.
31341         * modules/lchmod (Makefile.am): Likewise.
31342         * modules/lchown (Makefile.am): Likewise.
31343         * modules/localcharset (Makefile.am): Likewise.
31344         * modules/long-options (Makefile.am): Likewise.
31345         * modules/lstat (Makefile.am): Likewise.
31346         * modules/malloc (Makefile.am): Likewise.
31347         * modules/mathl (Makefile.am): Likewise.
31348         * modules/mbchar (Makefile.am): Likewise.
31349         * modules/md2 (Makefile.am): Likewise.
31350         * modules/md4 (Makefile.am): Likewise.
31351         * modules/md5 (Makefile.am): Likewise.
31352         * modules/memcasecmp (Makefile.am): Likewise.
31353         * modules/memchr (Makefile.am): Likewise.
31354         * modules/memcmp (Makefile.am): Likewise.
31355         * modules/memcoll (Makefile.am): Likewise.
31356         * modules/memcpy (Makefile.am): Likewise.
31357         * modules/memmem (Makefile.am): Likewise.
31358         * modules/memmove (Makefile.am): Likewise.
31359         * modules/mempcpy (Makefile.am): Likewise.
31360         * modules/memrchr (Makefile.am): Likewise.
31361         * modules/memset (Makefile.am): Likewise.
31362         * modules/memxor (Makefile.am): Likewise.
31363         * modules/mkancesdirs (Makefile.am): Likewise.
31364         * modules/mkdir-p (Makefile.am): Likewise.
31365         * modules/mkdir (Makefile.am): Likewise.
31366         * modules/mkdtemp (Makefile.am): Likewise.
31367         * modules/mkstemp (Makefile.am): Likewise.
31368         * modules/mktime (Makefile.am): Likewise.
31369         * modules/modechange (Makefile.am): Likewise.
31370         * modules/mountlist (Makefile.am): Likewise.
31371         * modules/nanosleep (Makefile.am): Likewise.
31372         * modules/obstack (Makefile.am): Likewise.
31373         * modules/openat (Makefile.am): Likewise.
31374         * modules/pagealign_alloc (Makefile.am): Likewise.
31375         * modules/pathmax (Makefile.am): Likewise.
31376         * modules/physmem (Makefile.am): Likewise.
31377         * modules/poll (Makefile.am): Likewise.
31378         * modules/posixtm (Makefile.am): Likewise.
31379         * modules/posixver (Makefile.am): Likewise.
31380         * modules/putenv (Makefile.am): Likewise.
31381         * modules/quote (Makefile.am): Likewise.
31382         * modules/quotearg (Makefile.am): Likewise.
31383         * modules/raise (Makefile.am): Likewise.
31384         * modules/read-file (Makefile.am): Likewise.
31385         * modules/readline (Makefile.am): Likewise.
31386         * modules/readlink (Makefile.am): Likewise.
31387         * modules/readtokens (Makefile.am): Likewise.
31388         * modules/readutmp (Makefile.am): Likewise.
31389         * modules/realloc (Makefile.am): Likewise.
31390         * modules/regex (Makefile.am): Likewise.
31391         * modules/rename-dest-slash (Makefile.am): Likewise.
31392         * modules/rename (Makefile.am): Likewise.
31393         * modules/rijndael (Makefile.am): Likewise.
31394         * modules/rmdir (Makefile.am): Likewise.
31395         * modules/rpmatch (Makefile.am): Likewise.
31396         * modules/safe-read (Makefile.am): Likewise.
31397         * modules/safe-write (Makefile.am): Likewise.
31398         * modules/same-inode (Makefile.am): Likewise.
31399         * modules/same (Makefile.am): Likewise.
31400         * modules/save-cwd (Makefile.am): Likewise.
31401         * modules/savedir (Makefile.am): Likewise.
31402         * modules/setenv (Makefile.am): Likewise.
31403         * modules/settime (Makefile.am): Likewise.
31404         * modules/sha1 (Makefile.am): Likewise.
31405         * modules/sig2str (Makefile.am): Likewise.
31406         * modules/snprintf (Makefile.am): Likewise.
31407         * modules/stat-macros (Makefile.am): Likewise.
31408         * modules/stat-time (Makefile.am): Likewise.
31409         * modules/stdbool (Makefile.am): Likewise.
31410         * modules/stdint (Makefile.am): Likewise.
31411         * modules/stdlib-safer (Makefile.am): Likewise.
31412         * modules/stpcpy (Makefile.am): Likewise.
31413         * modules/stpncpy (Makefile.am): Likewise.
31414         * modules/strcase (Makefile.am): Likewise.
31415         * modules/strcasestr (Makefile.am): Likewise.
31416         * modules/strchrnul (Makefile.am): Likewise.
31417         * modules/strcspn (Makefile.am): Likewise.
31418         * modules/strdup (Makefile.am): Likewise.
31419         * modules/strerror (Makefile.am): Likewise.
31420         * modules/strftime (Makefile.am): Likewise.
31421         * modules/strndup (Makefile.am): Likewise.
31422         * modules/strnlen (Makefile.am): Likewise.
31423         * modules/strpbrk (Makefile.am): Likewise.
31424         * modules/strsep (Makefile.am): Likewise.
31425         * modules/strstr (Makefile.am): Likewise.
31426         * modules/strtod (Makefile.am): Likewise.
31427         * modules/strtoimax (Makefile.am): Likewise.
31428         * modules/strtok_r (Makefile.am): Likewise.
31429         * modules/strtol (Makefile.am): Likewise.
31430         * modules/strtoll (Makefile.am): Likewise.
31431         * modules/strtoul (Makefile.am): Likewise.
31432         * modules/strtoull (Makefile.am): Likewise.
31433         * modules/strtoumax (Makefile.am): Likewise.
31434         * modules/strverscmp (Makefile.am): Likewise.
31435         * modules/sys_socket (Makefile.am): Likewise.
31436         * modules/sys_stat (Makefile.am): Likewise.
31437         * modules/sysexits (Makefile.am): Likewise.
31438         * modules/time_r (Makefile.am): Likewise.
31439         * modules/timegm (Makefile.am): Likewise.
31440         * modules/timespec (Makefile.am): Likewise.
31441         * modules/tmpfile-safer (Makefile.am): Likewise.
31442         * modules/trim (Makefile.am): Likewise.
31443         * modules/unistd-safer (Makefile.am): Likewise.
31444         * modules/unlinkdir (Makefile.am): Likewise.
31445         * modules/unlocked-io (Makefile.am): Likewise.
31446         * modules/userspec (Makefile.am): Likewise.
31447         * modules/utime (Makefile.am): Likewise.
31448         * modules/utimecmp (Makefile.am): Likewise.
31449         * modules/utimens (Makefile.am): Likewise.
31450         * modules/vasnprintf (Makefile.am): Likewise.
31451         * modules/vasprintf (Makefile.am): Likewise.
31452         * modules/vsnprintf (Makefile.am): Likewise.
31453         * modules/xalloc (Makefile.am): Likewise.
31454         * modules/xgetcwd (Makefile.am): Likewise.
31455         * modules/xnanosleep (Makefile.am): Likewise.
31456         * modules/xreadlink (Makefile.am): Likewise.
31457         * modules/xstrtod (Makefile.am): Likewise.
31458         * modules/xstrtol (Makefile.am): Likewise.
31459         * modules/xstrtold (Makefile.am): Likewise.
31460         * modules/yesno (Makefile.am): Likewise.
31461         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
31462
31463 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31464
31465         * modules/error (Makefile.am): Distribute files through
31466         EXTRA_DIST, not lib_SOURCES.
31467
31468 2006-10-12  Eric Blake  <ebb9@byu.net>
31469
31470         * modules/error (Makefile.am): Distribute files in /lib.
31471         * modules/obstack (Makefile.am): Likewise.
31472
31473 2006-10-12  Bruno Haible  <bruno@clisp.org>
31474
31475         * modules/acl (Makefile.am): Distribute all files in lib/ through
31476         EXTRA_DIST.
31477         * modules/arcfour (Makefile.am): Likewise.
31478         * modules/arctwo (Makefile.am): Likewise.
31479         * modules/argmatch (Makefile.am): Likewise.
31480         * modules/argz (Makefile.am): Likewise.
31481         * modules/atexit (Makefile.am): Likewise.
31482         * modules/backupfile (Makefile.am): Likewise.
31483         * modules/c-strtod (Makefile.am): Likewise.
31484         * modules/c-strtold (Makefile.am): Likewise.
31485         * modules/calloc (Makefile.am): Likewise.
31486         * modules/canon-host (Makefile.am): Likewise.
31487         * modules/canonicalize (Makefile.am): Likewise.
31488         * modules/chdir-long (Makefile.am): Likewise.
31489         * modules/chdir-safer (Makefile.am): Likewise.
31490         * modules/check-version (Makefile.am): Likewise.
31491         * modules/chown (Makefile.am): Likewise.
31492         * modules/cloexec (Makefile.am): Likewise.
31493         * modules/close-stream (Makefile.am): Likewise.
31494         * modules/closeout (Makefile.am): Likewise.
31495         * modules/crc (Makefile.am): Likewise.
31496         * modules/cycle-check (Makefile.am): Likewise.
31497         * modules/des (Makefile.am): Likewise.
31498         * modules/dirfd (Makefile.am): Likewise.
31499         * modules/dirname (Makefile.am): Likewise.
31500         * modules/dup2 (Makefile.am): Likewise.
31501         * modules/euidaccess (Makefile.am): Likewise.
31502         * modules/exclude (Makefile.am): Likewise.
31503         * modules/exitfail (Makefile.am): Likewise.
31504         * modules/fcntl-safer (Makefile.am): Likewise.
31505         * modules/file-type (Makefile.am): Likewise.
31506         * modules/fileblocks (Makefile.am): Likewise.
31507         * modules/filemode (Makefile.am): Likewise.
31508         * modules/filenamecat (Makefile.am): Likewise.
31509         * modules/fnmatch (Makefile.am): Likewise.
31510         * modules/fopen-safer (Makefile.am): Likewise.
31511         * modules/fpending (Makefile.am): Likewise.
31512         * modules/fprintftime (Makefile.am): Likewise.
31513         * modules/free (Makefile.am): Likewise.
31514         * modules/fsusage (Makefile.am): Likewise.
31515         * modules/ftruncate (Makefile.am): Likewise.
31516         * modules/fts (Makefile.am): Likewise.
31517         * modules/gc (Makefile.am): Likewise.
31518         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31519         * modules/getaddrinfo (Makefile.am): Likewise.
31520         * modules/getcwd (Makefile.am): Likewise.
31521         * modules/getdelim (Makefile.am): Likewise.
31522         * modules/getdomainname (Makefile.am): Likewise.
31523         * modules/getgroups (Makefile.am): Likewise.
31524         * modules/gethostname (Makefile.am): Likewise.
31525         * modules/gethrxtime (Makefile.am): Likewise.
31526         * modules/getline (Makefile.am): Likewise.
31527         * modules/getloadavg (Makefile.am): Likewise.
31528         * modules/getlogin_r (Makefile.am): Likewise.
31529         * modules/getopt (Makefile.am): Likewise.
31530         * modules/getpass (Makefile.am): Likewise.
31531         * modules/getpass-gnu (Makefile.am): Likewise.
31532         * modules/getsubopt (Makefile.am): Likewise.
31533         * modules/gettime (Makefile.am): Likewise.
31534         * modules/gettimeofday (Makefile.am): Likewise.
31535         * modules/getugroups (Makefile.am): Likewise.
31536         * modules/getusershell (Makefile.am): Likewise.
31537         * modules/glob (Makefile.am): Likewise.
31538         * modules/group-member (Makefile.am): Likewise.
31539         * modules/hard-locale (Makefile.am): Likewise.
31540         * modules/hash (Makefile.am): Likewise.
31541         * modules/hmac-md5 (Makefile.am): Likewise.
31542         * modules/hmac-sha1 (Makefile.am): Likewise.
31543         * modules/human (Makefile.am): Likewise.
31544         * modules/idcache (Makefile.am): Likewise.
31545         * modules/imaxabs (Makefile.am): Likewise.
31546         * modules/imaxdiv (Makefile.am): Likewise.
31547         * modules/inet_ntop (Makefile.am): Likewise.
31548         * modules/inet_pton (Makefile.am): Likewise.
31549         * modules/inttostr (Makefile.am): Likewise.
31550         * modules/isapipe (Makefile.am): Likewise.
31551         * modules/lchown (Makefile.am): Likewise.
31552         * modules/long-options (Makefile.am): Likewise.
31553         * modules/lstat (Makefile.am): Likewise.
31554         * modules/malloc (Makefile.am): Likewise.
31555         * modules/mathl (Makefile.am): Likewise.
31556         * modules/mbchar (Makefile.am): Likewise.
31557         * modules/md2 (Makefile.am): Likewise.
31558         * modules/md4 (Makefile.am): Likewise.
31559         * modules/md5 (Makefile.am): Likewise.
31560         * modules/memcasecmp (Makefile.am): Likewise.
31561         * modules/memchr (Makefile.am): Likewise.
31562         * modules/memcmp (Makefile.am): Likewise.
31563         * modules/memcoll (Makefile.am): Likewise.
31564         * modules/memcpy (Makefile.am): Likewise.
31565         * modules/memmem (Makefile.am): Likewise.
31566         * modules/memmove (Makefile.am): Likewise.
31567         * modules/mempcpy (Makefile.am): Likewise.
31568         * modules/memrchr (Makefile.am): Likewise.
31569         * modules/memset (Makefile.am): Likewise.
31570         * modules/memxor (Makefile.am): Likewise.
31571         * modules/mkancesdirs (Makefile.am): Likewise.
31572         * modules/mkdir (Makefile.am): Likewise.
31573         * modules/mkdir-p (Makefile.am): Likewise.
31574         * modules/mkdtemp (Makefile.am): Likewise.
31575         * modules/mkstemp (Makefile.am): Likewise.
31576         * modules/mktime (Makefile.am): Likewise.
31577         * modules/modechange (Makefile.am): Likewise.
31578         * modules/mountlist (Makefile.am): Likewise.
31579         * modules/nanosleep (Makefile.am): Likewise.
31580         * modules/openat (Makefile.am): Likewise.
31581         * modules/pagealign_alloc (Makefile.am): Likewise.
31582         * modules/physmem (Makefile.am): Likewise.
31583         * modules/poll (Makefile.am): Likewise.
31584         * modules/posixtm (Makefile.am): Likewise.
31585         * modules/posixver (Makefile.am): Likewise.
31586         * modules/putenv (Makefile.am): Likewise.
31587         * modules/quote (Makefile.am): Likewise.
31588         * modules/quotearg (Makefile.am): Likewise.
31589         * modules/raise (Makefile.am): Likewise.
31590         * modules/read-file (Makefile.am): Likewise.
31591         * modules/readline (Makefile.am): Likewise.
31592         * modules/readlink (Makefile.am): Likewise.
31593         * modules/readtokens (Makefile.am): Likewise.
31594         * modules/readutmp (Makefile.am): Likewise.
31595         * modules/realloc (Makefile.am): Likewise.
31596         * modules/regex (Makefile.am): Likewise.
31597         * modules/rename (Makefile.am): Likewise.
31598         * modules/rename-dest-slash (Makefile.am): Likewise.
31599         * modules/rijndael (Makefile.am): Likewise.
31600         * modules/rmdir (Makefile.am): Likewise.
31601         * modules/rpmatch (Makefile.am): Likewise.
31602         * modules/safe-read (Makefile.am): Likewise.
31603         * modules/safe-write (Makefile.am): Likewise.
31604         * modules/same (Makefile.am): Likewise.
31605         * modules/save-cwd (Makefile.am): Likewise.
31606         * modules/savedir (Makefile.am): Likewise.
31607         * modules/setenv (Makefile.am): Likewise.
31608         * modules/settime (Makefile.am): Likewise.
31609         * modules/sha1 (Makefile.am): Likewise.
31610         * modules/sig2str (Makefile.am): Likewise.
31611         * modules/snprintf (Makefile.am): Likewise.
31612         * modules/stdlib-safer (Makefile.am): Likewise.
31613         * modules/stpcpy (Makefile.am): Likewise.
31614         * modules/stpncpy (Makefile.am): Likewise.
31615         * modules/strcase (Makefile.am): Likewise.
31616         * modules/strcasestr (Makefile.am): Likewise.
31617         * modules/strchrnul (Makefile.am): Likewise.
31618         * modules/strcspn (Makefile.am): Likewise.
31619         * modules/strdup (Makefile.am): Likewise.
31620         * modules/strerror (Makefile.am): Likewise.
31621         * modules/strftime (Makefile.am): Likewise.
31622         * modules/strndup (Makefile.am): Likewise.
31623         * modules/strnlen (Makefile.am): Likewise.
31624         * modules/strpbrk (Makefile.am): Likewise.
31625         * modules/strsep (Makefile.am): Likewise.
31626         * modules/strstr (Makefile.am): Likewise.
31627         * modules/strtod (Makefile.am): Likewise.
31628         * modules/strtoimax (Makefile.am): Likewise.
31629         * modules/strtok_r (Makefile.am): Likewise.
31630         * modules/strtol (Makefile.am): Likewise.
31631         * modules/strtoll (Makefile.am): Likewise.
31632         * modules/strtoul (Makefile.am): Likewise.
31633         * modules/strtoull (Makefile.am): Likewise.
31634         * modules/strtoumax (Makefile.am): Likewise.
31635         * modules/strverscmp (Makefile.am): Likewise.
31636         * modules/time_r (Makefile.am): Likewise.
31637         * modules/timegm (Makefile.am): Likewise.
31638         * modules/tmpfile-safer (Makefile.am): Likewise.
31639         * modules/unistd-safer (Makefile.am): Likewise.
31640         * modules/unlinkdir (Makefile.am): Likewise.
31641         * modules/userspec (Makefile.am): Likewise.
31642         * modules/utime (Makefile.am): Likewise.
31643         * modules/utimecmp (Makefile.am): Likewise.
31644         * modules/utimens (Makefile.am): Likewise.
31645         * modules/vasnprintf (Makefile.am): Likewise.
31646         * modules/vasprintf (Makefile.am): Likewise.
31647         * modules/vsnprintf (Makefile.am): Likewise.
31648         * modules/xalloc (Makefile.am): Likewise.
31649         * modules/xgetcwd (Makefile.am): Likewise.
31650         * modules/xnanosleep (Makefile.am): Likewise.
31651         * modules/xreadlink (Makefile.am): Likewise.
31652         * modules/xstrtod (Makefile.am): Likewise.
31653         * modules/xstrtol (Makefile.am): Likewise.
31654         * modules/xstrtold (Makefile.am): Likewise.
31655         * modules/yesno (Makefile.am): Likewise.
31656
31657 2006-10-12  Jim Meyering  <jim@meyering.net>
31658
31659         * m4/getloadavg.m4: Revert the change below.
31660
31661         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
31662         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
31663         fail with a symlink, which is what coreutils' ./bootstrap now
31664         creates by default.
31665
31666 2006-10-12  Bruno Haible  <bruno@clisp.org>
31667
31668         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
31669         mingw.
31670         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
31671         MSVC and mingw explicitly.
31672
31673 2006-10-11  Simon Josefsson  <jas@extundo.com>
31674             Bruno Haible  <bruno@clisp.org>
31675
31676         Add support for multiple gnulib-tool invocations in the scope of a
31677         single configure.ac file.
31678         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
31679         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
31680         with the same contents as the _LIBADD variable.
31681         (func_emit_initmacro_start, func_emit_initmacro_end,
31682         func_emit_initmacro_done): New functions.
31683         (func_import, func_create_testdir): Invoke them. Allow the identifiers
31684         gl_LIBOBJS and gl_LTLIBOBJS.
31685
31686 2006-10-11  Bruno Haible  <bruno@clisp.org>
31687
31688         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
31689         (func_create_testdir): Don't create po/Makefile.am, don't invoke
31690         autoreconf. Instead, invoke autopoint explicitly but move back the
31691         *.m4 files from gnulib.
31692
31693 2006-10-11  Bruno Haible  <bruno@clisp.org>
31694
31695         * gnulib-tool (func_usage): Make module names after --create-testdir
31696         optional.
31697         (func_create_testdir): If no module was specified, use nearly all
31698         modules.
31699
31700 2006-10-12  Jim Meyering  <jim@meyering.net>
31701
31702         Big performance improvement for fts-based tools that use FTS_NOSTAT.
31703         Avoid spurious inode-mismatch problems on non-POSIX file systems.
31704         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
31705         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
31706         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
31707         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
31708         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
31709         (fts_set_stat_required): New function.
31710         (fts_open): Defer the calls to fts_stat, if possible or requested.
31711         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
31712         into fts_stat itself.
31713         (fts_read): Perform any required (deferred) fts_stat call.
31714         (fts_build): Likewise, for the directory we're about to open and read.
31715         In the readdir loop, carefully decide whether each entry will require
31716         an eventual call to fts_stat, using dirent.d_type info if available.
31717         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
31718         a command line argument into this function.  Update all callers.
31719         Map a return value of FTS_DOT to FTS_D for a command line argument.
31720         * modules/fts (Depends-on): Add d-type.  Alphabetize.
31721         Thanks to Miklos Szeredi for his tenacity and for the initial
31722         bug report about "find" failing on a FUSE-based file system.
31723
31724         * lib/fts.c (fts_open): Use consistent indentation.
31725
31726 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31727
31728         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
31729         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
31730         reported by Jim Meyering.  All uses of cache variables renamed
31731         to match Autoconf's.
31732         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
31733         the other one.
31734
31735         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31736         Fix misspelling in diagnostic.
31737
31738 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31739
31740         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
31741         defined.  Problem reported by Matthew Woehlke.
31742
31743         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
31744         Add support for Tandem NonStop R series.
31745         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
31746         Use new macro.
31747
31748         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
31749         (has_trailing_slash): Omit size arg; all callers changed.
31750         Omit 'inline', since it doesn't help performance and we'd
31751         need to configure it.
31752         Don't count //, ///, etc. as having a trailing slash.
31753         As a side effect, this removes a C99ism reported by Matthew Woehlke.
31754         (rpl_rename_dest_slash): On failure, use rename's errno rather
31755         than (in some cases) an incorrect or junk errno.
31756         Simplify code by removing need to compute length; this does
31757         cause it to make two passes instead of one over the file name,
31758         but it's worth it.
31759
31760         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
31761         change, since Autoconf's version may no longer be appropriate now
31762         that we are using CVS Autoconf's version.  Add support for Tandem.
31763
31764 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31765             Bruno Haible  <bruno@clisp.org>
31766
31767         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
31768         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
31769         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
31770         gl_AC_TYPE_LONG_LONG.
31771
31772         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
31773         instead of HAVE_LONG_LONG.
31774         * lib/printf-args.c (printf_fetchargs): Likewise.
31775         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
31776         * lib/vasnprintf.c (VASNPRINTF): Likewise.
31777         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
31778         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
31779         gl_AC_TYPE_LONG_LONG.
31780
31781 2006-10-11  Bruno Haible  <bruno@clisp.org>
31782
31783         * m4/longlong.m4: Add comments.
31784         * m4/ulonglong.m4: Likewise.
31785
31786 2006-10-10  Bruno Haible  <bruno@clisp.org>
31787
31788         Make it possible to #define stpcpy, strdup to aliases.
31789         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
31790         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
31791
31792 2006-10-10  Bruno Haible  <bruno@clisp.org>
31793
31794         Make it possible to #define gcd to an alias.
31795         * lib/gcd.c: Include config.h.
31796
31797 2006-10-10  Bruno Haible  <bruno@clisp.org>
31798
31799         Make it possible to #define c_isascii to an alias.
31800         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
31801         defined. Undefine the macros before defining them, to avoid gcc
31802         warnings.
31803         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
31804         define NO_C_CTYPE_MACROS early.
31805
31806 2006-10-10  Bruno Haible  <bruno@clisp.org>
31807
31808         Make it possible to #define set_program_name to an alias.
31809         * lib/progname.c: Don't undefine set_program_name; instead, undefine
31810         ENABLE_RELOCATABLE early.
31811
31812 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31813
31814         Port to Tandem NSK OSS, which has 64-bit signed int but at most
31815         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
31816         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
31817         More generally, don't assume that 64-bit signed int is available
31818         if unsigned int is, and vice versa.
31819         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
31820         unsigned symbols, not on their signed counterparts.
31821         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
31822         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
31823         (UINT64_C, UINTMAX_C):
31824         Likewise.
31825         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
31826         unsigned counterparts.
31827         (Have_long_long, Unsigned): New macros.
31828         (Int): Renamed from INT.
31829         (strtoimax): Use the new macros.
31830         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
31831         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
31832         * modules/inttypes (inttypes.h): Substitute
31833         HAVE_UNSIGNED_LONG_LONG_INT.
31834         * modules/stdint (stdint.h): Likewise.
31835         (Files): Add m4/ulonglong.m4.
31836
31837 2006-10-10  Bruno Haible  <bruno@clisp.org>
31838
31839         Fix a gcc -Wshadow warning.
31840         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
31841         to 'bucket'.
31842         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
31843         gl_linked_indexof_from_to): Likewise.
31844         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
31845         Likewise.
31846         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
31847         Likewise.
31848         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
31849         Reported by Eric Blake.
31850
31851 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
31852
31853         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
31854         for NetBSD.  Problem reported by Bruno Haible.
31855
31856 2006-10-09  Jim Meyering  <jim@meyering.net>
31857
31858         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
31859         Patch from Bruno Haible.
31860
31861 2006-10-09  Jim Meyering  <jim@meyering.net>
31862
31863         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
31864         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
31865         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
31866
31867 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31868
31869         Don't include <config.h> twice; this doesn't work in some cases,
31870         e.g., when config.h has "#define intmax_t long long int" and
31871         we include <config.h>, <inttypes.h>, <config.h> in that order.
31872         Problem reported by Matthew Woehlke in:
31873         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
31874         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
31875         * lib/fts-cycle.c: Don't include config.h.
31876         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
31877         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
31878         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
31879         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
31880         inttypes.h.
31881         * lib/xstrtoumax.c: Likewise.
31882         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
31883         __strtol and the like, so that this module is more like its siblings.
31884         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
31885         Remove; no longer needed now that we assume gnulib inttypes.h.
31886
31887 2006-10-08  Bruno Haible  <bruno@clisp.org>
31888
31889         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
31890         option.
31891
31892 2006-10-07  Jim Meyering  <jim@meyering.net>
31893
31894         * modules/inttypes (inttypes.h): Revert what seems to have been
31895         an inadvertent part of today's change: use "|", not "/" in the
31896         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
31897
31898 2006-10-07  Bruno Haible  <bruno@clisp.org>
31899
31900         * modules/sublist: New file.
31901
31902 2006-10-07  Bruno Haible  <bruno@clisp.org>
31903
31904         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
31905         * modules/argz (argz.h): Likewise.
31906         * modules/arpa_inet (arpa/inet.h): Likewise.
31907         * modules/byteswap (byteswap.h): Likewise.
31908         * modules/configmake (configmake.h): Likewise.
31909         * modules/fcntl (fcntl.h): Likewise.
31910         * modules/fnmatch (fnmatch.h): Likewise.
31911         * modules/getopt (getopt.h): Likewise.
31912         * modules/glob (glob.h): Likewise.
31913         * modules/inttypes (inttypes.h): Likewise.
31914         * modules/netinet_in (netinet/in.h): Likewise.
31915         * modules/poll (poll.h): Likewise.
31916         * modules/stdbool (stdbool.h): Likewise.
31917         * modules/stdint (stdint.h): Likewise.
31918         * modules/sys_select (sys/select.h): Likewise.
31919         * modules/sys_socket (sys/socket.h): Likewise.
31920         * modules/sys_stat (sys/stat.h): Likewise.
31921         * modules/sysexits (sysexits.h): Likewise.
31922         * modules/unistd (unistd.h): Likewise.
31923         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31924         Add a "DO NOT EDIT" comment to the generated file.
31925         (func_import): Likewise for gnulib-comp.m4.
31926
31927 2006-10-07  Bruno Haible  <bruno@clisp.org>
31928
31929         * lib/gl_sublist.h: New file.
31930         * lib/gl_sublist.c: New file.
31931
31932 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31933
31934         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
31935         name (relative to the original working directory) and the file
31936         name component (relative to the temporary working directory).  All
31937         callers changed.
31938         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
31939         * lib/mkdir-p.c (make_dir_parents): Likewise.
31940         * lib/mkdir-p.h (make_dir_parents): Likewise.
31941
31942 2006-10-06  Eric Blake  <ebb9@byu.net>
31943
31944         Define several macros for use by the clean-temp module.
31945         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
31946         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
31947         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
31948
31949         * lib/clean-temp.h (close_stream_temp): New declaration.
31950         * lib/clean-temp.c (includes): Pull in headers according to what
31951         other modules are in use.
31952         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
31953
31954 2006-10-06  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
31957         instead of fopen, fwriteerror.
31958
31959 2006-10-06  Bruno Haible  <bruno@clisp.org>
31960
31961         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
31962         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
31963         int.
31964         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
31965         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
31966         Return an error indicator.
31967         Suggested by Eric Blake.
31968
31969 2006-10-06  Bruno Haible  <bruno@clisp.org>
31970
31971         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
31972         Reported by Eric Blake.
31973
31974 2006-10-06  Bruno Haible  <bruno@clisp.org>
31975
31976         * modules/closeout (Description): Mention stderr too.
31977
31978 2006-10-06  Bruno Haible  <bruno@clisp.org>
31979         and Paul Eggert  <eggert@cs.ucla.edu>
31980
31981         * lib/closeout.c (close_stdout): Also close stderr.
31982         * lib/closeout.h: Update comment.
31983
31984 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
31985
31986         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
31987         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
31988         * lib/dirchownmod.c: Include lchown.h.
31989         * lib/lchown.c: Don't include files that lchown.h now includes.
31990         Don't declare chown, since lchown.h now does that.
31991         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
31992         (lchown): Define to rpl_chown if lchown is declared but
31993         does not exist.  Declare using a prototype if lchown is not
31994         declared.  Add a copyright notice.
31995         * lib/mkstemp.h: Include <unistd.h>.
31996         * lib/openat.c: Include lchown.h.
31997
31998         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
31999         we now test for that separately.
32000         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
32001         rather than O_NOFOLLOW, when testing whether it's possible to
32002         avoid a race condition reliably.
32003         * lib/savewd.c (savewd_chdir): Likewise.
32004
32005         Remove macros that are no longer needed now that stdint.h is
32006         reliable.
32007         * lib/fsusage.c (UINTMAX_MAX): Remove.
32008         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
32009         * lib/utimecmp.c (SIZE_MAX): Remove.
32010
32011         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
32012
32013         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
32014         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
32015         O_NOATIME works.
32016
32017 2006-10-05  Bruno Haible  <bruno@clisp.org>
32018
32019         * lib/gl_list.h (gl_sortedlist_search_from_to,
32020         gl_sortedlist_indexof_from_to): New declarations.
32021         (gl_list_implementation): New fields sortedlist_search_from_to,
32022         sortedlist_indexof_from_to.
32023         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
32024         inline functions.
32025         * lib/gl_list.c (gl_sortedlist_search_from_to,
32026         gl_sortedlist_indexof_from_to): New functions.
32027         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
32028         function.
32029         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
32030         (gl_array_sortedlist_search_from_to): New function.
32031         (gl_array_list_implementation): Update.
32032         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
32033         function.
32034         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
32035         (gl_carray_sortedlist_search_from_to): New function.
32036         (gl_carray_list_implementation): Update.
32037         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
32038         gl_linked_sortedlist_indexof_from_to): New functions.
32039         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32040         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32041         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
32042         gl_tree_sortedlist_indexof_from_to): New functions.
32043         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32044         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32045         Update.
32046         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32047         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
32048         Update.
32049
32050 2006-10-05  Bruno Haible  <bruno@clisp.org>
32051
32052         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
32053         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
32054         (struct gl_list_implementation): Add fields search_from_to,
32055         indexof_from_to. Remove fields search, indexof.
32056         (gl_list_search): Use the search_from_to method.
32057         (gl_list_search_from, gl_list_search_from_to): New functions.
32058         (gl_list_indexof): Use the indexof_from_to method.
32059         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
32060         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
32061         (gl_list_search_from, gl_list_search_from_to): New functions.
32062         (gl_list_indexof): Use the indexof_from_to method.
32063         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
32064         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
32065         gl_array_indexof. Add start_index, end_index arguments.
32066         (gl_array_search_from_to): Renamed from gl_array_search. Add
32067         start_index, end_index arguments.
32068         (gl_array_remove, gl_array_list_implementation): Update.
32069         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
32070         gl_carray_indexof. Add start_index, end_index arguments.
32071         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
32072         start_index, end_index arguments.
32073         (gl_carray_remove, gl_carray_list_implementation): Update.
32074         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
32075         gl_linked_search. Add start_index, end_index arguments.
32076         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
32077         start_index, end_index arguments.
32078         (gl_linked_remove): Update.
32079         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32080         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32081         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
32082         field to 'size_t'.
32083         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
32084         gl_tree_search. Add start_index, end_index arguments.
32085         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
32086         start_index, end_index arguments.
32087         (gl_tree_remove): Update.
32088         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32089         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32090         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
32091         function.
32092         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
32093         gl_tree_search. Add start_index, end_index arguments.
32094         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
32095         start_index, end_index arguments.
32096         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32097         Update.
32098         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32099
32100 2006-10-05  Bruno Haible  <bruno@clisp.org>
32101
32102         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
32103
32104         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
32105         fwriteerror_temp): New declarations.
32106         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
32107         (descriptors): New variable.
32108         (cleanup): First, close the descriptors.
32109         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
32110         fclose_temp, fwriteerror_temp): New functions.
32111
32112 2006-10-04  Jim Meyering  <jim@meyering.net>
32113
32114         * lib/fts.c (fts_open): Tiny comment change.
32115
32116 2006-10-04  Bruno Haible  <bruno@clisp.org>
32117
32118         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
32119         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
32120         gl_LOCK_BODY.
32121         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
32122         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
32123         gl_LOCK_EARLY_BODY.
32124         (gl_LOCK): Require gl_LOCK_BODY.
32125
32126 2006-10-04  Bruno Haible  <bruno@clisp.org>
32127
32128         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
32129         (gl_oset_search_atleast): New declaration.
32130         (struct gl_oset_implementation): Add field 'search_atleast'.
32131         (gl_oset_search_atleast): New inline function.
32132         * lib/gl_oset.c (gl_oset_search_atleast): New function.
32133         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
32134         (gl_array_oset_implementation): Update.
32135         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
32136         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
32137         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
32138
32139 2006-10-04  Bruno Haible  <bruno@clisp.org>
32140
32141         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
32142
32143 2006-10-03  Bruno Haible  <bruno@clisp.org>
32144
32145         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
32146         from gl_avltreehash_list_implementation.
32147
32148 2006-10-03  Bruno Haible  <bruno@clisp.org>
32149
32150         * lib/gl_oset.c (gl_oset_add): Fix return type.
32151
32152 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
32153
32154         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
32155
32156 2006-10-02  Eric Blake  <ebb9@byu.net>
32157
32158         * modules/strnlen (Depends-on): Add extensions.
32159
32160 2006-10-02  Eric Blake  <ebb9@byu.net>
32161
32162         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
32163         definition in 2.60+.
32164
32165 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
32166
32167         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
32168         checks.
32169
32170 2006-10-02  Bruno Haible  <bruno@clisp.org>
32171
32172         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
32173         to the AUTOMAKE_OPTIONS.
32174         Reported by Jim Meyering.
32175
32176 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
32177
32178         Work around bug in Solaris 10 /proc file system:
32179         /proc/self/fd/NNN/.. isn't the parent directory of
32180         the directory whose file descriptor is NNN.  This needs to
32181         be worked around at run time, not compile time, since a
32182         program might be built on Solaris 8, where things work, and
32183         run on Solaris 10.
32184         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
32185         to use the following interface instead:
32186         (OPENAT_BUFFER_SIZE): New macro.
32187         (openat_proc_name): New function.
32188         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
32189         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
32190         Likewise.
32191         * lib/openat-proc.c: New file.
32192         * modules/openat (Files): Add lib/openat-proc.c.
32193         (Depends-on): Add same-inode, stdbool.
32194         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
32195
32196 2006-09-29  Bruno Haible  <bruno@clisp.org>
32197
32198         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
32199         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
32200         argument. Set stdout_closed before testing for ferror, not after.
32201         (fwriteerror, fwriteerror_no_ebadf): New functions.
32202
32203 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32204
32205         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
32206
32207 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
32208
32209         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
32210         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
32211
32212 2006-09-28  Jim Meyering  <jim@meyering.net>
32213
32214         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
32215         Include <unistd.h>.
32216
32217 2006-09-28  Bruno Haible  <bruno@clisp.org>
32218
32219         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
32220         * modules/linkedhash-list (Depends-on): Likewise.
32221         * modules/rbtreehash-list (Depends-on): Likewise.
32222
32223 2006-09-28  Bruno Haible  <bruno@clisp.org>
32224
32225         * lib/strndup.h: Simplify the redefinition of strndup.
32226         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
32227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
32228
32229 2006-09-28  Bruno Haible  <bruno@clisp.org>
32230
32231         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
32232         * lib/gl_linkedhash_list.c: Likewise.
32233         * lib/gl_rbtreehash_list.c: Likewise.
32234
32235 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
32236
32237         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
32238         getaddrinfo.
32239
32240         * lib/__fpending.h: Don't include <stdio_ext.h> unless
32241         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
32242         it causes <stdio_ext.h> to cause a compile-time error.
32243         Problem reported by Nelson H. F. Beebe.
32244         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
32245         of HAVE_DECL___PENDING.
32246
32247         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
32248         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
32249         declaration.
32250
32251 2006-09-27  Jim Meyering  <jim@meyering.net>
32252
32253         This file could end up with a definition for a function
32254         named __strndup, rather than rpl_strndup on a system with
32255         incomplete weak_alias support.
32256         * lib/strndup.c (strndup): Rename from __strndup.
32257         Remove #defines that used to map __strndup to strndup.
32258         Don't use K&R prototypes.
32259         Remove LIBC-related code, since this file is not sync'd with glibc.
32260         * lib/strndup.h: Revamp, accordingly.
32261         * m4/strndup.m4: Modernize.
32262
32263 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
32264
32265         * modules/savewd (Depends-on): Add 'raise'.
32266         * lib/savewd.c: Include <signal.h>, for 'raise'.
32267
32268 2006-09-26  Jim Meyering  <jim@meyering.net>
32269
32270         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
32271         when we detect Darwin 8.7.0's acl_get_file bug.
32272         Rearrange to perform the new (below) run-test while $LIBS
32273         contains any acl-related library.  Set USE_ACL at the end.
32274         (gl_ACL_GET_FILE): New function.
32275
32276 2006-09-26  Eric Blake  <ebb9@byu.net>
32277
32278         * lib/verror.c: Include <config.h> unconditionally.
32279
32280 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
32281
32282         * modules/clock-time (Maintainer): Add self.
32283         * modules/getlogin_r (Depends-on): Add extensions.
32284
32285 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32286
32287         * modules/clock-time: New module.
32288         * modules/nanosleep (Depends-on): Add clock-time.
32289         * modules/gethrxtime (Depends-on): Likewise.
32290         * modules/gettime (Depends-on): Likewise.
32291         * modules/settime (Depends-on): Likewise.
32292
32293         * modules/fts-lgpl: Depend on openat.
32294         * modules/mkancesdirs: Depend on savewd.
32295         * modules/mkdir-p: Likewise.
32296
32297 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32298
32299         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
32300
32301         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
32302         `gl_have_arbitrary_file_name_length_limit' to
32303         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
32304         actually works between configure runs.
32305
32306 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32307             Bruno Haible  <bruno@clisp.org>
32308
32309         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
32310
32311 2006-09-25  Jim Meyering  <jim@meyering.net>
32312
32313         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
32314         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
32315
32316 2006-09-25  Eric Blake  <ebb9@byu.net>
32317
32318         * gnulib-tool (func_import, func_create_testdir): Fix typos in
32319         exec's in 2006-09-18 patch when shuffling fds.
32320
32321 2006-09-25  Bruno Haible  <bruno@clisp.org>
32322
32323         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
32324         Reported by Jim Meyering.
32325
32326 2006-09-24  Jim Meyering  <jim@meyering.net>
32327
32328         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
32329         compare a pointer against a literal "0".  That caused failures with
32330         at least HP-UX's hpcc.
32331
32332 2006-09-22  Simon Josefsson  <jas@extundo.com>
32333
32334         * modules/gc-sha1:
32335         * modules/gc-md4:
32336         * modules/gc-hmac-sha1:
32337         * modules/gc-hmac-md5:
32338         * modules/gc-des:
32339         * modules/gc-arcfour: Distribute more files.
32340
32341 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32342
32343         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
32344         (gl_linked_iterator_from_to): Initialize struct completely.
32345         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
32346         (gl_tree_iterator_from_to): Likewise
32347         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
32348         * lib/gl_array_list.c [lint] (gl_array_iterator)
32349         (gl_array_iterator_from_to): Likewise.
32350         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
32351         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
32352         (gl_carray_iterator_from_to): Likewise.
32353
32354         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
32355         * lib/md4.c (md4_process_block): Remove unused variable.
32356         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
32357         parentheses for clarity.
32358
32359 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32360
32361         * modules/bison-i18n (Depends-on): Add gettext.
32362
32363 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32364
32365         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
32366         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32367         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
32368         also add missing comma that caused broken test.
32369         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
32370         stdlib.h, for `abort'.
32371         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
32372         variables.
32373         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
32374         include unistd.h if present, for `rmdir'.
32375         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
32376         variables.
32377         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
32378         in the process include standard headers for prototypes.
32379         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
32380         gets declared on GNU/Linux.
32381         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
32382         unistd.h, for `rmdir'.
32383         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
32384
32385         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
32386         always true.
32387         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
32388
32389         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
32390
32391 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32392
32393         * gnulib-tool (func_version): Create output all at once.  This
32394         may help avoid triggering unnecessary SIGPIPEs, and at any
32395         rate it doesn't hurt.
32396
32397 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32398             Bruno Haible  <bruno@clisp.org>
32399
32400         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
32401         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32402         * m4/signed.m4 (bh_C_SIGNED): Likewise.
32403
32404         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
32405         (gl_FUNC_VASPRINTF): Invoke it.
32406
32407 2006-09-22  Bruno Haible  <bruno@clisp.org>
32408
32409         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
32410         getloadavg.c as first argument.
32411
32412 2006-09-22  Bruno Haible  <bruno@clisp.org>
32413
32414         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
32415         at the beginning of the gl_INIT macro.
32416         * modules/getloadavg (configure.ac): Pass $gl_source_base to
32417         gl_GETLOADAVG.
32418
32419 2006-09-22  Bruno Haible  <bruno@clisp.org>
32420
32421         * gnulib-tool (func_create_megatestdir): Don't include the config-h
32422         module.
32423         Suggested by Ralf Wildenhues.
32424
32425 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32426
32427         Import this patch from libc:
32428
32429         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
32430
32431         * lib/regex_internal.c (re_string_reconstruct): Handle
32432         offset < pstr->valid_raw_len && pstr->offsets_needed case.
32433         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
32434         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
32435         re_string_context_at.
32436
32437         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
32438         now requires it.
32439         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
32440         gl_REGEX now does it for us.
32441         (gl_REGEX): Add test taken from
32442         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
32443
32444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
32445         Check that large offsets work.  Modernize Autoconf usages.
32446         Prefer "yes" to mean a good thing rather than a bad.
32447         Don't put "#define mkstemp" in config.h, as this might interfere
32448         with standard system headers that "#define mkstemp mkstemp64".
32449
32450         * modules/mkstemp (Depends-on): Add extensions, so that
32451         mkstemp is visible on some platforms.
32452         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
32453         (Include): Change to "mkstemp.h" from <stdlib.h>.
32454         (Files): Add mkstemp.h.
32455
32456         * lib/mkstemp.h: New file, since some standard headers
32457         #define mkstemp.
32458         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
32459         Include "mkstemp.h".
32460         Make the _LIBC code resemble glibc original more,
32461         e.g., use K&R style.
32462         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
32463         (mkstemp): Remove, since mkstemp.h does this for us.
32464         * lib/stdlib--.h: Include mkstemp.h.
32465
32466         Import this patch from libc:
32467
32468         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32469
32470         * lib/tempname.c (__gen_tempname): Change attempts_min
32471         into a macro.  Use preprocessor to decide how to initialize
32472         attempts [Coverity CID 67].
32473
32474 2006-09-20  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/mkdtemp.c: Import from libc.
32477         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32478                 * sysdeps/posix/tempname.c (__gen_tempname): Change
32479                 attempts_min into a macro.  Use preprocessor to decide how to
32480                 initialize attempts [Coverity CID 67].
32481         2001-11-27  Paul Eggert  <eggert@twinsun.com>
32482                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
32483                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
32484
32485 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32486
32487         * gnulib-tool (func_exit): New function, to allow to pass the
32488         exit status portably through the trap.  Use everywhere.
32489         (--help, --version): Signal a write error.
32490         (trap): catch SIGPIPE, for write errors.
32491         Exit at the end of the trap, with the correct exit status.
32492
32493 2006-09-19  Karl Berry  <karl@gnu.org>
32494
32495         * doc/gnulib.texi: note about the license texinfo files.
32496
32497 2006-09-19  Eric Blake  <ebb9@byu.net>
32498
32499         * gnulib-tool: Avoid space-tab.
32500
32501 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32502
32503         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
32504         that prevented coreutils 6.1 from building.  Problem reported
32505         by Petter Reinholdtsen.
32506
32507 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32508
32509         * gnulib-tool (avoidlist): Fix typo that broke options like
32510         --avoid=lock that are used by coreutils bootstrap.
32511
32512 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
32513
32514         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
32515         more systematically.
32516
32517 2006-09-18  Jim Meyering  <jim@meyering.net>
32518
32519         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
32520
32521 2006-09-18  Bruno Haible  <bruno@clisp.org>
32522
32523         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
32524
32525 2006-09-18  Bruno Haible  <bruno@clisp.org>
32526
32527         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
32528         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
32529         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
32530         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
32531         * m4/gettext.m4: Require autoconf >= 2.52.
32532         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
32533         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
32534         of gl_cv_header_inttypes_h.
32535
32536 2006-09-18  Bruno Haible  <bruno@clisp.org>
32537
32538         * lib/javaversion.c: Include configmake.h.
32539
32540 2006-09-18  Bruno Haible  <bruno@clisp.org>
32541
32542         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
32543         avoid that the while loops be executed in a subshell.
32544
32545 2006-09-18  Bruno Haible  <bruno@clisp.org>
32546
32547         * MODULES.html.sh (func_module): Break long lines.
32548         Suggested by Bruce Korb <bkorb@gnu.org>.
32549
32550 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32551
32552         Speed up by a factor of 1.12.
32553         * gnulib-tool (nl): New variable.
32554         (func_import): Rewrite include directive extraction to only read each
32555         directive once.
32556
32557 2006-09-17  Bruno Haible  <bruno@clisp.org>
32558
32559         * modules/javaversion (Makefile.am): Remove DEFS setting.
32560         (Depends-on): Add configmake, for PKGDATADIR definition.
32561
32562 2006-09-17  Bruno Haible  <bruno@clisp.org>
32563
32564         * gnulib-tool (func_create_testdir): Rewrite all files at once.
32565
32566 2006-09-17  Bruno Haible  <bruno@clisp.org>
32567
32568         * gnulib-tool (func_append): New function, stolen from libtool.m4.
32569         (func_modules_transitive_closure, func_modules_add_dummy,
32570         func_modules_to_filelist, func_import, func_create_testdir,
32571         func_create_megatestdir, ...): Use it wherever possible.
32572         Suggested by Ralf Wildenhues.
32573
32574 2006-09-16  Karl Berry  <karl@gnu.org>
32575
32576         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
32577         to avoid sectioning errors.
32578         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
32579         [ifinfo]: blank line after @center-ed titles.
32580         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
32581         Spell FSF address consistently with others.
32582         (These changes approved by rms.)
32583
32584 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32585
32586         Speed up by a factor of 1.61.
32587         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
32588         already checked module names again.
32589
32590 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32591
32592         Speed up by a factor of 1.13.
32593         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
32594         for new_files, and the input to func_add_or_update.
32595
32596 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32597
32598         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
32599         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
32600
32601 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32602
32603         * modules/mkancesdirs (Depends-on): Add fcntl.
32604         * modules/savewd: New file.
32605         * MODULES.html.sh (File system functions): Add savewd.
32606
32607         * modules/configmake (Makefile.am): Add support for the
32608         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
32609
32610 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32611
32612         * m4/savewd.m4: New file.
32613
32614 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32615
32616         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
32617         (dirchownmod): New arg FD.  All callers changed.
32618         Use FD rather than opening the directory ourself, as opening is
32619         now the caller's responsibility.
32620         * lib/dirchownmod.h: Likewise.
32621         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
32622         hosts that require <sys/types.h> before <sys/stat.h>.  Include
32623         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
32624         (test_dir): Remove.
32625         (mkancesdirs): Return length of prefix of FILE that has already
32626         been made, or -2 if there is a child doing the work.  Redo
32627         algorithm so that it is O(N) rather than O(N**2).  Optimize away
32628         ".", and treat ".." specially since it might stray back into
32629         already-created areas.  Use a subprocess if necessary.  New arg
32630         WD; all users changed.  MAKE_DIR function should now return 1
32631         if it creates a directory that is not readable.  Return -2 if
32632         a child process is spun off.
32633         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
32634         Adjust signature to match code.
32635         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
32636         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
32637         all users changed.
32638         * lib/savewd.c, lib/savewd.h: New files.
32639
32640 2006-09-15  Jim Meyering  <jim@meyering.net>
32641
32642         * modules/rename-dest-slash: New module.
32643         * MODULES.html.sh (posix_compat): Add it here.
32644
32645         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
32646
32647 2006-09-15  Jim Meyering  <jim@meyering.net>
32648
32649         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
32650         file.
32651
32652         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
32653
32654 2006-09-15  Jim Meyering  <jim@meyering.net>
32655
32656         * lib/rename-dest-slash.c (has_trailing_slash): Use
32657         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
32658         (rpl_rename_dest_slash): Perform the cheaper trailing slash
32659         test before testing whether SRC is a directory.
32660         Suggestions from Bruno Haible.
32661
32662         Avoid a warning about an unused variable.
32663         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
32664         into the #ifdef block where it's used.
32665
32666         * lib/rename-dest-slash.c: New file.
32667
32668 2006-09-14  Bruno Haible  <bruno@clisp.org>
32669
32670         * lib/allocsa.c: Include <config.h> unconditionally.
32671         * lib/asnprintf.c: Likewise.
32672         * lib/asprintf.c: Likewise.
32673         * lib/c-strcasecmp.c: Likewise.
32674         * lib/c-strcasestr.c: Likewise.
32675         * lib/c-strncasecmp.c: Likewise.
32676         * lib/c-strstr.c: Likewise.
32677         * lib/classpath.c: Likewise.
32678         * lib/clean-temp.c: Likewise.
32679         * lib/concatpath.c: Likewise.
32680         * lib/copy-file.c: Likewise.
32681         * lib/csharpcomp.c: Likewise.
32682         * lib/csharpexec.c: Likewise.
32683         * lib/execute.c: Likewise.
32684         * lib/fatal-signal.c: Likewise.
32685         * lib/findprog.c: Likewise.
32686         * lib/fwriteerror.c: Likewise.
32687         * lib/gl_array_list.c: Likewise.
32688         * lib/gl_array_oset.c: Likewise.
32689         * lib/gl_avltree_list.c: Likewise.
32690         * lib/gl_avltree_oset.c: Likewise.
32691         * lib/gl_avltreehash_list.c: Likewise.
32692         * lib/gl_carray_list.c: Likewise.
32693         * lib/gl_linked_list.c: Likewise.
32694         * lib/gl_linkedhash_list.c: Likewise.
32695         * lib/gl_list.c: Likewise.
32696         * lib/gl_oset.c: Likewise.
32697         * lib/gl_rbtree_list.c: Likewise.
32698         * lib/gl_rbtree_oset.c: Likewise.
32699         * lib/gl_rbtreehash_list.c: Likewise.
32700         * lib/imaxabs.c: Likewise.
32701         * lib/imaxdiv.c: Likewise.
32702         * lib/javacomp.c: Likewise.
32703         * lib/javaexec.c: Likewise.
32704         * lib/javaversion.c: Likewise.
32705         * lib/linebreak.c: Likewise.
32706         * lib/localcharset.c: Likewise.
32707         * lib/lock.c: Likewise.
32708         * lib/mbchar.c: Likewise.
32709         * lib/mbswidth.c: Likewise.
32710         * lib/mkdtemp.c: Likewise.
32711         * lib/pipe.c: Likewise.
32712         * lib/printf-args.c: Likewise.
32713         * lib/printf-parse.c: Likewise.
32714         * lib/progname.c: Likewise.
32715         * lib/progreloc.c: Likewise.
32716         * lib/readlink.c: Likewise.
32717         * lib/sh-quote.c: Likewise.
32718         * lib/stpcpy.c: Likewise.
32719         * lib/stpncpy.c: Likewise.
32720         * lib/strcasecmp.c: Likewise.
32721         * lib/strcasestr.c: Likewise.
32722         * lib/strcspn.c: Likewise.
32723         * lib/striconv.c: Likewise.
32724         * lib/strncasecmp.c: Likewise.
32725         * lib/strnlen1.c: Likewise.
32726         * lib/strstr.c: Likewise.
32727         * lib/strtok_r.c: Likewise.
32728         * lib/tls.c: Likewise.
32729         * lib/tmpdir.c: Likewise.
32730         * lib/unicodeio.c: Likewise.
32731         * lib/unsetenv.c: Likewise.
32732         * lib/vasnprintf.c: Likewise.
32733         * lib/vasprintf.c: Likewise.
32734         * lib/wait-process.c: Likewise.
32735         * lib/xallocsa.c: Likewise.
32736         * lib/xsetenv.c: Likewise.
32737         * lib/xstriconv.c: Likewise.
32738
32739 2006-09-13  Simon Josefsson  <jas@extundo.com>
32740
32741         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
32742         that internally, suggested by Ralf Wildenhues
32743         <Ralf.Wildenhues@gmx.de>.
32744
32745 2006-09-13  Simon Josefsson  <jas@extundo.com>
32746
32747         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
32748         @LIBOBJS@.
32749         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32750
32751 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32752
32753         * lib/_fpending.c: Include <config.h> unconditionally, since we no
32754         longer worry about uses that don't define HAVE_CONFIG_H.
32755         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
32756         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
32757         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
32758         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
32759         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
32760         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
32761         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
32762         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
32763         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
32764         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
32765         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
32766         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
32767         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
32768         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
32769         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
32770         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
32771         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
32772         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
32773         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
32774         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
32775         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
32776         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
32777         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
32778         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
32779         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
32780         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
32781         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
32782         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
32783         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
32784         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
32785         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
32786         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
32787         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
32788         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
32789         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
32790         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
32791         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
32792         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
32793         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
32794         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
32795         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
32796         Likewise.
32797
32798 2006-09-13  Eric Blake  <ebb9@byu.net>
32799
32800         * lib/getopt.c: Fix typo in last commit.
32801
32802 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32803
32804         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
32805         dgettext.
32806
32807 2006-09-12  Jim Meyering  <jim@meyering.net>
32808
32809         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
32810         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
32811         Reported by Nelson H. F. Beebe.
32812
32813 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32814
32815         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
32816         program_invocation_name and program_invocation_short_name are
32817         initialized.
32818         * lib/argp-namefrob.h: Move declarations of program_invocation_name
32819         and program_invocation_short_name to argp.h, so they are visible
32820         to user programs.
32821         * lib/argp.h: Likewise
32822
32823 2006-09-10  Bruno Haible  <bruno@clisp.org>
32824
32825         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32826         m4/inttypes_h.m4, m4/uintmax_t.m4.
32827
32828 2006-09-10  Bruno Haible  <bruno@clisp.org>
32829
32830         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
32831         gl_AC_TYPE_UINTMAX_T.
32832
32833 2006-09-10  Bruno Haible  <bruno@clisp.org>
32834
32835         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
32836
32837 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32838
32839         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
32840         convention.  Text proposed by Bruno Haible.
32841         (struct argp_option): Document the use of N_() wrappers.
32842
32843         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
32844         '\v', and translate the two parts separately, instead of feeding
32845         the whole string to gettext.  This allows to exclude
32846         '\v' from the strings visible to the translator by writing doc
32847         strings as N_("..") "\v" N_("..").
32848
32849 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
32850
32851         * config/srclist.txt: Undo latest change; the bug was fixed.
32852
32853 2006-09-09  Bruno Haible  <bruno@clisp.org>
32854
32855         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
32856         assignments if building a library without libtool.
32857         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
32858         in func_emit_lib_Makefile_am.
32859         (func_import): When building a static library libfoo.a, arrange to
32860         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
32861         (func_create_testdir): Likewise.
32862         * modules/gc (configure.ac, Makefile.am): If building statically,
32863         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
32864         * modules/iconvme (configure.ac, Makefile.am): Likewise.
32865         * modules/striconv (configure.ac, Makefile.am): Likewise.
32866         Based on a suggestion by Ralf Wildenhues.
32867
32868 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32869
32870         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
32871         Check for unistd.h too, since Autoconf doesn't assume POSIX.
32872         Also:
32873
32874         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32875         Add year_2050_test to catch glibc bug 2821
32876         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
32877
32878         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32879         Prefer #ifdef to #if.
32880
32881         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
32882         Return from 'main' instead of calling 'exit'.
32883
32884 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32885
32886         * lib/mktime.c (guess_time_tm): Fix bug where mktime
32887         returned the maximum time_t value rather than (time_t) -1.
32888         Problem originally reported by William Bardwell
32889         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
32890
32891         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
32892         Moved to here ...
32893         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
32894         ... from here.
32895
32896 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32897
32898         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
32899         2821 is fixed.
32900
32901 2006-09-08  Jim Meyering  <jim@meyering.net>
32902
32903         Don't make generated files read-only.  That would bother too many
32904         people.  However, do retain the ability to work when targets are
32905         read-only: remove the destination and temporary files before writing
32906         them (when generated via sed or echo), or by using the -f option for
32907         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
32908         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32909         * modules/byteswap, modules/configmake, modules/fcntl:
32910         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32911         * modules/localcharset, modules/netinet_in, modules/poll:
32912         * modules/stdbool, modules/stdint, modules/sys_select:
32913         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32914
32915 2006-09-08  Jim Meyering  <jim@meyering.net>
32916
32917         Avoid new build failure on FreeBSD 6.0.
32918         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
32919         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
32920         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
32921
32922 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32923
32924         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
32925
32926 2006-09-07  Jim Meyering  <jim@meyering.net>
32927
32928         Fix global typo in last change: use chmod u-w, not chmod u-x.
32929         Spotted by Paul Eggert and Bruce Korb.
32930         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32931         * modules/byteswap, modules/configmake, modules/fcntl:
32932         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32933         * modules/localcharset, modules/netinet_in, modules/poll:
32934         * modules/stdbool, modules/stdint, modules/sys_select:
32935         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32936
32937 2006-09-06  Jim Meyering  <jim@meyering.net>
32938
32939         Make generated files be read-only.
32940         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
32941         Ensure that each generated file is now read-only.
32942         * modules/argz: Likewise.
32943         * modules/arpa_inet: Likewise.
32944         * modules/byteswap: Likewise.
32945         * modules/configmake: Likewise.
32946         * modules/fcntl: Likewise.
32947         * modules/fnmatch: Likewise.
32948         * modules/getopt: Likewise.
32949         * modules/glob: Likewise.
32950         * modules/inttypes: Likewise.
32951         * modules/netinet_in: Likewise.
32952         * modules/poll: Likewise.
32953         * modules/stdbool: Likewise.
32954         * modules/stdint: Likewise.
32955         * modules/sys_select: Likewise.
32956         * modules/sys_socket: Likewise.
32957         * modules/sys_stat: Likewise.
32958         * modules/sysexits: Likewise.
32959         * modules/localcharset: Same as above, but continue using temporary
32960         file named "t-$@" (why different?) rather than the "$@-t" used
32961         everywhere else.
32962
32963         * modules/sysexits (Makefile.am): Replace literal occurrences
32964         of "sysexit.h" more readable, and more consistent, "$@".
32965
32966 2006-09-06  Bruno Haible  <bruno@clisp.org>
32967
32968         * modules/striconv: New file.
32969         * modules/xstriconv: New file.
32970         * MODULES.html.sh (Internationalization functions): Add striconv,
32971         xstriconv.
32972
32973 2006-09-06  Bruno Haible  <bruno@clisp.org>
32974
32975         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
32976         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
32977         not using libtool correctly.
32978
32979 2006-09-06  Bruno Haible  <bruno@clisp.org>
32980
32981         * lib/striconv.h: New file.
32982         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
32983         iconvstring.c.
32984         * lib/xstriconv.h: New file.
32985         * lib/xstriconv.c: New file.
32986
32987 2006-09-06  Bruno Haible  <bruno@clisp.org>
32988
32989         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32990         lib_..._LDFLAGS.
32991
32992 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32993
32994         * lib/argz_.h: Sync from Libtool.
32995
32996         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
32997                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32998
32999         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
33000
33001 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
33002
33003         * modules/trim: New file.
33004
33005 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
33006
33007         * lib/trim.h: New file.
33008         * lib/trim.c: New file.
33009
33010 2006-09-05  Bruno Haible  <bruno@clisp.org>
33011
33012         * MODULES.html.sh (String handling): Add trim.
33013
33014 2006-09-04  Karl Berry  <karl@gnu.org>
33015
33016         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
33017         until next release.
33018
33019 2006-09-03  Bruno Haible  <bruno@clisp.org>
33020
33021         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
33022         correctly.
33023
33024 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33025
33026         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
33027         not gl_GETLOADAVG.  Omit unneeded semicolons.
33028         Problems reported by Ralf Wildenhues in
33029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33030         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
33031         at the end, which is the usual gnulib style.
33032
33033         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
33034         of doing all the work ourselves.
33035         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
33036         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
33037
33038 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33039
33040         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
33041         Problem reported by Ralf Wildenhues in
33042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33043
33044         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
33045         HAVE_STRUCT_STATFS_F_FSTYPENAME.
33046
33047 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33048
33049         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
33050         yesterday's patch by changing test -n to test -z.
33051
33052 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33053
33054         * modules/getloadavg (Files): Add m4/getloadavg.m4.
33055         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
33056         the former is now obsolescent.
33057
33058         * modules/chdir-long (Depends-on): Add fcntl.
33059
33060 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33061
33062         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
33063         obsolescent, and programs should use gnulib instead.
33064         * m4/getloadavg.m4: New file, with contents taken from Autoconf
33065         but with prefixes changed.
33066
33067 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33068
33069         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
33070         or stdbool.h, because they might not exist while configuring.
33071
33072         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
33073         Don't include unistd.h or limits.h; not needed, since chdir-long.h
33074         does that for us.
33075         (O_DIRECTORY): Remove.
33076
33077 2006-08-31  Eric Blake  <ebb9@byu.net>
33078
33079         * gnulib-tool: Don't let emacs change spaces to TAB.
33080
33081 2006-08-31  Bruno Haible  <bruno@clisp.org>
33082
33083         * gnulib-tool: When calling func_import more than once, do it in a
33084         subshell.
33085         Reported by Eric Blake <ebb9@byu.net>.
33086
33087 2006-08-31  Bruno Haible  <bruno@clisp.org>
33088
33089         * gnulib-tool (nl): Remove variable.
33090         (sed_transform_lib_file): Use more robust test for config-h module.
33091         (func_import): Fix typo in 2006-08-25 patch.
33092
33093 2006-08-31  Bruno Haible  <bruno@clisp.org>
33094
33095         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
33096         specified, augment Makefile.am variables instead of assigning them.
33097
33098 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33099
33100         Work around a bug in both the Linux and SunOS 64-bit kernels:
33101         nanosleep mishandles sleeps for longer than 2**31 seconds.
33102         Problem reported by Frank v Waveren in
33103         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
33104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
33105         Check for nanosleep bug.
33106         (LIB_NANOSLEEP): Append clock_gettime library if needed.
33107
33108 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33109
33110         Work around a bug in both the Linux and SunOS 64-bit kernels:
33111         nanosleep mishandles sleeps for longer than 2**31 seconds.
33112         Problem reported by Frank v Waveren in
33113         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
33114         * lib/nanosleep.c (BILLION): New constant.
33115         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
33116         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
33117         implementation.
33118
33119 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33120
33121         * modules/nanosleep (Depends-on): Add gettime.
33122
33123 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33124         and Simon Josefsson  <jas@extundo.com>
33125         and Oskar Liljeblad  <oskar@osk.mine.nu>
33126
33127         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
33128         * gnulib-tool (func_import): New license type 'unmodifiable license
33129         text'.
33130         * modules/fdl: Use it.  Longer description.
33131         * module/gpl, module/lgpl: New files.
33132
33133 2006-08-30  Jim Meyering  <jim@meyering.net>
33134
33135         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
33136         shadowing the parameter.
33137
33138 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33139
33140         Sync from Libtool:
33141
33142         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33143
33144         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
33145         sharing with gnulib.  Report by Eric Blake.
33146
33147 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33148
33149         * modules/isapipe: New file.
33150         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
33151
33152 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33153
33154         * modules/configmake (Makefile.am): Add a comment, and omit
33155         the CONFIGMAKE_ prefix from generated macro names.  Suggested
33156         by Bruno Haible.
33157
33158 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33159
33160         * m4/isapipe.m4: New file.
33161
33162 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33163
33164         * lib/isapipe.c, lib/isapipe.h: New files.
33165
33166 2006-08-29  Jim Meyering  <jim@meyering.net>
33167
33168         * modules/configmake (Makefile.am): Make configmake.h depend on
33169         Makefile.  Otherwise, a stale configmake.h could hang around.
33170
33171 2006-08-29  Eric Blake  <ebb9@byu.net>
33172
33173         * lib/error.c (error_at_line, print_errno_message): Match libc, after
33174         resolution of upstream bug 3044.
33175
33176 2006-08-29  Bruno Haible  <bruno@clisp.org>
33177
33178         * modules/localcharset (Depends-on): Add configmake.
33179         (Makefile.am): Remove setting of LIBDIR through DEFS.
33180
33181 2006-08-29  Bruno Haible  <bruno@clisp.org>
33182
33183         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
33184         defined.
33185
33186 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33187
33188         * modules/fcntl: New file.
33189         * modules/chdir-safer (Depends-on): Add fcntl.
33190         * modules/fts: Likewise.
33191         * modules/mkdir-p: Likewise.
33192
33193         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
33194         This undoes the most recent change, since we're now addressing the
33195         problem in a different way.
33196
33197         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
33198         into output, since the output might be called Makefile.am even
33199         if $makefile_name is something different.
33200         (func_import): Use $makefile_am rather than
33201         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
33202         empty.
33203
33204         * modules/inttypes (Files): Add m4/inttypes-h.m4.
33205
33206 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33207
33208         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
33209         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
33210         recent change to stdint.m4, since we're now addressing the problem in a
33211         different way.
33212
33213 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33214
33215         * m4/fcntl_h.m4: New file.
33216
33217 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33218
33219         * lib/fcntl_.h: New file.
33220         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
33221         the fcntl module.
33222         * lib/dirchownmod.c: Likewise.
33223         * lib/fts.c: Likewise.
33224
33225         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
33226         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
33227         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
33228         just before including <inttypes.h>, to avoid circular inclusion.
33229
33230 2006-08-28  Jim Meyering  <jim@meyering.net>
33231
33232         * doc/visibility.texi: Actually read and correct the grammar of the
33233         sentence affected by yesterday's change.
33234
33235 2006-08-28  Eric Blake  <ebb9@byu.net>
33236
33237         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
33238         needs wrapper.
33239
33240 2006-08-28  Eric Blake  <ebb9@byu.net>
33241
33242         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
33243
33244 2006-08-28  Eric Blake  <ebb9@byu.net>
33245
33246         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
33247
33248 2006-08-28  Bruno Haible  <bruno@clisp.org>
33249
33250         * modules/c-strstr: New file, from GNU gettext.
33251         * MODULES.html.sh (String handling): Add c-strstr.
33252
33253 2006-08-28  Bruno Haible  <bruno@clisp.org>
33254
33255         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
33256         macros.
33257         Reported by Eric Blake.
33258
33259 2006-08-28  Bruno Haible  <bruno@clisp.org>
33260
33261         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
33262         (VASNPRINTF): Return a string of length > INT_MAX without failing.
33263         * lib/vasprintf.c: Include errno.h, limits.h.
33264         (EOVERFLOW): New fallback definition.
33265         (vasprintf): Test here whether the string length is > INT_MAX.
33266         * lib/vsnprintf.c: Include errno.h, limits.h.
33267         (EOVERFLOW): New fallback definition.
33268         (vsnprintf): Fix bug when generated string was too long for the buffer.
33269         Test here whether the string length is > INT_MAX.
33270
33271 2006-08-28  Bruno Haible  <bruno@clisp.org>
33272
33273         * lib/inttypes_.h (SCNX*): Remove definitions.
33274         Reported by Eric Blake.
33275
33276 2006-08-28  Bruno Haible  <bruno@clisp.org>
33277
33278         * lib/c-strstr.h: New file, from GNU gettext.
33279         * lib/c-strstr.c: New file, from GNU gettext.
33280
33281 2006-08-28  Bruno Haible  <bruno@clisp.org>
33282
33283         * gnulib-tool: Reorder some statements.
33284
33285 2006-08-28  Bruno Haible  <bruno@clisp.org>
33286
33287         * gnulib-tool: New option --makefile-name.
33288         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
33289         $makefile_name.
33290         (func_import): Write $makefile_name to the cache file, and read it from
33291         there unless explicitly specified. Use $makefile_name as file name
33292         instead of Makefile.am. Adjust the recommendations accordingly.
33293
33294 2006-08-28  Bruno Haible  <bruno@clisp.org>
33295
33296         * gnulib-tool (func_verify_module): Check against misapplying patch.
33297
33298 2006-08-28  Bruno Haible  <bruno@clisp.org>
33299
33300         * gnulib-tool (func_relativize, func_relconcat): New functions.
33301         Give an error if --local-dir is given with --update.
33302         Remove trailing slashes from $local_gnulib_dir.
33303         (func_import): Store the relativized $local_gnulib_dir in
33304         gnulib-cache.m4, and read it from there if not specified explicitly.
33305
33306 2006-08-28  Bruno Haible  <bruno@clisp.org>
33307
33308         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
33309         is the current directory. Respect also $local_gnulib_dir.
33310
33311 2006-08-28  Bruno Haible  <bruno@clisp.org>
33312             Simon Josefsson  <jas@extundo.com>
33313
33314         BeOS portability.
33315         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
33316
33317 2006-08-27  Jim Meyering  <jim@meyering.net>
33318
33319         * doc/visibility.texi: Remove duplicate word: "pointer".
33320
33321 2006-08-26  Bruno Haible  <bruno@clisp.org>
33322
33323         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
33324         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
33325         (Makefile.am): Create inttypes.h from inttypes_.h.
33326         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
33327
33328         * modules/imaxabs: New file.
33329
33330         * modules/imaxdiv: New file.
33331
33332 2006-08-26  Bruno Haible  <bruno@clisp.org>
33333
33334         * m4/inttypes.m4: New file.
33335         * m4/_inttypes_h.m4: Remove file.
33336         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
33337         PRI_MACROS_BROKEN.
33338         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
33339
33340         * m4/imaxabs.m4: New file.
33341
33342         * m4/imaxdiv.m4: New file.
33343
33344 2006-08-26  Bruno Haible  <bruno@clisp.org>
33345
33346         * lib/inttypes_.h: New file.
33347         * lib/inttypes.h: Remove file.
33348         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
33349
33350         * lib/imaxabs.c: New file.
33351
33352         * lib/imaxdiv.c: New file.
33353
33354 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33355
33356         New config-h module, so that "make" output needn't be cluttered
33357         by -DHAVE_CONFIG_H.
33358         * MODULES.html.sh (Support for building libraries and executables):
33359         Add config-h.
33360         * modules/config-h: New file.
33361         * gnulib-tool (nl, sed_transform_lib_file): New vars.
33362         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
33363         the config-h module is used.
33364
33365         New configmake module, so that "make" output needn't be cluttered
33366         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
33367         * MODULES.html.sh (Support for building libraries and executables):
33368         Add configmake.
33369         * modules/configmake: New file.
33370
33371 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33372
33373         * m4/config-h.m4: New file.
33374
33375 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33376
33377         * config/srclist.txt: Add elisp-comp.
33378
33379 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33380
33381         * MODULES.html.sh (Support for building libraries and executables):
33382         Add elisp-comp.
33383         * build-aux/elisp-comp: New file.
33384         * modules/elisp-comp: New file.
33385
33386 2006-08-24  Bruno Haible  <bruno@clisp.org>
33387
33388         * gnulib-tool (func_create_testdir): Use non-default values of
33389         sourcebase and m4base.
33390
33391 2006-08-24  Bruno Haible  <bruno@clisp.org>
33392
33393         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
33394         HTML structure.
33395
33396 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33397
33398         * modules/openat (Depends-on): Add lchown.
33399
33400 2006-08-23  Bruno Haible  <bruno@clisp.org>
33401
33402         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
33403         of gl_LOCK_EARLY instead of gl_LOCK.
33404
33405 2006-08-23  Bruno Haible  <bruno@clisp.org>
33406
33407         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
33408         on OSF/1 to no.
33409         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
33410
33411 2006-08-23  Bruno Haible  <bruno@clisp.org>
33412
33413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
33414         as unusable.
33415
33416         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
33417         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
33418         (gl_LOCK): New macro.
33419
33420 2006-08-22  Simon Josefsson  <jas@extundo.com>
33421
33422         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
33423         to md5 module.
33424
33425 2006-08-22  Simon Josefsson  <jas@extundo.com>
33426
33427         * MODULES.html.sh: Add "Support for maintaining and release
33428         projects".
33429
33430         * build-aux/gnupload: New file, from coreutils.
33431
33432 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33433
33434         Avoid the need for AC_LIBSOURCES in m4 macros.
33435         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
33436         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
33437         * modules/check-version (EXTRA_DIST): Add check-version.h.
33438         * modules/crc (EXTRA_DIST): Add crc.h.
33439         * modules/des (EXTRA_DIST): Add des.h.
33440         * modules/gc (EXTRA_DIST): Add gc.h.
33441         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
33442         * modules/getline (EXTRA_DIST): Add getline.h.
33443         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
33444         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
33445         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
33446         * modules/md2 (EXTRA_DIST): Add md2.h.
33447         * modules/md4 (EXTRA_DIST): Add md4.h.
33448         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
33449         * modules/read-file (EXTRA_DIST): Add read-file.h.
33450         * modules/readline (EXTRA_DIST): Add readline.h.
33451         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
33452         rijndael-api-fst.h.
33453
33454 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33455
33456         * m4/rijndael.m4 (gl_ARCFOUR):
33457         * m4/arctwo.m4 (gl_ARCTWO):
33458         * m4/check-version.m4 (gl_CHECK_VERSION):
33459         * m4/crc.m4 (gl_CRC):
33460         * m4/des.m4 (gl_DES):
33461         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
33462         * m4/gc.m4 (gl_GC):
33463         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
33464         * m4/getline.m4 (gl_FUNC_GETLINE):
33465         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
33466         * m4/hmac-md5.m4 (gl_HMAC_MD5):
33467         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
33468         * m4/md2.m4 (gl_MD2):
33469         * m4/md4.m4 (gl_MD4):
33470         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
33471         * m4/read-file.m4 (gl_FUNC_READ_FILE):
33472         * m4/readline.m4 (gl_FUNC_READLINE):
33473         * m4/rijndael.m4 (gl_RIJNDAEL):
33474         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33475         to get the necessary .h files and whatnot.
33476
33477 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33478
33479         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
33480         gnulib rather than the other way around.
33481         * config/srclistvars.sh (COREUTILS): Remove.
33482
33483 2006-08-22  Jim Meyering  <jim@meyering.net>
33484
33485         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
33486
33487         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
33488
33489 2006-08-22  Eric Blake  <ebb9@byu.net>
33490
33491         * modules/regexprops-generic: New file.
33492         * MODULES.html.sh (Support for building documentation): List it.
33493
33494 2006-08-22  Eric Blake  <ebb9@byu.net>
33495
33496         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
33497         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
33499         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
33500
33501 2006-08-22  Bruno Haible  <bruno@clisp.org>
33502
33503         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
33504         and lib_LTLIBRARIES like the other lib_* variables.
33505
33506 2006-08-22  Bruno Haible  <bruno@clisp.org>
33507
33508         * build-aux/x-to-1.in: New file, from GNU gettext.
33509
33510 2006-08-22  Bruno Haible  <bruno@clisp.org>
33511
33512         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
33513         <utmpx.h> exists.
33514
33515 2006-08-22  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
33518         <utmpx.h> exists.
33519
33520 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33521
33522         BeOS portability.
33523         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
33524         exist.
33525         Problem reported by Bruno Haible.
33526
33527 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33528
33529         Avoid the need for AC_LIBSOURCES in m4 macros.
33530         * modules/acl (EXTRA_DIST): Add acl.h.
33531         * modules/argmatch (Files): Add m4/argmatch.m4.
33532         (configure.ac): Add gl_ARGMATCH.
33533         (EXTRA_DIST): Renamed from lib_SOURCES, for
33534         consistency with the other modules.  Remove argmatch.c.
33535         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
33536         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
33537         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
33538         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
33539         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
33540         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
33541         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
33542         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
33543         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
33544         * modules/closeout (EXTRA_DIST): Add closeout.h.
33545         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
33546         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
33547         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
33548         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
33549         dirname.h; remove basename.c and stripslash.c.
33550         * modules/exclude (EXTRA_DIST): Add exclude.h.
33551         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
33552         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
33553         * modules/file-type (EXTRA_DIST): Add file-type.h.
33554         * modules/filemode (EXTRA_DIST): Add filemode.h.
33555         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
33556         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33557         * modules/fpending (EXTRA_DIST): Add __fpending.h.
33558         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
33559         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
33560         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
33561         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
33562         * modules/getdate (EXTRA_DIST): Add getdate.c.
33563         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
33564         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
33565         * modules/getpass (EXTRA_DIST): Add getpass.h.
33566         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
33567         * modules/group-member (EXTRA_DIST): Add group-member.h.
33568         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
33569         * modules/hash (EXTRA_DIST): Add hash.h.
33570         * modules/human (EXTRA_DIST): Add human.h.
33571         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
33572         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
33573         * modules/lchown (EXTRA_DIST): Add lchown.h.
33574         * modules/long-options (EXTRA_DIST): Add long-options.h.
33575         * modules/lstat (EXTRA_DIST): Add lstat.h.
33576         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
33577         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
33578         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
33579         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
33580         * modules/memxor (EXTRA_DIST): Add memxor.h.
33581         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
33582         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
33583         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
33584         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
33585         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
33586         * modules/physmem (EXTRA_DIST): Add physmem.h.
33587         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
33588         * modules/posixver (EXTRA_DIST): Add posixver.h.
33589         * modules/quote (EXTRA_DIST): Add quote.h.
33590         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
33591         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
33592         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
33593         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
33594         regex_internal.h regexec.c.
33595         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
33596         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
33597         * modules/same (EXTRA_DIST): Add same.h.
33598         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
33599         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
33600         * modules/savedir (EXTRA_DIST): Add savedir.h.
33601         * modules/sha1 (EXTRA_DIST): Add sha1.h.
33602         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
33603         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
33604         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
33605         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
33606         * modules/strdup (EXTRA_DIST): Add strdup.h.
33607         * modules/strftime (EXTRA_DIST): Add strftime.h.
33608         * modules/strndup (EXTRA_DIST): Add strndup.h.
33609         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
33610         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
33611         * modules/time_r (EXTRA_DIST): Add time_r.h.
33612         * modules/timespec (EXTRA_DIST): Add timespec.h.
33613         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33614         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
33615         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
33616         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
33617         * modules/userspec (EXTRA_DIST): Add userspec.h.
33618         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
33619         * modules/utimens (EXTRA_DIST): Add utimens.h.
33620         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
33621         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
33622         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
33623         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
33624         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
33625         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
33626         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
33627         * modules/yesno (EXTRA_DIST): Add yesno.h.
33628
33629 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33630
33631         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
33632
33633         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
33634         * m4/dev-ino.m4, same-inode.m4: Remove.
33635
33636         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
33637         * m4/acl.m4 (AC_FUNC_ACL):
33638         * m4/backupfile.m4 (gl_BACKUPFILE):
33639         * m4/c-strtod.m4 (gl_C99_STRTOLD):
33640         * m4/canon-host.m4 (gl_CANON_HOST):
33641         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
33642         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
33643         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
33644         * m4/cloexec.m4 (gl_CLOEXEC):
33645         * m4/close-stream.m4 (gl_CLOSE_STREAM):
33646         * m4/closeout.m4 (gl_CLOSEOUT):
33647         * m4/dirfd.m4 (gl_FUNC_DIRFD):
33648         * m4/dirname.m4 (gl_DIRNAME):
33649         * m4/exclude.m4 (gl_EXCLUDE):
33650         * m4/exitfail.m4 (gl_EXITFAIL):
33651         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
33652         * m4/file-type.m4 (gl_FILE_TYPE):
33653         * m4/filemode.m4 (gl_FILEMODE):
33654         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
33655         * m4/fpending.m4 (gl_FUNC_FPENDING):
33656         * m4/fprintftime.m4 (gl_FPRINTFTIME):
33657         * m4/fts.m4 (gl_FUNC_FTS):
33658         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
33659         * m4/getdate.m4 (gl_GETDATE):
33660         * m4/gethrxtime.m4 (gl_GETHRXTIME):
33661         * m4/getpagesize.m4 (gl_GETPAGESIZE):
33662         * m4/getpass.m4 (gl_FUNC_GETPASS):
33663         * m4/gettime.m4 (gl_GETTIME):
33664         * m4/getugroups.m4 (gl_GETUGROUPS):
33665         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
33666         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
33667         * m4/hard-locale.m4 (gl_HARD_LOCALE):
33668         * m4/hash.m4 (gl_HASH):
33669         * m4/idcache.m4 (gl_IDCACHE):
33670         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
33671         * m4/lchown.m4 (gl_FUNC_LCHOWN):
33672         * m4/long-options.m4 (gl_LONG_OPTIONS):
33673         * m4/lstat.m4 (gl_FUNC_LSTAT):
33674         * m4/md5.m4 (gl_MD5):
33675         * m4/memcasecmp.m4 (gl_MEMCASECMP):
33676         * m4/memcoll.m4 (gl_MEMCOLL):
33677         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
33678         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
33679         * m4/memxor.m4 (gl_MEMXOR):
33680         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
33681         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
33682         * m4/modechange.m4 (gl_MODECHANGE):
33683         * m4/mountlist.m4 (gl_MOUNTLIST):
33684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33685         * m4/openat.m4 (gl_FUNC_OPENAT):
33686         * m4/pathmax.m4 (gl_PATHMAX):
33687         * m4/physmem.m4 (gl_PHYSMEM):
33688         * m4/posixtm.m4 (gl_POSIXTM):
33689         * m4/posixver.m4 (gl_POSIXVER):
33690         * m4/quote.m4 (gl_QUOTE):
33691         * m4/quotearg.m4 (gl_QUOTEARG):
33692         * m4/readtokens.m4 (gl_READTOKENS):
33693         * m4/readutmp.m4 (gl_READUTMP):
33694         * m4/regex.m4 (gl_REGEX):
33695         * m4/safe-read.m4 (gl_SAFE_READ):
33696         * m4/safe-write.m4 (gl_SAFE_WRITE):
33697         * m4/same.m4 (gl_SAME):
33698         * m4/save-cwd.m4 (gl_SAVE_CWD):
33699         * m4/savedir.m4 (gl_SAVEDIR):
33700         * m4/settime.m4 (gl_SETTIME):
33701         * m4/sha1.m4 (gl_SHA1):
33702         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
33703         * m4/stat-macros.m4 (gl_STAT_MACROS):
33704         * m4/stat-time.m4 (gl_STAT_TIME):
33705         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
33706         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
33707         * m4/strdup.m4 (gl_FUNC_STRDUP):
33708         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
33709         * m4/strndup.m4 (gl_FUNC_STRNDUP):
33710         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
33711         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
33712         * m4/time_r.m4 (gl_TIME_R):
33713         * m4/timespec.m4 (gl_TIMESPEC):
33714         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
33715         * m4/unlinkdir.m4 (gl_UNLINKDIR):
33716         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
33717         * m4/userspec.m4 (gl_USERSPEC):
33718         * m4/utimecmp.m4 (gl_UTIMECMP):
33719         * m4/utimens.m4 (gl_UTIMENS):
33720         * m4/xalloc.m4 (gl_XALLOC):
33721         * m4/xgetcwd.m4 (gl_XGETCWD):
33722         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
33723         * m4/xreadlink.m4 (gl_XREADLINK):
33724         * m4/xstrtod.m4 (gl_XSTRTOD):
33725         * m4/yesno.m4 (gl_YESNO):
33726         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33727         to get the necessary .h files and whatnot.
33728
33729 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
33730             Bruno Haible  <bruno@clisp.org>
33731
33732         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
33733         /bin/sh understanding of '!' conditional negation.
33734
33735 2006-08-21  Jim Meyering  <jim@meyering.net>
33736
33737         * modules/openat (Depends-on): Really alphabetize.
33738
33739         * modules/acl (Depends-on): Add error and quote.
33740
33741         * check-module (find_included_lib_files): Add at-func.c to the
33742         ok-to-include-more-than-once white list.
33743
33744         * modules/openat (Depends-on): Add lstat.  Alphabetize.
33745
33746 2006-08-21  Bruno Haible  <bruno@clisp.org>
33747
33748         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33749         Emit a pkgdata_DATA variable only if some snippets add contents to it.
33750         Reported by Martin Lambers <marlam@marlam.de>.
33751
33752 2006-08-21  Bruno Haible  <bruno@clisp.org>
33753
33754         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
33755         specify an installation location, don't emit a noinst_LIBRARIES or
33756         noinst_LTLIBRARIES assignment.
33757
33758 2006-08-21  Bruno Haible  <bruno@clisp.org>
33759
33760         BeOS portability.
33761         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
33762         BeOS has mbrtowc() but no <wctype.h>.
33763
33764 2006-08-21  Bruno Haible  <bruno@clisp.org>
33765
33766         BeOS portability.
33767         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
33768         exist.
33769
33770 2006-08-21  Bruno Haible  <bruno@clisp.org>
33771
33772         BeOS portability.
33773         * lib/mbchar.h: Include <wctype.h> only if it exists.
33774
33775 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33776
33777         Remove files that are no longer needed by their respective modules.
33778         * m4/obstack.m4: Remove.
33779         * m4/strerror_r.m4: Remove.
33780         * m4/uint32_t.m4: Remove.
33781         * m4/uintptr_t.m4: Remove.
33782         * m4/ullong_max.m4: Remove.
33783         * m4/xstrtoimax.m4: Remove.
33784         * m4/xstrtoumax.m4: Remove.
33785
33786         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
33787         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
33788         dependencies now capture this.
33789
33790         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33791         Do not use AC_LIBSOURCES, since gnulib modules now do this.
33792         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
33793         * m4/human.m4 (gl_HUMAN): Likewise.
33794         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
33795         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
33796
33797         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
33798
33799         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
33800         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
33801         stdint.
33802         * m4/human.m4 (gl_HUMAN): Likewise.
33803         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
33804         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
33805         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
33806         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
33807         * m4/xstrtol (gl_XSTRTOL): Likewise.
33808
33809         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
33810         AC_TYPE_LONG_LONG_INT.
33811         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
33812         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
33813         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
33814         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
33815
33816         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
33817         on stdbool.
33818
33819         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
33820         (gl_PREREQ_XSTRTOUL): Remove.
33821
33822         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
33823
33824         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
33825         mode.
33826
33827 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33828
33829         Add and change modules to make it easier for coreutils to use
33830         gnulib-tool.
33831         * modules/backupfile (Files): Remove m4/d-ino.m4.
33832         (Depends-on): Add d-ino.
33833         * modules/cycle-check (Depends-on): Add stdint.
33834         (lib_SOURCES): Add cycle-check.h.
33835         * modules/d-ino: New module.
33836         * modules/d-type: New module.
33837         * modules/error (Files): Remove m4/strerror_r.m4.
33838         * modules/filemode (Files): Add m4/st_dm_mode.m4.
33839         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
33840         m4/inttypes_h.m4, m4/uintmax_t.m4.
33841         (Depends-on): Add stdint.
33842         (lib_SOURCES): Add fsusage.h.
33843         * modules/getcwd (Files): Remove d-ino.m4.
33844         (Depends-on): Add d-ino.
33845         * modules/getndelim2 (Depends-on): Add stdint.
33846         * modules/glob (Files): Remove m4/d-type.m4.
33847         (Depends-on): Add d-type.
33848         * modules/host-os: New module.
33849         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
33850         m4/inttypes_h.m4, m4/uintmax_t.m4.
33851         * Depends-on: Add stdint.
33852         (lib_SOURCES): Add human.h.
33853         * modules/inttostr (Files): Remove m4/intmax_t.m4,
33854         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
33855         m4/uintmax_t.m4, m4/ulonglong.m4.
33856         (Depends-on): Add stdint.
33857         (EXTRA_DIST): Add inttostr.h.
33858         * modules/lchmod: New module.
33859         * modules/link-follow: New module.
33860         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
33861         (Depends-on): Add lchmod.
33862         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
33863         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
33864         (Depends-on): Add stdint.
33865         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
33866         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
33867         (Depends-on): Add stdint.
33868         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
33869         * modules/perl: New module.
33870         * modules/regex (Depends-on): Add stdint.
33871         * modules/rmdir-errno: New module.
33872         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
33873         m4/intmax_t.m4.
33874         (Depends-on): Add stdint.
33875         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
33876         m4/uintmax_t.m4.
33877         (Depends-on): Add stdint.
33878         * modules/unlink-busy: New module.
33879         * modules/utimecmp (Depends-on): Add stdint.
33880         * modules/uptime: New module.
33881         * modules/winsz-ioctl: New module.
33882         * modules/winsz-termios: New module.
33883         * modules/xnanosleep (Depends-on): Add nanosleep.
33884         * modules/ullong_max: Remove.
33885         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
33886         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
33887         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
33888         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
33889         (Depends-on): Add inttypes.
33890         (lib_SOURCES): Add xstrtol.h.
33891         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
33892         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
33893         * MODULES.html.sh: Move 'assert' into the assert section.
33894         Move 'dummy' into the linking section.
33895         Remove ullong_max.
33896         Add section for compatibility checks for POSIX:2001 functions,
33897         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
33898         winsz-ioctl, and winsz-termios into it.
33899         Add lchmod.
33900         Add top-level Misc section and put host-os, perl, and uptime
33901         into it.
33902
33903 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33904
33905         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
33906         now assume the stdint module.  Do not include inttypes.h.
33907         * lib/fsusage.h: Likewise.
33908         * lib/getndelim2.c: Likewise.
33909         * lib/human.h: Likewise.
33910         * lib/inttostr.h: Likewise.
33911         * lib/obstack.c: Likewise.
33912         * lib/regex_internal.h: Likewise.
33913         * lib/tempname.c: Likewise.
33914         * lib/utimecmp.c: Likewise.
33915         * lib/xstrtol.h: Likewise.
33916
33917         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
33918
33919         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
33920         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
33921         * lib/xtime.h: Likewise.
33922
33923 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33924
33925         * modules/openat (Files): Add lib/fchmodat.c.
33926         Fixes problem reported by Jay Youngman.
33927
33928 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33929
33930         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
33931         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
33932
33933 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33934             Bruno Haible  <bruno@clisp.org>
33935
33936         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
33937         and is a script that invokes bison. Tighten the code. Add comments.
33938
33939 2006-08-18  Jim Meyering  <jim@meyering.net>
33940
33941         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
33942         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
33943         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
33944         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
33945
33946 2006-08-18  Bruno Haible  <bruno@clisp.org>
33947
33948         * modules/bison-i18n: New file.
33949         * MODULES.html.sh (Internationalization functions): Add it.
33950
33951 2006-08-18  Bruno Haible  <bruno@clisp.org>
33952
33953         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
33954         sys/statvfs.h. When getmntinfo was found, check its declaration and
33955         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
33956
33957 2006-08-18  Bruno Haible  <bruno@clisp.org>
33958
33959         * m4/bison-i18n.m4: New file, from bison.
33960
33961 2006-08-18  Bruno Haible  <bruno@clisp.org>
33962
33963         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
33964         (ME_DUMMY): Treat "kernfs" as a dummy.
33965         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
33966
33967 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33968
33969         Update from coreutils.
33970
33971         2006-08-15  Jim Meyering  <jim@meyering.net>
33972
33973         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
33974
33975         2006-01-17  Jim Meyering  <jim@meyering.net>
33976
33977         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
33978
33979         2006-01-11  Jim Meyering  <jim@meyering.net>
33980
33981         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
33982         Check for the lchmod function.
33983
33984 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33985
33986         Update from coreutils.
33987
33988         * lib/__fpending.h: Add copyright notice.
33989         * lib/fprintftime.h: Likewise.
33990         * lib/savedir.c: Use (C) in copyright notice.
33991         * lib/savedir.h: Likewise.
33992
33993         2006-08-15  Jim Meyering  <jim@meyering.net>
33994
33995         * lib/at-func.c: New file, with the logic of all emulated at-functions.
33996         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
33997         in support of the EXPECTED_ERRNO macro.
33998         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
33999         definitions.  Instead, define the appropriate symbols and include
34000         "at-func.c".
34001         * lib/mkdirat.c (mkdirat): Likewise.
34002         * lib/fchmodat.c (fchmodat): Likewise.
34003         (ENOSYS): Remove definition.
34004         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
34005         it.  Don't include "unistd--.h" -- it wasn't ever used.
34006
34007         2006-01-17  Jim Meyering  <jim@meyering.net>
34008
34009         Rewrite fts.c not to change the current working directory,
34010         by using openat, fstatat, fdopendir, etc..
34011
34012         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
34013         (HAVE_OPENAT_SUPPORT): Define.
34014         [_LIBC] (fchdir): Don't undef or define; no longer used.
34015         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
34016         Now, this `function' always succeeds, and consumes its file descriptor
34017         parameter -- so callers must not close such FDs.  Update callers.
34018         (diropen_fd, opendirat, cwd_advance_fd): New functions.
34019         (diropen): Add parameter, SP.  Adjust all callers.
34020         Implement using diropen_fd, rather than open.
34021         (fts_open): Initialize new member, fts_cwd_fd.
34022         Remove fts_rft-setting code.
34023         (fts_close): Close fts_cwd_fd, if necessary.
34024         (__opendir2): Define in terms of opendir or opendirat,
34025         depending on whether the FST_NOCHDIR flag is set.
34026         (fts_build): Since fts_safe_changedir consumes its FD, and since
34027         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
34028         and close the dup'd file descriptor upon failure.
34029         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
34030         (fts_safe_changedir): Tweak semantics to reflect that this function
34031         now calls cwd_advance_fd and hence consumes its FD argument.
34032         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
34033         [struct FTS] (fts_rft): Remove now-unused member.
34034         [struct FTS] (fts_cycle.state): Improve comment.
34035
34036         * lib/openat.c (openat_needs_fchdir): New function.
34037         * lib/openat.h (openat_needs_fchdir): Declare it.
34038
34039 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
34040
34041         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
34042         Problem and fix reported by Pádraig Brady in
34043         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
34044
34045 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34046
34047         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
34048
34049 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34050
34051         * lib/memcoll.c (memcoll): Optimize for the common case where the
34052         arguments are bytewise equal.
34053
34054 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34055
34056         * doc/regexprops-generic.texi: Add a copyright notice.
34057
34058 2006-08-15  Bruno Haible  <bruno@clisp.org>
34059
34060         * modules/tmpdir (License): Change to LGPL.
34061
34062 2006-08-15  Bruno Haible  <bruno@clisp.org>
34063
34064         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
34065         module.
34066
34067 2006-08-14  Simon Josefsson  <jas@extundo.com>
34068
34069         * config/srclist.txt: Add gnupload.
34070
34071 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34072
34073         Change copyright notice from LGPL 2 to GPL 2, since that's the
34074         standard form used in the gnulib repository.
34075         * tests/test-lock.c: Likewise.
34076         * tests/test-stdint.c: Likewise.
34077         * tests/test-tls.c: Likewise.
34078
34079         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
34080         prelude-manager.  User shorter URLs for GNU projects, without '?'.
34081         Add copyright notice.
34082
34083         * check-module: Add copyright notice.  Output a copyright
34084         notice if "--version" is specified.
34085         * modules/COPYING: New file.
34086         * tests/test-getaddrinfo.c: Add copyright notice.
34087         * tests/test-verify.c: Likewise.
34088
34089 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34090
34091         Change copyright notice from LGPL 2 to GPL 2, since that's the
34092         standard form used in the gnulib repository.
34093         * lib/lock.c: LGPL -> GPL.
34094         * lib/lock.h: Likewise.
34095         * lib/strnlen1.c: Likewise.
34096         * lib/strnlen1.h: Likewise.
34097         * lib/tls.c: Likewise.
34098         * lib/tls.h: Likewise.
34099         * lib/tmpdir.c: Likewise.
34100
34101         * lib/TODO: Remove; this belongs only in coreutils.
34102
34103 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34104
34105         Add copyright notices to long-enough files that lack them, since
34106         otherwise the files aren't clearly free.  Use the same notice that
34107         getdate.texi already uses.
34108         * doc/alloca-opt.texi: Add copyright notice.
34109         * doc/alloca.texi: Likewise.
34110         * doc/ctime.texi: Likewise.
34111         * doc/functions.texi: Likewise.
34112         * doc/gcd.texi: Likewise.
34113         * doc/gnulib-tool.texi: Likewise.
34114         * doc/inet_ntoa.texi: Likewise.
34115         * doc/visibility.texi: Likewise.
34116
34117         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
34118         * doc/quote.texi: Add copyright notice.
34119
34120         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
34121         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
34122         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
34123         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
34124         is now obsolete, and give a pointer to the Sun list.
34125         Add copyright notice.
34126
34127 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34128
34129         * config/srclistvars.sh: Add copyright notice.
34130
34131 2006-08-14  Eric Blake  <ebb9@byu.net>
34132
34133         Import the following change from libc:
34134
34135         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
34136
34137         Upstream bug 2997.
34138         * lib/misc/error.c: Add space between program name and message if file
34139         name is missing.
34140
34141 2006-08-12  Karl Berry  <karl@gnu.org>
34142
34143         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
34144         remove, these originate in gnulib now.
34145
34146 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34147
34148         * doc/Makefile (standards.info standards.html standards.dvi):
34149         Also depend on make-stds.texi.
34150
34151 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34152
34153         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
34154         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
34155
34156         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
34157         in wchar_t.  Problem reported by Eric Blake.
34158
34159         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
34160         LEN is smaller than SIZE.  Suggested by Bruno Haible.
34161         Also, help the compiler to keep LEN in a register.
34162
34163 2006-08-11  Eric Blake  <ebb9@byu.net>
34164
34165         * users.txt: Sort.  Add tar.
34166
34167 2006-08-11  Bruno Haible  <bruno@clisp.org>
34168
34169         * users.txt: New file.
34170
34171 2006-08-11  Bruno Haible  <bruno@clisp.org>
34172
34173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
34174         before <wchar.h>. Needed for OSF/1 and BSD/OS.
34175
34176 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34177
34178         * modules/snprintf (Depends-on): Remove minmax.
34179         (Maintainer): Add self and Bruno.
34180
34181 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34182
34183         * lib/.cppi-disable: Add snprintf.h, socket_.h.
34184         * lib/snprintf.c: Include <errno.h> and <limits.h>.
34185         (EOVERFLOW): Define if the system does not.
34186         Do not include "minmax.h"; it wasn't used.
34187         (snprintf): Don't assume size_t promotes to an unsigned type.
34188         Fix bug when generated string was too long for the buffer: the
34189         buffer's contents are supposed to be the initial prefix of the
34190         output.  Don't assume vasnprintf returns EOVERFLOW if the size
34191         exceeds INT_MAX; do the check ourselves.
34192
34193         Import the following changes from libc:
34194
34195         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
34196
34197         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
34198         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
34199         set wc to the byte which couldn't be converted.
34200         (re_string_reconstruct): Don't clear valid_raw_len before calling
34201         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
34202         tip_context using re_string_context_at.
34203
34204         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
34205
34206         * lib/posix/regex.h: g++ still cannot handled [restrict].
34207
34208         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
34209
34210         * lib/posix/regex.h: Remove special handling for VMS.
34211
34212 2006-08-10  Jim Meyering  <jim@meyering.net>
34213
34214         * modules/same-inode: New module.
34215         * modules/dev-ino: New module.
34216         * modules/cycle-check: Depend on these modules, rather than simply
34217         including their .h files.
34218         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
34219         required via m4/cycle-check.m4.
34220         * modules/same: Depend on new same-inode module, rather than
34221         including same-inode.h.
34222         * modules/chdir-safer: New file.
34223
34224         * modules/chown (Depends-on): Add stat-macros.
34225
34226 2006-08-10  Jim Meyering  <jim@meyering.net>
34227
34228         * m4/cycle-check.m4: New file.
34229         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
34230         * m4/dev-ino.m4, m4/same-inode.m4: New files.
34231
34232 2006-08-10  Eric Blake  <ebb9@byu.net>
34233
34234         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
34235         in from original proposal.
34236
34237 2006-08-10  Eric Blake  <ebb9@byu.net>
34238         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34239
34240         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
34241         namespace.
34242
34243 2006-08-10  Bruno Haible  <bruno@clisp.org>
34244
34245         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
34246         as well.
34247
34248 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34249
34250         Sync from coreutils.
34251
34252         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
34253
34254         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
34255         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
34256
34257 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34258
34259         * modules/restrict: Remove; no longer needed now that we assume
34260         Autoconf 2.59 or later.
34261         * MODULES.html.sh: Remove 'restrict'.
34262         * modules/argp (Depends-on): Remove 'restrict'.
34263         * modules/base64 (Depends-on): Likewise.
34264         * modules/gc (Depends-on): Likewise.
34265         * modules/getaddrinfo (Depends-on): Likewise.
34266         * modules/glob (Depends-on): Likewise.
34267         * modules/inet_ntop (Depends-on): Likewise.
34268         * modules/inet_pton (Depends-on): Likewise.
34269         * modules/memxor (Depends-on): Likewise.
34270         * modules/regex (Depends-on): Likewise.
34271         * modules/strtok_r (Depends-on): Likewise.
34272         * modules/time_r (Depends-on): Likewise.
34273
34274 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34275
34276         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
34277         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
34278         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34279         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
34280         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
34281         * m4/memxor.m4 (gl_MEMXOR): Likewise.
34282         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
34283         gl_C_RESTRICT replaced by AC_C_RESTRICT.
34284
34285         Merge from coreutils.
34286         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
34287         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
34288         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34289         * m4/time_r.m4 (gl_TIME_R): Likewise.
34290
34291 2006-08-09  Karl Berry  <karl@gnu.org>
34292
34293         * config/srclist.txt: no more gettext-tools, per Bruno.
34294
34295 2006-08-08  Eric Blake  <ebb9@byu.net>
34296
34297         * modules/verror: New module.
34298         * MODULES.html.sh: Document it.
34299
34300 2006-08-08  Eric Blake  <ebb9@byu.net>
34301
34302         * lib/verror.h, lib/verror.c: New files.
34303
34304 2006-08-08  Eric Blake  <ebb9@byu.net>
34305
34306         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
34307         verror_at_line output complies with GNU Coding Standards even when
34308         file is NULL.
34309
34310 2006-08-07  Bruno Haible  <bruno@clisp.org>
34311
34312         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
34313         versions of AIX.
34314         Reported by Ralf Wildenhues.
34315
34316 2006-08-07  Bruno Haible  <bruno@clisp.org>
34317
34318         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
34319         in an AC_DEFUN. Needed so that the autoconf snippets can use
34320         AC_REQUIRE.
34321
34322 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34323
34324         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34325         Initialize pkgdata_DATA.
34326         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
34327         overriding it.
34328
34329 2006-08-06  Eric Blake  <ebb9@byu.net>
34330
34331         * lib/error.h: Fold in some upstream changes from glibc.
34332         * lib/error.c: Likewise.
34333
34334 2006-08-04  Bruno Haible  <bruno@clisp.org>
34335
34336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34337         Make the mostlyclean-local rule depend on mostlyclean-generic.
34338         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
34339
34340 2006-07-31  Bruno Haible  <bruno@clisp.org>
34341
34342         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
34343         <stdlib.h>, <string.h>.
34344
34345 2006-07-30  Bruno Haible  <bruno@clisp.org>
34346
34347         * modules/readlink (License): Change to LGPL.
34348
34349 2006-07-30  Bruno Haible  <bruno@clisp.org>
34350
34351         * modules/javaversion (Makefile.am): Distribute javaversion.java and
34352         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
34353         set PKGDATADIR to point to it.
34354
34355 2006-07-30  Bruno Haible  <bruno@clisp.org>
34356
34357         * modules/csharpexec (configure.ac): Comment out macro invocation.
34358         * modules/javaexec (configure.ac): Likewise.
34359         * modules/javacomp-script (configure.ac): Likewise.
34360
34361         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
34362
34363 2006-07-30  Bruno Haible  <bruno@clisp.org>
34364
34365         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
34366         linked-list.
34367
34368 2006-07-30  Bruno Haible  <bruno@clisp.org>
34369
34370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
34371
34372 2006-07-30  Bruno Haible  <bruno@clisp.org>
34373
34374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34375         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
34376         get removed.
34377
34378 2006-07-29  Bruno Haible  <bruno@clisp.org>
34379
34380         Make it possible for gnulib-tool to work with locally modified or
34381         augmented gnulib repositories.
34382         * gnulib-tool (func_usage): Document --local-dir option.
34383         (local_gnulib_dir): New variable.
34384         Handle --local-dir option.
34385         (func_lookup_file): New function.
34386         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
34387         (func_get_description, func_get_filelist, func_get_description,
34388         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
34389         func_get_automake_snippet, func_get_include_directive,
34390         func_get_license, func_get_maintainer): Use func_lookup_file.
34391         (func_import, func_create_testdir): Use func_lookup_file.
34392
34393 2006-07-29  Bruno Haible  <bruno@clisp.org>
34394
34395         * modules/setenv (Depends-on): Add unistd.
34396
34397 2006-07-29  Bruno Haible  <bruno@clisp.org>
34398
34399         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
34400
34401 2006-07-29  Bruno Haible  <bruno@clisp.org>
34402
34403         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
34404
34405 2006-07-29  Bruno Haible  <bruno@clisp.org>
34406
34407         * gnulib-tool (import, update): If there is no Makefile.am, look at
34408         aclocal.m4, instead of bailing out.
34409
34410 2006-07-29  Bruno Haible  <bruno@clisp.org>
34411
34412         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
34413         Categorize the options by when they are useful.
34414
34415 2006-07-29  Bruno Haible  <bruno@clisp.org>
34416
34417         * gnulib-tool (func_usage): Document option --no-libtool.
34418         Handle option --no-libtool.
34419         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
34420         for changed semantics of $libtool variable.
34421         (func_import): Likewise. If libtool is not used, show this through
34422         an option --no-libtool.
34423         (func_create_testdir): Update.
34424
34425 2006-07-29  Bruno Haible  <bruno@clisp.org>
34426
34427         * gnulib-tool (func_import): Extend error message about missing
34428         --doc-base.
34429
34430 2006-07-29  Bruno Haible  <bruno@clisp.org>
34431
34432         * gnulib-tool (func_import): Don't create the $docbase directory if
34433         there is no file to store there.
34434
34435 2006-07-29  Bruno Haible  <bruno@clisp.org>
34436
34437         * gnulib-tool (autoconf_minversion): If a --dir option is given and
34438         relevant, look for configure.ac there, not in the current directory.
34439         Also use a simple search for AC_PREREQ, not "autoconf --trace".
34440
34441 2006-07-29  Bruno Haible  <bruno@clisp.org>
34442
34443         * gnulib-tool (SORT): New variable.
34444         (func_usage): Undocument --assume-autoconf option.
34445         Remove --assume-autoconf option handling.
34446         (autoconf_minversion): Determine from the contents of configure.ac.
34447         (func_import): Remove autoconf_minversion handling.
34448         Suggested by Eric Blake.
34449
34450 2006-07-29  Bruno Haible  <bruno@clisp.org>
34451
34452         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
34453
34454 2006-07-29  Bruno Haible  <bruno@clisp.org>
34455
34456         * config/srclist.txt (*setenv.[ch]): Remove rules.
34457
34458 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34459
34460         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
34461
34462 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34463
34464         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
34465         arpa/inet.h.
34466
34467 2006-07-28  Simon Josefsson  <jas@extundo.com>
34468
34469         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
34470         * modules/inet_pton (Depends-on): Likewise.
34471
34472 2006-07-28  Simon Josefsson  <jas@extundo.com>
34473
34474         * m4/netinet_in_h.m4: New file.
34475
34476 2006-07-28  Simon Josefsson  <jas@extundo.com>
34477
34478         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
34479         #include's.
34480
34481 2006-07-28  Simon Josefsson  <jas@extundo.com>
34482
34483         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
34484         #include's.
34485
34486 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
34487
34488         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
34489         setgid on directories only if they set these bits.
34490         * lib/modechange.h: Remove obsolete comment about masks.
34491
34492 2006-07-28  Eric Blake  <ebb9@byu.net>
34493
34494         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
34495         macro expansion.
34496
34497 2006-07-28  Bruno Haible  <bruno@clisp.org>
34498
34499         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
34500
34501 2006-07-28  Bruno Haible  <bruno@clisp.org>
34502
34503         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
34504
34505 2006-07-28  Bruno Haible  <bruno@clisp.org>
34506
34507         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34508         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34509         Define fallbacks.
34510         Avoids link error on FreeBSD 4.x.
34511         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34512
34513         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
34514         encoding.
34515         * lib/mbswidth.c (iswcntrl): Likewise.
34516
34517 2006-07-27  Bruno Haible  <bruno@clisp.org>
34518
34519         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
34520         test.
34521
34522 2006-07-27  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
34525         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
34526         defined.
34527
34528 2006-07-26  Eric Blake  <ebb9@byu.net>
34529
34530         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
34531
34532 2006-07-26  Eric Blake  <ebb9@byu.net>
34533
34534         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
34535         like mingw that lack mkstemp.
34536         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
34537         avoid compilation warning on mingw.
34538
34539 2006-07-26  Bruno Haible  <bruno@clisp.org>
34540
34541         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
34542         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
34543         INT_FAST*_MIN, INTPTR_MIN.
34544
34545 2006-07-25  Bruno Haible  <bruno@clisp.org>
34546
34547         * modules/version-etc (Depends-on): Add stdarg.
34548
34549 2006-07-25  Bruno Haible  <bruno@clisp.org>
34550
34551         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
34552         complex commands.
34553
34554 2006-07-25  Bruno Haible  <bruno@clisp.org>
34555
34556         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
34557         defined in <stdarg.h> or config.h.
34558
34559 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34560
34561         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
34562         (gl_STDIO_SAFER): Remove.
34563
34564 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34565
34566         * MODULES.html.sh (File stream based Input/Output):
34567         Add fopen-safer, tmpfile-safer; remove stdio-safer.
34568         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
34569         * modules/fopen-safer, modules/tmpfile-safer: New files.
34570         * modules/stdio-safer: Remove.
34571
34572 2006-07-24  Bruno Haible  <bruno@clisp.org>
34573
34574         * modules/tmpdir: New file.
34575         * MODULES.html.sh (File system functions): Add it.
34576
34577 2006-07-24  Bruno Haible  <bruno@clisp.org>
34578
34579         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
34580         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
34581
34582 2006-07-24  Bruno Haible  <bruno@clisp.org>
34583
34584         * modules/clean-temp: New file.
34585
34586 2006-07-24  Bruno Haible  <bruno@clisp.org>
34587
34588         * m4/tmpdir.m4: New file, from GNU gettext.
34589
34590 2006-07-24  Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/tmpdir.h: New file, from GNU gettext.
34593         * lib/tmpdir.c: New file, from GNU gettext.
34594
34595 2006-07-24  Bruno Haible  <bruno@clisp.org>
34596
34597         * lib/clean-temp.h: New file, from GNU gettext.
34598         * lib/clean-temp.c: New file, from GNU gettext.
34599
34600 2006-07-23  Eric Blake  <ebb9@byu.net>
34601
34602         * modules/stdio-safer (Files): Add tmpfile-safer.c.
34603         (Depends-on): Add binary-io.
34604
34605 2006-07-23  Eric Blake  <ebb9@byu.net>
34606
34607         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
34608
34609 2006-07-23  Eric Blake  <ebb9@byu.net>
34610
34611         * lib/tmpfile-safer.c: New file.
34612         * lib/stdio-safer.h (fopen_safer): Add prototype.
34613         * lib/stdio--.h (tmpfile): Make safer.
34614
34615 2006-07-23  Bruno Haible  <bruno@clisp.org>
34616
34617         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
34618         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
34619         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
34620         gl_linked_remove_at): Use it.
34621
34622 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34623         and Simon Josefsson <jas@extundo.com>
34624
34625         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
34626
34627         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
34628
34629 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34630
34631         * modules/close-stream: New file.
34632         * modules/closeout (Description): Make it clear that it exits
34633         with a diagnostic on error.
34634         (Depends-on): Add close-stream.  Remove fpending, stdbool.
34635         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
34636
34637 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34638
34639         * m4/close-stream.m4: New file.
34640
34641 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34642
34643         * lib/close-stream.c, lib/close-stream.h: New files.
34644
34645 2006-07-22  Bruno Haible  <bruno@clisp.org>
34646
34647         Merge from GNU gettext 0.15.
34648
34649         2006-05-01  Bruno Haible  <bruno@clisp.org>
34650
34651                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
34652
34653         2006-07-22  Bruno Haible  <bruno@clisp.org>
34654
34655                 * modules/javaversion: New file.
34656                 * MODULES.html.sh (Java): Add javaversion.
34657
34658         2006-03-12  Bruno Haible  <bruno@clisp.org>
34659
34660                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
34661
34662         2005-12-04  Bruno Haible  <bruno@clisp.org>
34663
34664                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
34665                 (untested).
34666
34667         2006-06-21  Bruno Haible  <bruno@clisp.org>
34668
34669                 Avoid warnings from recent versions of mcs.
34670                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
34671                 -o, -L, -r any more. Use options documented since mcs-1.0
34672                 instead. Similarly for -g.
34673
34674         2005-12-04  Bruno Haible  <bruno@clisp.org>
34675
34676                 * build-aux/csharpcomp.sh.in: Suffix for resources is
34677                 .resources, not .resource.
34678
34679         2005-07-09  Bruno Haible  <bruno@clisp.org>
34680
34681                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
34682                 add a .dll suffix.
34683                 Reported by Mark Junker <mjscod@gmx.de>.
34684
34685         2006-07-22  Bruno Haible  <bruno@clisp.org>
34686
34687                 * modules/gettext: Upgrade to gettext-0.15.
34688                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
34689                 m4/visibility.m4.
34690                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
34691
34692 2006-07-22  Bruno Haible  <bruno@clisp.org>
34693
34694         Merge from GNU gettext 0.15.
34695
34696         2006-03-25  Bruno Haible  <bruno@clisp.org>
34697
34698                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
34699
34700         2006-07-21  Bruno Haible  <bruno@clisp.org>
34701
34702                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
34703                 "1.1".
34704
34705         2006-05-09  Bruno Haible  <bruno@clisp.org>
34706
34707                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
34708                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
34709                 for the conftestver execution.
34710
34711         2006-05-01  Bruno Haible  <bruno@clisp.org>
34712
34713                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
34714                 optional target-version argument. Verify that the compiler
34715                 groks source of the specified source-version, or add -source
34716                 option as necessary. Verify that the compiler produces
34717                 bytecode in the specified target-version, or add -target and
34718                 -source options as necessary. Make the result of the test
34719                 available as variable CONF_JAVAC. Also log error output in
34720                 config.log.
34721
34722         2006-03-11  Bruno Haible  <bruno@clisp.org>
34723
34724                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
34725
34726         2006-05-09  Bruno Haible  <bruno@clisp.org>
34727
34728                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
34729                 CLASSPATH_SEPARATOR to a semicolon.
34730
34731         2006-03-12  Bruno Haible  <bruno@clisp.org>
34732
34733                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
34734                 available as variable CONF_JAVA, for subsequent autoconf
34735                 tests. Also log error output in config.log.
34736
34737         2006-07-19  Bruno Haible  <bruno@clisp.org>
34738
34739                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
34740                 that getline works on glibc2 systems. Needed to avoid trouble
34741                 in relocatable.c.
34742                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
34743
34744         2005-12-04  Bruno Haible  <bruno@clisp.org>
34745
34746                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
34747                 launcher (untested).
34748
34749         2005-12-04  Bruno Haible  <bruno@clisp.org>
34750
34751                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
34752
34753         2006-07-22  Bruno Haible  <bruno@clisp.org>
34754
34755                 * gettext.m4: Update from GNU gettext-0.15.
34756                 * nls.m4: Likewise.
34757                 * po.m4: Likewise.
34758                 * inttypes-pri.m4: Likewise.
34759                 * inttypes-h.m4: Renamed from inttypes.m4.
34760                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
34761
34762 2006-07-22  Bruno Haible  <bruno@clisp.org>
34763
34764         Merge from GNU gettext 0.15.
34765
34766         2005-07-05  Bruno Haible  <bruno@clisp.org>
34767
34768                 * printf-args.c (printf_fetchargs): Work around broken
34769                 definition of wint_t on mingw.
34770
34771         2005-02-12  Bruno Haible  <bruno@clisp.org>
34772
34773                 * xallocsa.h: Add extern "C" for C++.
34774
34775         2006-05-17  Bruno Haible  <bruno@clisp.org>
34776
34777                 Cygwin portability.
34778                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
34779
34780         2006-04-30  Bruno Haible  <bruno@clisp.org>
34781
34782                 * progreloc.c: Include <mach-o/dyld.h> if available.
34783                 (find_executable): Use _NSGetExecutablePath when possible.
34784
34785         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
34786
34787                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
34788                 function.
34789
34790         2005-12-29  Bruno Haible  <bruno@clisp.org>
34791
34792                 * progreloc.c (set_program_name_and_installdir): Fix
34793                 compilation error.
34794
34795         2005-12-04  Bruno Haible  <bruno@clisp.org>
34796
34797                 Cygwin portability.
34798                 * progreloc.c: Include <windows.h> also on Cygwin.
34799                 (find_executable): Add support for Cygwin.
34800                 (set_program_name_and_installdir): Handle also platforms with
34801                 nonempty EXEEXT.
34802
34803         2006-07-11  Bruno Haible  <bruno@clisp.org>
34804
34805                 * javacomp.c: Fix a comment.
34806                 Reported by Jim Meyering.
34807
34808         2006-04-30  Bruno Haible  <bruno@clisp.org>
34809
34810                 * javacomp.h (compile_java_class): Add source_version,
34811                 target_version arguments.
34812                 * javacomp.c: Rewritten to choose only a compiler that
34813                 respects the specified source_version and target_version.
34814
34815         2006-06-27  Bruno Haible  <bruno@clisp.org>
34816
34817                 Assume correct S_ISDIR macro.
34818                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
34819
34820         2006-07-22  Bruno Haible  <bruno@clisp.org>
34821
34822                 * javaversion.h: New file, from GNU gettext.
34823                 * javaversion.c: New file, from GNU gettext.
34824                 * javaversion.java: New file, from GNU gettext.
34825                 * javaversion.class: New file, from GNU gettext.
34826
34827         2006-05-17  Bruno Haible  <bruno@clisp.org>
34828
34829                 Cygwin portability.
34830                 * javaexec.c (execute_java_class): Test for jview program
34831                 also on Cygwin.
34832
34833         2006-04-09  Bruno Haible  <bruno@clisp.org>
34834
34835                 * fatal-signal.c: Don't include string.h.
34836                 (at_fatal_signal): Use a copying loop instead of memcpy.
34837
34838         2005-12-04  Bruno Haible  <bruno@clisp.org>
34839
34840                 * csharpexec.c: Add support for 'clix' launcher (untested).
34841                 (execute_csharp_using_sscli): New function.
34842                 (execute_csharp_program): Call it.
34843
34844         2006-06-21  Bruno Haible  <bruno@clisp.org>
34845
34846                 Avoid warnings from recent versions of mcs.
34847                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
34848                 -o, -L, -r any more. Use options documented since mcs-1.0
34849                 instead. Similarly for -g.
34850
34851         2005-07-09  Bruno Haible  <bruno@clisp.org>
34852
34853                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
34854                 add a .dll suffix.
34855                 Reported by Mark Junker <mjscod@gmx.de>.
34856
34857         2006-06-17  Bruno Haible  <bruno@clisp.org>
34858
34859                 * config.charset: Update for NetBSD 3.0.
34860
34861         2006-05-17  Bruno Haible  <bruno@clisp.org>
34862
34863                 Cygwin portability.
34864                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
34865
34866         2006-05-16  Bruno Haible  <bruno@clisp.org>
34867
34868                 * localcharset.c [CYGWIN]: Include <windows.h>.
34869                 (get_charset_aliases): For Cygwin, return the same CPxxx
34870                 aliases list as under WIN32.
34871                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
34872                 the environment variables. Fall back to GetACP().
34873
34874         2006-04-05  Bruno Haible  <bruno@clisp.org>
34875
34876                 * config.charset: Update Juan Manuel Guerrero's address.
34877
34878         2005-02-12  Bruno Haible  <bruno@clisp.org>
34879
34880                 * allocsa.h: Add extern "C" for C++.
34881
34882         2005-02-10  Bruno Haible  <bruno@clisp.org>
34883
34884                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
34885                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
34886
34887         2006-07-22  Bruno Haible  <bruno@clisp.org>
34888
34889                 * gettext.h: Update to GNU gettext-0.15.
34890
34891 2006-07-22  Bruno Haible  <bruno@clisp.org>
34892
34893         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
34894         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
34895         lib-prefix.m4, longdouble.m4, ssize_t.m4.
34896
34897 2006-07-21  Eric Blake  <ebb9@byu.net>
34898
34899         * modules/stdlib-safer: New file.
34900         * MODULES.html.sh (File stream based Input/Output): Add
34901         stdlib-safer.
34902
34903 2006-07-21  Eric Blake  <ebb9@byu.net>
34904
34905         * lib/stdlib-safer.h: New file from coreutils, required by
34906         stdlib--.h.
34907
34908 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34909
34910         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
34911
34912 2006-07-20  Bruno Haible  <bruno@clisp.org>
34913
34914         * gnulib-tool: Recognize new option --assume-autoconf.
34915         (autoconf_minversion): New variable.
34916         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
34917
34918 2006-07-20  Bruno Haible  <bruno@clisp.org>
34919
34920         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
34921
34922 2006-07-19  Derek R. Price  <derek@ximbiot.com>
34923
34924         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
34925         Reindent and repaginate.
34926
34927 2006-07-19  Derek Price  <derek@ximbiot.com>
34928
34929         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
34930         Correct grammar.
34931
34932 2006-07-17  Bruno Haible  <bruno@clisp.org>
34933
34934         * modules/list: New file.
34935         * modules/array-list: New file.
34936         * modules/carray-list, modules/carray-list-tests: New files.
34937         * modules/linked-list, modules/linked-list-tests: New files.
34938         * modules/avltree-list, modules/avltree-list-tests: New files.
34939         * modules/rbtree-list, modules/rbtree-list-tests: New files.
34940         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
34941         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
34942         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
34943         * modules/oset: New file.
34944         * modules/array-oset: New file.
34945         * modules/avltree-oset, modules/avltree-oset-tests: New files.
34946         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
34947         * tests/test-carray_list.c: New file.
34948         * tests/test-linked_list.c: New file.
34949         * tests/test-avltree_list.c: New file.
34950         * tests/test-rbtree_list.c: New file.
34951         * tests/test-linkedhash_list.c: New file.
34952         * tests/test-avltreehash_list.c: New file.
34953         * tests/test-rbtreehash_list.c: New file.
34954         * tests/test-avltree_oset.c: New file.
34955         * tests/test-rbtree_oset.c: New file.
34956         * MODULES.html.sh (Container data structures): New section.
34957
34958 2006-07-17  Bruno Haible  <bruno@clisp.org>
34959
34960         * m4/gl_list.m4: New file.
34961
34962 2006-07-17  Bruno Haible  <bruno@clisp.org>
34963
34964         * lib/gl_list.h: New file.
34965         * lib/gl_list.c: New file.
34966         * lib/gl_array_list.h: New file.
34967         * lib/gl_array_list.c: New file.
34968         * lib/gl_carray_list.h: New file.
34969         * lib/gl_carray_list.c: New file.
34970         * lib/gl_linked_list.h: New file.
34971         * lib/gl_linked_list.c: New file.
34972         * lib/gl_anylinked_list1.h: New file.
34973         * lib/gl_anylinked_list2.h: New file.
34974         * lib/gl_avltree_list.h: New file.
34975         * lib/gl_avltree_list.c: New file.
34976         * lib/gl_anyavltree_list1.h: New file.
34977         * lib/gl_anyavltree_list2.h: New file.
34978         * lib/gl_rbtree_list.h: New file.
34979         * lib/gl_rbtree_list.c: New file.
34980         * lib/gl_anyrbtree_list1.h: New file.
34981         * lib/gl_anyrbtree_list2.h: New file.
34982         * lib/gl_anytree_list1.h: New file.
34983         * lib/gl_anytree_list2.h: New file.
34984         * lib/gl_linkedhash_list.h: New file.
34985         * lib/gl_linkedhash_list.c: New file.
34986         * lib/gl_anyhash_list1.h: New file.
34987         * lib/gl_anyhash_list2.h: New file.
34988         * lib/gl_avltreehash_list.h: New file.
34989         * lib/gl_avltreehash_list.c: New file.
34990         * lib/gl_rbtreehash_list.h: New file.
34991         * lib/gl_rbtreehash_list.c: New file.
34992         * lib/gl_anytreehash_list1.h: New file.
34993         * lib/gl_anytreehash_list2.h: New file.
34994
34995         * lib/gl_oset.h: New file.
34996         * lib/gl_oset.c: New file.
34997         * lib/gl_array_oset.h: New file.
34998         * lib/gl_array_oset.c: New file.
34999         * lib/gl_avltree_oset.h: New file.
35000         * lib/gl_avltree_oset.c: New file.
35001         * lib/gl_rbtree_oset.h: New file.
35002         * lib/gl_rbtree_oset.c: New file.
35003         * lib/gl_anytree_oset.h: New file.
35004
35005 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35006
35007         * m4/mkancesdirs.m4: New file.
35008         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
35009         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
35010         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
35011         it.
35012
35013 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35014
35015         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
35016         * lib/mkancesdirs.h: New files.
35017         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
35018         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
35019         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
35020         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
35021         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
35022         callers changed.  Revamp internals significantly, by not
35023         attempting to create directories that are temporarily more
35024         permissive than the final results.  Do not attempt to use
35025         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
35026         This removes some race conditions, fixes some bugs, and simplifies
35027         things.  Use new dirchownmod function to do owner and mode changes.
35028         * lib/mkdir-p.h: Likewise.
35029         * lib/modechange.c (octal_to_mode): New function.
35030         (struct mode_change): New member mentioned.
35031         (make_node_op_equals): New arg mentioned.  All callers changed.
35032         (mode_compile): Keep track of which mode bits the user has explicitly
35033         mentioned.
35034         (mode_adjust): New arg DIR, so that we implement the X op correctly.
35035         New arg PMODE_BITS, to keep track of which mode bits the user
35036         mentioned; it treats S_ISUID and S_ISGID speciall.
35037         All callers changed.
35038         * lib/modechange.h: Likewise.
35039
35040 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35041
35042         * MODULES.html.sh: Add mkancestors.
35043         * modules/mkancesdirs: New module.
35044         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
35045         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
35046         The chdir-safer and afs files are now orphans; I'll remove them
35047         unless someone speaks up.
35048         Add lib/dirchownmod.c, lib/dirchownmod.h.
35049         (Depends-on): Remove alloca, chown, save-cwd, dirname.
35050         Add lchown, mkancesdirs.
35051         (Maintainer): Add self.
35052
35053 2006-07-15  Karl Berry  <karl@gnu.org>
35054
35055         * gnulib-tool: help message wording/arrangement.
35056
35057 2006-07-14  Simon Josefsson  <jas@extundo.com>
35058
35059         * doc/gnulib.texi (Libtool and Windows): New section.
35060
35061 2006-07-12  Simon Josefsson  <jas@extundo.com>
35062
35063         * modules/gendocs (License): Fix license, approved by Karl.
35064
35065 2006-07-12  Eric Blake  <ebb9@byu.net>
35066
35067         * MODULES.html.sh: Add gendocs.
35068
35069 2006-07-11  Eric Blake  <ebb9@byu.net>
35070
35071         * modules/fdl: New module, to install doc/fdl.texi.
35072         * MODULES.html.sh: Add new section for documentation modules.
35073         * gnulib-tool: Avoid space-tab.
35074         (--doc-base): New option, to manage files from doc.
35075
35076 2006-07-11  Eric Blake  <ebb9@byu.net>
35077
35078         * m4/absolute-header.m4: Fix comments to match recent change.
35079
35080 2006-07-11  Eric Blake  <ebb9@byu.net>
35081
35082         * gnulib-tool: List --doc-base before --tests-base.
35083
35084 2006-07-11  Derek R. Price  <derek@ximbiot.com>
35085
35086         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
35087
35088 2006-07-11  Bruno Haible  <bruno@clisp.org>
35089
35090         * README: Mention where to put documentation.
35091
35092 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35093
35094         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
35095
35096 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35097
35098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
35099         to stdint.m4.
35100
35101 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35102
35103         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
35104         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
35105         "no/such/file/stdint.h" when there is no such file, so that
35106         the resulting C code can be parsed by dodgy compilers.
35107         Problems reported by Bob Proulx.
35108
35109 2006-07-10  Derek R. Price  <derek@ximbiot.com>
35110
35111         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
35112         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
35113         macros into the GNU _D_EXACT_NAMLEN.
35114         * lib/savedir.c:  Likewise.
35115         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
35116
35117 2006-07-10  Derek R. Price  <derek@ximbiot.com>
35118         and Paul Eggert  <eggert@cs.ucla.edu>
35119
35120         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
35121         * m4/savedir.m4:
35122         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
35123         macros into the GNU _D_EXACT_NAMLEN.
35124
35125 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35126
35127         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
35128         around the absolute name, to work around a problem with the HP-UX
35129         11.23 native C compiler, reported by Bob Proulx.
35130
35131 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35132
35133         * doc/maintain.texi, make-stds.texi: Sync from
35134         <http://savannah.gnu.org/projects/gnustandards>.
35135
35136 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35137
35138         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
35139
35140 2006-07-09  Jim Meyering  <jim@meyering.net>
35141
35142         * m4/glob.m4: Remove a doubled word in a comment.
35143
35144 2006-07-09  Jim Meyering  <jim@meyering.net>
35145
35146         * lib/argp-pv.c: Remove a doubled word in a comment.
35147         * lib/check-version.c (check_version): Likewise.
35148         * lib/javacomp.c (compile_java_class): Likewise.
35149
35150 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35151
35152         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
35153         for the benefit of people using Autoconf 2.60.  If you want to
35154         support older Autoconf versions you can copy m4/onceonly_2_57.m4
35155         (or m4/onceonly.m4, if pre-2.57) manually.
35156
35157 2006-07-08  Jim Meyering  <jim@meyering.net>
35158
35159         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
35160         comment.
35161         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
35162         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
35163         comment.
35164
35165 2006-07-08  Jim Meyering  <jim@meyering.net>
35166
35167         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
35168
35169 2006-07-07  Simon Josefsson  <jas@extundo.com>
35170
35171         * tests/test-crc.c: Change expected crc value, the test vector
35172         were probably computed using the old broken crc.c?
35173
35174 2006-07-06  Simon Josefsson  <jas@extundo.com>
35175
35176         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
35177         now the canonical place for the M4 file).
35178
35179         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
35180         from the sys_socket dependency now.
35181
35182         * modules/inet_pton (Files): Ditto.
35183
35184         * modules/inet_ntop (Files): Ditto.
35185
35186 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35187
35188         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
35189         not gl_PREREQ_GETUSERSHELL.
35190
35191 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35192
35193         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
35194         with only one argument, for Autoconf 2.60.
35195         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
35196         expand to nothing, so add a shell command to avoid syntax error.
35197         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
35198
35199 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35200
35201         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
35202
35203 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35204
35205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
35206         no longer needed.  Check for isblank decl.
35207         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
35208         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
35209         of existence.
35210
35211 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35212
35213         * lib/getloadavg.c: Use __VMS, not VMS.
35214         * lib/getopt.c: Likewise.
35215         * lib/getpagesize.h: Likewise.
35216         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
35217         and probably does not work.
35218
35219 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35220
35221         * lib/.cppi-disable: Add wcwidth.
35222         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
35223         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
35224         (ISGRAPH): Remove.  All uses changed to isgraph.
35225         (FOLD) [!defined _LIBC]: Remove special case.
35226         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
35227         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
35228         HAVE_ISBLANK.
35229         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
35230         case.
35231
35232 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
35233
35234         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
35235         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
35236         brackets.  Other minor changes to suppress some compiler
35237         warnings.
35238
35239 2006-07-06  Derek R. Price  <derek@ximbiot.com>
35240         and Paul Eggert  <eggert@cs.ucla.edu>
35241
35242         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
35243         of invoking obsolescent AC_HEADER_DIRENT macro.
35244         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
35245         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
35246         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35248         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
35249         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35250         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
35251         * m4/readdir.m4: Remove; no longer needed.
35252
35253 2006-07-06  Derek R. Price  <derek@ximbiot.com>
35254         and Paul Eggert  <eggert@cs.ucla.edu>
35255
35256         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
35257         Don't worry about this obsolete case any more.
35258         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
35259         directories.
35260         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
35261         worry about this obsolete case any more.
35262         * lib/fts.c: Likewise.
35263         * lib/getcwd.c: Likewise.
35264         * lib/glob.h: Likewise.
35265         * lib/savedir.c: Likewise.
35266
35267 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
35270         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
35271         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
35272         needed.
35273         All uses removed.
35274         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35275         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
35276         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
35277         needed.
35278         * m4/getdate.m4 (gl_GETDATE): Likewise.
35279         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
35280         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
35281         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
35282         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35283         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
35284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35285         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
35286         needed.
35287
35288 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35289
35290         * lib/memcasecmp.c: Include <limits.h>.
35291         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
35292         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
35293         Don't assume isdigit succeeds only on '0' through '9'.
35294
35295 2006-07-05  Eric Blake  <ebb9@byu.net>
35296
35297         * modules/getaddrinfo (Depends-on): Add snprintf.
35298
35299 2006-07-05  Eric Blake  <ebb9@byu.net>
35300
35301         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
35302         to avoid 'header present but could not be compiled' on cygwin.
35303
35304 2006-07-05  Eric Blake  <ebb9@byu.net>
35305
35306         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
35307         missing from netdb.h.
35308         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
35309
35310 2006-07-05  Derek R. Price  <derek@ximbiot.com>
35311
35312         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
35313         no longer needed.
35314         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
35315         * m4/getdate.m4 (gl_GETDATE): Likewise.
35316         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
35317         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
35318         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
35319         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35321
35322 2006-07-05  Derek R. Price  <derek@ximbiot.com>
35323
35324         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
35325         All uses of is_space replaced by isspace.
35326         * lib/exit.h: Don't talk about STDC_HEADERS.
35327         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
35328         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
35329         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
35330         replaced by isprint etc.
35331         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
35332         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
35333         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
35334         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
35335         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
35336         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
35337
35338 2006-07-05  Bruno Haible  <bruno@clisp.org>
35339
35340         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
35341         the function exists, before testing against AIX.
35342         Reported by Martin Lambers <marlam@marlam.de>.
35343
35344 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35345
35346         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
35347         From Mark D. Baushke.
35348
35349 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35350
35351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
35352         to the absolute name, not just one, to bypass Sun C 5.8's
35353         "warning: #include of /usr/include/... may be non-portable".
35354
35355 2006-07-04  Eric Blake  <ebb9@byu.net>
35356
35357         * modules/dirname-tests: New test module.
35358         * tests/test-dirname.c: New file, replacing dirname.c
35359         TEST_DIRNAME section that was recently deleted.
35360
35361 2006-07-04  Bruno Haible  <bruno@clisp.org>
35362
35363         Assume ANSI C header files and <ctype.h> functions.
35364         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
35365         (mbsnwidth): Use isprint, iscntrl instead.
35366
35367 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35368
35369         Merge from coreutils.
35370         * MODULES.html.sh: Add xstrtold.
35371         * modules/xstrtold: New file.
35372         * modules/cycle-check (Files): Add lib/same-inode.h.
35373         * modules/dirname (Files): Add m4/double-slash-root.m4.
35374         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
35375         * modules/mkdir-p (Files): Add lib/same-inode.h.
35376         * modules/same (Files): Add lib/same-inode.h.
35377
35378 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35379
35380         * m4/absolute-header.m4: Renamed from full-header-path.m4.
35381         This is to keep the terminology clean; POSIX talks about
35382         "absolute pathnames", not "full pathnames", but the GNU
35383         Coding Standards say to use "path" for something else;
35384         so use "absolute" to keep both sides happy.
35385         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
35386         Set gl_absolute_header, not gl_full_header_path.
35387         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
35388         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
35389         All uses changed.
35390
35391         Merge from coreutils.
35392
35393         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35394
35395         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
35396         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
35397         want to require the building of c-strtod.o.
35398         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
35399         needs -lm directly.
35400         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
35401
35402         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35403
35404         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
35405         --as-needed option if available.  Problem reported by Albert Chin in
35406         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
35407         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
35408         cc merely issues a bunch of annoying warnings for --as-needed
35409         (this problem was reported by Bob Proulx).  Also, try linking with
35410         -lm to detect a bug in binutils 2.16 (this problem was reported
35411         by Ralf Wildenhues).
35412
35413         2006-06-18  Jim Meyering  <jim@meyering.net>
35414
35415         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
35416         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
35417         macro.
35418         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
35419         also check for glibc-2.4's abort-inducing bug.
35420
35421         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
35422         Low-probability clean-up should be to use rmdir to get rid of
35423         the just-created directory, not unlink.
35424
35425         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
35426         configure fail, and request a bug report to inform us about it.
35427         Add a comment that, barring reports to the contrary, in 2007 we'll
35428         assume ftruncate is universally available.
35429
35430         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35431
35432         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
35433
35434         2006-03-12  Jim Meyering  <jim@meyering.net>
35435
35436         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
35437         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
35438         * m4/same.m4 (gl_SAME): Likewise.
35439         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
35440
35441         2006-03-11  Eric Blake  <ebb9@byu.net>
35442
35443         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
35444         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
35445         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
35446         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
35447
35448 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35449
35450         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
35451         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
35452         reported by Mark D. Baushke, one in
35453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
35454
35455         Merge from coreutils.
35456
35457         * lib/.cppi-disable: Add stdint_.h.
35458         * lib/.cvsignore: Add stdint.h.
35459
35460         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35461
35462         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
35463         both double and long double versions.
35464         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
35465         * lib/xstrtold.c: New file.
35466         * lib/xstrtod.h (xstrtold): New decl.
35467
35468         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35469
35470         * lib/filemode.c (setst): Remove.
35471         (strmode): Rewrite to avoid setst.  This makes the code shorter,
35472         (arguably) clearer, and the generated code is a bit smaller on my
35473         Debian GNU/Linux stable x86 host.
35474
35475         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35476
35477         * lib/filemode.c: Include "filemode.h" first, to test the interface.
35478         Assume that filemode.h includes sys/types.h and sys/stat.h.
35479         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
35480         (ftypelet): Reorder to put common cases first, for efficiency.
35481         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
35482         to do 'M'.
35483         (strmode): Renamed from mode_string, and now stores 12 bytes instead
35484         of 10, for compatibility with FreeBSD.  All callers changed.
35485         (filemodestring): Now stores 12 bytes instead of 10, and sets file
35486         types that can't be deduced solely from st_mode.  First arg is now a
35487         const pointer.
35488         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
35489         (strmode): Renamed from mode_string.
35490         (filemodestring): New decl.
35491         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
35492         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
35493         needed.
35494         (S_ISPORT, S_ISWHT): New macros, if not already defined.
35495
35496         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35497
35498         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
35499         fsusage.h now does that.  Include fsusage.h first, to test interface.
35500         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
35501         at most one method (the old code could have generated decls that
35502         didn't conform to C89, not that this was ever exercised).
35503         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
35504
35505         2006-03-19  Jim Meyering  <jim@meyering.net>
35506
35507         Work even in a chroot where d_ino values for entries in "/"
35508         don't match the stat.st_ino values for the same names.
35509         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
35510         number, iterate through all entries again, using lstat instead.
35511         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
35512         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
35513
35514         * lib/getcwd.c (__getcwd): Clarify a comment.
35515         Use memcpy in place of a call to strcpy.
35516
35517         2006-03-12  Jim Meyering  <jim@meyering.net>
35518
35519         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
35520         matches that of the current directory (which we're about to chdir ".."
35521         out of), then save the dev-ino of the parent, instead.
35522
35523         * lib/same-inode.h (SAME_INODE): New file/macro.
35524         * lib/chdir-safer.c (SAME_INODE): Remove definition.
35525         Include "same-inode.h", instead.
35526         * lib/same.c: Likewise.
35527         * lib/cycle-check.h: Include "same-inode.h".
35528         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
35529         * lib/cycle-check.c (SAME_INODE): Remove definition.
35530         * lib/root-dev-ino.h: Include "same-inode.h".
35531
35532         2006-03-11  Eric Blake  <ebb9@byu.net>
35533
35534         * lib/same.c (same_name): s/base_name/last_component/
35535         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
35536         * lib/filenamecat.c (file_name_concat): Likewise.
35537
35538         2006-03-11  Eric Blake  <ebb9@byu.net>,
35539                     Paul Eggert  <eggert@cs.ucla.edu>
35540
35541         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
35542         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
35543         drive prefix.
35544         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
35545         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
35546         (last_component): New method.
35547         * lib/dirname.c (dir_len): Determine when drive letters need a
35548         subsequent slash.  Preserve // when it is special.
35549         (dir_name): Don't append dot when drive letter is absolute.
35550         [TEST_DIRNAME]: Move into a full-blown gnulib test.
35551         * lib/basename.c (base_name): New semantics - malloc the result.
35552         Preserve // when it is special.  Preserve relative files that look
35553         like drive letters.
35554         (base_len): Preserve // when it is special.
35555         (last_component): New method, similar to old base_name semantics.
35556         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
35557         base_name.  Strip redundant slashes from ///.
35558
35559 2006-07-03  Jim Meyering  <jim@meyering.net>
35560
35561         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
35562         macro is used before the first cycle_check call.
35563
35564 2006-07-03  Eric Blake  <ebb9@byu.net>
35565
35566         * modules/dirname (Depends-on): Add xstrndup.
35567
35568 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35569
35570         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
35571         test cases, so that config.log is a bit easier to follow.
35572
35573 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35574
35575         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
35576         both are 64 bits, since this seems to be the tradition, and this
35577         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
35578         we ever run into a host that prefers long long to long in this
35579         case, we'll need another configure-time test.  Problem reported by
35580         Jim Meyering.
35581
35582 2006-07-02  Eric Blake  <ebb9@byu.net>
35583
35584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
35585
35586 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35587
35588         * modules/inttypes (Depends-on): No longer depends on stdint.
35589         * modules/stdint (Description): Say more about assumptions.
35590         Say that the fast types might differ.  Say macros are used.
35591         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
35592         (Makefile.am): Revise list of substituted symbols to match
35593         new stdint.m4.
35594         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
35595         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
35596         * tests/test-stdint.c (verify_same_types)
35597         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
35598         the code conforms to C99/C89.
35599         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
35600         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
35601
35602 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35603
35604         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
35605         but fix a bug, by requiring at least 64 bits.
35606         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35607         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
35608         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
35609         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
35610
35611         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
35612         changes.  Make 2.59 a prerequisite.  Check and substitute for
35613         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
35614         inttypes.h.  Do not use special include files; just use the
35615         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
35616         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
35617         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
35618         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
35619         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
35620         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
35621         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
35622         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
35623         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
35624         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
35625         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
35626         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
35627         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
35628         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
35629         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
35630         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
35631         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
35632         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
35633         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
35634         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
35635         WINT_MAX.  Check for C99 conformance more strictly, by detecting
35636         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
35637         not check for things that C99 does not require, e.g., int8_t.  If
35638         a test isn't needed unless <stdint.h> isn't working, and is
35639         unlikely to be needed for any other reason, then don't do it
35640         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
35641         size_t, since we assume C89 freestanding at least.  Do not check
35642         for sig_atomic_t, wchar_t, or wint_t, since the code now does
35643         the right thing even if the types are not defined.  Instead use:
35644         (gl_STDINT_TYPE_PROPERTIES): New macro.
35645         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
35646         testing whether <sys/types.h> clashes, as Autoconf does this for
35647         us now.  All uses removed.
35648         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
35649         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
35650         (gl_CHECK_TYPE_SAME):
35651         Remove; no longer needed.
35652         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
35653         exists, since we'll return 0 anyway in that case.
35654         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
35655
35656 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35657
35658         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
35659         possible collision with system files.
35660         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
35661         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
35662         WCHAR_MIN and WCHAR_MAX in this case.
35663         (<stddef.h>): Do not include; no longer needed.
35664         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
35665         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
35666         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
35667         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
35668         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
35669         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
35670         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
35671         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
35672         !defined(__c99))]: Include in this case too, since it's harmless
35673         now.
35674         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
35675         dangerous to do so.
35676         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
35677         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
35678         (_STDINT_MIN, _STDINT_MAX): New macros.
35679         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
35680         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
35681         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
35682         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
35683         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
35684         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
35685         macros, not typedefs; this simplifies things quite a bit.
35686         Use long int for all types narrower than int64_t.
35687         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
35688         Define in terms of long long int or int64_t or long int,
35689         not int64_t or int32_t.  This saves some compile-time testing.
35690         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
35691         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
35692         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
35693         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
35694         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
35695         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
35696         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
35697         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35698         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
35699         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
35700         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35701         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35702         undef any previous version and define our own version, for
35703         simplicity and consistency with the new macros for types.
35704         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35705         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35706         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
35707         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
35708         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
35709         @WINT_T_SUFFIX@ to keep things simple here.
35710         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
35711         Simplify by assuming typical 8/16/32/64 host, since we're
35712         already doing that elsewhere anyway.
35713         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
35714         and assume long long int is 64 bits if available.  This
35715         speeds up 'configure'.
35716
35717 2006-07-01  Eric Blake  <ebb9@byu.net>
35718
35719         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
35720         Reported by Andreas Buening.
35721
35722 2006-07-01  Eric Blake  <ebb9@byu.net>
35723
35724         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
35725
35726 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
35727
35728         * lib/getaddrinfo.c: fixed typo
35729
35730 2006-06-29  Jim Meyering  <jim@meyering.net>
35731
35732         * modules/strftime (Maintainer): Add my name, since with the
35733         FPRINTFTIME changes strftime.c has forked from glibc.
35734
35735 2006-06-29  Eric Blake  <ebb9@byu.net>
35736
35737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
35738
35739 2006-06-29  Eric Blake  <ebb9@byu.net>
35740
35741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
35742
35743 2006-06-29  Eric Blake  <ebb9@byu.net>
35744
35745         * lib/stat_.h: New file.
35746
35747 2006-06-29  Eric Blake  <ebb9@byu.net>
35748
35749         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
35750         unused static function.
35751
35752 2006-06-29  Eric Blake  <ebb9@byu.net>
35753
35754         * doc/functions.texi (Function Portability): Document missing lstat
35755         on mingw.
35756
35757 2006-06-29  Eric Blake  <ebb9@byu.net>
35758
35759         * MODULES.html.sh: Add sys_stat.
35760         * modules/sys_stat: New module.
35761         * modules/mkstemp (Depends-on): Add sys_stat.
35762
35763 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35764
35765         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
35766
35767 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35768
35769         * m4/c-bs-a.m4: Removed.
35770
35771 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35772
35773         * lib/strftime.c: Assume strftime() exists.
35774
35775 2006-06-29  Derek Price  <derek@ximbiot.com>
35776
35777         * modules/c-bs-a: Removed - \a is C89.
35778         * MODULES.html.sh: Remove c-bs-a.
35779
35780 2006-06-29  Bruno Haible  <bruno@clisp.org>
35781
35782         * modules/wcwidth (License): Change to LGPL.
35783
35784 2006-06-28  Simon Josefsson  <jas@extundo.com>
35785
35786         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
35787         on _WIN32.
35788
35789         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
35790         getnameinfo.
35791
35792 2006-06-28  Simon Josefsson  <jas@extundo.com>
35793
35794         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
35795
35796 2006-06-28  Simon Josefsson  <jas@extundo.com>
35797
35798         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
35799         functions there.  It will succeed on Windows XP, but on Windows
35800         2000 and (presumably) earlier, it will fail, and use the internal
35801         re-implementation.
35802         (use_win32_p): New function.
35803         (getaddrinfo): Use strtoul on servname, to support numeric ports.
35804         Support AI_NUMERICSERV to disable getservbyname.
35805         (getnameinfo): New function, only supports
35806         NI_NUMERICHOST|NI_NUMERICSERV for now.
35807
35808         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
35809         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
35810         getnameinfo.
35811
35812 2006-06-28  Eric Blake  <ebb9@byu.net>
35813
35814         * modules/wcwidth: New file.
35815         * modules/mbchar (Depends-on): Add wcwidth.
35816         * modules/mbswidth (Depends-on): Add wcwidth.
35817         * MODULES.html.sh: Add wcwidth.
35818
35819 2006-06-28  Eric Blake  <ebb9@byu.net>
35820
35821         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
35822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
35823
35824 2006-06-28  Eric Blake  <ebb9@byu.net>
35825
35826         * lib/xvasprintf.h: Fix comments.
35827
35828 2006-06-28  Eric Blake  <ebb9@byu.net>
35829
35830         * lib/mbchar.h (wcwidth): Include wcwidth.h.
35831         * lib/mbswidth.c (wcwidth): Move from here...
35832         * lib/wcwidth.h: ...to this new file.
35833
35834 2006-06-28  Derek R. Price  <derek@ximbiot.com>
35835
35836         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
35837
35838         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
35839         it's obsolete.
35840         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
35841
35842 2006-06-28  Derek R. Price  <derek@ximbiot.com>
35843
35844         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
35845         Autoconf 2.60 says this stuff was obsolete.
35846
35847 2006-06-28  Bruno Haible  <bruno@clisp.org>
35848
35849         * modules/wcwidth (Files): Add m4/wchar_t.m4.
35850
35851 2006-06-28  Bruno Haible  <bruno@clisp.org>
35852
35853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
35854         gt_TYPE_WCHAR_T.
35855
35856 2006-06-28  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
35859         declaration for wcwidth.
35860         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
35861
35862 2006-06-28  Bruno Haible  <bruno@clisp.org>
35863
35864         * lib/mkdtemp.c [MINGW]: Include <io.h>.
35865         (mkdir): Define using _mkdir.
35866
35867 2006-06-28  Bruno Haible  <bruno@clisp.org>
35868
35869         * lib/getaddrinfo.h: Fix POSIX URL.
35870         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
35871         _WIN32.
35872         (use_win32_p): Make static.
35873         (getaddrinfo): Reject service name if it is empty or does not consist
35874         solely of decimal digits, or if its value is > 65535.
35875         (getnameinfo): Remove useless casts.
35876
35877 2006-06-27  Simon Josefsson  <jas@extundo.com>
35878
35879         * modules/sys_select: New file, suggested by Bruno Haible, Paul
35880         Eggert and Martin Lambers.
35881
35882 2006-06-27  Simon Josefsson  <jas@extundo.com>
35883
35884         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
35885         Eggert and Martin Lambers.
35886
35887 2006-06-27  Bruno Haible  <bruno@clisp.org>
35888
35889         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
35890         result to 0, not to empty.
35891         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
35892
35893 2006-06-27  Bruno Haible  <bruno@clisp.org>
35894
35895         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
35896
35897 2006-06-26  Simon Josefsson  <jas@extundo.com>
35898
35899         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
35900         present.
35901
35902 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35903
35904         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
35905         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
35906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
35907
35908 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
35909
35910         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
35911
35912 2006-06-26  Bruno Haible  <bruno@clisp.org>
35913
35914         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
35915
35916 2006-06-26  Bruno Haible  <bruno@clisp.org>
35917
35918         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
35919
35920 2006-06-26  Bruno Haible  <bruno@clisp.org>
35921
35922         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
35923         SGI C compiler in pre-C99 mode.
35924         Suggested by Mark D. Baushke and Larry Jones.
35925
35926 2006-06-26  Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
35929         WCHAR_MAX.
35930         Reported by Mark D. Baushke and Larry Jones.
35931
35932 2006-06-26  Bruno Haible  <bruno@clisp.org>
35933
35934         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
35935         in pre-C99 mode.
35936         Suggested by Mark D. Baushke and Larry Jones.
35937
35938 2006-06-23  Simon Josefsson  <jas@extundo.com>
35939             Bruno Haible  <bruno@clisp.org>
35940
35941         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
35942         Emit mostlyclean-local rule.
35943         (func_emit_tests_Makefile_am): Likewise.
35944         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
35945
35946 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
35947
35948         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
35949
35950 2006-06-23  Bruno Haible  <bruno@clisp.org>
35951
35952         * tests/test-stdint.c: Update to match ISO C 99 Technical
35953         Corrigendum 1.
35954
35955 2006-06-23  Bruno Haible  <bruno@clisp.org>
35956
35957         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
35958
35959 2006-06-23  Bruno Haible  <bruno@clisp.org>
35960
35961         * lib/stdint_.h: Treat IRIX like OpenBSD.
35962
35963 2006-06-23  Bruno Haible  <bruno@clisp.org>
35964
35965         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
35966         ISO C 99 Technical Corrigendum 1.
35967
35968 2006-06-22  Simon Josefsson  <jas@extundo.com>
35969
35970         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
35971         MinGW.
35972
35973 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35974
35975         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
35976         needed.  Some compiler complained about some of them.  Problem reported
35977         by Larry Jones in
35978         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
35979
35980 2006-06-21  Simon Josefsson  <jas@extundo.com>
35981
35982         * tests/test-getaddrinfo.c: New file.
35983
35984         * modules/getaddrinfo-tests: New file.
35985
35986         * MODULES.html.sh: Add inet_pton.
35987
35988         * modules/inet_pton: New file.
35989
35990 2006-06-21  Simon Josefsson  <jas@extundo.com>
35991
35992         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
35993         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
35994         of using the (limited) gnulib implementation on Windows XP.
35995
35996         * m4/inet_pton.m4: New file.
35997
35998 2006-06-21  Simon Josefsson  <jas@extundo.com>
35999
36000         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
36001         variable.
36002
36003         * lib/socket_.h: Don't define WINVER.
36004
36005         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
36006         slightly modified to work in gnulib.
36007
36008 2006-06-21  Simon Josefsson  <jas@extundo.com>
36009
36010         * doc/gnulib.texi (Windows sockets): Add.
36011
36012 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36013
36014         * lib/read-file.c (fread_file): Start with buffer allocation of
36015         0 bytes rather than 1 byte; this simplifies the code.
36016         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
36017         code to free buffer and save/restore errno.
36018         (internal_read_file): Remove unused local.
36019
36020 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36021
36022         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
36023         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
36024         Problem reported by Denis Excoffier in
36025         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
36026
36027 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36028
36029         * modules/sys_socket, modules/socklen: Include sys/types since
36030         FreeBSD 4.x's sys/socket.h needs it.
36031
36032 2006-06-19  Simon Josefsson  <jas@extundo.com>
36033
36034         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
36035
36036 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
36037
36038         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
36039
36040 2006-06-19  Bruno Haible  <bruno@clisp.org>
36041
36042         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
36043         and FULL_PATH_INTTYPES_H in angle brackets.
36044         Reported by Mark D. Baushke <mdb@gnu.org>.
36045
36046 2006-06-17  Eric Blake  <ebb9@byu.net>
36047
36048         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
36049         errno.
36050
36051 2006-06-17  Bruno Haible  <bruno@clisp.org>
36052
36053         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
36054         <sys/inttypes.h>.
36055
36056 2006-06-17  Bruno Haible  <bruno@clisp.org>
36057
36058         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
36059         whether errno is declared. Assume <errno.h> declares errno.
36060
36061 2006-06-17  Bruno Haible  <bruno@clisp.org>
36062
36063         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
36064
36065 2006-06-17  Bruno Haible  <bruno@clisp.org>
36066
36067         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
36068         problem on Solaris 2.5.1.
36069
36070 2006-06-16  Eric Blake  <ebb9@byu.net>
36071
36072         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
36073         * lib/unicodeio.c [!defined errno]: Likewise.
36074         * lib/strtol.c [!defined errno]: Likewise.
36075         * lib/strtod.c [!defined errno]: Likewise.
36076
36077 2006-06-15  Eric Blake  <ebb9@byu.net>
36078
36079         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
36080
36081 2006-06-15  Eric Blake  <ebb9@byu.net>
36082
36083         * config/srclist.txt (ssize_t.m4): Lose sync.
36084
36085 2006-06-15  Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/stdint (Files): Include m4/full-header-path.m4,
36088         m4/size_max.m4, m4/wchar_t.m4.
36089         (Makefile.am): Many more substitutions.
36090         * modules/stdint-tests: New file.
36091         * tests/test-stdint.c: New file.
36092
36093 2006-06-15  Bruno Haible  <bruno@clisp.org>
36094
36095         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
36096         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
36097         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
36098         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
36099         gl_CHECK_TYPE_SAME): New macros.
36100
36101 2006-06-15  Bruno Haible  <bruno@clisp.org>
36102
36103         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
36104
36105 2006-06-15  Bruno Haible  <bruno@clisp.org>
36106
36107         * lib/stdint_.h: Rewritten to be fully auto-configured.
36108         Fixes bug on HP-UX/IA64.
36109
36110 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
36111
36112         * lib/getdate.y (__attribute__): Don't define if already defined.
36113         Problem reported by Larry Jones.
36114         * lib/utimens.c (__attribute__): Likewise.
36115
36116 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
36117
36118         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
36119         reported by Andreas Schwab.
36120
36121 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36122             Bruno Haible  <bruno@clisp.org>
36123
36124         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
36125         check for the declaration of strnlen and a run test that exposes the
36126         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
36127         rpl_strndup.
36128
36129 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36130             Bruno Haible  <bruno@clisp.org>
36131
36132         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
36133
36134 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36135
36136         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
36137         compile test, for Tru64 4.0D.
36138
36139 2006-05-28  Karl Berry  <karl@gnu.org>
36140
36141         * config/srclist.txt (printf-args.c): lose sync.
36142
36143 2006-05-26  Martin Lambers  <marlam@marlam.de>
36144
36145         * lib/getpass.c: Updates the test for the native W32 API, and adds
36146         missing includes, thus fixing compilation warnings.
36147
36148 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36149
36150         * lib/exclude.c (exclude_fnmatch): New function.
36151         (excluded_file_name): Call exclude_fnmatch.
36152         * lib/exclude.h (excluded_file_name): New prototype
36153
36154 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
36155
36156         * lib/tempname.c (small_open, large_open): New macros.
36157         (__open, __open64) [!_LIBC]: Remove.
36158         (__gen_tempname): Use small_open and large_open instead of __open
36159         and __open64.  This fixes a portability bug on HP-UX 11.11i
36160         reported by Simon Wing-Tang in
36161         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
36162
36163 2006-05-24  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
36166         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
36167         Reported by Thorsten Maerz <torte@netztorte.de> via
36168         Aaron Stone <aaron@serendipity.cx>.
36169
36170 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36171
36172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
36173         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
36174         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
36175         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
36176         not really conditional on the cache.
36177         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
36178
36179 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36180
36181         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
36182         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
36183         (my_usleep): Don't mishandle maximum value.
36184
36185 2006-05-19  Jim Meyering  <jim@meyering.net>
36186
36187         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
36188
36189 2006-05-17  Bruno Haible  <bruno@clisp.org>
36190
36191         Cygwin portability.
36192         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
36193
36194 2006-05-17  Bruno Haible  <bruno@clisp.org>
36195
36196         * lib/stdint_.h: Fix recognition of Cygwin.
36197
36198 2006-05-15  Bruno Haible  <bruno@clisp.org>
36199
36200         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
36201         on libtool patch by Ralf Wildenhues.
36202
36203 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36204
36205         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
36206         test for C99 conformance; (bool) 0.5 is an integer constant
36207         expression, but (bool) -0.5 is not.  Problem reported by Fedor
36208         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
36209
36210 2006-05-11  Simon Josefsson  <jas@extundo.com>
36211
36212         * m4/xvasprintf.m4: Fix obvious typo.
36213
36214 2006-05-11  Jim Meyering  <jim@meyering.net>
36215
36216         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
36217         James Lemley.
36218
36219 2006-05-10  Simon Josefsson  <jas@extundo.com>
36220
36221         * lib/md4.c: Typo fix, update copyright years.
36222         (K1, K2): Don't use L because it turn computations into 64-bit on
36223         64-bit platforms.
36224
36225 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
36226
36227         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
36228         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
36229         unwanted sign propagation, e.g., on hosts with 64-bit int.
36230         There still are some problems with reeelly weird theoretical hosts
36231         (e.g., 33-bit int) but it's not worth worrying about now.
36232         * lib/sha1.c (rol): Likewise.
36233         (K1, K2, K3, K4): Remove unnecessary L suffix.
36234
36235 2006-05-10  Bruno Haible  <bruno@clisp.org>
36236
36237         * lib/des.c: Cast to avoid warnings.
36238
36239 2006-05-09  Bruno Haible  <bruno@clisp.org>
36240
36241         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
36242         (Depends-on): Depend also on xsize, stdarg.
36243         (configure.ac): Add gl_XVASPRINTF.
36244
36245 2006-05-09  Bruno Haible  <bruno@clisp.org>
36246
36247         * m4/xvasprintf.m4: New file.
36248
36249 2006-05-09  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
36252         (EOVERFLOW): Define fallback value.
36253         (xstrcat): New function.
36254         (xvasprintf): Recognize the special case of a string concatenation.
36255
36256 2006-05-08  Eric Blake  <ebb9@byu.net>
36257
36258         * gnulib-tool (func_version): Base copyright year on CVS date.
36259         (func_emit_copyright_notice): New function.
36260         (func_emit_lib_Makefile_am): Use it.
36261         (func_emit_tests_Makefile_am): Likewise.
36262         (func_import): Likewise.
36263
36264 2006-05-08  Bruno Haible  <bruno@clisp.org>
36265
36266         * modules/stdarg: New file.
36267         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
36268
36269 2006-05-08  Bruno Haible  <bruno@clisp.org>
36270
36271         * m4/stdarg.m4: New file, from GNU gettext.
36272
36273 2006-05-08  Bruno Haible  <bruno@clisp.org>
36274
36275         * config/srclist.txt (build-aux/config.rpath): different from latest
36276         release.
36277
36278 2006-05-08  Bruno Haible  <bruno@clisp.org>
36279
36280         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
36281
36282 2006-05-05  Jim Meyering  <jim@meyering.net>
36283
36284         * m4/warning.m4: New file, derived from bison's file by the same name.
36285
36286 2006-05-03  Bruno Haible  <bruno@clisp.org>
36287
36288         * lib/stdint_.h: Shorter URL.
36289         * lib/inttypes.h: Likewise.
36290
36291 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36292
36293         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
36294
36295 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36296
36297         * lib/verify.h: Document the internals better.  Most of this change
36298         was written by Bruno Haible.
36299
36300 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36301
36302         * doc/verify.texi: New file, partly based on a proposal by
36303         Bruno Haible.
36304
36305 2006-05-02  Bruno Haible  <bruno@clisp.org>
36306
36307         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
36308         test from here...
36309         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
36310
36311 2006-04-29  Bruno Haible  <bruno@clisp.org>
36312
36313         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
36314         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
36315
36316 2006-04-29  Bruno Haible  <bruno@clisp.org>
36317
36318         * gnulib-tool: Make --update option actually work.
36319
36320 2006-04-29  Bruno Haible  <bruno@clisp.org>
36321
36322         * doc/gcd.texi: New file.
36323         * doc/gnulib.texi: Include it.
36324
36325 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
36326
36327         * lib/getdate.y (get_date): When adding relative date, start with the
36328         initial time, not with the result of the first mktime call.
36329
36330 2006-04-25  Bruno Haible  <bruno@clisp.org>
36331
36332         * gnulib-tool (func_import): Output the include directives in three
36333         blocks, sorted separately.
36334         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36335
36336 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36337
36338         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
36339         to define main with arguments, for C++.  Reported by Eric Blake.
36340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
36341         Prefer 'int main ()' to 'int main (void)', for C++.
36342         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
36343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
36344         for 'main', for C99 and C++.
36345
36346 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36347
36348         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
36349         Don't assume that exit status -1 is valid.
36350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36351         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36353         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
36354         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
36355         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
36356         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
36357         functions can be used without declaring them, or that you can
36358         exit with status -1.
36359         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36360
36361 2006-04-24  Karl Berry  <karl@gnu.org>
36362
36363         * config/srclist.txt (longdouble.m4): sync lost.
36364
36365 2006-04-24  Eric Blake  <ebb9@byu.net>
36366
36367         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
36368
36369 2006-04-24  Bruno Haible  <bruno@clisp.org>
36370
36371         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
36372         poll() implementation in AIX.
36373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36374
36375 2006-04-24  Bruno Haible  <bruno@clisp.org>
36376
36377         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
36378         assigned exactly once.
36379
36380 2006-04-23  Claudio Fontana  <claudio@gnu.org>
36381             Bruno Haible  <bruno@clisp.org>
36382
36383         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
36384         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
36385         for AM_CPPFLAGS.
36386
36387 2006-04-23  Bruno Haible  <bruno@clisp.org>
36388
36389         * modules/copy-file: Depend on unistd.
36390         * modules/execute: Likewise.
36391         * modules/fatal-signal: Likewise.
36392         * modules/findprog: Likewise.
36393         * modules/mkdtemp : Likewise.
36394         * modules/pipe: Likewise.
36395         * modules/wait-process: Likewise.
36396
36397 2006-04-23  Bruno Haible  <bruno@clisp.org>
36398
36399         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
36400         condition was already detected.
36401         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36402
36403 2006-04-23  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/copy-file.c: Include <unistd.h> unconditionally.
36406         * lib/execute.c: Likewise.
36407         * lib/fatal-signal.c: Likewise.
36408         * lib/findprog.c: Likewise.
36409         * lib/mkdtemp.c: Likewise.
36410         * lib/pipe.h: Likewise.
36411         * lib/pipe.c: Likewise.
36412         * lib/wait-process.h: Likewise.
36413
36414 2006-04-23  Bruno Haible  <bruno@clisp.org>
36415
36416         * gnulib-tool (func_usage): Fix --import description. Document
36417         --update.
36418         (func_import): Create temporary file in a temporary directory, if
36419         --dry-run is specified. Silence errors from 'grep' when there are no
36420         m4 files in $m4dir.
36421         (func_create_testdir): Silence errors from 'grep' when there are no
36422         m4 files in $m4dir.
36423         Reported by Karl Berry <karl@freefriends.org>.
36424
36425 2006-04-20  Bruno Haible  <bruno@clisp.org>
36426
36427         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
36428         one argument, so that the code will be portable to Autoconf 2.60.
36429         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
36430         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36431         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
36432
36433 2006-04-19  Derek Price  <derek@ximbiot.com>
36434             Eric Blake  <ebb9@byu.net>
36435
36436         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
36437         rather than "/full/path.h".  Update comment to match.  Shorten &
36438         generalize m4_translit call via AS_TR_CPP.
36439
36440 2006-04-19  Derek Price  <derek@ximbiot.com>
36441             Eric Blake  <ebb9@byu.net>
36442
36443         * lib/inttypes.h: Correct grammar in comment.
36444
36445 2006-04-18  Derek Price  <derek@ximbiot.com>
36446             Paul Eggert  <eggert@cs.ucla.edu>
36447
36448         * modules/inttypes: New file.
36449         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
36450
36451 2006-04-18  Derek Price  <derek@ximbiot.com>
36452             Paul Eggert  <eggert@cs.ucla.edu>
36453
36454         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
36455         New files.
36456
36457 2006-04-18  Derek Price  <derek@ximbiot.com>
36458             Paul Eggert  <eggert@cs.ucla.edu>
36459
36460         * lib/inttypes.h: New file.
36461         * lib/strtoimax.c: Assume <inttypes.h>.
36462
36463 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
36464
36465         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
36466         isn't mounted.  Problem reported by Kir Kolyshkin.
36467
36468 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36469
36470         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
36471         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
36472         Derek R. Price.
36473         * lib/regex.h (RE_DUP_MAX): Update comment to match current
36474         implementation.
36475
36476 2006-04-12  Eric Blake  <ebb9@byu.net>
36477
36478         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
36479         is now done automatically by the corresponding Autoconf macro.
36480
36481 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
36482
36483         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
36484         time_r.h.
36485
36486 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36487
36488         Merge regex changes from libc, removing some of our
36489         POSIX-conformance changes that were rejected and redoing them in a
36490         less-intrusive way.
36491
36492         * lib/regcomp.c (re_compile_internal, init_dfa):
36493         Length arg is now size_t, not Idx.  All uses changed.
36494         (peek_token): Forward decl now says internal_function.
36495         (__re_error_msgid, __re_error_msgid_idx):
36496         Now static rather than extern with attribute_hidden.
36497         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
36498         For some reason libc prefers K&R style defns for external functions.
36499         (regerror) [!defined _LIBC]: Likewise.
36500         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
36501         (seek_collating_symbol_entry, lookup_collation_sequence_value):
36502         (build_range_exp, build_collating_symbol):
36503         Use K&R-style defn.
36504         (re_compile_fastmap): Use '\0' to memset, not 0.
36505         (utf8_sb_map): Make the calculations more obvious.
36506         (init_dfa, parse_bracket_exp, build_charclass_op):
36507         Call calloc and cast result, as glibc does.
36508         (init_word_char, fetch_token, peek_token, peek_token_bracket):
36509         (build_range_exp, build_collating_symbol):
36510         Now internal functions.
36511
36512         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
36513
36514         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
36515         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
36516         Don't depend on VMS; depend on __VMS instead, for POSIX
36517         namespace cleanness.
36518         (regoff_t): Define to ssize_t, not long int.
36519
36520         Remove the REG_ macros named below.  Instead, make the old names
36521         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
36522         __USE_GNU_REGEX.
36523         (REG_BACKSLASH_ESCAPE_IN_LISTS):
36524         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
36525         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
36526         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
36527         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
36528         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
36529         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
36530         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
36531         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
36532         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
36533         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
36534         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
36535         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
36536         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
36537         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
36538         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
36539         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
36540         (REG_NREGS):
36541         Remove.  All uses replaced by the old RE_* names.
36542         (RE_BACKSLASH_ESCAPE_IN_LISTS):
36543         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
36544         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
36545         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
36546         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
36547         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
36548         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
36549         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
36550         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
36551         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
36552         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
36553         Don't bother having these macros be independent of each others'
36554         values, since they no longer exist in the POSIX name space.
36555
36556         Rename the following member names back to their old names,
36557         unless !__USE_GNU_REGEX.  All uses changed back.
36558         (buffer): Renamed from re_buffer.
36559         (allocated): Renamed from re_allocated.
36560         (used): Renamed from re_used.
36561         (syntax): Renamed from re_syntax.
36562         (fastmap): Renamed from re_fastmap.
36563         (translate): Renamed from re_translate.
36564         (can_be_null): Renamed from re_can_be_null.
36565         (regs_allocated): Renamed from re_regs_allocated.
36566         (fastmap_accurate): Renamed from re_fastmap_accurate.
36567         (no_sub): Renamed from re_no_sub.
36568         (not_bol): Renamed from re_not_bol.
36569         (not_eol): Renamed from re_not_eol.
36570         (newline_anchor): Renamed from re_newline_anchor.
36571         (num_regs): Renamed from rm_num_regs.
36572         (start): Renamed from rm_start.
36573         (end): Renamed from rm_end.
36574
36575         (free_state): Move up a bit.
36576
36577         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
36578         #define to be empty.
36579         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
36580         when that is what is intended.
36581         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
36582         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
36583         (MAX): New macro.
36584         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
36585         All uses changed back to re_malloc, etc.  It's now the caller's
36586         responsibility to check for overflow; all callers changed.
36587         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
36588         (re_x2nrealloc): Remove.
36589         (free_state): Remove decl.
36590
36591         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
36592         (re_set_registers, re_exec):
36593         Use K&R-style defn.
36594
36595         2006-01-31  Roland McGrath  <roland@redhat.com>
36596
36597         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
36598         Reported by Mike Frysinger <vapier@gentoo.org>.
36599
36600         2006-01-15  Andreas Jaeger  <aj@suse.de>
36601
36602         [BZ #1950]
36603         * lib/regex_internal.c (re_string_reconstruct): Adjust for
36604         build_wcs_upper_buffer change.
36605         (build_wcs_upper_buffer): Change return type.
36606
36607         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
36608
36609         * lib/regex_internal.h: Include <stdint.h> if available.
36610
36611         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
36612
36613         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
36614
36615         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36616
36617         * lib/regcomp.c: Adjust for changed secondary hash function.
36618
36619         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
36620
36621         * lib/regex.h: Pretty printing.
36622         Clean up namespace a bit.
36623
36624         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
36625
36626         * lib/regexec.c (update_cur_sifted_state, check_arrival,
36627         check_arrival_add_next_nodes): Avoid using uninitialized variable.
36628
36629         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36630                     Ulrich Drepper  <drepper@redhat.com>
36631
36632         [BZ #1302]
36633         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
36634         changed.
36635         (bitset_word_t): Renamed from bitset_word.  All uses changed.
36636
36637         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
36638
36639         [BZ #281]
36640         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
36641         * lib/regcomp.c: Remove unnecessary uses of
36642         unsigned RE_TRANSLATE_TYPE.
36643         * lib/regex_internal.h: Likewise.
36644         * lib/regex_internal.c: Likewise.
36645         * lib/regexec.c: Likewise.
36646         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
36647
36648         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
36649
36650         * lib/regexec.c (find_recover_state): Remove unnecessary
36651         initialization.
36652         (transit_state_bkref): Make DFA a const pointer.
36653         (get_subexp): Likewise.
36654         (check_arrival): Likewise.
36655         (update_cur_sifted_state): Likewise.
36656         (re_search_internal): Likewise.
36657         (prune_impossible_nodes): Likewise.
36658         (acquire_init_state_context): Likewise.
36659         (proceed_next_node): Likewise.
36660         (set_regs): Likewise.
36661         (free_fail_stack_return): Likewise.
36662         (check_arrival_expand_ecl): Mark DFA parameter as const.
36663         (check_arrival_expand_ecl_sub): Likewise.
36664         (check_subexp_limits): Likewise.
36665         (sub_epsilon_src_nodes):  Likewise.
36666         (add_epsilon_src_nodes):  Likewise.
36667         (merge_state_array): Likewise.
36668         (update_regs): Likewise.
36669         (build_trtable): Likewise.
36670         (sift_states_backward): Mark MCTX parameter as const.
36671         (build_sifted_states): Likewise.
36672         (update_cur_sifted_state): Likewise.
36673         (sift_states_mkref): Likewise.
36674         (check_arrival_expand_ecl): Mark eclosure as const.
36675         (check_dst_limits_calc_pos_1): Likewise.
36676         * lib/regex_internal.h (re_match_context_t): Make dfa a const
36677         pointer.
36678
36679         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
36680
36681         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
36682         (transit_state_sb): Likewise.
36683         (transit_state_mb): Likewise.
36684         (sift_states_iter_mb): Likewise.
36685         (check_arrival_add_next_nodes): Likewise.
36686         (check_node_accept_bytes): Change first parameter to pointer-to-const.
36687         [_LIBC] (re_search_2_stub): Use mempcpy.
36688
36689         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
36690         mbrtowc for very simple UTF-8 case.
36691
36692         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
36693         a pointer-to-const.
36694         (re_acquire_state_context): Likewise.
36695         * lib/regex_internal.h: Adjust prototypes.
36696
36697         * lib/regex.c: Prevent using C++ compilers.
36698
36699         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
36700         (re_acquire_state_context): Likewise.
36701
36702 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36703
36704         * modules/regex (Depends-on): Add ssize_t.
36705
36706 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36707
36708         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
36709         translation table.
36710
36711 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36712
36713         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
36714
36715 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
36716             Bruno Haible  <bruno@clisp.org>
36717
36718         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
36719         <sys/types.h> and <inttypes.h>.
36720
36721 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36722
36723         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
36724         `__error_t_defined', so argp.h will not typedef the former.
36725
36726 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36727
36728         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
36729         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
36730         glibc names.  Even if glibc is changed to conform to POSIX, the
36731         traditional names will be available anyway, since regex depends on
36732         the extensions module.  Also, fix a longstanding typo in the
36733         implementation of Spencer ERE test #75 from grep 2.3.  Problems
36734         reported by Emanuele Giaquinta.  Also, change sense of cached
36735         variable, so that the message makes sense.
36736
36737 2006-03-24  Simon Josefsson  <jas@extundo.com>
36738
36739         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
36740         including some doc fixes.
36741         (base64_encode_alloc): Fix +1 bug on allocation failures.
36742
36743 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36744
36745         * lib/base64.c (base64_encode): Do not read past end of array with
36746         unsanitized input on systems with CHAR_BIT > 8.
36747
36748 2006-03-24  Eric Blake  <ebb9@byu.net>
36749
36750         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
36751
36752 2006-03-22  Karl Berry  <karl@gnu.org>
36753
36754         * config/srclist.txt (*setenv.[ch]): get from coreutils.
36755         * config/srclistvars.sh (COREUTILS): new var.
36756
36757 2006-03-17  Jim Meyering  <jim@meyering.net>
36758
36759         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
36760         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
36761
36762 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36763
36764         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
36765         no longer needs it.  Instead, check that regoff_t is as least
36766         as wide as ptrdiff_t.
36767
36768         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
36769         so that our regex.h stays compatible with the installed regex.
36770         This is helpful for installers who configure --without-included-regex.
36771         Problem reported by Emanuele Giaquinta.
36772
36773 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36774
36775         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
36776         Typedef to long int, not to off_, as POSIX will likely change
36777         in that direction.
36778
36779 2006-03-15  Eric Blake  <ebb9@byu.net>
36780
36781         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
36782
36783 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36784
36785         * lib/argp-help.c (validate_uparams): Fix typo
36786         * lib/argp-parse.c (argp_default_options): Consistently begin help
36787         messages with a lowercase letter.
36788
36789 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
36790
36791         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
36792         overrun buffers and shouldn't be used (much as gets shouldn't be
36793         used).
36794         * lib/time_r.c (asctime_r, ctime_r): Likewise.
36795
36796 2006-03-08  Simon Josefsson  <jas@extundo.com>
36797
36798         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
36799         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36800
36801 2006-03-08  Simon Josefsson  <jas@extundo.com>
36802
36803         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
36804         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36805
36806 2006-03-08  Simon Josefsson  <jas@extundo.com>
36807
36808         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
36809         signal that configure disabled the device.
36810
36811 2006-03-08  Simon Josefsson  <jas@extundo.com>
36812
36813         * build-aux/maint.mk: Fix refresh-po, to handle no translated
36814         languages.
36815
36816 2006-03-07  Simon Josefsson  <jas@extundo.com>
36817
36818         * modules/getopt (Depends-on): Add unistd.
36819
36820         * modules/unistd: New file.
36821
36822 2006-03-07  Simon Josefsson  <jas@extundo.com>
36823
36824         * modules/gc-random: New file.
36825
36826 2006-03-07  Simon Josefsson  <jas@extundo.com>
36827
36828         * m4/unistd_h.m4: New file.
36829
36830 2006-03-07  Simon Josefsson  <jas@extundo.com>
36831
36832         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
36833         test to be side-effect free by storing the result in the cache
36834         variable gl_cv_lib_readline, and moving the assignment of
36835         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
36836         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36837
36838 2006-03-07  Simon Josefsson  <jas@extundo.com>
36839
36840         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
36841         error on missing devices (the functions will return an error).
36842
36843         * m4/gc.m4: Move random stuff to gc-random.m4
36844
36845 2006-03-07  Simon Josefsson  <jas@extundo.com>
36846
36847         * lib/unistd_.h: New file.
36848
36849 2006-03-07  Simon Josefsson  <jas@extundo.com>
36850
36851         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
36852
36853 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36854
36855         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
36856         Problem reported by Juan Manuel Guerrero.
36857
36858 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36859
36860         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
36861         the unistd module.
36862         * lib/getlogin_r.c: Likewise.
36863         * lib/getlogin_r.h: Likewise.
36864         * lib/glob.c: Likewise.
36865         * lib/pagealign_alloc.c: Likewise.
36866         * lib/unistd_.h: Remove; no longer needed.
36867
36868 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36869
36870         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36871         Add unistd.
36872         * modules/c-stack (Depends-on): Add unistd.
36873         * modules/getlogin_r: Likewise.
36874         * modules/glob: Likewise.
36875         * modules/pagealign_alloc: Likewise.
36876         * modules/unistd (Files): Remove lib/unistd_.h.
36877         (EXTRA_DIST): Remove.
36878         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
36879         need unistd_.h.
36880         (MOSTLYCLEANFILES): Remove unistd.h-t.
36881
36882 2006-03-03  Simon Josefsson  <jas@extundo.com>
36883
36884         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
36885
36886 2006-03-03  Simon Josefsson  <jas@extundo.com>
36887
36888         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
36889         libidn and bison.
36890
36891 2006-03-03  Simon Josefsson  <jas@extundo.com>
36892
36893         * build-aux/maint.mk: Add indent target.
36894
36895 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
36896
36897         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
36898         our replacement poll.h in any case, to avoid a differing
36899         declaration from a system header.  Seen on AIX.
36900
36901 2006-03-01  Simon Josefsson  <jas@extundo.com>
36902
36903         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
36904         <kasal@ucw.cz>.
36905
36906 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36907
36908         * modules/gettime (Depends-on): Add extensions module.
36909         * modules/nanosleep (Depends-on): Likewise.
36910         * modules/settime (Depends-on): Likewise.
36911
36912 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36913
36914         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
36915         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
36916         pedantically.
36917         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36918         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
36919
36920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
36921         not "==".  Reported by Ralf Wildenhues.
36922
36923 2006-03-01  Karl Berry  <karl@gnu.org>
36924
36925         * doc/Copyright/request-*: new files, synced from gnuorg.
36926
36927 2006-03-01  Karl Berry  <karl@gnu.org>
36928
36929         * config/srclist.txt (Copyright/*): new entries.
36930
36931 2006-02-28  Simon Josefsson  <jas@extundo.com>
36932
36933         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
36934
36935 2006-02-27  Simon Josefsson  <jas@extundo.com>
36936
36937         * lib/base64.h: Indent #define's.  From Jim Meyering
36938         <jim@meyering.net>.
36939
36940 2006-02-27  Jim Meyering  <jim@meyering.net>
36941
36942         Revert the change of 2006-02-24, so these files can continue
36943         to be sync'd from gettext.
36944         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
36945         of `config.h'.
36946
36947 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
36948
36949         * modules/intprops: New file.
36950         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
36951         Add intprops.
36952         * modules/getloadavg (Files): Remove lib/intprops.h.
36953         (Depends-on): Add intprops.
36954         * modules/human: Likewise.
36955         * modules/inttostr: Likewise.
36956         * modules/openat: Likewise.
36957         * modules/sig2str: Likewise.
36958         * modules/userspec: Likewise.
36959         * modules/utimecmp: Likewise.
36960         * modules/xnanosleep: Likewise.
36961         * modules/xstrtol: Likewise.
36962
36963 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
36964
36965         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
36966         * modules/lock-tests (TESTS): Use $(EXEEXT).
36967         * modules/tls-tests: Likewise.
36968         * modules/argp-tests: Likewise.
36969         (check_PROGRAMS): New var, replacing...
36970         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
36971
36972 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36973
36974         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
36975         `config.h'.
36976
36977 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36978
36979         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
36980
36981 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36982
36983         Sync from coreutils.
36984         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
36985         gl_CHDIR_SAFER.
36986
36987 2006-02-22  Jim Meyering  <jim@meyering.net>
36988
36989         Sync from coreutils.
36990         * m4/chdir-safer.m4: New file.
36991
36992 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36993
36994         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
36995         AT_FDCWD exceeds INT_MAX.
36996         * lib/openat.h (AT_FDCWD): Likewise.
36997
36998 2006-02-17  Eric Blake  <address@hidden>
36999
37000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
37001
37002 2006-02-16  Simon Josefsson  <jas@extundo.com>
37003
37004         * modules/getaddrinfo (Depends-on): Add sys_socket.
37005
37006 2006-02-15  Simon Josefsson  <jas@extundo.com>
37007
37008         * build-aux/maint.mk: Add dsyntax-check rule.
37009
37010 2006-02-15  Eric Blake  <ebb9@byu.net>
37011
37012         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
37013         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
37014         'present but cannot compile' warnings on cygwin.
37015         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
37016         use ws2tcpip.h if sys/socket.h works.
37017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
37018         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
37019
37020 2006-02-14  Simon Josefsson  <jas@extundo.com>
37021
37022         * modules/maintainer-makefile (Files): Rename.
37023
37024         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
37025         and (the local) Makefile.cfg to maint-cfg.mk.
37026
37027         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
37028         to the latter.
37029
37030         * modules/maintainer-makefile: New module.
37031
37032         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
37033         severaly stripped to make it possible to build it up from scratch
37034         with reliable tests.
37035
37036         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
37037         fixes to permit overriding the default actions when configure and
37038         makefile are not available.
37039
37040 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37041
37042         Sync from coreutils.
37043         * modules/lstat (Depends-on): Don't depend on xalloc.
37044         (License): Change from GPL to LGPL, since this is now simply a
37045         replacement for a libc function.
37046
37047 2006-02-14  Jim Meyering  <jim@meyering.net>
37048
37049         Sync from coreutils.
37050
37051         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
37052         failure on deficient systems, and simplify gnulib lgpl dependencies.
37053         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
37054         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
37055
37056         * lib/xalloc-die.c: Remove unused definition of N_.
37057
37058 2006-02-14  Jim Meyering  <jim@meyering.net>
37059
37060         Sync from coreutils.
37061         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
37062         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
37063         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
37064         double-quote uses of that variable, to accommodate the rare case in
37065         which getmntent is available in none of the libraries checked.  This
37066         happens at least on FreeBSD 5.0.
37067
37068 2006-02-13  Simon Josefsson  <jas@extundo.com>
37069
37070         * gnulib-tool (Usage): Fix --import, from
37071         karl@freefriends.org (Karl Berry).
37072
37073 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
37074
37075         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
37076
37077 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
37078
37079         * lib/argp-namefrob.h: Restore changes accidentally lost during the
37080         "autoupdate" on 2005-12-12.
37081
37082 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37083
37084         * modules/closeout (Depends-on): Remove atexit.
37085
37086 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37087
37088         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
37089         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
37090
37091 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37092
37093         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
37094         __EXTENSIONS__ if this causes compilation to fail.  Problem
37095         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
37096         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
37097
37098 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
37099
37100         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
37101         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
37102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
37103         All uses changed.
37104
37105 2006-01-26  Simon Josefsson  <jas@extundo.com>
37106
37107         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
37108         prototype is visible on mingw32.
37109
37110         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
37111         for mingw32.
37112
37113         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
37114         mingw32).
37115
37116 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37117
37118         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
37119         attempt to open for write; this always fails, at least on POSIX
37120         hosts.  This reinstates the 2006-01-09 change, which was
37121         inadvertently removed.
37122
37123 2006-01-26  Bruno Haible  <bruno@clisp.org>
37124
37125         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
37126         Reported by Paul Eggert.
37127
37128 2006-01-26  Bruno Haible  <bruno@clisp.org>
37129             Paul Eggert  <eggert@cs.ucla.edu>
37130
37131         * lib/stdbool_.h (_Bool)
37132         [(! (defined __cplusplus || defined __BEOS__)
37133           && !defined __GNUC__
37134           && !(defined __HP_cc || defined __xlc__
37135                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
37136                || defined __sgi))]:
37137         #define to signed char in these cases too; this simplifies
37138         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
37139         etc., separately) and makes it more conservative.
37140
37141 2006-01-25  Simon Josefsson  <jas@extundo.com>
37142
37143         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
37144         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
37145         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
37146
37147 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37148
37149         * lib/argp-namefrob.h: Bugfix. Remove stray #
37150
37151 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37152
37153         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
37154         so that we test the test.
37155         Check for yet another HP-UX cc bug involving *bool |= bool.
37156
37157 2006-01-25  Karl Berry  <karl@gnu.org>
37158
37159         * config/srclist.txt (vasnprintf.c): sync lost.
37160
37161 2006-01-25  Jim Meyering  <jim@meyering.net>
37162
37163         Sync from the stable (b5) branch of coreutils:
37164
37165         * lib/fts.c (fts_children): Don't let close() clobber errno from
37166         failed fchdir().
37167
37168         * lib/fts.c (fts_stat): When following a symlink-to-directory,
37169         don't necessarily interpret stat-fails+lstat-succeeds as indicating
37170         a dangling symlink.  That can also happen at least for ELOOP.
37171         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
37172         FYI, this bug predates the inclusion of fts.c in coreutils.
37173
37174         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
37175         in their own block, so pre-c99 compilers don't object.
37176
37177         Avoid the double-free (first in fts_read, second in fts_close) that
37178         would occur when an `active' directory is made inaccessible (e.g.,
37179         via chmod a-x) during a traversal.
37180         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37181         before returning.  Reproduce this failure by
37182         mkdir -p a/b; cd a; chmod a-x . b
37183         Reported by Stavros Passas.
37184
37185 2006-01-25  Jim Meyering  <jim@meyering.net>
37186
37187         * lib/fileblocks.c: Remove more useless parentheses.
37188         * lib/readutmp.h: Likewise.
37189
37190 2006-01-25  Bruno Haible  <bruno@clisp.org>
37191
37192         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
37193         warnings.
37194         Reported by Paul Eggert.
37195
37196 2006-01-25  Bruno Haible  <bruno@clisp.org>
37197
37198         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
37199         rid of a trap command. For Solaris sh.
37200         Reported by Mark D. Baushke <mdb@gnu.org>.
37201
37202 2006-01-24  Simon Josefsson  <jas@extundo.com>
37203
37204         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
37205         Bruno.
37206
37207 2006-01-24  Karl Berry  <karl@gnu.org>
37208
37209         * config/srclist.txt (argp-namefrob.h): sync lost.
37210
37211 2006-01-24  Jim Meyering  <jim@meyering.net>
37212
37213         * modules/openat (Files): Add lib/intprops.h.
37214         From Mark D. Baushke.
37215
37216 2006-01-24  Jim Meyering  <jim@meyering.net>
37217
37218         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
37219         Reported by Mark D. Baushke.
37220
37221 2006-01-24  Jim Meyering  <jim@meyering.net>
37222
37223         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
37224
37225 2006-01-24  Bruno Haible  <bruno@clisp.org>
37226
37227         * modules/strnlen (Maintainer): Change from glibc to all.
37228
37229 2006-01-24  Bruno Haible  <bruno@clisp.org>
37230
37231         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
37232         Patch by Paul Eggert.
37233
37234 2006-01-24  Bruno Haible  <bruno@clisp.org>
37235
37236         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
37237         already has it.
37238         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
37239         2005-11-26.
37240
37241         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
37242         'signed char' to avoid problems with the built-in _Bool type.
37243         Reported by Paul Eggert on 2005-11-26.
37244
37245 2006-01-24  Bruno Haible  <bruno@clisp.org>
37246
37247         * gnulib-tool (func_import): Avoid constructing complicated sed
37248         expressions inside backquote.
37249         Report and solution by Mark D. Baushke <mdb@gnu.org>.
37250
37251 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
37252
37253         These changes imported from libc.
37254         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
37255         test and two separate function calls.
37256         * lib/strndup.c (__strndup): Add libc_hidden_def.
37257
37258 2006-01-23  Simon Josefsson  <jas@extundo.com>
37259
37260         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
37261         Remove the test_*_SOURCES variable: automake infers it by default.
37262         * modules/tls-tests: Likewise.
37263
37264 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37265
37266         Work around porting bugs reported by Dieter in
37267         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
37268         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
37269         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
37270         Include "getopt.h" first, to check interface.
37271         (getenv): Declare only if defined HAVE_DECL_GETENV &&
37272         !HAVE_DECL_GETENV.
37273         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
37274         (__strndup): Revert to K&R-style function dfns, the glibc style.
37275         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
37276         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
37277         Include strnlen.h first, to get prototype properly.
37278         (strnlen): Renamed from __strnlen.
37279         Remove weak alias.
37280
37281 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37282
37283         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
37284
37285 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37286
37287         * config/srclist.txt: Adjust to reflect glibc reorganization.
37288         This affects only comments.
37289
37290 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37291
37292          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
37293          Reported by Bruce Korb <bkorb@gnu.org>.
37294
37295 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37296
37297         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
37298         to pacify gcc -Wswitch-default.
37299
37300 2006-01-22  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
37303         temporary buffer for sprintf, take into account the precision also
37304         for 'd', 'i', 'u', 'o', 'x', 'X'.
37305
37306 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
37307
37308         * modules/argp-tests: New module
37309         * tests/test-argp.c: New file
37310         * tests/test-argp-2.sh: New file
37311
37312 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
37313
37314         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
37315         (__argp_base_name): Removed
37316         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
37317         typo.
37318         (__argp_base_name): Provide macro definition or extern declaration
37319         depending on the configuration
37320
37321 2006-01-20  Simon Josefsson  <jas@extundo.com>
37322
37323         * modules/inet_ntop (Depends-on): Depend on sys_socket.
37324
37325 2006-01-20  Simon Josefsson  <jas@extundo.com>
37326
37327         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
37328
37329 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
37330
37331         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
37332         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
37333         Suggested by Bruno Haible.
37334
37335 2006-01-20  Karl Berry  <karl@gnu.org>
37336
37337         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
37338         until changes propagate, I guess.
37339
37340 2006-01-19  Simon Josefsson  <jas@extundo.com>
37341
37342         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
37343
37344 2006-01-19  Simon Josefsson  <jas@extundo.com>
37345
37346         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
37347
37348 2006-01-19  Simon Josefsson  <jas@extundo.com>
37349
37350         * gnulib-tool: Set check_PROGRAMS.
37351
37352         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
37353         modules/des-tests, modules/gc-arcfour-tests,
37354         modules/gc-arctwo-tests, modules/gc-des-tests,
37355         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
37356         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
37357         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
37358         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
37359         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37360         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
37361         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
37362         test_*_SOURCES.
37363
37364 2006-01-18  Simon Josefsson  <jas@extundo.com>
37365
37366         * modules/socklen (Depends-on): Depend on sys_socket.
37367
37368 2006-01-18  Simon Josefsson  <jas@extundo.com>
37369
37370         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
37371         modules/des-tests, modules/gc-arcfour-tests,
37372         modules/gc-arctwo-tests, modules/gc-des-tests,
37373         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
37374         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
37375         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
37376         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
37377         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37378         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
37379         $(EXEEXT) to automake TESTS variable, for mingw32.
37380
37381 2006-01-17  Simon Josefsson  <jas@extundo.com>
37382
37383         * modules/socklen (Include): Need sys/socket.h.
37384
37385 2006-01-17  Bruno Haible  <bruno@clisp.org>
37386
37387         * modules/ssize_t (Include): Add <sys/types.h>.
37388
37389 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
37390
37391         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
37392         it's not portable and it doesn't work with cross-compiles.
37393         Problem reported by Bruno Haible.  Fix missing-$ typo in
37394         'test "gl_cv_ignore_unused_libraries" ...' that prevented
37395         -zignore from being used with Sun's C compiler.
37396
37397 2006-01-12  Simon Josefsson  <jas@extundo.com>
37398
37399         * lib/base64.c: Fix warning, reported by Bruno Haible
37400         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
37401
37402 2006-01-12  Bruno Haible  <bruno@clisp.org>
37403
37404         * modules/ldd: New file.
37405         * build-aux/ldd.sh.in: New file.
37406         * MODULES.html.sh (Support for building libraries and executables): Add
37407         ldd.
37408
37409 2006-01-12  Bruno Haible  <bruno@clisp.org>
37410
37411         * m4/ldd.m4: New file.
37412
37413 2006-01-12  Bruno Haible  <bruno@clisp.org>
37414
37415         * gnulib-tool (func_import, func_create_testdir): Don't go into an
37416         endless loop while replacing $auxdir with build-aux.
37417
37418 2006-01-11  Simon Josefsson  <jas@extundo.com>
37419
37420         * lib/stdint_.h (SIZE_MAX): Add missing (.
37421
37422 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37423
37424         Sync from coreutils.
37425         * lib/md5.c: Fix commentary typos.
37426         (alignof, UNALIGNED_P): No need for a GCC-specific version.
37427         * lib/md5.h (__attribute__): Remove; unused.
37428         * lib/sha1.c: Fix commentary to match md5 better.
37429         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
37430         so that we don't need to worry about alignment.  All uses changed.
37431         This merges the 2005-10-28 md5 change into sha1.
37432
37433 2006-01-11  Jim Meyering  <jim@meyering.net>
37434
37435         Sync from coreutils.
37436         * lib/md5.c (OP): Fix spacing.
37437
37438 2006-01-11  Bruno Haible  <bruno@clisp.org>
37439
37440         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37441         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
37442         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
37443
37444 2006-01-11  Bruno Haible  <bruno@clisp.org>
37445
37446         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37447         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
37448         the "early" section as well.
37449
37450 2006-01-11  Bruno Haible  <bruno@clisp.org>
37451
37452         Avoid "ar: no archive members specified" error on MacOS X.
37453         * gnulib-tool (func_modules_add_dummy): New function.
37454         (func_import, func_create_testdir): Invoke it.
37455
37456 2006-01-11  Bruno Haible  <bruno@clisp.org>
37457
37458         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
37459         with $auxdir in AC_CONFIG_FILES statements.
37460
37461 2006-01-11  Bruno Haible  <bruno@clisp.org>
37462
37463         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37464         Initialize also noinst_HEADERS to empty.
37465
37466 2006-01-11  Bruno Haible  <bruno@clisp.org>
37467
37468         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
37469         variables.
37470         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
37471         autoreconf.
37472
37473 2006-01-11  Bruno Haible  <bruno@clisp.org>
37474
37475         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
37476         overridable by the user.
37477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37478
37479 2006-01-10  Simon Josefsson  <jas@extundo.com>
37480
37481         * modules/sys_socket: New file.
37482
37483 2006-01-10  Simon Josefsson  <jas@extundo.com>
37484
37485         * m4/sys_socket_h.m4: New file.
37486
37487 2006-01-10  Simon Josefsson  <jas@extundo.com>
37488
37489         * lib/socket_.h: New file.
37490
37491 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37492
37493         * modules/readutmp (Maintainer): Add myself.
37494
37495 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37496
37497         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
37498         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
37499         People who are still concerned with buggy memcmp implementations
37500         can invoke gl_FUNC_MEMCMP themselves.
37501
37502 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37503
37504         * lib/regex_internal.h (BITSET_WORD_BITS):
37505         Work around a bug in 64-bit PGC (before version 6.1-2), where the
37506         preprocessor mishandles large unsigned values as if they were signed.
37507         Problem reported by Claudio Fontana in
37508         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
37509
37510 2006-01-10  Jim Meyering  <jim@meyering.net>
37511
37512         Avoid the double-free (first in fts_read, second in fts_close) that
37513         would occur when an `active' directory is made inaccessible (e.g.,
37514         via chmod a-x) during a traversal.
37515         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37516         before returning.  Reproduce this failure by
37517         mkdir -p a/b; cd a; chmod a-x . b
37518         Reported by Stavros Passas.
37519
37520         Sync from coreutils.
37521         * lib/sha1.c: Tweak grammar in a comment.
37522
37523 2006-01-10  Jim Meyering  <jim@meyering.net>
37524
37525         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
37526         Patch by Joerg Sonnenberger.
37527
37528 2006-01-10  Bruno Haible  <bruno@clisp.org>
37529
37530         * modules/readutmp: Depend on module free.
37531         * modules/strtok_r: Depend on module restrict.
37532
37533 2006-01-10  Bruno Haible  <bruno@clisp.org>
37534
37535         * modules/gettext (configure.ac): Add an invocation of
37536         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
37537
37538 2006-01-10  Bruno Haible  <bruno@clisp.org>
37539
37540         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
37541         Reported by Werner Lemberg <wl@gnu.org>.
37542
37543 2006-01-10  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/localcharset.c: Update from GNU gettext.
37546
37547 2006-01-10  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/argp.h (__const): Remove macro. Use const instead.
37550         * lib/argp-fmtstream.h (__const): Likewise.
37551         * lib/glob_.h (__const): Remove macro.
37552         * lib/glob-libc.h: Use const instead of __const.
37553
37554 2006-01-10  Bruno Haible  <bruno@clisp.org>
37555
37556         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
37557         variable.
37558         Needed to avoid an automake error regarding the 'gettext' module.
37559
37560 2006-01-09  Simon Josefsson  <jas@extundo.com>
37561
37562         * modules/inet_ntop (Depends-on): Add restrict.
37563
37564 2006-01-09  Simon Josefsson  <jas@extundo.com>
37565
37566         * modules/gc-rijndael-tests (License): Put under LGPL.
37567
37568         * modules/gc-des-tests (License): Likewise.
37569
37570         * modules/gc-arcfour-tests (License): Likewise.
37571
37572         * modules/gc-arctwo-tests (License): Likewise.
37573
37574         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
37575
37576         * modules/gc-hmac-sha1-tests (Files): Likewise.
37577
37578         * modules/gc-hmac-md5-tests (License): Likewise.
37579
37580         * modules/gc-sha1-tests (License): Likewise.
37581
37582         * modules/gc-md5-tests (License): Likewise.
37583
37584         * modules/gc-md4-tests (License): Likewise.
37585
37586         * modules/gc-md2-tests (License): Likewise.
37587
37588         * modules/gc-tests (License): Likewise.
37589
37590         * modules/des-tests (License): Likewise.
37591
37592         * modules/md4-tests (License): Likewise.
37593
37594         * modules/md2-tests (License): Likewise.
37595
37596 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37597
37598         Sync from coreutils:
37599
37600         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
37601         * modules/lib-ignore: New file.
37602         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
37603         chdir-safer.m4, lchmod.m4.
37604         * modules/openat: Add mkdirat.c, openat-priv.h.
37605
37606 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37607
37608         Sync from coreutils.
37609         * m4/lib-ignore.m4: New file.
37610         * m4/lchmod.m4: New file.
37611
37612 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37613
37614         Sync from coreutils.
37615         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
37616         for write access: POSIX says that must fail.
37617         * lib/fts.c (diropen): Likewise.
37618         * lib/save-cwd.c (save_cwd): Likewise.
37619         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
37620         well, for minor improvements on hosts that lack O_DIRECTORY.
37621         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
37622         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
37623         Fall back on chown if open failed with EACCES.
37624
37625         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
37626         Report an error at compile-time if only a 1-second nominal clock
37627         resolution is found.
37628
37629         * lib/lchmod.h: New file.
37630         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
37631         (make_dir_parents): Use lchown rather than chown, and
37632         lchmod rather than chmod.
37633
37634         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
37635         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
37636         "proc" reported by n0dalus.
37637
37638         * lib/mountlist.c: Include <limits.h>.
37639         (dev_from_mount_options)
37640         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
37641         New function.  It no longer assumes "dev=" has the System V meaning
37642         on Linux (since it doesn't).  It also parses "dev=" more carefully.
37643         (read_file_system_list)
37644         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
37645         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
37646         dev= in that case.
37647
37648         * lib/posixtm.h (PDS_PRE_2000): New macro.
37649         * lib/posixtm.c (year): Arg is now syntax_bits rather than
37650         allow_century.  All usages changed.  Reject dates outside the range
37651         1969-1999 if PDS_PRE_2000 is used.
37652
37653 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37654
37655         Sync from coreutils.
37656         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
37657         (Time of day items): Mention the possibility of leap seconds.
37658         Problem reported by Dr. David Alan Gilbert.
37659
37660 2006-01-09  Jim Meyering  <jim@meyering.net>
37661
37662         Sync from coreutils.
37663
37664         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
37665
37666         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
37667
37668         * lib/modechange.c (mode_compile): Reject an invalid mode string
37669         that starts with an octal digit.  From Andreas Gruenbacher.
37670
37671         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
37672         and dup to open_safer and dup_safer, respectively.
37673         (openat_permissive): Fix typo in comment.
37674
37675         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
37676         "gettext.h"; either no longer needed or are guaranteed by openat.h.
37677         (_): Remove; no longer needed.
37678         (openat): Renamed from rpl_openat; no need for rpl_openat
37679         since openat.h renames openat for us.
37680         Replace most of the body with a call to openat_permissive,
37681         to avoid duplicate code.
37682         Port to (probably hypothetical) environments were mode_t is
37683         wider than int.
37684         (openat_permissive): Require mode arg, so that we can check
37685         types better.  Put it just after flags.  Change cwd failure
37686         indicator from pointer-to-bool to pointer-to-errno-value.
37687         All callers changed.
37688         Invoke openat_save_fail and/or openat_restore_fail if
37689         cwd_errno is null, so that openat can call us.
37690         (openat_permissive, fdopendir, fstatat, unlinkat):
37691         Simplify errno handling to avoid some duplicate code,
37692         as it's OK to set errno on success.
37693         * lib/openat.h: Revamp code so that function macros depend on
37694         __OPENAT_PREFIX only, not also on AT_FDCWD.
37695         (openat_ro): Remove.  Caller changed to use openat_permissive.
37696         (openat_permissive): Now a macro, if not a function.
37697         (openat_restore_fail, openat_save_fail): Now always functions,
37698         since mkdirat needs them even if __OPENAT_PREFIX is defined.
37699
37700         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
37701         and openat.c.
37702         * lib/mkdirat.c: Include openat-priv.h.
37703         Remove definitions of macros defined therein.
37704         * lib/openat.c: Likewise.
37705
37706         * lib/mkdirat.c (mkdirat): New file and function.
37707         * lib/openat.h (mkdirat): Declare.
37708
37709         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
37710
37711         * lib/openat.h (openat_permissive): Declare.
37712         (openat_ro): Define.
37713
37714         * lib/openat.c (EXPECTED_ERRNO): New macro.
37715         (openat_permissive): New function -- used in remove.c rewrite.
37716         (all functions): Set errno just before returning, only if there
37717         was an actual failure.
37718         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
37719
37720         Emulate openat-family functions using Linux's procfs, if possible.
37721         Idea and some code based on Ulrich Drepper's glibc changes.
37722
37723         * lib/openat.c: (BUILD_PROC_NAME): New macro.
37724         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
37725         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
37726         before falling back on save_cwd and restore_cwd.
37727         (fdopendir, fstatat, unlinkat): Likewise.
37728
37729         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
37730         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
37731
37732         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
37733         as second argument to va_arg.  Otherwise, some versions of gcc
37734         warn that `if this code is reached, the program will abort'.
37735
37736 2006-01-09  Jim Meyering  <jim@meyering.net>
37737
37738         Sync from coreutils.
37739         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
37740         Require openat-priv.h.
37741
37742 2006-01-09  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/strnlen (Include): Use strnlen.h.
37745
37746 2006-01-09  Bruno Haible  <bruno@clisp.org>
37747
37748         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
37749
37750 2006-01-09  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/sysexit_.h (EX_OK): New macro.
37753         Suggested by Martin Lambers <marlam@marlam.de>.
37754
37755 2006-01-09  Bruno Haible  <bruno@clisp.org>
37756
37757         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
37758         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
37759
37760 2006-01-09  Bruno Haible  <bruno@clisp.org>
37761
37762         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
37763         numbers.
37764
37765 2006-01-09  Bruno Haible  <bruno@clisp.org>
37766
37767         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
37768         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
37769         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
37770         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
37771
37772 2006-01-09  Bruno Haible  <bruno@clisp.org>
37773
37774         * build-aux/javacomp.sh.in: New file, moved from lib/.
37775         * modules/javacomp-script (Files): Update.
37776         (configure.ac): Add AC_CONFIG_FILES invocation.
37777         (EXTRA_DIST): Remove variable.
37778
37779         * build-aux/javaexec.sh.in: New file, moved from lib/.
37780         * modules/javaexec (Files): Update.
37781         (configure.ac): Add AC_CONFIG_FILES invocation.
37782         (EXTRA_DIST): Remove javaexec.sh.in.
37783
37784         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
37785         * modules/csharpcomp-script (Files): Update.
37786         (configure.ac): Add AC_CONFIG_FILES invocation.
37787         (EXTRA_DIST): Remove variable.
37788
37789         * build-aux/csharpexec.sh.in: New file, moved from lib/.
37790         * modules/csharpexec (Files): Update.
37791         (configure.ac): Add AC_CONFIG_FILES invocation.
37792         (EXTRA_DIST): Remove csharpexec.sh.in.
37793
37794 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
37795
37796         Sync from coreutils.
37797
37798         Add POSIX ACL support
37799         * lib/acl.h (copy_acl, set_acl): Add declarations.
37800         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
37801         systems other than Linux.
37802         (chmod_or_fchmod): New function: use fchmod when possible,
37803         and chmod otherwise.
37804         (file_has_acl): Add a POSIX ACL implementation, with a
37805         Linux-specific subcase.
37806         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
37807         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
37808         acls are unsupported.
37809         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
37810         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
37811         are unsupported.
37812
37813 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
37814
37815         Sync from coreutils.
37816         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
37817
37818 2006-01-07  Bruno Haible  <bruno@clisp.org>
37819
37820         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
37821         gl_EARLY.
37822
37823 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37824
37825         * lib/strftime.c (tzname): Don't declare if it is already #defined.
37826         Problem reported for Mingw by Mark Junker.
37827
37828 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37829
37830         * README: Gnulib normally doesn't generate a tarball.
37831
37832 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
37833
37834         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
37835         long int, not int, for nanosecond counts, so that people who are
37836         used to POSIX struct timespec won't be surprised.  Reported by Jim
37837         Meyering.
37838
37839 2005-12-28  Bruno Haible  <bruno@clisp.org>
37840
37841         * build-aux/config.rpath: Update from GNU gettext.
37842
37843 2005-12-16  Jim Meyering  <jim@meyering.net>
37844
37845         * modules/fprintftime: New module.
37846         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
37847
37848 2005-12-16  Jim Meyering  <jim@meyering.net>
37849
37850         * m4/fprintftime.m4: New file.
37851
37852 2005-12-16  Jim Meyering  <jim@meyering.net>
37853
37854         * lib/fprintftime.c, lib/fprintftime.h: New files.
37855
37856 2005-12-15  Simon Josefsson  <jas@extundo.com>
37857
37858         * modules/socklen (configure.ac): Fix M4 macro name, to align with
37859         new m4/socklen.m4.
37860
37861 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37862
37863         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
37864         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
37865
37866 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37867
37868         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
37869         * lib/argp-help.c (fill_in_uparams): Check if the constructed
37870         struct uparams is valid. Fall back to the default values if it is
37871         not.
37872
37873 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37874
37875         * modules/argp (Files): Add argp-pin.c
37876         (Depends-on): dirname
37877         (lib_SOURCES): Add argp-pin.c
37878
37879 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37880
37881         * m4/argp.m4:  Check if program_invocation_name and
37882         program_invocation_short_name are declared and define appropriate
37883         macros if they are not.
37884
37885 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37886
37887         * lib/argp-help.c (__argp_base_name): New function
37888         (__argp_short_program_name): Rewrite using __argp_base_name
37889         * lib/argp-namefrob.h: Define program_invocation_name and
37890         program_invocation_short_name if requested
37891         (__argp_base_name): Add prototype
37892         * lib/argp-parse.c (argp_def): Use gettext wrappers
37893         (argp_default_parser): Use __argp_base_name
37894         * lib/argp-pin.c: New file. Defines program_invocation_name and
37895         program_invocation_short_name on systems that lack them.
37896
37897 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37898
37899         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
37900         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37901         porting problem reported by Georg Schwarz in
37902         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37903
37904 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37905
37906         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
37907         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37908         porting problem reported by Georg Schwarz in
37909         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37910
37911 2005-12-05  Bruno Haible  <bruno@clisp.org>
37912
37913         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
37914         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
37915         Reported by Mark Junker <mjscod@gmx.de>.
37916
37917 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
37918
37919         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
37920         Use implementation from Albert Chin, with some
37921         comments/corrections by Stepan Kasal and myself.
37922
37923 2005-12-02  Bruno Haible  <bruno@clisp.org>
37924
37925         * gnulib-tool (func_import): Accept GPLed build tool modules when
37926         --lgpl is given.
37927         * modules/csharpcomp-script: New file.
37928         * modules/csharpcomp: Depend on it.
37929         * modules/javacomp-script: New file.
37930         * modules/javacomp: Depend on it.
37931         Suggested by Simon Josefsson.
37932
37933 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
37934
37935         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
37936         statement, to work around an HP-UX 10.20 compiler bug reported by
37937         Peter O'Gorman.
37938
37939 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37940
37941         * modules/savedir (Depends-on): Add openat.
37942
37943 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37944
37945         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
37946         (uintmax_t) [defined uintmax_t]: Do not declare.
37947         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
37948         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
37949         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
37950         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
37951         sake of portability to weird hosts that C allows (though we don't
37952         know of any practical examples).
37953
37954         * lib/savedir.h (fdsavedir): New decl.
37955         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
37956         contains most of the former guts of savedir.
37957         (savedir): Use savedirstream.
37958         Include "openat.h".
37959
37960 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37961
37962         * modules/obstack (Files): Add m4/ulonglong.m4.
37963         Problem reported by Davide Angelocola.
37964
37965 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37966
37967         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
37968         coreutils no longer futzes with rounding modes.
37969
37970 2005-11-14  Jim Meyering  <jim@meyering.net>
37971
37972         * lib/mkstemp-safer.c: Include <config.h>, required for possible
37973         replacement of mkstemp.
37974
37975 2005-11-10  Simon Josefsson  <jas@extundo.com>
37976
37977         * lib/readline.c: Remove EOL.
37978
37979 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37980
37981         * modules/gethrxtime (Depends-on): Add gettime.
37982
37983 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37984
37985         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
37986         or gettimeofday; no longer needed.
37987
37988 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37989
37990         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
37991         time business.
37992         (gethrxtime) [! (HAVE_NANOUPTIME
37993         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
37994         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
37995         our own approximation.
37996
37997 2005-11-08  Eric Blake  <ebb9@byu.net>
37998
37999         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38000
38001 2005-11-08  Eric Blake  <ebb9@byu.net>
38002
38003         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38004
38005 2005-11-04  Bruno Haible  <bruno@clisp.org>
38006
38007         * gnulib-tool: Implement --update mode.
38008
38009 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
38010
38011         Fix porting problem reported by Theodoros V. Kalamatianos.
38012         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
38013         Don't assume that futimes failing means we must fail.
38014
38015 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
38016
38017         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
38018         variables to suggest the intended function of the PATH_MAX check.
38019
38020 2005-10-30  Kean Johnston  <jkj@sco.com>
38021
38022         Trivial changes to support SCO systems.
38023         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
38024         as PATH_MAX.
38025         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
38026         where __ptr is null when no I/O is pending.
38027
38028 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
38029
38030         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
38031         leave errno alone.  Problem reported by Dmitry V. Levin.
38032
38033 2005-10-28  Simon Josefsson  <jas@extundo.com>
38034
38035         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
38036         Test more.
38037
38038         * tests/test-gc-md2.c, tests/test-md2.c: New files.
38039
38040         * modules/md2, modules/md2-tests: New files.
38041
38042 2005-10-28  Simon Josefsson  <jas@extundo.com>
38043
38044         * m4/inet_ntop.m4: More tests.
38045
38046         * m4/gc-md2.m4, md2.m4: New file.
38047
38048 2005-10-28  Simon Josefsson  <jas@extundo.com>
38049
38050         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
38051         "restrict" keywords, as per POSIX.  Protect the function
38052         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
38053         Don't use K&R prototypes.  Check the sprintf return values.
38054         Re-define EAFNOSUPPORT if not present.  Indent.
38055
38056         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
38057         suggested by Bruno Haible <bruno@clisp.org>.
38058
38059         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
38060
38061         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
38062
38063         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
38064         libgcrypt).
38065
38066         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
38067
38068         * lib/md2.h, lib/md2.c: New files.
38069
38070 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
38071
38072         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
38073         errno alone.  Problem reported by Frederic Jolliton.
38074
38075 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
38076
38077         * modules/verify (License): Change from GPL to LGPL.  This is a
38078         tiny module and there are apparently near-equivalents that are
38079         under the BSD license.
38080
38081 2005-10-24  Simon Josefsson  <jas@extundo.com>
38082
38083         * modules/sha1: Relicense to LGPL.
38084
38085 2005-10-24  Simon Josefsson  <jas@extundo.com>
38086
38087         * lib/md4.h: Shrink buffer size, now that we changed the type.
38088
38089 2005-10-23  Simon Josefsson  <jas@extundo.com>
38090
38091         * gnulib-tool (func_import): Fix --tests-base.
38092
38093 2005-10-22  Simon Josefsson  <jas@extundo.com>
38094
38095         * modules/arcfour (Depends-on): Need stdint.
38096
38097 2005-10-22  Simon Josefsson  <jas@extundo.com>
38098
38099         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
38100         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
38101
38102 2005-10-22  Simon Josefsson  <jas@extundo.com>
38103
38104         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
38105         suggested by Bruno Haible <bruno@clisp.org>.
38106
38107 2005-10-22  Simon Josefsson  <jas@extundo.com>
38108
38109         * lib/crc.h: Include stddef.h, for size_t.
38110
38111 2005-10-22  Simon Josefsson  <jas@extundo.com>
38112
38113         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
38114         arcfour_context struct (simplify test vector testing in GNU
38115         Shishi).
38116
38117 2005-10-21  Simon Josefsson  <jas@extundo.com>
38118
38119         * modules/des, modules/des-tests: New files.
38120
38121         * modules/gc-des, modules/gc-des-tests: New files.
38122
38123         * tests/test-des.c, tests/test-gc-des.c: New file.
38124
38125 2005-10-21  Simon Josefsson  <jas@extundo.com>
38126
38127         * modules/arctwo, modules/arctwo-tests: New files.
38128
38129         * tests/test-arctwo.c: New file.
38130
38131         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
38132
38133         * tests/test-gc-arctwo.c: New file.
38134
38135 2005-10-21  Simon Josefsson  <jas@extundo.com>
38136
38137         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
38138         Bruno Haible <bruno@clisp.org>.
38139
38140         * m4/gc-des.m4: New file.
38141
38142 2005-10-21  Simon Josefsson  <jas@extundo.com>
38143
38144         * m4/arctwo.m4: New file.
38145
38146         * m4/gc-arctwo.m4: New file.
38147
38148 2005-10-21  Simon Josefsson  <jas@extundo.com>
38149
38150         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
38151         block.
38152
38153 2005-10-21  Simon Josefsson  <jas@extundo.com>
38154
38155         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
38156         <bruno@clisp.org>.
38157
38158         * lib/hmac-sha1.c (hmac_sha1): Likewise.
38159
38160         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
38161         Bruno Haible <bruno@clisp.org>.
38162
38163         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
38164         <bruno@clisp.org>.
38165
38166 2005-10-21  Simon Josefsson  <jas@extundo.com>
38167
38168         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
38169
38170 2005-10-21  Simon Josefsson  <jas@extundo.com>
38171
38172         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
38173
38174 2005-10-21  Simon Josefsson  <jas@extundo.com>
38175
38176         * lib/des.h, lib/des.c: New files.
38177
38178         * lib/gc-gnulib.c: Support DES.c
38179
38180 2005-10-21  Simon Josefsson  <jas@extundo.com>
38181
38182         * lib/arctwo.h, lib/arctwo.c: New files.
38183
38184         * lib/gc-gnulib.c: Support ARCTWO.
38185
38186 2005-10-21  Simon Josefsson  <jas@extundo.com>
38187
38188         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
38189         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38190
38191 2005-10-21  Simon Josefsson  <jas@extundo.com>
38192
38193         * gnulib-tool (func_import, func_create_testdir): Define automake
38194         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
38195         Makefile.am snippet),
38196         suggested by Bruno Haible <bruno@clisp.org>.
38197
38198         * modules/gc (Makefile.am): Use it.
38199
38200 2005-10-21  Bruno Haible  <bruno@clisp.org>
38201
38202         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
38203         patch.
38204
38205 2005-10-19  Simon Josefsson  <jas@extundo.com>
38206
38207         * tests/test-gc-rijndael.c: New file.
38208
38209         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
38210
38211 2005-10-19  Simon Josefsson  <jas@extundo.com>
38212
38213         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
38214         interface too.
38215
38216 2005-10-19  Simon Josefsson  <jas@extundo.com>
38217
38218         * tests/test-gc-arcfour.c: New file.
38219
38220         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
38221
38222 2005-10-19  Simon Josefsson  <jas@extundo.com>
38223
38224         * modules/gc-md4, modules/gc-md4-tests: New file.
38225
38226         * tests/test-gc-md4.c: New file.
38227
38228 2005-10-19  Simon Josefsson  <jas@extundo.com>
38229
38230         * m4/gc-md4.m4: New file.
38231
38232 2005-10-19  Simon Josefsson  <jas@extundo.com>
38233
38234         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
38235         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
38236         <kasal@ucw.cz>.
38237
38238 2005-10-19  Simon Josefsson  <jas@extundo.com>
38239
38240         * m4/gc-arcfour.m4: New file.
38241
38242         * m4/gc-rijndael.m4: New file.
38243
38244 2005-10-19  Simon Josefsson  <jas@extundo.com>
38245
38246         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
38247
38248 2005-10-19  Simon Josefsson  <jas@extundo.com>
38249
38250         * lib/gc-gnulib.c: Support ARCFOUR.
38251
38252 2005-10-19  Simon Josefsson  <jas@extundo.com>
38253
38254         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
38255         support.
38256
38257         * lib/gc.h: Add ECB enum type.
38258
38259         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
38260
38261 2005-10-18  Simon Josefsson  <jas@extundo.com>
38262
38263         * tests/test-md5.c: New file.
38264
38265         * modules/md5-tests: New file.
38266
38267 2005-10-18  Simon Josefsson  <jas@extundo.com>
38268
38269         * tests/test-md4.c: New file.
38270
38271         * modules/md4, modules/md4-tests: New files.
38272
38273 2005-10-18  Simon Josefsson  <jas@extundo.com>
38274
38275         * m4/md4.m4: New file.
38276
38277 2005-10-18  Simon Josefsson  <jas@extundo.com>
38278
38279         * lib/md4.h, lib/md4.c: New files, based on md5.?.
38280
38281 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
38282
38283         * gnulib-tool (func_create_testdir): Omit the second check whether
38284         BUILT_SOURCES in nonempty.
38285
38286 2005-10-17  Simon Josefsson  <jas@extundo.com>
38287
38288         * tests/test-rijndael.c: New file.
38289
38290 2005-10-17  Simon Josefsson  <jas@extundo.com>
38291
38292         * modules/sha1: Depend on stdint instead of md5.
38293
38294         * modules/md5: Depend on stdint, remove uint32_t.
38295
38296 2005-10-17  Simon Josefsson  <jas@extundo.com>
38297
38298         * modules/gc-sha1-tests: New file.
38299
38300         * tests/test-gc-sha1.c: New file.
38301
38302 2005-10-17  Simon Josefsson  <jas@extundo.com>
38303
38304         * m4/md5.m4: Remove call to uint32_t.m4.
38305
38306 2005-10-17  Simon Josefsson  <jas@extundo.com>
38307
38308         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
38309
38310         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
38311         md5.h.
38312
38313         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
38314
38315         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
38316
38317 2005-10-17  Simon Josefsson  <jas@extundo.com>
38318
38319         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
38320
38321 2005-10-17  Simon Josefsson  <jas@extundo.com>
38322
38323         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
38324
38325 2005-10-17  Simon Josefsson  <jas@extundo.com>
38326
38327         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
38328
38329         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
38330
38331 2005-10-17  Bruno Haible  <bruno@clisp.org>
38332
38333         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
38334         that it can also be used in a test.
38335
38336 2005-10-16  Bruno Haible  <bruno@clisp.org>
38337
38338         * gnulib-tool (func_emit_tests_Makefile_am): Also define
38339         TESTS_ENVIRONMENT, so that individual tests can augment it.
38340
38341         * gnulib-tool (func_create_testdir): Use an intermediate target for
38342         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
38343         macros, like $(ALLOCA_H), which cannot be passed through the command
38344         line.
38345
38346 2005-10-15  Simon Josefsson  <jas@extundo.com>
38347
38348         * modules/rijndael-tests: New file.
38349
38350         * modules/rijndael: New file.
38351
38352 2005-10-15  Simon Josefsson  <jas@extundo.com>
38353
38354         * m4/rijndael.m4: New file.
38355
38356 2005-10-15  Simon Josefsson  <jas@extundo.com>
38357
38358         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
38359
38360         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
38361
38362 2005-10-14  Simon Josefsson  <jas@extundo.com>
38363
38364         * tests/test-arcfour.c: New file.
38365
38366         * modules/arcfour, modules/arcfour-tests: New files.
38367
38368 2005-10-14  Simon Josefsson  <jas@extundo.com>
38369
38370         * m4/arcfour.m4: New file.
38371
38372 2005-10-14  Simon Josefsson  <jas@extundo.com>
38373
38374         * lib/arcfour.h, lib/arcfour.c: New files.
38375
38376 2005-10-14  Roland McGrath  <roland@redhat.com>
38377
38378         Import from libc.  [BZ #1331]
38379         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
38380         macro argument.
38381         Reported by Matej Vela <vela@debian.org>.
38382
38383 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38384
38385         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
38386         include <wchar.h>; no longer needed.
38387
38388 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38389
38390         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
38391
38392 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
38393         and  Ulrich Drepper  <drepper@redhat.com>
38394
38395         Import from libc.
38396         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
38397         instead of inline stream orientation test and two separate
38398         function calls.  Pay no attention to USE_IN_LIBIO.
38399
38400 2005-10-13  Simon Josefsson  <jas@extundo.com>
38401
38402         * modules/gc-hmac-md5-tests: New file.
38403
38404         * tests/test-gc-hmac-sha1.c: New file.
38405
38406         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
38407
38408         * modules/gc-hmac-md5-tests: New file.
38409
38410         * tests/test-gc-md5.c: New file.
38411
38412         * modules/gc-md5-tests: New file.
38413
38414 2005-10-13  Simon Josefsson  <jas@extundo.com>
38415
38416         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
38417         Move memory allocation outside of loop.
38418
38419 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
38420
38421         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
38422         intermediate directory is in a read-only file system.  Problem
38423         reported by Eric Blake.
38424
38425 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
38426
38427         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
38428
38429 2005-10-12  Simon Josefsson  <jas@extundo.com>
38430
38431         * tests/test-hmac-sha1.c: New file.
38432
38433         * modules/hmac-sha1-tests: New file.
38434
38435         * modules/hmac-sha1: New file.
38436
38437 2005-10-12  Simon Josefsson  <jas@extundo.com>
38438
38439         * modules/gc-sha1: New file.
38440
38441 2005-10-12  Simon Josefsson  <jas@extundo.com>
38442
38443         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
38444
38445         * tests/test-gc-pbkdf2-sha1.c: New file.
38446
38447 2005-10-12  Simon Josefsson  <jas@extundo.com>
38448
38449         * modules/gc-md5, modules/gc-hmac-md5: New files.
38450
38451         * modules/gc (Files): Remove md5, memxor and hmac files.
38452
38453 2005-10-12  Simon Josefsson  <jas@extundo.com>
38454
38455         * m4/gc-pbkdf2-sha1.m4: New file.
38456
38457         * m4/gc-hmac-sha1.m4: New file.
38458
38459         * m4/gc-sha1: New file.
38460
38461         * m4/hmac-sha1.m4: New file.
38462
38463 2005-10-12  Simon Josefsson  <jas@extundo.com>
38464
38465         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
38466
38467         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
38468
38469 2005-10-12  Simon Josefsson  <jas@extundo.com>
38470
38471         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
38472         suggested by Bruno Haible <bruno@clisp.org>.
38473
38474 2005-10-12  Simon Josefsson  <jas@extundo.com>
38475
38476         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
38477
38478 2005-10-12  Simon Josefsson  <jas@extundo.com>
38479
38480         * lib/gc-pbkdf2-sha1.c: New file.
38481
38482         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
38483
38484 2005-10-12  Simon Josefsson  <jas@extundo.com>
38485
38486         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
38487
38488         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
38489
38490 2005-10-12  Simon Josefsson  <jas@extundo.com>
38491
38492         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
38493         GC_USE_HMAC_MD5, respectively.
38494
38495         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
38496         (gc_md5): Fix typo.
38497
38498         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
38499
38500         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
38501
38502         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
38503
38504 2005-10-12  Bruno Haible  <bruno@clisp.org>
38505
38506         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
38507         Reported by Stepan Kasal <kasal@ucw.cz>.
38508
38509 2005-10-11  Simon Josefsson  <jas@extundo.com>
38510
38511         * tests/test-crc.c: New file.
38512
38513         * modules/crc, modules/crc-tests: New files.
38514
38515 2005-10-11  Simon Josefsson  <jas@extundo.com>
38516
38517         * m4/crc.m4: New file.
38518
38519 2005-10-11  Simon Josefsson  <jas@extundo.com>
38520
38521         * lib/gc.h: Add gc_hash and gc_hash_buffer.
38522
38523         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
38524
38525         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
38526
38527 2005-10-11  Simon Josefsson  <jas@extundo.com>
38528
38529         * lib/crc.h, lib/crc.c: New files.
38530
38531         * lib/gc.h (gc_hash_buffer): Add doc.
38532
38533 2005-10-11  Bruno Haible  <bruno@clisp.org>
38534
38535         * modules/c-strcasestr: New file.
38536         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
38537
38538 2005-10-11  Bruno Haible  <bruno@clisp.org>
38539
38540         * modules/c-strcase: New file.
38541         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
38542
38543 2005-10-11  Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/strcasecmp.c: Include limits.h.
38546         (strcasecmp): Avoid integer overflow on exotic platforms.
38547         * lib/strncasecmp.c: Include limits.h.
38548         (strncasecmp): Avoid integer overflow on exotic platforms.
38549         Reported by Paul Eggert.
38550
38551 2005-10-11  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/c-strcasestr.h: New file, from GNU gettext.
38554         * lib/c-strcasestr.c: New file, from GNU gettext.
38555
38556 2005-10-11  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/c-strcase.h: New file, from GNU gettext.
38559         * lib/c-strcasecmp.c: New file, from GNU gettext.
38560         * lib/c-strncasecmp.c: New file, from GNU gettext.
38561
38562 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38563
38564         * modules/mempcpy (License): GPL -> LGPL.
38565         * modules/strchrnul (License): Likewise.
38566         * modules/sysexits (License): Likewise.
38567
38568 2005-10-08  Simon Josefsson  <jas@extundo.com>
38569
38570         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
38571
38572 2005-10-07  Simon Josefsson  <jas@extundo.com>
38573
38574         * m4/memxor.m4: Remove gl_C_RESTRICT call.
38575
38576 2005-10-06  Simon Josefsson  <jas@extundo.com>
38577
38578         * tests/test-hmac-md5.c: New file.
38579
38580         * modules/hmac-md5-tests: New file.
38581
38582         * modules/hmac-md5: New file.
38583
38584 2005-10-06  Simon Josefsson  <jas@extundo.com>
38585
38586         * m4/hmac-md5.m4: New file.
38587
38588         * m4/memxor.m4: Require gl_C_RESTRICT.
38589
38590 2005-10-06  Simon Josefsson  <jas@extundo.com>
38591
38592         * lib/memxor.c (memxor): Avoid casts and warnings.
38593
38594 2005-10-06  Simon Josefsson  <jas@extundo.com>
38595
38596         * lib/hmac-md5.c: New file.
38597
38598         * lib/hmac.h: New file.
38599
38600 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38601
38602         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
38603         promotes to int, not unsigned int, to catch the AIX 5.3
38604         compiler bug.
38605
38606 2005-10-05  Simon Josefsson  <jas@extundo.com>
38607
38608         * modules/memxor: New file.
38609
38610         * modules/iconv (Files): Move config.rpath to havelib, it is used
38611         there.
38612
38613         * modules/havelib (Files): Add config.rpath.
38614
38615 2005-10-05  Simon Josefsson  <jas@extundo.com>
38616
38617         * m4/memxor.m4: New file.
38618
38619 2005-10-05  Simon Josefsson  <jas@extundo.com>
38620
38621         * lib/memxor.c (memxor): Fix compiler error.
38622
38623         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
38624         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
38625
38626         * lib/memxor.h, lib/memxor.c: New files.
38627
38628         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
38629         we assume all systems have it, suggested by Jim Meyering
38630         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
38631         any systems lack sys/socket.h; mingw32 is known to lack it, but we
38632         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
38633         same reasons.
38634
38635 2005-10-05  Simon Josefsson  <jas@extundo.com>
38636
38637         * config/srclist.txt: Add glibc bug 1423 for md5.h.
38638
38639 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38640
38641         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
38642         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
38643         needed, since the source code now assumes these .h files.
38644
38645 2005-10-05  Derek Price  <derek@ximbiot.com>
38646
38647         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
38648
38649 2005-10-05  Bruno Haible  <bruno@clisp.org>
38650
38651         * modules/stdint (License): Change to LGPL.
38652
38653 2005-10-04  Simon Josefsson  <jas@extundo.com>
38654
38655         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
38656         D. Baushke" <mdb@gnu.org>.
38657
38658 2005-10-04  Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/verify.h (verify_true): Provide alternative definition for C++.
38661
38662 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
38663
38664         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
38665         (SSIZE_MAX): New macro, if not already defined.
38666         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
38667         than 2 GiB.
38668
38669 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38670
38671         Sync from coreutils.
38672         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
38673         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
38674         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
38675         ULLONG_MAX doesn't work with 2.7.2.1.
38676
38677 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38678
38679         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
38680         From Ben Pfaff.
38681
38682         * modules/exclude (Depends-on): Depend on verify.
38683         * modules/strtoimax (Depends-on): Likewise.
38684         * modules/utimecmp (Depends-on): Likewise.
38685
38686 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38687
38688         * lib/exclude.c: Include verify.h.
38689         (verify): Remove.  All callers changed to use verify.h's version.
38690         * lib/strtoimax.c: Likewise.
38691         * lib/utimecmp.c: Likewis.e
38692
38693         Sync from coreutils.
38694         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
38695         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
38696         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
38697         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
38698         bother returning ENOSYS if settimeofday or stime fails; just let
38699         them return whatever errno they want to return.
38700         * lib/utimens.c: Include unistd.h, for dup2.
38701         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
38702         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
38703
38704 2005-10-02  Jim Meyering  <jim@meyering.net>
38705
38706         Sync from coreutils.
38707         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
38708         from glibc-2.2.5 that fails for read-only files.
38709
38710 2005-10-02  Jim Meyering  <jim@meyering.net>
38711
38712         Sync from coreutils.
38713         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
38714         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
38715         `#if HAVE_CONFIG_H'.
38716         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
38717         Remove AT_FDCWD test.
38718         Do not consume the fd unless successful.
38719         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
38720         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
38721         block, so that we don't even try to compile it if settimeofday is
38722         available.  This works around a compilation failure on OSF1 V5.1,
38723         due to stime requiring a `long int*' while tv_sec is `int'.
38724
38725 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
38726
38727         Sync from coreutils.
38728         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
38729         against `yes', rather than just testing for nonempty.
38730
38731 2005-10-01  Simon Josefsson  <jas@extundo.com>
38732
38733         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
38734         and Darwin.
38735
38736         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
38737         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
38738         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
38739         freeaddrinfo and gai_strerror are declared by the POSIX headers.
38740         Check if struct addrinfo is declared.
38741
38742 2005-10-01  Simon Josefsson  <jas@extundo.com>
38743
38744         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
38745         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
38746         AI_* and EAI_* definitions.  Protect function declarations.
38747
38748 2005-10-01  Jim Meyering  <jim@meyering.net>
38749
38750         Sync from coreutils.
38751
38752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
38753         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
38754         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
38755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38756         in the inet and nsl libraries.  Required on Solaris 5.7.
38757
38758 2005-10-01  Jim Meyering  <jim@meyering.net>
38759
38760         Sync from coreutils.
38761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38762         in the inet and nsl libraries.  Required on Solaris 5.7.
38763
38764 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
38765
38766         * lib/getdelim.c (getdelim): Remove unused variables.
38767
38768 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
38769
38770         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
38771         so that the code works even with ancient cpp.  Portability problem
38772         with GCC 2.7.2.1 reported by Thomas M.Ott.
38773
38774 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
38775
38776         * modules/regex (Depends-on): Add strcase.
38777
38778         * modules/gethostname (Licence): Change from GPL to LGPL, since
38779         gethostname.c is a trivial implementation of a standard library
38780         function.
38781         * modules/poll (License): Change from GPL to LGPL, since it's
38782         derived from LGPL code.
38783
38784 2005-09-27  Jim Meyering  <jim@meyering.net>
38785
38786         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
38787         HAVE_CONFIG_H.
38788
38789         * lib/intprops.h (signed_type_or_expr__): Define.
38790         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
38791         for unsigned types.
38792
38793 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
38794
38795         * lib/verify.h (verify_expr): Remove, replacing with:
38796         (verify_true): New macro that returns true instead of void.
38797         (verify_type__): Remove.
38798         (verify): Use verify_true rather than verify_type__.
38799
38800 2005-09-26  Bruno Haible  <bruno@clisp.org>
38801
38802         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
38803         is necessary.
38804         (lib_SOURCES): Remove mbchar.c.
38805         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
38806         (Files): Add m4/mbrtowc.m4.
38807         * modules/mbiter: Likewise.
38808         * modules/mbuiter: Likewise.
38809
38810 2005-09-26  Bruno Haible  <bruno@clisp.org>
38811
38812         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
38813         compile mbchar.c if they are not both present.
38814         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
38815         * m4/mbiter.m4 (gl_MBITER): Likewise.
38816         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
38817         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
38818         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
38819
38820 2005-09-25  Jim Meyering  <jim@meyering.net>
38821
38822         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
38823         also uses socklen_t.
38824
38825 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
38826
38827         * lib/utimens.c (ENOSYS): Define if not already defined.
38828         (futimens): Support having a null PATH if the file descriptor
38829         is nonnegative.
38830
38831         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
38832         Remove.
38833         (__attribute): Define to empty unless GCC 3.1 or later.
38834         This works around a core dump on OpenBSD 3.4, which has GCC
38835         2.95.3, which dumps core when given __attribute__(()).  It also
38836         simplifies other tests, since we really don't want to bother with
38837         worrying about which ancient version of GCC supported what.
38838         Original problem reported by Yoann Vandoorselaere, with part of
38839         the fix suggested by Derek Price.
38840
38841 2005-09-24  Jim Meyering  <jim@meyering.net>
38842
38843         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
38844         so we can once again use a positive bitfield width of 1 -- now we
38845         don't have to explain why we were using a bitfield width of 2.
38846
38847 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
38848
38849         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
38850         and similarly for the other external symbols.  Problem reported
38851         by James Gallager.
38852
38853         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
38854         bug reported by Jim Meyering.
38855
38856         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
38857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
38858         not needed, since socklen is a prerequisite module.
38859
38860 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
38861
38862         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
38863         Problem reported by Eric Blake.
38864         (getaddrinfo): Initialize se so that it's not garbage.
38865         Redo internal storage allocation so that it doesn't make unportable
38866         assumptions about alignment.
38867         Fix a memory leak.
38868
38869         * lib/utimens.c (futimens): Use futimesat if available.
38870         Prefer it to futimes since it doesn't have the futimes bug.
38871
38872         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
38873         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
38874         Instead, declare a function that returns a pointer to an array,
38875         and use verify_type__ to declare the size of the array.
38876         Problem and germ of a solution reported by Bruno Haible.
38877         (verify_type__): Use 2, not 1, for bitfield size, to avoid
38878         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
38879
38880 2005-09-23  Jim Meyering  <jim@meyering.net>
38881
38882         Sync from coreutils.
38883         Correct build failure (socklen_t not defined) on at least
38884         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
38885         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
38886
38887 2005-09-23  Jim Meyering  <jim@meyering.net>
38888
38889         * modules/getaddrinfo (Depends-on): Add socklen.
38890
38891 2005-09-23  Bruno Haible  <bruno@clisp.org>
38892
38893         * tests/test-verify.c: New file.
38894
38895 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38896
38897         Sync from coreutils.
38898
38899         * modules/argmatch (Depends-on): Add verify.
38900         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
38901         unistd-safer.
38902         * modules/save-cwd (Depends-on): Likewise.
38903
38904         * modules/openat (Files): Add lib/openat-die.c.
38905         (Depends-on): Remove error, exitfail.
38906         Add dirname.
38907
38908         * modules/verify: New file.
38909         * MODULES.html.sh (Diagnostics <assert.h>): New section,
38910         with "verify" module.
38911
38912 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38913
38914         Sync from coreutils.
38915
38916         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
38917         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
38918         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
38919         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
38920         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
38921         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
38922         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
38923         Don't bother checking for string.h, stdlib.h, unistd.h.
38924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
38925         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
38926         module's job.
38927         * m4/jm-macros.m4 (gl_MACROS): Likewise.
38928         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
38929
38930         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
38931         (gl_GETDATE): Use it.
38932
38933         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
38934
38935 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38936
38937         Sync from coreutils.
38938
38939         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
38940         stat-time.h.
38941         * lib/argmatch.h: Include verify.h
38942         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
38943         (ARGMATCH_ASSERT): Remove; unused.
38944         * lib/canonicalize.c: Assume STDC_HEADERS.
38945         * lib/exclude.c: Include "strcase.h".
38946         * lib/regex_internal.h [!defined _LIBC]: Likewise.
38947         * lib/getusershell.c: Include stdio--.h rather than stdio.h
38948         and stdio-safer.h.
38949         (getusershell): Call fopen, not fopen_safer.
38950         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
38951         Do not include unistd-safer.h.
38952         (save_cwd): Don't call fd_safer; no longer needed
38953         now that we include fcntl--.h.
38954
38955         * lib/getdate.y (relative_time): New type.
38956         (RELATIVE_TIME_0): New constant.
38957         (parser_control): Use relative_time instead of doing it ourselves.
38958         (%union): Add new relative_time rel member.
38959         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
38960         Now typeless.
38961         (relunit, relunit_snumber): Now of type rel.
38962         (zone, rel, relunit, get_date): Adjust to above changes.
38963
38964         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
38965         Do not include unistd-safer.h.
38966         (getloadavg): Don't call fd_safer; no longer needed
38967         now that we include fcntl--.h.
38968
38969         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
38970         (make_dir_parents): Treat ENOSYS like EEXIST.
38971
38972         Improve quality of diagnostics on restore_cwd failure.
38973         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
38974         (make_dir_parents): Last arg is now int * (for errno), not bool *.
38975         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
38976         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
38977         each time through the loop.  Do not diagnose restore_cwd failure;
38978         that is the caller's job (and perhaps the caller does not care).
38979
38980         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
38981         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
38982         If the file already exists but is not a directory, don't bother
38983         to try to make its parents.
38984         Close potential file descriptor leak if we can't chdir("/") (!).
38985         Don't always return true if chdir($PWD) fails; return true only
38986         if the requested action was done successfully (except for the
38987         chdir($PWD)).
38988         Don't log final directory unless we actually made it.
38989         Refactor to avoid duplicate code to fix up permissions.
38990         Don't attempt to fix up parent permissions if chdir($PWD) fails.
38991
38992         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
38993         to make it a bit faster and (I hope) clearer.
38994         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
38995         Fix bug in formats like %2N.
38996
38997         * lib/verify.h: New file.
38998
38999 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39000
39001         Sync from coreutils.
39002         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
39003
39004 2005-09-22  Jim Meyering  <jim@meyering.net>
39005
39006         Sync from coreutils.
39007
39008         * m4/lstat.m4 (gl_FUNC_LSTAT):
39009         Use AC_LIBSOURCES to require lstat.c and lstat.h.
39010         Remove obsolete comment.
39011         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
39012         * m4/xstrtod.m4: Likewise.
39013
39014         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
39015
39016 2005-09-22  Jim Meyering  <jim@meyering.net>
39017
39018         Sync from coreutils.
39019
39020         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
39021
39022         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
39023         the .tm_year member, since otherwise gcc-4.0 would now warn about
39024         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
39025
39026         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
39027         order to avoid an unsuppressible warning from gcc on 64-bit systems.
39028
39029         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
39030         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
39031         when run in a time zone for which daylight savings time is in effect
39032         for the starting date.
39033
39034         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
39035         stop us from restricting permissions of just-created absolute-named
39036         directories.
39037         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
39038         to restore initial working directory.
39039         * lib/mkdir-p.c (make_dir_parents): New parameter:
39040         different_working_dir, to tell caller if/when we change the working
39041         directory and are unable to return to the initial one.
39042         * lib/mkdir-p.h (make_dir_parents): Update prototype.
39043         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
39044         `return false'.  This fixes a bug introduced on 2004-07-30.
39045
39046         * lib/openat.c (fdopendir): Be sure to close the supplied
39047         file descriptor before returning.  This makes our replacement
39048         implementation a little closer to Solaris's, where fdopendir
39049         ties the file descriptor to the returned DIR* pointer.
39050         * lib/openat.c (unlinkat): New function.
39051         * lib/openat.h (unlinkat): Add prototype.
39052         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
39053         (openat_restore_fail): Rename from openat_restore_die.
39054         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
39055
39056         Provide an alternative to exiting immediately upon save_cwd or
39057         restore_cwd failure.  Now, an application can arrange e.g.,
39058         to perform a longjump in that case.
39059         * lib/openat.c: Include dirname.h.
39060         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
39061         (rpl_openat, fdopendir, fstatat): Call openat_save_die
39062         and openat_restore_die rather than calling error directly.
39063         Don't include "error.h" or "exitfail.h"; they're no longer needed.
39064
39065         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
39066         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
39067         define.
39068
39069         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
39070         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
39071                             int utc, int nanoseconds);
39072         Background:
39073         date should not have to allocate a megabyte of virtual memory to
39074         handle a format argument like +%1048575T.  When implemented with
39075         strftime, it must allocate such a buffer, use strftime to fill it
39076         in, print it, then free it.
39077         With fprintftime, it simply prints everything and exits.
39078         With no need for memory allocation, that's one fewer way to fail.
39079         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
39080         optional field width, not before, so we accept %9:z, not %:9z.
39081         (my_strftime): Be sure to use L_('x') for literals.
39082
39083         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
39084         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
39085         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
39086         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
39087         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
39088         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
39089         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
39090         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
39091         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
39092         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
39093         * lib/xgethostname.c, lib/xreadlink.c:
39094         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
39095
39096         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
39097         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
39098         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
39099         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
39100         and don't include <sys/file.h>).
39101
39102 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
39103
39104         Sync from coreutils.
39105
39106         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
39107         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
39108         [!LDAV_DONE]: Avoid unused variable warning.
39109
39110 2005-09-21  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/unicodeio.h (unicode_to_mb): New declaration.
39113
39114 2005-09-20  Derek Price  <derek@ximbiot.com>
39115
39116         * lib/getaddrinfo.c: Don't include <netdb.h> included from
39117         getaddrinfo.h.
39118
39119 2005-09-20  Bruno Haible  <bruno@clisp.org>
39120
39121         * gnulib-tool: Remove trailing slashes from the values specified for
39122         --source-base, --m4-base, --tests-base, --aux-dir.
39123         Suggested by Simon Josefsson <jas@extundo.com>.
39124
39125 2005-09-20  Bruno Haible  <bruno@clisp.org>
39126
39127         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
39128         func_modules_to_filelist, func_import, func_create_testdir): Make all
39129         sorting results locale-independent, so that gnulib-cache.m4 doesn't
39130         change when gnulib-tool is invoked in a different locale.
39131
39132 2005-09-19  Simon Josefsson  <jas@extundo.com>
39133
39134         * m4/socklen.m4: Fix typo.
39135
39136 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39137
39138         Use a consistent style for including <config.h>.
39139         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
39140         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
39141         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
39142         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
39143         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
39144         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
39145         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
39146         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
39147         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
39148         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
39149         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
39150         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
39151         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
39152         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
39153         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
39154         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
39155         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
39156         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
39157         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
39158         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
39159         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
39160         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
39161         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
39162         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
39163         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
39164         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
39165         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
39166         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
39167         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
39168         lib/xstrtoumax.c, lib/yesno.c:
39169         Standardize inclusion of config.h.
39170         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
39171         lib/inttostr.h:  Removed inclusion of config.h from header files.
39172         * lib/inttostr.c:  Adjusted in-tree users.
39173         * lib/timespec.h: Remove superfluous warning to include config.h.
39174         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
39175         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
39176         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
39177         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
39178         config.h with HAVE_CONFIG_H.
39179
39180 2005-09-19  Jim Meyering  <jim@meyering.net>
39181
39182         * modules/pathmax (License): Change to LGPL.
39183
39184 2005-09-19  Derek Price  <derek@ximbiot.com>
39185
39186         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
39187
39188 2005-09-19  Bruno Haible  <bruno@clisp.org>
39189
39190         * gnulib-tool (import): Provide default for --tests-base.
39191
39192 2005-09-19  Bruno Haible  <bruno@clisp.org>
39193
39194         * doc/quote.texi: New file, extracted from gnulib.texi.
39195         * doc/ctime.texi: New file, extracted from gnulib.texi.
39196         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
39197         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
39198         * doc/gnulib.texi: Include them.
39199
39200 2005-09-18  Bruno Haible  <bruno@clisp.org>
39201
39202         Portability fix.
39203         * gnulib-tool (func_readlink): New function.
39204         (func_ln_if_changed): Use it.
39205
39206 2005-09-18  Bruno Haible  <bruno@clisp.org>
39207
39208         * gnulib-tool: Support --with-tests also with --import.
39209         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
39210         (func_import): Use variables $testsbase and $inctests. Emit a
39211         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
39212         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
39213         SUBDIRS += $testsdir.
39214         (func_create_testdir): Update.
39215
39216 2005-09-18  Bruno Haible  <bruno@clisp.org>
39217
39218         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
39219         instead of $dry_run.
39220         (func_cp_if_changed, func_mv_if_changed): Remove functions.
39221         (func_ln_if_changed): Don't handle dry-run here.
39222         (func_import): In dry-run mode, detect more precisely which actions
39223         would be performed, and don't use "...ing" verbs.
39224
39225 2005-09-18  Bruno Haible  <bruno@clisp.org>
39226
39227         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
39228         (func_import): Use join on two temporary files instead of three nested
39229         loops, in order to determine which files are new or old.
39230
39231 2005-09-18  Bruno Haible  <bruno@clisp.org>
39232
39233         * gnulib-tool (func_import): Comment out code that spits out the
39234         new files with --dry-run.
39235
39236 2005-09-18  Bruno Haible  <bruno@clisp.org>
39237
39238         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
39239
39240 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39241
39242         * lib/stat-time.h: New file.
39243         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
39244         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
39245         in a different way.
39246         (timespec_cmp): New function.
39247         * lib/utimecmp.c: Include stat-time.h.
39248         (SYSCALL_RESOLUTION): Depend on whether various struct stat
39249         members exist, not on the obsolescent ST_MTIM_NSEC.
39250         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
39251
39252 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39253
39254         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
39255
39256 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39257
39258         * MODULES.html.sh (File system functions): Add stat-time.
39259         * modules/stat-time: New file.
39260         * modules/timespec (Files): Remove m4/st_mtim.m4; this
39261         is now done in a different way, by the stat-time module.
39262         * modules/utimecmp (Depends-on): Add stat-time.
39263
39264 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39265
39266         * m4/st_mtim.m4: Remove.  Superseded by...
39267         * m4/stat-time.m4: New file.
39268         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
39269         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
39270
39271 2005-09-15  Derek Price  <derek@ximbiot.com>
39272
39273         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
39274
39275 2005-09-15  Derek Price  <derek@ximbiot.com>
39276
39277         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
39278         * lib/regex_internal.c: Ditto, using this...
39279         (__GNUC_PREREQ): ...new macro.
39280         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
39281         using...
39282         (__GNUC_PREREQ): ...this new macro.
39283
39284         * lib/strstr.h: Include string.h. Define strstr as a macro here.
39285
39286 2005-09-15  Derek Price  <derek@ximbiot.com>
39287             Paul Eggert  <eggert@cs.ucla.edu>
39288
39289         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
39290         changes, consolidating in...
39291         * lib/regex_internal.h: ...this file.
39292
39293 2005-09-13  Jim Meyering  <jim@meyering.net>
39294
39295         * lib/canon-host.c: Filter through gnu indent and reword comments
39296         slightly.
39297         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
39298
39299 2005-09-13  Derek Price  <derek@ximbiot.com>
39300
39301         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
39302         failure.
39303         Reported by Jim Meyering  <jim@meyering.net>.
39304
39305 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39306
39307         * lib/base64.c: Typo.
39308         (base64_encode): Put b64str in initialized data section.
39309
39310 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
39311
39312         Merge glibc and coreutils changes into gnulib, plus a few
39313         extra fixes.
39314         * lib/md5.c: Use #error rather than a string.
39315         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
39316         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
39317         (__attribute__): Define to empty for non recent-GCC.
39318         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
39319         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
39320         Renamed from their non-__ counterparts, with new macros replacing
39321         them if not _LIBC.  Add __THROW attribute.
39322         (rol): Remove.
39323         (struct md5_ctx): Align buffer if using GCC.
39324         * lib/sha1.h (struct sha1_ctx): Likewise.
39325         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
39326         The old name was backwards.
39327         (NOTSWAP): Remove; not used.
39328         (rol): New macro, moved here from md5.h.
39329         (sha1_process_block): Remove a FIXME that doesn't make sense.
39330
39331 2005-09-12  Derek Price  <derek@ximbiot.com>
39332
39333         Return usable errors from canon-host.
39334         * lib/canon-host.h: New file.
39335         * lib/canon-host.c (canon_host): Wrap...
39336         (canon_host_r): ...this new function, which now relies exclusively on
39337         getaddrinfo.
39338         (ch_strerror): New function.
39339         (last_cherror): New global.
39340         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
39341         interface.
39342         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
39343         void *.
39344         (freeaddrinfo): Free ai->ai_canonname when set.
39345
39346 2005-09-12  Derek Price  <derek@ximbiot.com>
39347
39348         Make canon-host require getaddrinfo.
39349         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
39350         AC_LIBSOURCE canon-host.h.  Call...
39351         (gl_PREREQ_CANON_HOST): ...this new function, which requires
39352         gl_GETADDRINFO.
39353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
39354
39355 2005-09-12  Derek Price  <derek@ximbiot.com>
39356
39357         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
39358         LGPL.
39359         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
39360
39361 2005-09-12  Derek Price  <derek@ximbiot.com>
39362
39363         * lib/gai_strerror.c: Include config.h when available.  Include
39364         getaddrinfo.h before other headers to test interface.
39365         Reported by Larry Jones <lawrence.jones@ugs.com>.
39366
39367 2005-09-12  Derek Price  <derek@ximbiot.com>
39368             Paul Eggert  <eggert@cs.ucla.edu>
39369
39370         * modules/glob (Files): Add glob-libc.h.
39371
39372 2005-09-12  Derek Price  <derek@ximbiot.com>
39373             Paul Eggert  <eggert@cs.ucla.edu>
39374
39375         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
39376         glob_.h, glob-libc.h.
39377         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
39378
39379 2005-09-12  Derek Price  <derek@ximbiot.com>
39380             Paul Eggert  <eggert@cs.ucla.edu>
39381
39382         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
39383         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
39384         protecting things that should be done only in gnulib contexts.
39385         * lib/glob_.h: New file, containing only the glob things needed for
39386         gnulib.
39387         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
39388         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
39389         (glob, globfree, glob_pattern_p): Now defined simply in terms of
39390         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
39391         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
39392         and to respect the namespace rules better.
39393
39394 2005-09-08  Simon Josefsson  <jas@extundo.com>
39395
39396         * modules/socklen: New file.
39397
39398 2005-09-08  Simon Josefsson  <jas@extundo.com>
39399
39400         * m4/socklen.m4: New file.
39401
39402 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39403
39404         * modules/utimens (Files): Add m4/utimbuf.m4, since
39405         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
39406         Reported by Sergey Poznyakoff.
39407
39408 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39409
39410         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
39411         definitions, since that's the preferred style in glibc.
39412         Fix a minor spacing issue, and update copyright notice to match
39413         glibc's.
39414
39415 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39416
39417         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
39418
39419 2005-09-06  Simon Josefsson  <jas@extundo.com>
39420
39421         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
39422         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
39423
39424 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39425
39426         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
39427         warning.
39428
39429 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39430
39431         * config/srclist.txt: Add glibc bug 1302.
39432
39433 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
39434
39435         Change bitset word type from unsigned int to unsigned long int,
39436         as this has better performance on typical 64-bit hosts.
39437         Port bitset code to hosts with unusual word sizes.
39438         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
39439         (build_collating_symbol):
39440         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
39441         argument is a bitset.  This is merely a style issue, but it makes
39442         it clearer that an entire array is expected.
39443         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
39444         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
39445         Port to the case where bitset_word is not the same as unsigned int.
39446         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39447         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
39448         Likewise.
39449         * lib/regexec.c (check_dst_limits_calc_pos_1,
39450         check_subexp_matching_top):
39451         (build_trtable, group_nodes_into_DFAstates):
39452         Likewise.
39453         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
39454         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
39455         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
39456         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
39457         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
39458         * lib/regcomp.c (optimize_subexps, lower_subexp):
39459         Work even if bitset_word has holes in its bitwise representation.
39460         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
39461         * lib/regexec.c (check_dst_limits_calc_pos_1,
39462         check_subexp_matching_top):
39463         Likewise.
39464         * lib/regex_internal.c (re_string_reconstruct):
39465         Don't assume UCHAR_MAX == 255.
39466         * lib/regex_internal.h (bitset_set_all): Likewise.
39467         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
39468         All uses changed.
39469         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
39470         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
39471         All uses changed.
39472         (BITSET_WORD_MAX): New macro.
39473         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
39474         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
39475         (bitset_empty, bitset_copy):
39476         Prefer sizeof (bitset) to multiplying it out ourselves.
39477         (bitset_not_merge): Remove; unused.
39478         (bitset_contain): Return bool, not unsigned int with one bit on.
39479         All callers changed.
39480         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
39481         alignment than re_node_set; do this by defining a new internal
39482         type struct dests_alloc and using it to allocate memory.
39483
39484 2005-09-05  Bruno Haible  <bruno@clisp.org>
39485
39486         * gnulib-tool (func_import): Fix comparison in handling of symbolic
39487         links.
39488
39489 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
39490
39491         * modules/size_max (Makefile.am): Add size_max.h
39492
39493 2005-09-04  Derek Price  <derek@ximbiot.com>
39494
39495         * gnulib-tool (func_import): Fix reversed $symbolic logic.
39496
39497 2005-09-03  Simon Josefsson  <jas@extundo.com>
39498
39499         * gnulib-tool: Fix typo.
39500
39501 2005-09-03  Simon Josefsson  <jas@extundo.com>
39502
39503         * config/srclist.txt: Add glibc bug 1293.
39504
39505 2005-09-03  Derek Price  <derek@ximbiot.com>
39506
39507         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
39508         From Larry Jones <lawrence.jones@ugs.com>.
39509
39510 2005-09-02  Simon Josefsson  <jas@extundo.com>
39511
39512         * modules/socklen: New file.
39513
39514 2005-09-02  Simon Josefsson  <jas@extundo.com>
39515
39516         * modules/havelib: New module.
39517
39518         * modules/gettext, modules/iconv, modules/lock, modules/readline:
39519         Use havelib.
39520
39521 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39522
39523         Check for arithmetic overflow when calculating sizes, to prevent
39524         some buffer-overflow issues.  These patches are conservative, in the
39525         sense that when I couldn't determine whether an overflow was possible,
39526         I inserted a run-time check.
39527         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
39528         macros.
39529         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
39530         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
39531         (re_xnrealloc, re_x2nrealloc): New inline functions.
39532         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
39533         parse_bracket_exp):
39534         (build_equiv_class, build_charclass): Check for arithmetic overflow
39535         in size expression calculations.
39536         * lib/regex_internal.c (re_string_realloc_buffers):
39537         (build_wcs_upper_buffer, re_node_set_add_intersect):
39538         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
39539         (re_dfa_add_node, register_state): Likewise.
39540         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
39541         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
39542         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
39543         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
39544
39545 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39546
39547         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
39548         m4/ulonglong.m4.  Problem reported by Martin Lambers.
39549
39550 2005-09-02  Bruno Haible  <bruno@clisp.org>
39551
39552         Support for lib vs. lib64 distinction on biarch platforms.
39553         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
39554         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
39555         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
39556
39557 2005-09-02  Bruno Haible  <bruno@clisp.org>
39558
39559         * gnulib-tool (import): In the other first-use case, provide defaults
39560         as well.
39561
39562 2005-09-02  Bruno Haible  <bruno@clisp.org>
39563
39564         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
39565         patches not yet found in the latest gettext release.
39566
39567 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39568
39569         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
39570         to avoid a collision with bits/local_lim.h in glibc.
39571         All uses changed.  Problem reported by Dmitry V. Levin in
39572         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
39573
39574         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
39575         bugs in int versus size_t comparisons.
39576         (re_string_context_at): Fix bug where the code assumed that
39577         Idx is signed.
39578
39579         Use bool where appropriate.
39580         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
39581         All callers changed.
39582         (calc_eclosure_iter): Likewise, for ROOT arg.
39583         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
39584         (build_charclass_op): Likewise, for NON_MATCH arg.
39585         * lib/regex_internal.c (re_string_allocate, re_string_construct):
39586         (re_string_construct_common): Likewise, for ICASE arg.
39587         * lib/regexec.c (re_search_2_stub, re_search_stub):
39588         Likewise, for RET_LEN arg.
39589         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
39590         (set_regs): Likewise, for FL_BACKTRACK arg.
39591         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
39592         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
39593         (calc_eclosure_iter, parse_bracket_exp):
39594         Use bool for internal variables that are booleans.
39595         * lib/regexec.c (re_search_internal, check_matching,
39596         proceed_next_node):
39597         (set_regs, build_sifted_states, sift_states_bkref):
39598         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
39599         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
39600         (find_collation_sequence_value):
39601         Likewise.
39602         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
39603         (re_node_set_compare):
39604         Return bool, not int. All callers changed.
39605         * lib/regexec.c (check_halt_node_context, check_dst_limits):
39606         (build_trtable, check_node_accept): Likewise.
39607         * lib/regex_internal.h: Include stdbool.h.
39608
39609         Fix bugs uncovered when converting to bool.
39610         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
39611         failure instead of charging ahead blindly.
39612         * lib/regex_internal.c (register_state): Likewise.
39613         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
39614         for freeing internal storage.
39615         (group_nodes_into_DFA_states): Use unsigned int, not int, for
39616         bitset pieces used as boolean, to avoid undefined behavior
39617         on hosts that do int overflow checking.
39618
39619 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39620
39621         * config/srclist.txt: Add glibc bugs 1285-1287.
39622
39623 2005-09-01  Jim Meyering  <jim@meyering.net>
39624
39625         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
39626         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
39627         Require gl_STAT_MACROS, too.
39628
39629 2005-09-01  Bruno Haible  <bruno@clisp.org>
39630
39631         * gnulib-tool (import): In the first-use case, provide defaults.
39632
39633 2005-09-01  Bruno Haible  <bruno@clisp.org>
39634
39635         * gnulib-tool (func_import): Remove the .tmp files.
39636
39637 2005-09-01  Bruno Haible  <bruno@clisp.org>
39638
39639         * gnulib-tool (func_import): Fix handling of symbolic links.
39640
39641 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39642
39643         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
39644         old glibc regex code mishandles strings longer than 2**31 bytes.
39645         This patch fixes this when the regex code is used in gnulib
39646         (i.e., outside glibc).
39647
39648         This patch should not affect the use of the regex code inside
39649         glibc.  No doubt this problem also needs to be handled for glibc
39650         as well, but the result will be an incompatible change to the
39651         glibc ABI, and the old ABI will have to be supported too.  That
39652         can be the the subject for another patch.
39653
39654         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
39655         governing whether the rest of this patch is active.  By default,
39656         the macro is disabled and the patch has no effect.
39657         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
39658         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
39659         (struct re_pattern_buffer, re_search, re_search_2, re_match):
39660         (re_match_2, re_set_registers): Use the new types.
39661         * lib/regex_internal.h (Idx, re_hashval_t): New types.
39662         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
39663         New macros.
39664         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
39665         (re_string_context_at, bin_tree_t, re_dfastate_t):
39666         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
39667         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
39668         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
39669         (re_string_char_size_at, re_string_wchar_at):
39670         (re_string_elem_size_at):
39671         Use the new types and macros to port to 64-bit hosts.
39672         Use unsigned types for internal values, so that the code
39673         mostly works even for arrays larger than SSIZE_MAX.
39674         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
39675         (search_duplicated_node, calc_eclosure_iter, fetch_number):
39676         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39677         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
39678         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
39679         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
39680         (calc_inveclosure, parse_dup_op, build_range_exp):
39681         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
39682         (fetch_number, create_token_tree, mark_opt_subexp):
39683         Likewise.
39684         * lib/regex_internal.c (re_string_construct_common,
39685         create_ci_newstate):
39686         (create_cd_newstate, re_string_allocate, re_string_construct):
39687         (re_string_realloc_buffers, build_wcs_upper_buffer):
39688         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
39689         (re_string_reconstruct, re_string_peek_byte_case):
39690         (re_string_fetch_byte_case, re_string_context_at):
39691         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
39692         (re_node_set_init_copy, re_node_set_add_intersect):
39693         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39694         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39695         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
39696         (re_acquire_state, re_acquire_state_context, register_state):
39697         Likewise.
39698         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
39699         search_cur_bkref_entry):
39700         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
39701         (re_search_internal, re_search_2_stub, re_search_stub)
39702         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
39703         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
39704         (update_cur_sifted_state, check_dst_limits):
39705         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39706         (check_subexp_limits, sift_states_bkref, merge_state_array):
39707         (check_subexp_matching_top, get_subexp, get_subexp_sub):
39708         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
39709         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
39710         (expand_bkref_cache, check_node_accept_bytes):
39711         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
39712         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
39713         (acquire_init_state_context, check_halt_node_context):
39714         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
39715         (sift_states_backward, clean_state_log_if_needed):
39716         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
39717         (find_recover_state, transit_state_sb, transit_state_mb):
39718         (transit_state_bkref, build_trtable, match_ctx_clean):
39719         Likewise.
39720         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
39721         to work around an assumption that REG_MISSING is negative.
39722
39723         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
39724         (seek_collating_symbol_entry) [defined _LIBC]:
39725         (lookup_collation_sequence_value) [defined _LIBC]:
39726         (build_range_exp, build_collating_symbol) [defined _LIBC]:
39727         Use prototypes rather than old-style function definitions.
39728         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
39729         (transit_state_sb) [0]:
39730         (find_collation_sequence_value) [defined _LIBC]: Likewise.
39731
39732         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
39733         rm_eo.
39734
39735         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
39736         (optimize_subexps, lower_subexp):
39737         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
39738         since the signed shift might overflow.  Use 1u<<31 instead.
39739         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39740         Likewise.
39741         * lib/regexec.c (check_dst_limits_calc_pos_1,
39742         check_subexp_matching_top): Likewise.
39743
39744         * lib/regcomp.c (optimize_subexps, lower_subexp):
39745         Use CHAR_BIT rather than 8, for clarity.
39746         * lib/regexec.c (check_dst_limits_calc_pos_1):
39747         (check_subexp_matching_top): Likewise.
39748         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
39749         have to worry about portability issues when shifting it left.
39750         Remove no-longer-needed test for table_size > 0.
39751         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
39752         in a word, as the resulting behavior is undefined.
39753         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
39754         in one case, a <= should have been an <, and in another case the
39755         whole test was missing.
39756         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
39757         the standard name CHAR_BIT.
39758         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
39759         this is not true on one's complement and signed-magnitude hosts.
39760
39761         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
39762         next_last_offset.
39763         (struct re_dfa_t): Remove unused member states_alloc.
39764         * lib/regcomp.c (init_dfa): Don't initialize unused members.
39765
39766 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39767
39768         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
39769         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
39770         and large-file glibc and in 32-bit large-file Solaris.
39771
39772 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39773
39774         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
39775         lengths fit in regoff_t; this isn't true if regoff_t is the same
39776         width as size_t.
39777         * lib/regex.c (re_search_internal): 5th arg is LAST_START
39778         (= START + RANGE) instead of RANGE.  This avoids overflow
39779         problems when regoff_t is the same width as size_t.
39780         All callers changed.
39781         (re_search_2_stub): Check for overflow when adding the
39782         sizes of the two strings.
39783         (re_search_stub): Check for overflow when adding START
39784         to RANGE; if it occurs, substitute the extreme value.
39785
39786 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39787
39788         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
39789
39790 2005-08-31  Jim Meyering  <jim@meyering.net>
39791
39792         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
39793         a pointer-to-const.
39794         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
39795         (register_state): Likewise.
39796         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
39797         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39798         (group_nodes_into_DFAstates): Likewise.
39799
39800 2005-08-31  Jim Meyering  <jim@meyering.net>
39801
39802         * check-module: Add a FIXME comment.
39803
39804 2005-08-31  Eric Blake  <ebb9@byu.net>
39805
39806         * modules/unistd-safer (Files): Add unistd--.h.
39807         * modules/stdio-safer (Files): Add stdio--.h.
39808
39809 2005-08-31  Derek Price  <derek@ximbiot.com>
39810
39811         * lib/getdelim.c (getdelim): Return EOF on EOF.
39812         Reported by Larry Jones <lawrence.jones@ugs.com>.
39813
39814 2005-08-31  Bruno Haible  <bruno@clisp.org>
39815
39816         Avoid unnecessary diffs in the generated lib/Makefile.am.
39817         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
39818         the generated files.
39819         (func_import): Don't set cmd.
39820
39821 2005-08-31  Bruno Haible  <bruno@clisp.org>
39822
39823         * lib/strstr.c: Include <stddef.h>, for NULL.
39824         * lib/strcasestr.c: Likewise.
39825         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39826
39827 2005-08-31  Bruno Haible  <bruno@clisp.org>
39828
39829         * gnulib-tool: New option --macro-prefix.
39830         (func_import): Use macro_prefix.
39831         (import): Handle option --macro-prefix.
39832
39833 2005-08-31  Bruno Haible  <bruno@clisp.org>
39834
39835         * gnulib-tool (import): Rename most ac_* variables to cached_*.
39836         Also use new variables cached_lgpl, cached_libtool.
39837
39838 2005-08-31  Bruno Haible  <bruno@clisp.org>
39839
39840         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
39841         always instantiating them.
39842
39843 2005-08-31  Bruno Haible  <bruno@clisp.org>
39844
39845         * gnulib-tool (func_import): Read the previous cached settings
39846         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
39847         earlier added by gnulib but are now dropped. Warn when a gnulib file
39848         overwrites a non-gnulib file.
39849
39850 2005-08-31  Bruno Haible  <bruno@clisp.org>
39851
39852         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
39853         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
39854         projects that don't keep autogenerated files in CVS. Put into
39855         actioncmd only the specified modules, not the transitive closure.
39856
39857 2005-08-31  Bruno Haible  <bruno@clisp.org>
39858
39859         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
39860         Create directories that shall be filled.
39861         (import): Don't look for gl_* macros in configure.ac. Recurse across
39862         all directories containing a gnulib-cache.m4 files, if meaningful.
39863
39864 2005-08-31  Bruno Haible  <bruno@clisp.org>
39865
39866         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
39867         (import): Set seen_libtool when we see gl_LIBTOOL.
39868
39869 2005-08-31  Bruno Haible  <bruno@clisp.org>
39870
39871         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
39872         declaration macro definitions from generated gnulib.m4.
39873
39874 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
39875
39876         * lib/iconvme.h: Add prototype for iconv_alloc.
39877
39878 2005-08-29  Simon Josefsson  <jas@extundo.com>
39879
39880         * lib/iconvme.c: Fix errno.
39881
39882 2005-08-29  Bruno Haible  <bruno@clisp.org>
39883
39884         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
39885         that it works when the directory contains spaces.
39886
39887 2005-08-29  Bruno Haible  <bruno@clisp.org>
39888
39889         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
39890
39891 2005-08-29  Bruno Haible  <bruno@clisp.org>
39892
39893         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
39894         Emit more advice.
39895
39896 2005-08-29  Bruno Haible  <bruno@clisp.org>
39897         and Stepan Kasal  <kasal@ucw.cz>
39898
39899         * check-module: If more parameters are given, check each of them
39900         separately; add more exceptions, as noted by Jim Meyering.
39901         (check_module): New procedure.
39902         (%exempt_header): Now contains all exceptions.
39903
39904 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
39905
39906         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
39907
39908 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39909
39910         * lib/iconvme.c: Split iconv_string into iconv_alloc.
39911
39912 2005-08-28  Bruno Haible  <bruno@clisp.org>
39913
39914         * m4/gnulib-tool.m4: New file.
39915
39916 2005-08-27  Jim Meyering  <jim@meyering.net>
39917
39918         * modules/unistd-safer (Files): Add pipe-safer.c.
39919         * modules/fcntl-safer (Files): Add creat-safer.c.
39920
39921 2005-08-27  Jim Meyering  <jim@meyering.net>
39922
39923         * m4/stdlib-safer.m4: New file.  From coreutils.
39924         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
39925         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
39926         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
39927         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
39928         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
39929
39930 2005-08-27  Jim Meyering  <jim@meyering.net>
39931
39932         * lib/fopen-safer.c: Merge minor changes from coreutils.
39933         * lib/dup-safer.c: Likewise.
39934         * lib/fd-safer.c: Likewise.
39935
39936         Merge from coreutils.
39937         * lib/stdio--.h: New file.
39938         * lib/stdlib--.h: New file.
39939         * lib/mkstemp-safer.c: New file.
39940
39941         GNU tar needs these.
39942         * lib/pipe-safer.c: New file.
39943         * lib/creat-safer.c: New file.
39944         * lib/fcntl--.h (creat): Define to creat_safer.
39945         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
39946         * lib/unistd--.h (pipe): Define to pipe_safer.
39947         * lib/unistd-safer.h: Declare pipe_safer.
39948
39949 2005-08-26  Simon Josefsson  <jas@extundo.com>
39950
39951         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
39952         Haible <bruno@clisp.org>.
39953
39954 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
39955
39956         * lib/regex_internal.h: Remove all references to
39957         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
39958         or better.
39959         (bitset_not, bitset_merge, bitset_not_merge):
39960         (bitset_mask, re_string_allocate, re_string_construct):
39961         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
39962         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
39963         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
39964         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
39965         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39966         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39967         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
39968         (re_acquire_state_context):
39969         Remove unnecessary forward decls.
39970         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
39971         Put __attribute at function definition,
39972         now that the function decl has been removed.
39973         * lib/regex_internal.c (re_string_peek_byte_case):
39974         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
39975         Likewise.
39976
39977 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
39978
39979         * m4/regex.m4: Add AC_PREREQ(2.50).
39980         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
39981
39982 2005-08-25  Simon Josefsson  <jas@extundo.com>
39983
39984         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
39985         __fsetlocking.
39986
39987 2005-08-25  Simon Josefsson  <jas@extundo.com>
39988
39989         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
39990         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
39991         GLIBC specific code.
39992
39993 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39994
39995         Make regex safe for g++.  This fixes one real bug (an "err"
39996         that should have been "*err").  g++ problem reported by
39997         Sam Steingold.
39998         * lib/regex_internal.h (re_calloc): New macro, consistent with
39999         re_malloc etc.  All callers of calloc changed to use re_calloc.
40000         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
40001         not int.  All callers changed.
40002         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
40003         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
40004         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
40005         (find_recover_state): Change "err" to "*err"; this fixes what
40006         appears to be a real bug.
40007         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
40008         versus int.
40009
40010 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40011
40012         * modules/regex (Depends-on): Add malloc, since the code
40013         assumes that !malloc(0) means failure.
40014
40015 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40016
40017         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
40018
40019         alloca modernization/simplification for regex.
40020         * lib/regex.c: Remove portability cruft for alloca.  This no longer
40021         needs to be at the start of the file, and can be moved into
40022         regex_internal.h and simplified.
40023         * lib/regex_internal.h: Include <alloca.h>.
40024         (__libc_use_alloca) [!defined _LIBC]: New macro.
40025         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
40026         now works outside glibc.
40027
40028 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40029
40030         * config/srclist.txt: Add glibc bugs 1241, 1245.
40031
40032 2005-08-25  Jim Meyering  <jim@meyering.net>
40033
40034         * lib/open-safer.c: Include <config.h>.
40035         Otherwise, we'd lose LARGEFILE support in any file using
40036         e.g. "fcntl--.h"
40037
40038 2005-08-25  Bruno Haible  <bruno@clisp.org>
40039
40040         * m4/minmax.m4: Require autoconf 2.52.
40041         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
40042         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
40043         alternatives of translit over the alphabet.
40044         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
40045
40046 2005-08-24  Simon Josefsson  <jas@extundo.com>
40047
40048         * tests/test-getpass.c: New file.
40049
40050 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40051
40052         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
40053         for GNU regex features.
40054
40055 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40056
40057         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
40058         * lib/regex.h (regerror): Likewise.
40059
40060         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
40061         requires this.  (The code never needed it.)
40062
40063         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
40064         All uses of recently-renamed identifiers changed to use the new,
40065         POSIX-compliant names.  The code will build and run just fine
40066         without these changes, but it's better to eat our own dog food
40067         and use the standard-conforming names.
40068
40069         * lib/regex.h: Fix a multitude of POSIX name space violations.
40070         These changes have an effect only for programs that define
40071         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
40072         do not change anything for programs compiled in the normal way.
40073         Also, there is no effect on the ABI.
40074
40075         (_REGEX_SOURCE): New macro.
40076         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
40077         defined and _GNU_SOURCE is not; this fixes a name space violation.
40078
40079         Rename the following macros to obey POSIX requirements.
40080         The old names are still visible as macros if _REGEX_SOURCE is defined.
40081         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
40082         RE_BACKSLASH_ESCAPE_IN_LISTS.
40083         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
40084         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
40085         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
40086         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
40087         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
40088         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
40089         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
40090         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
40091         (REG_INTERVALS): renamed from RE_INTERVALS.
40092         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
40093         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
40094         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
40095         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
40096         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
40097         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
40098         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
40099         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
40100         RE_UNMATCHED_RIGHT_PAREN_ORD.
40101         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
40102         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
40103         (REG_DEBUG): renamed from RE_DEBUG.
40104         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
40105         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
40106         unusual, since we can't clash with the POSIX REG_ICASE.
40107         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
40108         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
40109         (REG_NO_SUB): renamed from RE_NO_SUB.
40110         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
40111         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
40112         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
40113         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
40114         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
40115         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
40116         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
40117         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
40118         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
40119         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
40120         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
40121         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
40122         RE_SYNTAX_POSIX_MINIMAL_BASIC.
40123         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
40124         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
40125         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
40126         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
40127         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
40128         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
40129         (REG_FIXED): Renamed from REGS_FIXED.
40130         (REG_NREGS): Renamed from RE_NREGS.
40131
40132         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
40133         of other REG_* macros, since POSIX says the user is allowed to
40134         #undef these macros selectively.
40135
40136         (reg_errcode_t): Update comment stating what other tables need
40137         to be consistent.
40138
40139         Rename the following enum values to obey POSIX requirements.
40140         The old names are still visible as macros.
40141         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
40142         is not defined, since GNU is supposed to be a superset of POSIX as
40143         much as possible, and since we want reg_errcode_t to be a signed
40144         type for implementation consistency.
40145         (_REG_NOERROR): Renamed from REG_NOERROR.
40146         (_REG_NOMATCH): Renamed from REG_NOMATCH.
40147         (_REG_BADPAT): Renamed from REG_BADPAT.
40148         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
40149         (_REG_ECTYPE): Renamed from REG_ECTYPE.
40150         (_REG_EESCAPE): Renamed from REG_EESCAPE.
40151         (_REG_ESUBREG): Renamed from REG_ESUBREG.
40152         (_REG_EBRACK): Renamed from REG_EBRACK.
40153         (_REG_EPAREN): Renamed from REG_EPAREN.
40154         (_REG_EBRACE): Renamed from REG_EBRACE.
40155         (_REG_BADBR): Renamed from REG_BADBR.
40156         (_REG_ERANGE): Renamed from REG_ERANGE.
40157         (_REG_ESPACE): Renamed from REG_ESPACE.
40158         (_REG_BADRPT): Renamed from REG_BADRPT.
40159         (_REG_EEND): Renamed from REG_EEND.
40160         (_REG_ESIZE): Renamed from REG_ESIZE.
40161         (_REG_ERPAREN): Renamed from REG_ERPAREN.
40162         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
40163         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
40164         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
40165         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
40166
40167         (_REG_RE_NAME, _REG_RM_NAME): New macros.
40168         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
40169         changed.  But support the old name if the new one is not defined
40170         and if _REGEX_SOURCE.
40171
40172         Change the following member names in struct re_pattern_buffer.
40173         The old names are still supported if !_REGEX_SOURCE.
40174         The new names are always supported, regardless of _REGEX_SOURCE.
40175         (re_buffer): Renamed from buffer.
40176         (re_allocated): Renamed from allocated.
40177         (re_used): Renamed from used.
40178         (re_syntax): Renamed from syntax.
40179         (re_fastmap): Renamed from fastmap.
40180         (re_translate): Renamed from translate.
40181         (re_can_be_null): Renamed from can_be_null.
40182         (re_regs_allocated): Renamed from regs_allocated.
40183         (re_fastmap_accurate): Renamed from fastmap_accurate.
40184         (re_no_sub): Renamed from no_sub.
40185         (re_not_bol): Renamed from not_bol.
40186         (re_not_eol): Renamed from not_eol.
40187         (re_newline_anchor): Renamed from newline_anchor.
40188
40189         Change the following member names in struct re_registers.
40190         The old names are still supported if !_REGEX_SOURCE.
40191         The new names are always supported, regardless of _REGEX_SOURCE.
40192         (rm_num_regs): Renamed from num_regs.
40193         (rm_start): Renamed from start.
40194         (rm_end): Renamed from end.
40195
40196         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
40197         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
40198         Prepend __ to parameter names.
40199
40200         Undo yesterday's changes.
40201
40202 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40203
40204         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
40205         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
40206         lib/regex.c.
40207
40208 2005-08-24  Jim Meyering  <jim@meyering.net>
40209
40210         Sync from coreutils.
40211         * m4/fcntl-safer.m4: New file.
40212
40213         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
40214         and object files for this module.
40215
40216 2005-08-24  Jim Meyering  <jim@meyering.net>
40217
40218         Sync from coreutils.
40219         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
40220
40221 2005-08-24  Jim Meyering  <jim@meyering.net>
40222
40223         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
40224         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
40225
40226 2005-08-24  Jim Meyering  <jim@meyering.net>
40227
40228         * modules/fcntl-safer: New module.
40229         * modules/fts (Depends-on): Add fcntl-safer.
40230         * MODULES.html.sh (File descriptor based Input/Output):
40231         Add fcntl-safer.
40232
40233 2005-08-24  Bruno Haible  <bruno@clisp.org>
40234
40235         Support for unit test modules.
40236         * modules/README: Mention tests modules.
40237         * modules/TEMPLATE-TESTS: New file.
40238         * gnulib-tool: New options --extract-tests-module, --with-tests and
40239         --tests-base (unused for the moment).
40240         (testsbase, inctests): New variables.
40241         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
40242         (func_verify_module): Exclude TEMPLATE-TESTS.
40243         (func_verify_nontests_module, func_verify_tests_module): New functions.
40244         (func_get_dependencies): Add implicit dependency for tests modules.
40245         (func_get_tests_module): New function.
40246         (func_modules_transitive_closure): When --with-tests was specified,
40247         include the unit tests as well, unless explicitly avoided.
40248         (func_emit_lib_Makefile_am): Ignore the tests modules here.
40249         (func_emit_tests_Makefile_am): New function.
40250         (func_create_testdir): When --with-tests was specified, emit a
40251         tests/ directory.
40252         * MODULES.html.sh (Future developments): Update.
40253
40254 2005-08-24  Bruno Haible  <bruno@clisp.org>
40255
40256         * modules/tls-tests: New file.
40257         * tests/test-tls.c: New file, from GNU gettext.
40258
40259 2005-08-24  Bruno Haible  <bruno@clisp.org>
40260
40261         * modules/lock-tests: New file.
40262         * tests/test-lock.c: New file, from GNU gettext.
40263
40264 2005-08-24  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/lock.h: Add multiple inclusion guard.
40267         * lib/tls.h: Add multiple inclusion guard.
40268
40269 2005-08-24  Bruno Haible  <bruno@clisp.org>
40270
40271         * gnulib-tool: Add support for the --aux-dir option to
40272         --create-testdir, --create-megatestdir, --test, --megatest.
40273         (func_create_testdir, func_create_megatestdir): Optionally emit a
40274         AC_CONFIG_AUX_DIR directive.
40275         (create-testdir, create-megatestdir, test, megatest): Provide a
40276         default value for $auxdir.
40277
40278 2005-08-24  Bruno Haible  <bruno@clisp.org>
40279
40280         * gnulib-tool (import): Use compound statement instead of subshell
40281         where possible.
40282
40283 2005-08-24  Bruno Haible  <bruno@clisp.org>
40284
40285         * gnulib-tool (import): Change --aux-dir default to "build-aux".
40286
40287 2005-08-24  Bruno Haible  <bruno@clisp.org>
40288
40289         * gnulib-tool (func_version): Update.
40290
40291 2005-08-24  Bruno Haible  <bruno@clisp.org>
40292
40293         * gnulib-tool (func_import, func_create_testdir,
40294         func_create_megatestdir): Quote all autoconf macro arguments.
40295
40296 2005-08-24  Bruno Haible  <bruno@clisp.org>
40297
40298         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
40299         option --force, because --force causes the aclocal.m4 of each
40300         subdirectory to be newer than the corresponding config.h.in.
40301
40302 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40303
40304         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
40305         All contents moved to gl_REGEX.
40306         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
40307         assume that it does.
40308
40309 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40310
40311         * lib/regex.h (REG_NOSYS)
40312         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
40313         Define, since POSIX requires it as of 2001.
40314         (_REG_ENOSYS)
40315         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
40316         New private symbol, used to keep the enum signed in all cases.
40317         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
40318         Youngman in
40319         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
40320
40321         * lib/regex_internal.c (re_string_skip_chars, register_state):
40322         (calc_state_hash):
40323         Remove forward decls; no longer needed now that we use prototypes.
40324         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
40325         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
40326         (clean_state_log_if_needed): Likewise.
40327
40328 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40329
40330         * config/srclist.txt: Add glibc bugs 1231-1233.
40331
40332 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40333
40334         Fix problems reported by Sam Steingold in
40335         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
40336         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
40337         assumed that reg_errcode_t is a signed type, which is not
40338         necessarily true if _XOPEN_SOURCE is not defined.
40339         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
40340         since some compilers warn about it otherwise.
40341
40342 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40343
40344         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
40345         (init_word_char, create_initial_state, duplicate_node_closure):
40346         (fetch_token, peek_token_bracket, build_range_exp):
40347         (build_collating_symbol): Remove forward decls; no longer needed
40348         now that we use prototypes.
40349
40350         * lib/regcomp.c:
40351         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
40352         (re_compile_fastmap_iter, regcomp, regerror, regfree):
40353         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
40354         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
40355         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
40356         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
40357         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
40358         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
40359         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
40360         (build_range_exp, build_collating_symbol, parse_bracket_exp):
40361         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
40362         (build_charclass, build_charclass_op, fetch_number, create_tree):
40363         (create_token_tree, mark_opt_subexp, duplicate_tree):
40364         Use prototypes rather than old-style definitions.
40365
40366         * lib/regex_internal.c:
40367         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
40368         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
40369         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
40370         (re_string_reconstruct, re_string_peek_byte_case):
40371         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
40372         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
40373         (re_node_set_init_copy, re_node_set_add_intersect):
40374         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40375         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40376         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
40377         (re_acquire_state, re_acquire_state_context, register_state):
40378         (create_ci_newstate, create_cd_newstate, free_state):
40379         Likewise.
40380         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
40381         re_search_2):
40382         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
40383         (re_search_internal, prune_impossible_nodes):
40384         (acquire_init_state_context, check_matching, static):
40385         (check_halt_node_context, check_halt_state_context, proceed_next_node):
40386         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
40387         (update_regs, sift_states_backward, build_sifted_states):
40388         (clean_state_log_if_needed, merge_state_array):
40389         (update_cur_sifted_state, add_epsilon_src_nodes):
40390         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
40391         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
40392         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
40393         (find_recover_state, check_subexp_matching_top, transit_state_mb):
40394         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
40395         (check_arrival, check_arrival_add_next_nodes):
40396         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
40397         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
40398         (check_node_accept_bytes, check_node_accept, extend_buffers):
40399         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
40400         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
40401         (sift_ctx_init):
40402         Likewise.
40403
40404         * lib/regex_internal.h:
40405         (re_string_allocate, re_string_construct, re_string_reconstruct):
40406         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
40407         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
40408         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
40409         (re_string_context_at, re_string_peek_byte_case):
40410         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
40411         is defined, since we now use prototypes always.
40412
40413         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
40414         C89 or better.  All uses removed.
40415
40416 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40417
40418         * config/srclist.txt: Add glibc bugs 1220-1227.
40419
40420 2005-08-20  Jim Meyering  <jim@meyering.net>
40421
40422         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
40423         of unused local, dfa.
40424
40425 2005-08-20  Bruno Haible  <bruno@clisp.org>
40426
40427         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
40428
40429 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40430
40431         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
40432         (re_node_set_insert_last, re_dfa_add_node):
40433         Rename local variables to avoid GCC shadowing warnings.
40434
40435 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40436
40437         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
40438         [defined lint]: Suppress bogus uninitialized-variable warnings.
40439
40440         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
40441         and let the caller return REG_ESPACE if out of space.  This
40442         removes an uninitialied-variable warning with GCC 4.0.1, and also
40443         avoids taking the address of a local variable.  All callers
40444         changed.
40445
40446 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40447
40448         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
40449         $LIBCSRC/posix/regexec.c.
40450         Add glibc bug 1217 for regcomp.c.
40451
40452 2005-08-19  Jim Meyering  <jim@meyering.net>
40453
40454         * lib/regexec.c (proceed_next_node): Redo local variables to
40455         avoid GCC shadowing warnings.
40456
40457 2005-08-18  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/strstr.c (strstr): Fix return value in multibyte case.
40460         * lib/strcasestr.c (strcasestr): Likewise.
40461
40462 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40463
40464         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
40465
40466 2005-08-17  Jim Meyering  <jim@meyering.net>
40467
40468         Make the %s format (seconds since the epoch) work for a negative
40469         number and when used with a zero-padded field width, e.g. %015s.
40470
40471         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
40472         label so that it precedes the code to set `digits'.  Otherwise,
40473         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
40474         print `00-22'.  Now, it prints `-0022', as it should.
40475
40476 2005-08-17  Bruno Haible  <bruno@clisp.org>
40477
40478         * modules/strstr (Files): Add m4/mbrtowc.m4.
40479         (Depends-on): Add mbuiter.
40480
40481 2005-08-17  Bruno Haible  <bruno@clisp.org>
40482
40483         * modules/strcasestr: New file.
40484         * MODULES.html.sh (String handling, based on ANSI C 89): Add
40485         strcasestr.
40486
40487 2005-08-17  Bruno Haible  <bruno@clisp.org>
40488
40489         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
40490
40491 2005-08-17  Bruno Haible  <bruno@clisp.org>
40492
40493         * modules/mbuiter: New file.
40494         * MODULES.html.sh (Extended multibyte and wide character utilities):
40495         Add mbuiter.
40496
40497 2005-08-17  Bruno Haible  <bruno@clisp.org>
40498
40499         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
40500         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
40501
40502 2005-08-17  Bruno Haible  <bruno@clisp.org>
40503
40504         * m4/strcasestr.m4: New file.
40505
40506 2005-08-17  Bruno Haible  <bruno@clisp.org>
40507
40508         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
40509         * lib/strstr.c: Completely rewritten, with multibyte locale support.
40510
40511 2005-08-17  Bruno Haible  <bruno@clisp.org>
40512
40513         * lib/strcasestr.h: New file.
40514         * lib/strcasestr.c: New file.
40515
40516 2005-08-17  Bruno Haible  <bruno@clisp.org>
40517
40518         * lib/strcasecmp.c: Use mbuiter.h.
40519
40520 2005-08-17  Bruno Haible  <bruno@clisp.org>
40521
40522         * lib/mbuiter.h: New file.
40523
40524 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
40525
40526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
40527         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
40528         and gl_GETOPT are both invoked via different paths (as happens
40529         with GNU tar CVS because it uses both argp and getopt), the former
40530         wins.
40531
40532 2005-08-16  Bruno Haible  <bruno@clisp.org>
40533
40534         * modules/tls: New file.
40535         * MODULES.html.sh (Multithreading): Add tls.
40536
40537 2005-08-16  Bruno Haible  <bruno@clisp.org>
40538
40539         * modules/strnlen1: New file.
40540         * MODULES.html.sh (String handling): Add strnlen1.
40541
40542 2005-08-16  Bruno Haible  <bruno@clisp.org>
40543
40544         * modules/strcase (Files): Add m4/mbrtowc.m4.
40545         (Depends-on): Add strnlen1, mbchar.
40546
40547 2005-08-16  Bruno Haible  <bruno@clisp.org>
40548
40549         * modules/mbiter: New file.
40550         * MODULES.html.sh (Extended multibyte and wide character utilities):
40551         Add mbiter.
40552
40553 2005-08-16  Bruno Haible  <bruno@clisp.org>
40554
40555         * modules/mbfile: New file.
40556         * MODULES.html.sh (Extended multibyte and wide character utilities):
40557         Add mbfile.
40558
40559 2005-08-16  Bruno Haible  <bruno@clisp.org>
40560
40561         * modules/mbchar: New file.
40562         * MODULES.html.sh (Extended multibyte and wide character utilities):
40563         New section.
40564
40565 2005-08-16  Bruno Haible  <bruno@clisp.org>
40566
40567         * m4/tls.m4: New file, from GNU gettext.
40568
40569 2005-08-16  Bruno Haible  <bruno@clisp.org>
40570
40571         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
40572         always.
40573         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
40574
40575 2005-08-16  Bruno Haible  <bruno@clisp.org>
40576
40577         * m4/mbiter.m4: New file.
40578
40579 2005-08-16  Bruno Haible  <bruno@clisp.org>
40580
40581         * m4/mbfile.m4: New file.
40582
40583 2005-08-16  Bruno Haible  <bruno@clisp.org>
40584
40585         * m4/mbchar.m4: New file.
40586
40587 2005-08-16  Bruno Haible  <bruno@clisp.org>
40588
40589         * lib/tls.h: New file, from GNU gettext.
40590         * lib/tls.c: New file, from GNU gettext.
40591
40592 2005-08-16  Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/strnlen1.h: New file.
40595         * lib/strnlen1.c: New file.
40596
40597 2005-08-16  Bruno Haible  <bruno@clisp.org>
40598
40599         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
40600         (mbi_init): Update.
40601         (mbi_avail, mbi_advance): Let the iteration end before the terminating
40602         NUL byte, not after it.
40603
40604 2005-08-16  Bruno Haible  <bruno@clisp.org>
40605
40606         * lib/strcase.h (strcasecmp): Add note in comments.
40607         * lib/strncasecmp.c: Use code from strcasecmp.c.
40608         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
40609         (strcasecmp): Work correctly in multibyte locales.
40610
40611 2005-08-16  Bruno Haible  <bruno@clisp.org>
40612
40613         * lib/mbiter.h: New file.
40614
40615 2005-08-16  Bruno Haible  <bruno@clisp.org>
40616
40617         * lib/mbfile.h: New file.
40618
40619 2005-08-16  Bruno Haible  <bruno@clisp.org>
40620
40621         * lib/mbchar.h: New file.
40622         * lib/mbchar.c: New file.
40623
40624 2005-08-16  Bruno Haible  <bruno@clisp.org>
40625
40626         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
40627         the valid ones. Makes the comparison operations transitive:
40628         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
40629         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
40630
40631 2005-08-15  Simon Josefsson  <jas@extundo.com>
40632
40633         * modules/ssize_t (License): Change to 'unlimited'.
40634
40635         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
40636
40637 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40638
40639         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
40640         Add comments for each pending glibc patch.
40641
40642 2005-08-15  Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/regex.h (__restrict_arr): Don't define to __restrict if
40645         __cplusplus is defined.
40646
40647 2005-08-14  Jim Meyering  <jim@meyering.net>
40648
40649         Sync from coreutils.
40650
40651         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
40652         Use the hash-table-based cycle-detection code not just when
40653         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
40654         Reported by James Youngman in
40655         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
40656         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
40657         FTS_TIGHT_CYCLE_CHECK.
40658         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
40659         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
40660         once again.
40661         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
40662         * lib/fts.c (fd_safer): Remove decl.
40663         Include fcntl--.h rather than unistd-safer.h
40664         (fts_safe_changedir): Don't call fd_safer; no longer needed
40665         now that we include fcntl--.h.
40666
40667 2005-08-12  Simon Josefsson  <jas@extundo.com>
40668
40669         * modules/getndelim2: Use ssize_t module.
40670         * modules/getnline: Likewise.
40671         * modules/safe-read: Likewise.
40672         * modules/xreadlink: Likewise.
40673
40674         * modules/ssize_t: New file.
40675
40676 2005-08-12  Simon Josefsson  <jas@extundo.com>
40677
40678         * m4/readline.m4: Look for termcap, curses or ncurses if required.
40679
40680 2005-08-12  Simon Josefsson  <jas@extundo.com>
40681
40682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40683         ssize_t.
40684
40685 2005-08-12  Simon Josefsson  <jas@extundo.com>
40686
40687         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
40688         readline, getdelim and check_version.
40689         (Support for systems lacking ISO C 99: Sizes of integer types):
40690         Add size_max.
40691
40692 2005-08-12  Bruno Haible  <bruno@clisp.org>
40693
40694         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
40695
40696 2005-08-11  Simon Josefsson  <jas@extundo.com>
40697
40698         * modules/readline: New file.
40699
40700         * modules/strnlen (Files): Add strnlen.h.
40701
40702 2005-08-11  Simon Josefsson  <jas@extundo.com>
40703
40704         * m4/readline.m4: New file.
40705
40706 2005-08-11  Simon Josefsson  <jas@extundo.com>
40707
40708         * lib/readline.h, readline.c: New file.
40709
40710 2005-08-11  Simon Josefsson  <jas@extundo.com>
40711
40712         * doc/gnulib.texi (Initial import, Finishing touches): Mention
40713         gl_AVOID.
40714
40715 2005-08-11  Bruno Haible  <bruno@clisp.org>
40716
40717         * lib/strnlen.h (strnlen): Change parameter name to match comment.
40718
40719 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
40720
40721         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
40722
40723 2005-08-10  Simon Josefsson  <jas@extundo.com>
40724
40725         * tests/test-iconvme.c: New file.
40726
40727 2005-08-10  Simon Josefsson  <jas@extundo.com>
40728
40729         * m4/strnlen.m4: New file.
40730
40731         * m4/strndup.m4: Don't check for strnlen declaration, done in
40732         strnlen.m4.
40733
40734 2005-08-10  Simon Josefsson  <jas@extundo.com>
40735
40736         * lib/strndup.c: Use strnlen.h.
40737
40738         * lib/strnlen.h: New file.
40739
40740 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
40741
40742         * README: Typos.
40743
40744 2005-08-02  Simon Josefsson  <jas@extundo.com>
40745
40746         * modules/readline: New file.
40747
40748 2005-08-02  Simon Josefsson  <jas@extundo.com>
40749
40750         * modules/getdelim: New file.
40751
40752         * modules/getline: Rewrite, don't use getndelim2.
40753
40754 2005-08-02  Simon Josefsson  <jas@extundo.com>
40755
40756         * m4/getline.m4: Separate out getdelim stuff into separate module.
40757
40758         * m4/getdelim.m4: New file.
40759
40760 2005-08-02  Simon Josefsson  <jas@extundo.com>
40761
40762         * lib/getline.h, getline.c: Rewrite.
40763
40764         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
40765
40766 2005-07-31  Bruno Haible  <bruno@clisp.org>
40767
40768         * lib/lock.h (gl_lock_initializer): New macro.
40769         (gl_lock_define_initialized): Use it.
40770         (gl_rwlock_initializer): New macro.
40771         (gl_rwlock_define_initialized): Use it.
40772         (gl_recursive_lock_initializer): New macro.
40773         (gl_recursive_lock_define_initialized): Use it.
40774
40775 2005-07-30  Karl Berry  <karl@gnu.org>
40776
40777         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
40778         Report from Ben Pfaff, regarding getopt.
40779
40780 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
40781
40782         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
40783         normal way.
40784         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
40785         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
40786         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
40787         (gl_GETOPT): Use the new macros.  Most of the implementation
40788         is moved to the new macros.  This is for programs like Emacs
40789         that don't want all the functionality of gl_GETOPT.
40790
40791 2005-07-26  Bruno Haible  <bruno@clisp.org>
40792
40793         * m4/lock.m4: Update from GNU gettext.
40794
40795 2005-07-26  Bruno Haible  <bruno@clisp.org>
40796
40797         * lib/lock.h: Update from GNU gettext.
40798         * lib/lock.c: Update from GNU gettext.
40799
40800 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
40801
40802         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
40803         obsolescent AC_TRY_RUN.  Include the default includes files, for
40804         'exit'.
40805
40806 2005-07-24  Bruno Haible  <bruno@clisp.org>
40807
40808         * modules/visibility: New file.
40809         * MODULES.html.sh (Misc): Add visibility.
40810
40811 2005-07-24  Bruno Haible  <bruno@clisp.org>
40812
40813         * m4/visibility.m4: New file.
40814
40815 2005-07-24  Bruno Haible  <bruno@clisp.org>
40816
40817         * doc/visibility.texi: New file.
40818
40819 2005-07-22  Bruno Haible  <bruno@clisp.org>
40820
40821         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
40822         $(ALLOCA_H), redundant through BUILT_SOURCES.
40823         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
40824         redundant through BUILT_SOURCES.
40825         * modules/byteswap (Makefile.am): Remove explicit dependency on
40826         $(BYTESWAP_H), redundant through BUILT_SOURCES.
40827         * modules/fnmatch (Makefile.am): Remove explicit dependency on
40828         $(FNMATCH_H), redundant through BUILT_SOURCES.
40829         * modules/getopt (Makefile.am): Remove explicit dependency on
40830         $(GETOPT_H), redundant through BUILT_SOURCES.
40831         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
40832         redundant through BUILT_SOURCES.
40833         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
40834         redundant through BUILT_SOURCES.
40835         * modules/stdbool (Makefile.am): Remove explicit dependency on
40836         $(STDBOOL_H), redundant through BUILT_SOURCES.
40837         * modules/stdint (Makefile.am): Remove explicit dependency on
40838         $(STDINT_H), redundant through BUILT_SOURCES.
40839         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
40840         Remove explicit dependency on $(SYSEXITS_H).
40841         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
40842
40843 2005-07-18  Simon Josefsson  <jas@extundo.com>
40844
40845         * lib/check-version.c (check_version): Accept identical versions too.
40846
40847 2005-07-18  Bruno Haible  <bruno@clisp.org>
40848
40849         * modules/lock: New file.
40850         * MODULES.html.sh (Multithreading): New section.
40851
40852 2005-07-18  Bruno Haible  <bruno@clisp.org>
40853
40854         * m4/lock.m4: New file, from GNU gettext.
40855
40856 2005-07-18  Bruno Haible  <bruno@clisp.org>
40857
40858         * lib/lock.h: New file, from GNU gettext.
40859         * lib/lock.c: New file, from GNU gettext.
40860
40861 2005-07-18  Bruno Haible  <bruno@clisp.org>
40862
40863         * lib/lock.h (gl_once_t): New type.
40864         (gl_once_define, gl_once): New macros.
40865         * lib/lock.c (fresh_once): New variable.
40866         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
40867         functions.
40868
40869 2005-07-16  Simon Josefsson  <jas@extundo.com>
40870
40871         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
40872         workaround, suggested by Bruno.
40873
40874 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40875
40876         * modules/xalloc (Depends-on): Add xalloc-die.
40877         * modules/xvasprintf (Depends-on): Add xalloc-die.
40878
40879 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40880
40881         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
40882         with a minor change.
40883
40884 2005-07-15  Bruno Haible  <bruno@clisp.org>
40885
40886         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
40887         When using lib/poll.c, define poll as rpl_poll.
40888
40889 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
40890
40891         * modules/argp (Depends-on): Remove unlocked-io.
40892
40893 2005-07-14  Derek Price  <derek@ximbiot.com>
40894
40895         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
40896         for glob symlink bug.
40897
40898 2005-07-14  Bruno Haible  <bruno@clisp.org>
40899
40900         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
40901         Instead, test for *_unlocked function declarations directly.
40902
40903 2005-07-11  Simon Josefsson  <jas@extundo.com>
40904
40905         * modules/size_max: New file.
40906
40907         * modules/xsize: Depend on size_max module for size_max.m4.
40908
40909 2005-07-11  Simon Josefsson  <jas@extundo.com>
40910
40911         * lib/size_max.h: New file.
40912
40913 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
40914
40915         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
40916         copyright symbol and the year.
40917         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
40918         (version_etc_va): Use parameterized copyright notice.
40919         Reword to conform to the current GNU coding standards.
40920
40921 2005-07-11  Karl Berry  <karl@gnu.org>
40922
40923         * doc/gnulib.texi (Quoting): new node.
40924         (Initial import): more info, from Patrice.
40925
40926 2005-07-11  Bruno Haible  <bruno@clisp.org>
40927
40928         * gnulib-tool (func_usage): Document option --avoid.
40929         (Command line options): Handle --avoid.
40930         (func_acceptable): New function.
40931         (func_modules_transitive_closure): Use it.
40932
40933 2005-07-11  Bruno Haible  <bruno@clisp.org>
40934
40935         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
40936         Reported by Jim Meyering.
40937
40938 2005-07-10  Bruno Haible  <bruno@clisp.org>
40939
40940         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
40941         Needed when size_t is smaller than 'unsigned int'.
40942         Reported by Paul Eggert.
40943
40944 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40945
40946         * modules/argp (Depends-on): Add unlocked-io
40947
40948 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40949
40950         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
40951         block of defines.
40952
40953 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
40954
40955         * config/srclist.txt: Comment out regcomp.c, since we have a porting
40956         fix now.
40957
40958 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
40959         and Paul Eggert  <eggert@cs.ucla.edu>
40960
40961         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
40962         in wint_t, not wchar_t.  Remove now-unnecessary cast.
40963
40964 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40965
40966         * modules/regex (Files): Add lib/regex_internal.c,
40967         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
40968         (Depends-on): Add extensions.
40969         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
40970
40971 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40972
40973         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
40974         pathconf.
40975         * m4/same.m4 (gl_SAME): Likewise.
40976         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
40977
40978         * m4/regex.m4: Adjust to new libc regex implementation.
40979         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
40980         all the .c and .h parts of (the new) regex.
40981         Quote the m4 stuff better.
40982         Check for RE_ICASE bug of old gnulib.
40983         Check for REG_STARTEND of recent libc.
40984         Rename local variables from jm_* to gl_*.
40985         Quote operand of "test -f".
40986         Say "recent enough" version of libc, not "version 2".
40987         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
40988         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
40989         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
40990         Remove check for btowc, isascii.
40991         Require AM_LANGINFO_CODESET.
40992
40993 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40994
40995         * lib/regex.c, regex.h: Sync from libc.
40996         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
40997         * lib/regexec.c:
40998         New files, synced from libc, except that regex_internal.h
40999         currently has a small porting fix.
41000
41001 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41002
41003         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
41004         regex_internal.c, regexec.c.
41005         Add regex_internal.h too, but as a comment, since the libc version
41006         is currently broken in gnulib mode.
41007
41008 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41009
41010         Support programs like Emacs that use gnulib but not gettext.
41011         * MODULES.html.sh (Internationalization functions): Add gettext-h.
41012         * modules/gettext-h: New file.
41013         * modules/gettext (Files): Remove lib/gettext.h.
41014         (Depends-on): Add gettext-h.
41015         (Makefile.am): Remove lib_SOURCES.
41016         * modules/argmatch, modules/c-stack, modules/closeout:
41017         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
41018         * modules/execute, modules/file-type, modules/getaddrinfo:
41019         * modules/getopt, modules/human, modules/javacomp:
41020         * modules/javaexec, modules/mkdir-p, modules/obstack:
41021         * modules/openat, modules/pagealign_alloc, modules/pipe:
41022         * modules/quotearg, modules/regex, modules/rpmatch:
41023         * modules/unicodeio, modules/userspec, modules/version-etc:
41024         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
41025         * modules/xsetenv:
41026         Depend on gettext-h, not gettext.
41027
41028 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
41029
41030         * gnulib-tool (func_import): Add support for 'public domain' license.
41031         * modules/alloca, modules/atexit, modules/memmove:
41032         Now public domain, not GPL.
41033         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
41034         * modules/realloc, modules/strerror, modules/strtod:
41035         Now LGPL, not GPL.
41036
41037 2005-07-05  Bruno Haible  <bruno@clisp.org>
41038
41039         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
41040         autoconf CVS. Needed for mingw.
41041
41042 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41043
41044         Remove the dependency of the strftime module on the tzset module.
41045         * modules/strftime (Depends-on): Remove dependency on tzset.
41046
41047 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41048
41049         Remove the dependency of the strftime module on the tzset module.
41050         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
41051         gl_FUNC_TZSET_CLOBBER.
41052
41053 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41054
41055         Remove the dependency of the strftime module on the tzset module.
41056         * lib/strftime.c (my_strftime)
41057         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
41058         Copy the input structure, to work around some of the bug with
41059         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
41060         Solaris releases, you should also use the tzset module, but we won't
41061         require it as a dependency any more since we don't want LGPLed code
41062         to depend on GPLed code.
41063
41064 2005-07-02  Jim Meyering  <jim@meyering.net>
41065
41066         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
41067         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
41068         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
41069         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
41070
41071 2005-07-02  Jim Meyering  <jim@meyering.net>
41072
41073         * lib/backupfile.c (backup_args): Change a `0' to NULL.
41074
41075 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
41076
41077         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
41078         declares only 'struct timespec;' (!).
41079
41080 2005-07-01  Jim Meyering  <jim@meyering.net>
41081
41082         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
41083         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
41084         * lib/save-cwd.c, tempname.c:
41085         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
41086         and don't include <sys/file.h>).
41087
41088 2005-06-29  Jim Meyering  <jim@meyering.net>
41089
41090         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
41091         type name.  Use the variable name instead.
41092         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
41093         Likewise.
41094
41095 2005-06-28  Simon Josefsson  <jas@extundo.com>
41096
41097         * modules/check-version (Files): Add check-version.m4.
41098
41099 2005-06-28  Simon Josefsson  <jas@extundo.com>
41100
41101         * m4/check-version.m4: New file, suggested by Jim Meyering
41102         <jim@meyering.net>.
41103
41104 2005-06-28  Simon Josefsson  <jas@extundo.com>
41105
41106         * lib/check-version.h, lib/check-version.c: New files.
41107
41108 2005-06-28  Simon Josefsson  <jas@extundo.com>
41109
41110         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
41111         collision with global variable.  Better indentation.  Don't
41112         increment buffer pointer beyond buffer end.  Based on comments
41113         from Paul Eggert <eggert@cs.ucla.edu>.
41114
41115         * lib/base64.h: Indent.
41116
41117 2005-06-28  Simon Josefsson  <jas@extundo.com>
41118
41119         * doc/gnulib.texi (Library version handling): New section.
41120
41121 2005-06-28  Jim Meyering  <jim@meyering.net>
41122
41123         * check-module (find_included_lib_files): Hard-code another
41124         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
41125         but modules/fts-lgpl (correctly) does not list those files.
41126
41127         * modules/canonicalize (Files): Add lib/pathmax.h.
41128
41129 2005-06-25  Simon Josefsson  <jas@extundo.com>
41130
41131         * modules/check-version: New file.
41132
41133 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
41134
41135         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
41136         initializer of struct addrinfo, as an indication that we don't
41137         care how many members the structure has.
41138
41139 2005-06-24  Derek Price  <derek@ximbiot.com>
41140         and Bruno Haible  <bruno@clisp.org>
41141
41142         Remove stat module & update lstat.
41143         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
41144         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41145         * m4/stat.m4: Remove this file.
41146
41147 2005-06-24  Derek Price  <derek@ximbiot.com>
41148         and Bruno Haible  <bruno@clisp.org>
41149
41150         Remove stat module & update lstat.
41151         * lib/stat.c: Remove this file...
41152         (slash_aware_lstat): ...moving this content and its support...
41153         * lib/lstat.c (rpl_lstat): ...into here.
41154         * lib/lstat.h: New file.
41155
41156 2005-06-24  Derek Price  <derek@ximbiot.com>
41157         and Bruno Haible  <bruno@clisp.org>
41158
41159         Remove stat module & update lstat.
41160         * config/srclist.txt (libc sources): Remove stat.
41161
41162 2005-06-24  Derek Price  <derek@ximbiot.com>
41163         and Bruno Haible  <bruno@clisp.org>
41164
41165         Remove stat module & update lstat.
41166         * MODULES.html.sh (stat): Remove.
41167         * MODULES.html: Regenerated.
41168         * modules/lstat (Description): Correct function name.
41169         (Files): Add "lstat.h".
41170         (Depends-on): Remove stat, add xalloc, stat-macros.
41171         * modules/stat: Remove this file.
41172         (Include): Add "lstat.h", remove <sys/stat.h>.
41173
41174 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41175
41176         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
41177         (ranged_convert): Don't save conversion in a temporary struct.
41178         This causes a warning with GCC 4.0.0, and anyway in the typical
41179         case it's not worth the extra 100 bytes or so of code.
41180         (ranged_convert, __mktime_internal): When calling a function via a
41181         pointer P, use P () rather than (*P) (), as we now assume C89 or
41182         better.
41183
41184 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41185
41186         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
41187         "who -r" failed to give output.  Problem reported by Tim Waugh.
41188
41189         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
41190         (xcalloc): Use it to avoid needless tests.
41191         Problem reported by Jim Meyering.
41192
41193 2005-06-20  Derek Price  <derek@ximbiot.com>
41194
41195         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
41196         unnecessary for Autoconfs > 2.59c.
41197
41198 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41199
41200         * lib/argp.h (__option_is_short): Check upper limit of
41201         __key. Isprint() requires its argument to have the value
41202         of an unsigned char or EOF.
41203
41204 2005-06-16  Jim Meyering  <jim@meyering.net>
41205
41206         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
41207         when either N or S is zero.
41208
41209 2005-06-16  Derek Price  <derek@ximbiot.com>
41210
41211         * m4/bison.m4: Declare YACC & YFLAGS precious.
41212
41213 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
41214
41215         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
41216         multibyte string or pattern, fall back on unibyte matching.
41217         Problem reported by James Youngman.
41218
41219 2005-06-08  Bruno Haible  <bruno@clisp.org>
41220
41221         * modules/csharpcomp: New file.
41222         * MODULES.html.sh (C#): Add csharpcomp.
41223
41224 2005-06-08  Bruno Haible  <bruno@clisp.org>
41225
41226         * m4/csharpcomp.m4: New file, from GNU gettext.
41227
41228 2005-06-08  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/csharpcomp.h: New file, from GNU gettext.
41231         * lib/csharpcomp.c: New file, from GNU gettext.
41232         * lib/csharpcomp.sh.in: New file, from GNU gettext.
41233
41234 2005-06-08  Bruno Haible  <bruno@clisp.org>
41235
41236         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
41237         warning on mingw.
41238
41239 2005-06-07  Derek Price  <derek@ximbiot.com>
41240
41241         Sync from CVS.
41242         * lib/glob_.h: Indent nested #ifdef.
41243
41244 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41245
41246         Sync from coreutils.
41247         Use "file name" when talking about file names, instead of "filename"
41248         or "path", as per the GNU coding standards.
41249         * lib/mkdir-p.c: Renamed from makepath.c.
41250         (make_dir_parents): Renamed from make_path.  All callers changed.
41251         * lib/mkdir-p.h: Likewise.  All includers changed.
41252         * lib/filenamecat.c: Renamed from path-concat.c.
41253         (file_name_concat): Renamed from path_concat.  All callers changed.
41254         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
41255         * lib/filenamecat.h: Likewise.  All includers changed.
41256         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
41257         in comments or local variable names.
41258         * lib/basename.c: Likewise.
41259         * lib/canonicalize.c, canonicalize.h: Likewise.
41260         * lib/dirname.c, dirname.h: Likewise.
41261         * lib/euidaccess.c: Likewise.
41262         * lib/exclude.c: Likewise
41263         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
41264         * lib/fsusage.c, fsuage.h: Likewise.
41265         * lib/fts.c, fts_.h: Likewise.
41266         * lib/getcwd.c: Likewise.
41267         * lib/getloadavg.c: Likewise.
41268         * lib/mkstemp.c: Likewise.
41269         * lib/mountlist.c, mountlist.h: Likewise.
41270         * lib/openat.c, openat.h: Likewise.
41271         * lib/readlink-stub.c: Likewise.
41272         * lib/readutmp.c, readutmp.h: Likewise.
41273         * lib/rename.c: Likewise.
41274         * lib/rmdir.c: Likewise.
41275         * lib/same.c: Likewise.
41276         * lib/savedir.c: Likewise.
41277         * lib/stripslash.c: Likewise.
41278         * lib/tempname.c: Likewise.
41279         * lib/xreadlink.c: Likewise.
41280         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
41281         All uses changed.
41282         * lib/exclude.h: Likewise.
41283
41284         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
41285         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41286         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
41287         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41288         * lib/pathmax.h: Include <limits.h> unconditionally, since other
41289         files have been getting away with it for years (MORE/BSD 4.3
41290         is extinct now).
41291         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
41292         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41293
41294         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
41295         Define to 256, not 255, as per modern POSIX.
41296
41297 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41298
41299         Sync from coreutils.
41300         Use "file name" when talking about file names, instead of "filename"
41301         or "path", as per the GNU coding standards.
41302         * MODULES.html.sh: mkdir-p renamed from makepath.
41303         filenamecat renamed from path-concat.
41304         * modules/filenamecat: Renamed from modules/path-concat.
41305         (Files): filenamecat.h and filenamecat.c renamed from
41306         path-concat.h and path-concat.c.
41307         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
41308         (Include): filenamecat.h, not path-concat.h.
41309         * modules/mkdir-p: Renamed from modules/makepath.
41310         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
41311         makepath.c.
41312         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
41313         (Include): mkdir-p.h, not makepath.h.
41314
41315 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41316
41317         Sync from coreutils.
41318         * m4/mkdir-p.m4: Renamed from makepath.m4.
41319         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
41320         Rename files from makepath.c to mkdir-p.c, and from
41321         makepath.h to mkdir-p.h.
41322         * m4/filenamecat.m4: Renamed from path-concat.m4.
41323         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
41324         Rename files from path-concat.c to filenamecat.c,
41325         and from path-concat.h to filenamecat.h.
41326         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
41327         "file name" in local variables or comments.
41328         * m4/rename.m4: Likewise.
41329
41330 2005-06-01  Bruno Haible  <bruno@clisp.org>
41331
41332         * modules/csharpexec: New file.
41333         * MODULES.html.sh (C#): New section.
41334
41335 2005-06-01  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/csharp.m4: New file, from GNU gettext.
41338         * m4/csharpexec.m4: New file, from GNU gettext.
41339
41340 2005-06-01  Bruno Haible  <bruno@clisp.org>
41341
41342         * lib/csharpexec.h: New file, from GNU gettext.
41343         * lib/csharpexec.c: New file, from GNU gettext.
41344         * lib/csharpexec.sh.in: New file, from GNU gettext.
41345
41346 2005-05-31  Derek Price  <derek@ximbiot.com>
41347             Paul Eggert  <eggert@cs.ucla.edu>
41348
41349         Sync from cvs.
41350         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
41351
41352 2005-05-31  Derek Price  <derek@ximbiot.com>
41353             Paul Eggert  <eggert@cs.ucla.edu>
41354
41355         Sync from cvs.
41356         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
41357
41358 2005-05-29  Derek Price  <derek@ximbiot.com>
41359
41360         * config/srclist.txt (glob_.h, glob.c): Add these files.
41361
41362 2005-05-29  Derek Price  <derek@ximbiot.com>
41363
41364         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
41365         * modules/glob: New file.
41366         * modules/getlogin_r: Add link to POSIX spec in description.
41367
41368 2005-05-29  Derek Price  <derek@ximbiot.com>
41369             Paul Eggert  <eggert@cs.ucla.edu>
41370
41371         * m4/glob.m4: New file.
41372
41373 2005-05-29  Derek Price  <derek@ximbiot.com>
41374             Paul Eggert  <eggert@cs.ucla.edu>
41375
41376         * lib/glob_.h, lib/glob.c: New files.
41377
41378 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41379
41380         * modules/fts (Files): Remove m4/inttypes-pri.m4.
41381         * modules/fts-lgpl (Depends-on): Remove gettext.
41382
41383 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41384
41385         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
41386         and don't require gt_INTTYPES_PRI.
41387
41388 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41389
41390         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
41391
41392         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
41393         the configuration hassle isn't worth it.
41394         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
41395         (LONGEST_MODIFIER, PRIuMAX): Remove.
41396
41397 2005-05-27  Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/getlogin_r.h: Remove second include of <stddef.h>.
41400
41401 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
41402
41403         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
41404         _POSIX_PTHREAD_SEMANTICS for Solaris.
41405
41406 2005-05-25  Derek Price  <derek@ximbiot.com>
41407
41408         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
41409
41410 2005-05-25  Derek Price  <derek@ximbiot.com>
41411             Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         * modules/getlogin_r, m4/getlogin_r.m4: New files.
41414         * lib/getlogin_r.c, getlogin_r.h: New files.
41415
41416 2005-05-25  Bruno Haible  <bruno@clisp.org>
41417             Derek Price  <derek@ximbiot.com>
41418
41419         * lib/getlogin_r.h: Simplify API documentation.
41420
41421 2005-05-23  Derek Price  <derek@ximbiot.com>
41422
41423         * modules/minmax (Files): Add m4/minmax.m4.
41424         (configure.ac): Add gl_MINMAX.
41425
41426 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
41427
41428         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
41429         so that unistd-safer.h (GPL'ed code) need not be included.
41430
41431 2005-05-22  Bruno Haible  <bruno@clisp.org>
41432
41433         * m4/minmax.m4: New file.
41434         Based on a patch by Derek Price <derek@ximbiot.com>.
41435
41436 2005-05-22  Bruno Haible  <bruno@clisp.org>
41437
41438         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
41439         (INT64_MIN): Fix definition.
41440         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
41441
41442         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
41443         NEED_SIGNED_INT_TYPES.
41444
41445         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
41446         HAVE_SYSTEM_INTTYPES.
41447
41448 2005-05-22  Bruno Haible  <bruno@clisp.org>
41449
41450         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
41451         Also include <sys/param.h> if it defines MIN, MAX.
41452         Based on a patch by Derek Price <derek@ximbiot.com>.
41453
41454 2005-05-21  Jim Meyering  <jim@meyering.net>
41455
41456         * modules/fts (Files): Add m4/inttypes-pri.m4.
41457         (Depends-on): Add lstat and remove gettext.  Alphabetize.
41458
41459 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41460
41461         New fts module.
41462         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
41463         (setup_dir, free_dir): New functions.
41464         (enter_dir, leave_dir): Define trivial
41465         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
41466         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
41467         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
41468         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
41469         Move to fts-cycle.c.
41470         (fts_open): Use setup_dir.
41471         (fts_close): Use free_dir.
41472         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
41473         This adds a label and some gotos, but the alternatives were messier.
41474         Check for memory allocation failure when entering a dir.
41475         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
41476         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
41477         (FTS): New member fts_cycle, that is a union that contains the
41478         old active_dir_ht and cycle_state.  All uses changed to mention
41479         fts_cycle.ht and fts_cycle.state.
41480         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
41481         fts.c, with the following changes:
41482         (setup_dir, free_dir): New functions.
41483         (enter_dir): Now returns bool.  Return true if successful, false
41484         if memory exhausted.  All callers changed.
41485         Do not bother partly cleaning up on
41486         memory allocation failure; that is free_dir's job.
41487         However, free ad if hash_insert fails, to avoid memory leak.
41488         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
41489         fts->fts_options to see which union member to use.
41490
41491 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41492
41493         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
41494         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
41495
41496 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41497
41498         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
41499
41500 2005-05-20  Jim Meyering  <jim@meyering.net>
41501
41502         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
41503         Now a macro, to pacify GCC.
41504
41505 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41506
41507         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
41508         of -1.
41509
41510 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41511
41512         * lib/chown.c (rpl_chown): Return -1 on failure.
41513
41514 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41515
41516         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
41517         Don't check for stddef.h.
41518         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
41519         don't use its results.
41520         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
41521         since we include them unconditionally.  Don't require
41522         AM_STDBOOL_H, since stdbool is a prerequisite.
41523         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
41524         since we assume C89 or better.
41525         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
41526         as we don't use their results.
41527         Don't check for fchdir, memmove, memset, strrchr, as we use
41528         them unconditionally.
41529         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
41530         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
41531
41532 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41533
41534         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
41535         Include <stddef.h> unconditionally, since we assume C89 now.
41536         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
41537         * lib/fts.c: Include fts_.h first, to check interface.
41538         Do not include intprops.h; no longer needed.
41539         Include cycle-check.h and hash.h, since fts_.h no longer does.
41540         Remove unnecessary casts of closedir to void.
41541         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
41542         decide whether to decrement nlinks.
41543         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
41544         (FTS): Use struct hash_table * instead of Hash_table, so that
41545         we no longer need to include hash.h here.
41546
41547 2005-05-18  Jim Meyering  <jim@meyering.net>
41548
41549         * modules/dirfd (License): Change to LGPL.  Most of the code
41550         is already in the public domain.
41551
41552 2005-05-18  Jim Meyering  <jim@meyering.net>
41553
41554         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
41555         Reported by Yoann Vandoorselaere.
41556
41557 2005-05-17  Jim Meyering  <jim@meyering.net>
41558
41559         * m4/fts.m4: New file, from coreutils.
41560
41561 2005-05-17  Jim Meyering  <jim@meyering.net>
41562
41563         * lib/fts.c, lib/fts_.h: New files, from coreutils.
41564
41565 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41566
41567         Sync from coreutils.
41568         * m4/unlinkdir.m4: New file.
41569
41570 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41571
41572         Sync from coreutils.
41573         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
41574         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
41575         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
41576         White space changes only.
41577         * lib/makepath.c (make_path): Port to hosts where leading "//" is
41578         special.
41579         * lib/yesno.c: Include getline.h, not ctype.h.
41580         (yesno): Don't remove leading white space; POSIX doesn't allow it.
41581         Use getline to remove arbitrary restriction on response length.
41582
41583 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41584
41585         * config/srclist-update: Spell out "Street" in FSF postal
41586         mail address; this is the style the FSF seems to prefer.
41587
41588         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
41589         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
41590         this updates FSF postal mail address.
41591
41592         Sync from coreutils.
41593         * modules/unlinkdir: New file.
41594         * modules/yesno (Depends-on): Add getline.
41595         * MODULES.html.sh (File system functions): Add unlinkdir.
41596
41597 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41598
41599         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
41600         lib/strsep.h:
41601         Change the initial comment to refer to GPL, not LGPL.
41602         gnulib-tool will change it to LGPL as needed.
41603
41604         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
41605         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
41606         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
41607         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
41608         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
41609         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
41610         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
41611         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
41612         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
41613         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
41614         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
41615         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
41616         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
41617         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
41618         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
41619         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
41620         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
41621         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
41622         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
41623         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
41624         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
41625         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
41626         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
41627         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
41628         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
41629         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
41630         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
41631         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
41632         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
41633         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
41634         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
41635         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
41636         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
41637         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
41638         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
41639         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
41640         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
41641         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
41642         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
41643         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
41644         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
41645         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
41646         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
41647         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
41648         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
41649         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
41650         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
41651         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
41652         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
41653         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
41654         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
41655         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
41656         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
41657         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
41658         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
41659         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
41660         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
41661         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
41662         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
41663         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
41664         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
41665         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
41666         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
41667         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
41668         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
41669         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
41670         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
41671         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
41672         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
41673         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
41674         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
41675         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
41676         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
41677         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
41678         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
41679         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
41680         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
41681         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
41682         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
41683         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
41684         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
41685         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
41686         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
41687         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
41688         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
41689         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
41690         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
41691         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
41692         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
41693         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
41694         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
41695         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
41696         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
41697         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
41698         lib/yesno.c, lib/yesno.h:
41699         Update FSF postal mail address.
41700
41701 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41702
41703         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
41704         tests/test-memmem.c, tests/test-stpncpy.c:
41705         Update FSF postal mail address.
41706
41707 2005-05-13  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
41710         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
41711         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
41712         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
41713         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
41714         Add support for 64-bit integers in the MSVC compiler.
41715
41716 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41717
41718         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
41719
41720 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
41721
41722         * gnulib-tool (func_import): Sort and uniquify recommended includes.
41723
41724 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
41725
41726         * doc/getdate.texi (General date syntax): Don't say that date
41727         date --iso-8601=ns generates acceptable dates; it doesn't yet.
41728         Problem reported by Nic Ferrier.
41729
41730 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41731
41732         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
41733         specified in ai_socktype. Fix invalid ai_protocol
41734         check. ai_protocol is usually set to 0 or depending on
41735         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
41736         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
41737         ai_socktype / ai_protocol in the returned addrinfo structure.
41738
41739 2005-05-10  Simon Josefsson  <jas@extundo.com>
41740
41741         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
41742         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41743
41744 2005-05-10  Karl Berry  <karl@gnu.org>
41745
41746         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
41747         (from http://www.gnu.org/licenses).
41748         * doc/COPYING.LIB: also rename to COPYING.LESSER.
41749         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
41750         fdl.texi suffices.
41751
41752 2005-05-10  Karl Berry  <karl@gnu.org>
41753
41754         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
41755         (COPYING.DOC): remove.
41756
41757         * config/srclist-update: new FSF address.
41758
41759 2005-05-10  Derek Price  <derek@ximbiot.com>
41760
41761         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
41762         possible.
41763
41764 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41765             Bruno Haible  <bruno@clisp.org>
41766
41767         * modules/inet_ntop: New file.
41768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41769         inet_ntop.
41770
41771 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41772             Bruno Haible  <bruno@clisp.org>
41773
41774         * m4/inet_ntop.m4: New file.
41775
41776 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41777             Bruno Haible  <bruno@clisp.org>
41778
41779         * lib/inet_ntop.h: New file.
41780         * lib/inet_ntop.c: New file, from glibc with modifications.
41781
41782 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
41783
41784         * modules/time_r (License): Change to LGPL.
41785         * modules/extensions (License): Change to LGPL.  Actually,
41786         the license is more permissive than that, but currently gnulib-tool
41787         doesn't know how to handle more-permissive licenses.
41788
41789         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
41790         Problem reported by Dave Love.
41791
41792 2005-05-08  Jim Meyering  <jim@meyering.net>
41793
41794         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
41795         blank.
41796
41797 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41798
41799         * modules/argmatch (Depends-on): Add stdbool.
41800         * modules/backupfile (Depends-on): Likewise.
41801         * modules/chdir-long (Depends-on): Likewise.
41802         * modules/closeout (Depends-on): Likewise.
41803         * modules/cycle-check (Depends-on): Likewise.
41804         * modules/dirname (Depends-on): Likewise.
41805         * modules/fnmatch (Depends-on): Likewise.
41806         * modules/fsusage (Depends-on): Likewise.
41807         * modules/fwriteerror (Depends-on): Likewise.
41808         * modules/getcwd (Depends-on): Likewise.
41809         * modules/getloadavg (Depends-on): Likewise.
41810         * modules/hard-locale (Depends-on): Likewise.
41811         * modules/makepath (Depends-on): Likewise.
41812         * modules/mountlist (Depends-on): Likewise.
41813         * modules/nanosleep (Depends-on): Likewise.
41814         * modules/posixtm (Depends-on): Likewise.
41815         * modules/quotearg (Depends-on): Likewise.
41816         * modules/readtokens (Depends-on): Likewise.
41817         * modules/readtokens0 (Depends-on): Likewise.
41818         * modules/readutmp (Depends-on): Likewise.
41819         * modules/save-cwd (Depends-on): Likewise.
41820         * modules/strftime (Depends-on): Likewise.
41821         * modules/userspec (Depends-on): Likewise.
41822         * modules/utimecmp (Depends-on): Likewise.
41823         * modules/xgetcwd (Depends-on): Likewise.
41824         * modules/xnanosleep (Depends-on): Likewise.
41825         * modules/xstrtod (Depends-on): Likewise.
41826         * modules/yesno (Depends-on): Likewise.
41827
41828 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
41829
41830         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
41831         needless checks.
41832
41833 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41834
41835         Merge from coreutils.  Among other things,
41836         add bulletproofing for cases where stdin, stdout, or stderr are closed.
41837         * lib/fd-safer.c: New file.
41838         * lib/fcntl-safer.h, open-safer.c: Remove.
41839         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
41840         * lib/dup-safer.c: Include unistd-safer.h first.
41841         Don't include errno.h.
41842         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
41843         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
41844         * lib/file-type.c: Rely on file-type.h change.
41845         * lib/getloadavg.c: Include unistd-safer.h.
41846         (getloadavg): Use safer open.
41847         * lib/getusershell.c: Include "stdio-safer.h".
41848         (getusershell): Use safer fopen.
41849         * lib/long-options.c (long_options): Use NULL rather than 0.
41850         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
41851         'free'.
41852         * lib/modechange.c: Likewise.
41853         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
41854         (MODE_DONE): New constant.
41855         (struct mode_change): Remove 'next' member.
41856         (make_node_op_equals): New function; like the old one of the
41857         same name, except it allocates an array.
41858         (mode_compile, mode_create_from_ref): Use it.
41859         (mode_compile): Allocate result as an array, not a linked list.
41860         Parse octal string ourself, so that we catch mistakes like "+0".
41861         (mode_adjust): Arg is an array, not a linked list.
41862         * lib/modechange.c: Include stat-macros.h, xalloc.h.
41863         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
41864         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
41865         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
41866         Remove.  This is now stat-macros.h's job.
41867         (talloc): Remove.  All callers replaced by xalloc, so that
41868         our invokers don't have to worry about reporting memory failures.
41869         (make_node_op_equals): Remove.
41870         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
41871         New constants.
41872         (struct mode_change): Moved here from modechange.h.
41873         (mode_append_entry): Remove.
41874         (mode_compile): Remove MASKED_OPS arg, since it encouraged
41875         apps to have incorrect behavior.  Use simpler algorithm for head
41876         and tail.  Don't futz with umask; that's now the job of mode_adjust.
41877         Detect more invalid usages rather than having somewhat-random behavior.
41878         Don't insert an "a=" action, as that leads to incorrect behavior.
41879         (mode_compile, mode_create_from_ref): Return NULL on error instead
41880         of an enum, since now there's only one way to have an error.  All
41881         callers changed.
41882         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
41883         at the correct time.  Simplify calculation of "+u" and its ilk.
41884         Don't mishandle "+X".
41885         (mode_free): Remove "register" and localize decls.
41886         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
41887         (struct mode_change): Move to modechange.c; callers don't
41888         need to see this stuff.
41889         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
41890         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
41891         (mode_change, mode_adjust): Reflect the new signatures noted above.
41892         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
41893         that might redefine system include files.
41894         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
41895         (my_usleep): Use NULL rather than (void *) 0.
41896         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
41897         Use siginterrupt to specify that system calls should be interrupted.
41898         (rpl_nanosleep): Move initialization of suspended closer to call of
41899         my_usleep.
41900         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
41901         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
41902         (desirable_utmp_entry): New function.
41903         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
41904         using x2nrealloc, to simplify logic.
41905         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
41906         size calculation.  Do not assume utmp file is a regular file.
41907         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
41908         (READ_UTMP_CHECK_PIDS): New constant.
41909         * lib/save-cwd.c: Include unistd-safer.h.
41910         (save_cwd): Use fd_safer.
41911         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
41912         [!_LIBC] Include "stat-macros.h" instead.
41913         * lib/unistd-safer.h (fd_safer): New decl.
41914
41915 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41916
41917         * modules/getloadavg (Depends-on): Add unistd-safer.
41918         * modules/getusershell (Depends-on): Add stdio-safer.
41919         * modules/lstat (Depends-on): Remove xalloc.
41920         * modules/mkstemp (Depends-on): Add stat-macros.
41921         * modules/modechange (Depends-on): Remove xstrtol.
41922         Add stat-macros, xalloc.
41923         * modules/save-cwd (Depends-on): Add unistd-safer.
41924         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
41925         * modules/unistd-safer (Files): Add lib/fd-safer.c
41926         (Makefile.am): Remove lib_SOURCES.
41927
41928         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
41929         Remove fcntl-safer; unistd-safer supersedes it.
41930
41931 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41932
41933         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
41934         AC_HEADER_STAT.
41935         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
41936         (gl_PREREQ_CHOWN): Remove.
41937         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
41938         it.  Don't require AC_HEADER_STAT.
41939         (gl_PREREQ_LSTAT): Remove.
41940         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
41941         Don't require AC_HEADER_STAT.
41942         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
41943         (gl_PREREQ_RMDIR): Remove.
41944         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
41945         mention stat-macros.h or AC_HEADER_STAT, since we'll make
41946         the stat-macros module a prerequisite.
41947         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
41948         * m4/filemode.m4 (gl_FILEMODE): Likewise.
41949         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
41950         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
41951         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
41952         variable names.
41953         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
41954         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
41955         variable prefixes.
41956         * m4/fcntl-safer.m4: Remove.
41957         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
41958         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
41959         Invoke gl_PREREQ_FD_SAFER.
41960         (gl_PREREQ_FD_SAFER): New macro.
41961         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
41962         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
41963         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
41964         Remove duplicate call to AC_LIBOBJ(readutmp).
41965         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
41966
41967         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
41968         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
41969
41970 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41971
41972         * MODULES.html.sh (Misc): Add byteswap.
41973
41974 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41975
41976         * modules/getcwd (Depends-on): Add extensions.
41977         * modules/openat (Depends-on): Likewise.
41978
41979 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41980
41981         * modules/byteswap: New file.
41982
41983 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41984
41985         * m4/byteswap.m4: New file.
41986
41987 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41988
41989         * lib/byteswap_.h: New file.
41990
41991 2005-04-25  Karl Berry  <karl@gnu.org>
41992
41993         * m4/gettext.m4: Update from GNU gettext 0.14.4.
41994
41995 2005-04-25  Albert Chin  <china@thewrittenword.com>
41996
41997         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
41998         Toolkit C bug.
41999
42000 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
42001
42002         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
42003         (func_ln_if_changed) Remove forcibly for no error message
42004         in case file does not exist.
42005
42006 2005-04-19  Simon Josefsson  <jas@extundo.com>
42007
42008         * gnulib-tool (Options): Make --symlink mean --symbolic.
42009
42010 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
42011
42012         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
42013
42014 2005-04-16  Simon Josefsson  <jas@extundo.com>
42015
42016         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
42017
42018 2005-04-15  Simon Josefsson  <jas@extundo.com>
42019
42020         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
42021
42022 2005-04-15  Simon Josefsson  <jas@extundo.com>
42023
42024         * gnulib-tool: Rename --symlink to --symbolic.
42025
42026 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
42027
42028         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
42029         symbolic links to files instead of copying/moving.  Add --aux-dir,
42030         specifying directory relative --dir where auxiliary build tools
42031         are placed.
42032
42033 2005-04-14  Bruno Haible  <bruno@clisp.org>
42034
42035         * modules/allocsa (License): Change to LGPL.
42036         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42037
42038 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42039
42040         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
42041         that "UTC +1 second" continues to work.  Problem reported
42042         by Dmitry V. Levin.
42043         (relunit_snumber): New rule.
42044         (relunit): Use it.
42045
42046 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42047
42048         * lib/getdate.y (universal_time_zone_table): New constant.
42049         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
42050         universal_time_zone_table.
42051         (lookup_zone): Prefer universal_time_zone_table to
42052         local_time_zone_table, so that "GMT" time stamps are allowed in
42053         London during the summer.  Problem reported by Ian Abbott.
42054
42055 2005-04-12  Jim Meyering  <jim@meyering.net>
42056
42057         * lib/human.c (humblock): Set *options even when returning due to
42058         xstrtoumax conversion failure.  Thanks to a used-uninitialized
42059         warning from gcc-4.
42060
42061 2005-04-09  Jim Meyering  <jim@meyering.net>
42062
42063         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
42064         -Wuninitialized: initialize tm0.tm_year.
42065
42066 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42067
42068         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
42069         count, since there's no maximum.  All uses changed.
42070         Add member dsts_seen.
42071         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
42072         not being INT_MAX.
42073         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
42074         Use pc_rels_seen to decide whther a date is absolute.
42075
42076         * lib/getdate.y (number): Don't overwrite year.
42077         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
42078         check.
42079
42080 2005-04-02  Simon Josefsson  <jas@extundo.com>
42081
42082         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
42083         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
42084
42085 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
42086
42087         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
42088         where no absolute path name can be longer than PATH_MAX.
42089
42090 2005-03-27  Jim Meyering  <jim@meyering.net>
42091
42092         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
42093
42094 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
42095
42096         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
42097         "one's complement" -> "ones' complement" in comment, as per Knuth.
42098         "value of type" -> "type or expression" in comment.
42099         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
42100
42101 2005-03-26  Jim Meyering  <jim@meyering.net>
42102
42103         Comment nits.
42104         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
42105         Correct typos: s/or/of/.
42106
42107 2005-03-26  Jim Meyering  <jim@meyering.net>
42108
42109         * modules/check-include-files: Move to ../ and rename to...
42110         * check-module: ...this.
42111
42112 2005-03-25  Jim Meyering  <jim@meyering.net>
42113
42114         * modules/xvasprintf (Files): Add xalloc.h.
42115
42116 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42117
42118         * modules/gettext (Files): config/config.rpath ->
42119         build-aux/config.rpath
42120         * modules/iconv (Files): Likewise.
42121         Problem reported by Oskar Liljeblad.
42122
42123 2005-03-23  Jim Meyering  <jim@meyering.net>
42124
42125         * modules/check-include-files: New script to check for
42126         missing dependencies, multiple includes, etc.
42127
42128         * modules/c-strtold (Depends-on): Add xalloc.
42129         * modules/c-strtod (Depends-on): Add xalloc.
42130         * modules/hash (Depends-on): Add xalloc.
42131         (Files): Remove lib/xalloc.h.
42132
42133         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
42134         * modules/userspec (Files): Add lib/inttostr.h.
42135
42136 2005-03-23  Jim Meyering  <jim@meyering.net>
42137
42138         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
42139
42140 2005-03-22  Jim Meyering  <jim@meyering.net>
42141
42142         * modules/stat-macros: New module.
42143         * modules/canonicalize, modules/euidaccess, modules/file-type,
42144         * modules/filemode, modules/lchown, modules/makepath,
42145         * modules/rmdir, modules/stat: Depend on new stat-macros module
42146         rather than listing lib/stat-macros.h manually.
42147         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
42148
42149 2005-03-22  Jim Meyering  <jim@meyering.net>
42150
42151         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
42152
42153 2005-03-22  Bruno Haible  <bruno@clisp.org>
42154
42155         * config/srclist.txt: Replace target directory 'config' with
42156         'build-aux'.
42157         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
42158         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
42159         ../build-aux/.
42160
42161 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
42162
42163         * modules/chdir-long (Depends-on): Add mempcpy.
42164
42165         * modules/acl, modules/backupfile, modules/c-strtod,
42166         modules/c-strtold, modules/canon-host, modules/canonicalize,
42167         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
42168         modules/exclude, modules/exitfail, modules/file-type,
42169         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
42170         modules/getdate, modules/getline, modules/getpagesize,
42171         modules/getpass, modules/getugroups, modules/group-member,
42172         modules/hard-locale, modules/hash, modules/human, modules/idcache,
42173         modules/inttostr, modules/long-options, modules/makepath,
42174         modules/md5, modules/memcasecmp, modules/memcoll,
42175         modules/modechange, modules/mountlist, modules/path-concat,
42176         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
42177         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
42178         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
42179         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
42180         modules/strftime, modules/strndup, modules/strverscmp,
42181         modules/timespec, modules/unlocked-io, modules/userspec,
42182         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
42183         modules/yesno:
42184         Remove lib_SOURCES line from Makefile.am section, as this is now
42185         done automatically by the corresponding Autoconf macro.
42186
42187 2005-03-21  Jim Meyering  <jim@meyering.net>
42188
42189         Changes imported from coreutils.
42190
42191         * lib/cycle-check.c: Don't include xalloc.h.
42192
42193         * lib/path-concat.c: Don't include assert.h.
42194         (path_concat): Remove assertion that would have triggered
42195         for ABASE starting with more than one slash.
42196         Reported by Andreas Schwab.
42197
42198         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
42199         properly when ABASE is an absolute file name.
42200         Correct the description of this function.
42201         Include <assert.h>.
42202         Add an assertion and a test driver.
42203         This fixes a bug introduced on 2004-07-02.
42204         Andreas Schwab reported the resulting failure of cp --parents:
42205         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
42206
42207 2005-03-21  Jim Meyering  <jim@meyering.net>
42208
42209         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
42210         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
42211
42212 2005-03-21  Jim Meyering  <jim@meyering.net>
42213         and  Paul Eggert  <eggert@cs.ucla.edu>
42214
42215         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
42216         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
42217         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
42218         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
42219         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
42220         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
42221         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
42222         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
42223         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
42224         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
42225         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
42226         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
42227         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
42228         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
42229         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
42230         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
42231         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
42232         for these modules.
42233
42234 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
42235
42236         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
42237         (which shouldn't happen), generate nothing instead of returning 0
42238         immediately, so that nstrftime (NULL, ...) doesn't return 0.
42239
42240 2005-03-16  Bruno Haible  <bruno@clisp.org>
42241
42242         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
42243         HAVE_LONGLONG_64BIT.
42244
42245 2005-03-16  Bruno Haible  <bruno@clisp.org>
42246
42247         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
42248         HAVE_LONGLONG_64BIT.
42249
42250 2005-03-16  Bruno Haible  <bruno@clisp.org>
42251
42252         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
42253         HAVE_LONGLONG_64BIT.
42254
42255 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
42256
42257         * lib/strftime.c (my_strftime): Prepend space to format so that we can
42258         reliably distinguish strftime failure from empty output on POSIX
42259         hosts.
42260
42261 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
42262
42263         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
42264         (iconv_string): Don't guess a size-zero buffer, as that might cause
42265         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
42266         result would be 'too large', where 'too large' is (heuristically)
42267         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
42268         overflow concerns.  This will prevent some unwanted malloc failures
42269         when the inputs are very large.
42270
42271 2005-03-15  Karl Berry  <karl@gnu.org>
42272
42273         * config/srclist.txt (config.rpath): from gettext.
42274         * config/config.rpath: update.
42275
42276 2005-03-15  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
42279         to 'negate'.
42280
42281         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
42282         variable.
42283
42284         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
42285         results.
42286
42287 2005-03-14  Simon Josefsson  <jas@extundo.com>
42288
42289         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
42290         <fx@gnu.org>.
42291
42292 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
42293
42294         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
42295         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
42296         intprops.h.
42297         * lib/strtol.c: Likewise.
42298
42299 2005-03-14  Jim Meyering  <jim@meyering.net>
42300
42301         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
42302         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
42303         to be nonzero so that we (and caller) can detect the difference
42304         between a valid zero-length expansion and an error return, even
42305         when the underlying strftime fails before writing anything into
42306         that location.
42307
42308 2005-03-14  Bruno Haible  <bruno@clisp.org>
42309
42310         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
42311         Update from GNU gettext 0.14.3.
42312
42313 2005-03-10  Jim Meyering  <jim@meyering.net>
42314
42315         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
42316
42317 2005-03-10  Jim Meyering  <jim@meyering.net>
42318
42319         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
42320         so that this module works on systems without fchdir.
42321
42322 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
42323
42324         Factor int-properties macros into a single file, except for
42325         glibc-related files.
42326         * lib/intprops.h: New file.
42327         * lib/getloadavg.c: Include it instead of limits.h.
42328         (INT_STRLEN_BOUND): Remove.
42329         * lib/human.c: Include intprops.h.
42330         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
42331         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
42332         302/1000.
42333         * lib/inttostr.h: Include intprops.h instead of limits.h.
42334         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
42335         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
42336         for consistency with intprops.h.
42337         (time_t_is_integer, twos_complement_arithmetic): Use them.
42338         * lib/sig2str.h: Include <signal.h>, intprops.h.
42339         (INT_STRLEN_BOUND): Remove.
42340         * lib/strftime.c (TYPE_SIGNED): Remove.
42341         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
42342         * lib/strtol.c: Adjust comments to match intprops.h.
42343         * lib/userspec.c: Include intprops.h.
42344         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
42345         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
42346         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
42347         instead of rolling our own expressions.
42348         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
42349
42350         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
42351         instead of int.
42352         (my_strftime): Do not mishandle years close to INT_MAX, by doing
42353         the right thing even if adding 1900 would overflow.  Similarly
42354         for tm_mon + 1 and tm_yday + 1.
42355         Make %Y always equivalent to %C%y, and similarly for %G and %g.
42356         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
42357         (DO_SIGNED_NUMBER): New macro.
42358         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
42359
42360 2005-03-07  Bruno Haible  <bruno@clisp.org>
42361
42362         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
42363
42364 2005-03-07  Bruno Haible  <bruno@clisp.org>
42365
42366         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
42367
42368 2005-03-04  Derek R. Price  <derek@ximbiot.com>
42369
42370         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
42371         (func_import): Only replace files via --import when they have actually
42372         changed.
42373
42374 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42375
42376         * m4/mmap-anon.m4: New file.
42377         * m4/pagealign_alloc.m4: New file.
42378
42379 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42380             Bruno Haible  <bruno@clisp.org>
42381
42382         * modules/pagealign_alloc: New file.
42383         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
42384
42385 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42386             Bruno Haible  <bruno@clisp.org>
42387
42388         * lib/pagealign_alloc.h: New file.
42389         * lib/pagealign_alloc.c: New file.
42390
42391 2005-03-03  Bruno Haible  <bruno@clisp.org>
42392
42393         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
42394         Use an all-permissive copyright notice, recommended by RMS.
42395
42396 2005-03-02  Bruno Haible  <bruno@clisp.org>
42397
42398         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
42399         of AIX, the replacement has to be done only after <string.h> is
42400         included, therefore not in config.h. stpncpy.h does the replacement,
42401         and stpncpy.c uses it.
42402
42403 2005-03-02  Bruno Haible  <bruno@clisp.org>
42404
42405         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
42406         stpncpy.c uses it.
42407
42408 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42409
42410         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
42411         The workaround isn't strictly needed for POSIX conformance, and
42412         it's too much of a pain to configure and maintain.  We'll ask
42413         people to fix their kernels instead.
42414         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
42415         (NANOSLEEP_BUG_WORKAROUND): Remove.
42416         (xnanosleep): Remove the workaround.
42417
42418 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42419
42420         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
42421         Reported by Derek Price.
42422         (Include): Add "timespec.h".
42423
42424         * modules/xnanosleep (Depends-on): Remove gethrxtime.
42425
42426 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42427
42428         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
42429         to detect nanosleep bug.
42430
42431 2005-03-01  Bruno Haible  <bruno@clisp.org>
42432
42433         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
42434
42435 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42436
42437         * modules/gethrxtime: New file.
42438         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
42439         (Depends-on): Add gethrxtime.
42440         (configure.ac): Add gl_XNANOSLEEP.
42441         (Makefile.am): Remove lib_SOURCES line.
42442
42443 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42444
42445         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
42446         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
42447
42448 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42449
42450         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
42451         * lib/timespec.h (gettime): Return void, since it always
42452         succeeds now.  All uses changed.
42453         * lib/gettime.c (gettime) Likewise.
42454         [HAVE_NANOTIME]: Prefer nanotime.
42455         Assume gettimeofday succeeds, as POSIX requires.
42456         Assime time () succeeds, since other code already does.
42457         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
42458         (timespec_subtract): Remove.
42459         (NANOSLEEP_BUG_WORKAROUND): New constant.
42460         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
42461         things considerably.  Use it only on GNU/Linux hosts, since the
42462         workaround shouldn't be needed elsewhere.
42463
42464 2005-02-24  Bruno Haible  <bruno@clisp.org>
42465
42466         * modules/gettext (Files): Add m4/glibc2.m4.
42467
42468 2005-02-24  Bruno Haible  <bruno@clisp.org>
42469
42470         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
42471         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
42472         * m4/progtest.m4:
42473         Update from GNU gettext 0.14.2.
42474         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
42475
42476 2005-02-24  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/localcharset.c: Update from GNU gettext 0.14.2.
42479         * lib/config.charset: Update from GNU gettext 0.14.2.
42480
42481 2005-02-24  Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/gettext.h: Update from GNU gettext 0.14.2.
42484
42485 2005-02-23  Simon Josefsson  <jas@extundo.com>
42486
42487         * m4/iconvme.m4: New file.
42488
42489 2005-02-23  Jim Meyering  <jim@meyering.net>
42490
42491         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
42492         change.
42493         Thanks to Bruno Haible for catching it.
42494
42495 2005-02-22  Simon Josefsson  <jas@extundo.com>
42496
42497         * modules/iconvme: New file.
42498
42499         * MODULES.html.sh: Add iconvme.
42500
42501 2005-02-22  Simon Josefsson  <jas@extundo.com>
42502
42503         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
42504
42505 2005-02-22  Simon Josefsson  <jas@extundo.com>
42506
42507         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
42508
42509 2005-02-22  Jim Meyering  <jim@meyering.net>
42510
42511         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
42512         s/ifndef/ifdef/.
42513
42514 2005-02-20  Neil Conway  <neilc@samurai.com>
42515
42516         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
42517         returned by OSX/Darwin if the specified buffer is not large
42518         enough for the hostname.
42519
42520 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42521
42522         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
42523         pass it to _help, otherwise the latter coredumps trying to
42524         dereference state.root_argp.
42525
42526 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42527
42528         * modules/chdir-long (Depends-on): Add memrchr.
42529         * modules/memrchr (Files): Add lib/memrchr.h.
42530         (Include): "memrchr.h".
42531
42532 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42533
42534         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
42535
42536 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42537
42538         * lib/memrchr.h: New file.
42539         * lib/chdir-long.c: Include it.
42540         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
42541         Don't bother including stddef.h.
42542
42543 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42544
42545         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
42546         inclusion.
42547         Include <sys/types.h>, for dev_t.
42548         (ME_DUMMY, ME_REMOTE): Move from here....
42549         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
42550         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
42551         Dmitry V. Levin.
42552         Include mountlist.h first, to test the interface.
42553
42554 2005-01-29  Bruno Haible  <bruno@clisp.org>
42555
42556         * lib/progname.c (program_name): Initialize.
42557         Needed when linking statically on MacOS X.
42558
42559 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42560
42561         Sync from coreutils.
42562         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
42563         (Depends-on): Add c-strtod.
42564         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
42565
42566 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42567
42568         Sync from coreutils.
42569         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
42570
42571         Remove files that are specific to coreutils.
42572         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
42573
42574 2005-01-28  Bruno Haible  <bruno@clisp.org>
42575
42576         * modules/javacomp: New file.
42577         * MODULES.html.sh (Java): Add javacomp.
42578
42579 2005-01-28  Bruno Haible  <bruno@clisp.org>
42580
42581         * m4/javacomp.m4: New file, from GNU gettext.
42582
42583 2005-01-28  Bruno Haible  <bruno@clisp.org>
42584
42585         * lib/javacomp.sh.in: New file, from GNU gettext.
42586         * lib/javacomp.h: New file, from GNU gettext.
42587         * lib/javacomp.c: New file, from GNU gettext.
42588
42589 2005-01-26  Simon Josefsson  <jas@extundo.com>
42590
42591         * lib/gai_strerror.c: Use GPL in header.
42592
42593 2005-01-26  Bruno Haible  <bruno@clisp.org>
42594
42595         * modules/javaexec: New file.
42596         * MODULES.html.sh (Java): Add javaexec.
42597
42598 2005-01-26  Bruno Haible  <bruno@clisp.org>
42599
42600         * m4/javaexec.m4: New file, from GNU gettext.
42601
42602 2005-01-26  Bruno Haible  <bruno@clisp.org>
42603
42604         * lib/javaexec.sh.in: New file, from GNU gettext.
42605         * lib/javaexec.h: New file, from GNU gettext.
42606         * lib/javaexec.c: New file, from GNU gettext.
42607
42608 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42609
42610         * modules/lchown (Depends-on): Remove lchown.h
42611
42612 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42613
42614         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
42615         must be defined if the header file was not found, in order
42616         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
42617
42618 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42619
42620         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
42621         initializers for struct pentry_state.
42622         (__argp_error): Check return value of __asprintf
42623         (__argp_failure): Translate error message
42624
42625         * lib/argp-parse.c: Removed braces around the expansion of N_()
42626
42627 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42628
42629         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
42630         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
42631         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
42632         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
42633         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
42634         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
42635         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
42636         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
42637         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
42638         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
42639         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
42640         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
42641         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
42642         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
42643         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
42644         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
42645         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
42646         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
42647         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
42648         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
42649         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
42650         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
42651         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
42652         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
42653         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
42654         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
42655         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
42656         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
42657         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
42658         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
42659         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
42660         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
42661         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
42662         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
42663         xstrtol.m4, xstrtoumax.m4, yesno.m4:
42664         Use an all-permissive copyright notice, recommended by RMS.
42665
42666 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
42667
42668         * modules/chdir-long (Depends-on): Remove mempcpy.
42669
42670 2005-01-21  Jim Meyering  <jim@meyering.net>
42671
42672         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
42673         same value as for Solaris 9.
42674
42675         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
42676         component length.  This included changing the parameter to be
42677         of type `char *' rather than `char const *'.
42678         * lib/chdir-long.h (chdir_long): Update prototype.
42679
42680         * lib/openat.c (fdopendir, fstatat): New functions.
42681         * lib/openat.h: Include headers required for use of DIR and struct
42682         stat.
42683         [AT_SYMLINK_NOFOLLOW]: Define.
42684         (fdopendir, fstatat): Add prototypes.
42685
42686 2005-01-21  Bruno Haible  <bruno@clisp.org>
42687
42688         * modules/classpath: New file.
42689         * MODULES.html.sh (Java): Add classpath.
42690
42691 2005-01-21  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/classpath.h: New file, from GNU gettext.
42694         * lib/classpath.c: New file, from GNU gettext.
42695
42696 2005-01-20  Simon Josefsson  <jas@extundo.com>
42697
42698         * modules/version-etc-fsf: New file.
42699
42700 2005-01-20  Simon Josefsson  <jas@extundo.com>
42701
42702         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
42703         * lib/version-etc.c: Remove version_etc_copyright.
42704         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
42705         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
42706
42707 2005-01-20  Simon Josefsson  <jas@extundo.com>
42708
42709         * lib/base64.h (isbase64): Add.
42710
42711         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
42712         using a unsigned prototype, don't inline.
42713         (base64_decode): Use it.
42714
42715 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42716
42717         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
42718         it.
42719
42720 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42721
42722         * lib/save-cwd.c (save_cwd): Remove code to support the case
42723         where fchdir is missing or flaky.
42724
42725 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42726
42727         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
42728
42729 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42730
42731         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
42732         AC_LIBSOURCES now does this.
42733         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
42734         with new ullong_max module.
42735
42736 2005-01-19  Bruno Haible  <bruno@clisp.org>
42737
42738         * modules/sh-quote: New file.
42739         * MODULES.html.sh (Executing programs): Add sh-quote.
42740
42741 2005-01-19  Bruno Haible  <bruno@clisp.org>
42742
42743         * lib/sh-quote.h: New file, from GNU gettext.
42744         * lib/sh-quote.c: New file, from GNU gettext.
42745
42746 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42747
42748         Merge from coreutils.
42749         * m4/ullong_max.m4: New file.
42750         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
42751         (gl_MACROS): Assume localeconv exists.
42752
42753 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42754
42755         Merge changes from coreutils, as described below in several
42756         changelogs dated today.
42757
42758         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
42759         (O_DIRECTORY): Remove; not needed here, since "." must be
42760         a directory.  All uses removed.
42761         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
42762         universal on Suns, and we also need to test for IRIX.
42763         Revamp code to use 'if' rather than '#if'.
42764         Avoid unnecessary comparison of cwd->desc to 0.
42765
42766         * lib/utimens.c (futimens): Robustify the previous patch, by checking
42767         for known valid error numbers rather than observed invalid ones.
42768
42769 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42770
42771         * modules/ullong_max: New file.
42772
42773         * modules/chdir-long, modules/openat: New files.
42774         * modules/save-cwd (Depends-on): Depend on chdir-long.
42775         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
42776
42777 2005-01-18  Jim Meyering  <jim@meyering.net>
42778
42779         Merge from coreutils.
42780         * m4/chdir-long.m4, m4/openat.m4: New files.
42781         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
42782         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
42783         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
42784         is sane and DOES follow symlinks.  Besides, testing 20 different
42785         systems found no broken chown implementations.
42786         Prompted by a change in rsync's copy of this macro.
42787         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
42788
42789         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
42790
42791         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
42792         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
42793         NULL-means-set-to-current-time semantics.
42794         Remove temporary file immediately, rather than waiting
42795         for configure's at-exit trap code to do it.
42796
42797 2005-01-18  Jim Meyering  <jim@meyering.net>
42798
42799         * lib/version-etc.c (version_etc_copyright): Update copyright date.
42800
42801         * lib/utimens.c (futimens): Account for the fact that futimes
42802         can also fail with errno == ENOSYS or errno == ENOENT.
42803         Patch from Dmitry V. Levin.
42804
42805         Change the name of the robust chdir function from chdir to chdir_long.
42806         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
42807         (restore_cwd): Use chdir_long, not chdir.
42808         * lib/chdir-long.c: Renamed from chdir.c.
42809         * lib/chdir-long.h: Renamed from chdir.h.
42810         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
42811         Hurd.
42812
42813 2005-01-18  Bruno Haible  <bruno@clisp.org>
42814
42815         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
42816         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
42817         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
42818         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
42819         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
42820         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
42821         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
42822         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
42823         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
42824         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
42825         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
42826         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
42827         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
42828         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
42829         Use an all-permissive copyright notice, recommended by RMS.
42830
42831 2005-01-18  Bob Proulx  <bob@proulx.com>
42832
42833         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
42834         simplify offsetof() macro construct to avoid compile failure with
42835         native HP-UX 11.0 ANSI C compiler.
42836
42837 2005-01-17  Bruno Haible  <bruno@clisp.org>
42838
42839         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
42840         redundant because stpncpy.m4 takes care of it.
42841
42842 2005-01-17  Bruno Haible  <bruno@clisp.org>
42843
42844         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
42845
42846 2005-01-17  Bruno Haible  <bruno@clisp.org>
42847
42848         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
42849         used.
42850
42851 2005-01-17  Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/fwriteerror.h (fwriteerror): Change specification to include
42854         fclose.
42855         * lib/fwriteerror.c: Include <stdbool.h>.
42856         (fwriteerror): At the end, close the file stream. Record whether
42857         stdout was already closed.
42858
42859 2005-01-17  Bruno Haible  <bruno@clisp.org>
42860
42861         * lib/execute.c (environ): Declare if needed.
42862         * lib/pipe.c (environ): Likewise.
42863         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
42864
42865 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42866
42867         * modules/argp: Depend on vsnprintf
42868
42869 2005-01-10  Jim Meyering  <jim@meyering.net>
42870
42871         * modules/closeout (Depends-on): Add atexit.
42872
42873 2005-01-06  Bruno Haible  <bruno@clisp.org>
42874
42875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
42876
42877 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
42878
42879         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
42880         definitions to be after all include files, to avoid collisions.
42881         Problem reported by Bob Proulx.
42882
42883 2005-01-04  Jim Meyering  <jim@meyering.net>
42884
42885         Changes imported from coreutils.
42886         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
42887         as the mkstemp template, use a temporary directory and an
42888         8.3-friendly template to avoid trouble on systems like DJGPP.
42889         Reported by Juan M. Guerrero via Stepan Kasal.
42890         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
42891         close. Remove the temporary directory right away, rather than waiting
42892         for configure's at-exit trap code to do it.
42893         Suggestion from Stepan Kasal.
42894
42895 2005-01-01  Simon Josefsson  <jas@extundo.com>
42896
42897         * gnulib-tool: Print #include directives when --import'ing.
42898
42899 2004-12-28  Simon Josefsson  <jas@extundo.com>
42900
42901         * tests/test-base64.c: Include required header files.  Remove
42902         unused variables.
42903
42904 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42905
42906         * modules/error (Depends-on): Remove gettext.
42907
42908 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42909
42910         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
42911         not needed.  This removes a dependency on the gettext module.
42912         [defined _LIBC]: Do not include <libintl.h>; not needed.
42913
42914 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42915
42916         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
42917         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
42918
42919 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42920
42921         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
42922         HAVE_DECL_STRTOLD.
42923
42924 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42925
42926         * modules/getdate (Depends-on): Remove alloca-opt.
42927
42928 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42929
42930         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
42931
42932 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         * lib/argp-parse.c: Include <stddef.h>.
42935         (alignof, alignto): New macros.
42936         (parser_init): Don't assume that void * is aligned sufficiently
42937         for struct option.
42938
42939         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
42940         need to extend the stack.
42941         (YYINITDEPTH): New macro, so that the initial stack isn't overly
42942         large.
42943
42944 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42945
42946         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
42947
42948 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42949
42950         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
42951         (2004-10-24) change.  Apparently this was a false alarm.
42952
42953         * modules/getdate: Depend on alloca-opt, not alloca.
42954
42955 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42956
42957         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
42958         Remove now-obsolete comment about AIX.
42959         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
42960         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
42961         (YYMAXDEPTH): New macro.
42962
42963 2004-12-18  Simon Josefsson  <jas@extundo.com>
42964
42965         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
42966
42967 2004-12-18  Bruno Haible  <bruno@clisp.org>
42968
42969         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
42970
42971 2004-12-18  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/fatal-signal.c (fatal_signals): Make non-const.
42974         (init_fatal_signals): New function.
42975         (uninstall_handlers, install_handlers): Ignore signals that were set to
42976         SIG_IGN.
42977         (at_fatal_signal): Call init_fatal_signals.
42978         (init_fatal_signal_set): Likewise. Ignore signals that were set to
42979         SIG_IGN.
42980         Reported by Paul Eggert.
42981
42982 2004-12-18  Bruno Haible  <bruno@clisp.org>
42983
42984         * doc/alloca.texi: New file.
42985         * doc/alloca-opt.texi: New file.
42986
42987 2004-12-17  Jim Meyering  <jim@meyering.net>
42988
42989         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
42990         Otherwise, install-sh could exit with improper exit status when
42991         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
42992
42993 2004-12-16  Simon Josefsson  <jas@extundo.com>
42994
42995         * tests/test-base64.c: Add license.
42996
42997 2004-12-15  Stepan Kasal  <address@hidden>
42998
42999         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
43000
43001 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43002
43003         * modules/getcwd (Files): Add m4/d-ino.m4.
43004         Suggested by Mark D. Baushke.
43005
43006 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
43007
43008         * lib/getdate.y (textint): New member "negative".
43009         (time_zone_hhmm): New function.
43010         Expect 14 shift-reduce conflicts, not 13.
43011         (o_colon_minutes): New rule.
43012         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
43013         (yylex): Set the "negative" member of signed numbers.
43014
43015 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
43016
43017         * doc/getdate.texi (Time of day items, Time zone items):
43018         Describe new formats +00:00, UTC+00:00.
43019
43020 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
43021
43022         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
43023         spurious "-l"s.  Problem reported by Stepan Kasal.
43024
43025 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
43026
43027         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
43028         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
43029
43030 2004-12-04  Simon Josefsson  <jas@extundo.com>
43031
43032         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
43033         Vandoorselaere <yoann@prelude-ids.org>.
43034
43035 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43036
43037         Changes imported from coreutils.
43038         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
43039         exist.
43040         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
43041
43042 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43043
43044         Changes imported from coreutils.
43045         * lib/hard-locale.c: Assume <locale.h> exists.
43046         Include "strdup.h".
43047         (GLIBC_VERSION): New macro.
43048         (hard_locale): Assume setlocale exists.
43049         Rewrite to avoid #ifdef.
43050         Use strdup rather than malloc + strcpy.
43051         * lib/human.c: Assume <locale.h> exists.
43052         (human_readable): Assume localeconv exists.
43053
43054 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43055
43056         * modules/hard-locale (Depends-on): Add strdup.
43057
43058 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43059
43060         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
43061         convert T2, not T.  (Imported from libc.)
43062
43063 2004-11-30  Simon Josefsson  <jas@extundo.com>
43064
43065         * modules/restrict (License): Change to LGPL.
43066
43067 2004-11-30  Simon Josefsson  <jas@extundo.com>
43068
43069         * m4/restrict.m4: Add copyright and copying conditions.
43070
43071 2004-11-30  Simon Josefsson  <jas@extundo.com>
43072
43073         * m4/base64.m4: New file.
43074
43075 2004-11-30  Simon Josefsson  <jas@extundo.com>
43076
43077         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
43078         base64.
43079
43080         * tests/test-base64.c: New file.
43081
43082         * modules/base64: New file.
43083
43084 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
43085
43086         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
43087         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
43088
43089         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
43090
43091 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
43092
43093         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
43094         (__getcwd.c): Don't restore errno; glibc doesn't.
43095         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
43096         first, falling back to our code only if its results look suspicious.
43097         Ensure that the resulting buffer is only as large as necessary.
43098
43099         * lib/readutmp.c: Include readutmp.h first.
43100         Include <errno.h>, since readutmp.h no longer does that.
43101         * lib/readutmp.h: Don't include <errno.h>,
43102         <sys/param.h>, <time.h>; not needed to establish interface.
43103         (errno): Remove decl.
43104         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
43105         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
43106         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
43107
43108 2004-11-28  Simon Josefsson  <jas@extundo.com>
43109
43110         * lib/base64.h, base64.c: New file.
43111
43112 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
43113
43114         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
43115
43116 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
43117
43118         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
43119         (Depends-on): Remove pathmax, same.  Add mempcpy.
43120         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
43121         (Makefile.am): Append getcwd.h to lib_SOURCES.
43122         (Include): Add getcwd.h.
43123         (Maintainer): Change from Jim Meyering to "all, glibc",
43124         since getdate now uses intended-for-glibc code.
43125         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
43126         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
43127
43128 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43129
43130         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
43131         HP's ANSI C compiler.
43132         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
43133         Declaring int functions causes warnings on some modern systems and
43134         shouldn't be needed to compile on ancient ones.
43135         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
43136         defined.
43137
43138         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
43139         with the following changes.
43140         (__set_errno): Parenthesize properly.
43141         Include <stdbool.h>.
43142         (MIN, MAX, MATCHING_INO): New macros.
43143         (__getcwd): Define with prototype, not K&R form.
43144         Use heuristics to allocate default buffer on stack if possible.
43145         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
43146         behavior, and to avoid the PATH_MAX limit when computing
43147         ../../../../...
43148         Use MATCHING_INO to compare inode number to file.
43149         Check for arithmetic overflow in size calculations.
43150         Fix bug in reallocation of dot array that caused getcwd to fail
43151         on directories nested deeper than 75.
43152         Be more careful about saving errno on error.
43153         Do not use realloc; use only free+malloc, as this is a bit
43154         more flexible and avoids a needless copy operation.
43155         Do not inspect st_dev and st_ino for symbolic links; POSIX
43156         doesn't specify the latter.
43157         Check for closedir errors.
43158         Avoid needless casts.
43159         Use "#ifdef weak_alias" around weak_alias, to be like other
43160         glibc code.
43161         The following changes to getcwd.c have effect only when used in
43162         gnulib; they have no effect inside glibc proper.
43163         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
43164         as alloca isn't used.
43165         (alloca, __alloca): Likewise.
43166         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
43167         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
43168         unconditionally, as gnulib assumes C89 or better.
43169         Do not include <sys/param.h>.
43170         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
43171         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
43172         better.
43173         (NULL) [!defined NULL]: Remove; we assume C89 or better.
43174         Include <dirent.h> in a way that is compatible with modern Autoconf.
43175         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
43176         New macros, if not already defined.
43177         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
43178         Use "_LIBC", not "defined _LIBC", for consistency.
43179         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
43180         a mempcpy module.
43181         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
43182         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
43183         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
43184         credit only to Jim Meyering and adjust the copyright dates.
43185         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
43186         <stdlib.h>, <unistd.h>, "pathmax.h".
43187         Instead, include "xgetcwd.h" (first) and "getcwd.h".
43188         (INITIAL_BUFFER_SIZE): Remove.
43189         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
43190
43191 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43192
43193         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
43194         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
43195         Use the _ONCE methods, for efficiency.
43196         Check for fcntl.h.  In test program, include <errno.h>
43197         and <fcntl.h> if available.  Remove old K&R cruft from
43198         test program.  Check for common errors in GNU/Linux,
43199         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
43200         don't do AC_LIBOBJ, as that's getcwd.m4's job.
43201         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
43202         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
43203         name accordingly.
43204         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
43205         accommodate new getcwd.c.
43206         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
43207         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
43208         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
43209         that's all we need now.
43210
43211 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43212
43213         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
43214         argp-parse.c depends on getopt internals, that means we should
43215         always use our getopt, to be on the safe side.
43216         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
43217         order not to spoil the result of an eventual previous invocation
43218         of gl_GETOPT_SUBSTITUTE.
43219
43220 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43221
43222         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
43223         redefinition warnings. To avoid them, include the defines
43224         in `#if !defined __need_getopt ... #endif'. The only place
43225         where __getopt_argv_const is used is in definitions
43226         of getopt_long and getopt_long_only below, which are as well
43227         protected by `#ifndef __need_getopt'.
43228         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
43229         __need_getopt after including <stdio.h> and <unistd.h> These
43230         headers might have defined it.
43231
43232 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
43233
43234         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
43235
43236 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
43237
43238         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
43239         (futimens): New function, which uses futimes if available.
43240         (futimens, utimens): Support timespec==NULL, with same semantics
43241         as utime and utimens.
43242         * lib/utimens.h (futimens): New decl.
43243
43244 2004-11-23  Jim Meyering  <jim@meyering.net>
43245
43246         * lib/getopt_.h: Remove trailing blanks.
43247
43248 2004-11-23  Jim Meyering  <jim@meyering.net>
43249
43250         * lib/__fpending.c: Add comment.
43251
43252 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
43253
43254         * modules/canonicalize (Depends-on): Add xreadlink.
43255         Problem reported by James Youngman.
43256
43257 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
43258
43259         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
43260         New macros.
43261         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
43262         optopt): Use them instead of invoking ## directly; otherwise, the
43263         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
43264
43265 2004-11-19  Bruno Haible  <bruno@clisp.org>
43266
43267         * lib/strtok_r.c: Move comments from here...
43268         * lib/strtok_r.h: ... to here.
43269
43270 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43271
43272         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
43273         implementations that mishandle size_t overflow.
43274
43275 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43276
43277         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
43278         might fail.  Problem reported by Yoann Vandoorselaere.
43279         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
43280         implementations that mishandle size_t overflow.
43281
43282 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43283
43284         * modules/canon-host (Depends-on): Add strdup.
43285
43286 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43287
43288         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
43289
43290 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43291
43292         * lib/canon-host.c: Include "strdup.h".
43293         (canon_host): Use getaddrinfo if available, so that IPv6 works.
43294         Use strdup instead of malloc/strcpy to duplicate strings.
43295
43296         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
43297         (human_space_before_unit): New constant.
43298         * lib/human.c (human_readable): Support it.
43299
43300         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
43301         (xgetcwd): Set errno correctly when failing.
43302         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
43303         the failure is actually due to a PATH_MAX problem.
43304
43305         Further getopt changes to make it more likely that glibc will
43306         buy the changes back.
43307         * lib/getopt.c (POSIXLY_CORRECT): New constant.
43308         (getopt): Use it, so to preserve glibc semantic
43309         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
43310         when compiling for libc.
43311         * lib/getopt_.h (__getopt_argv_const): Bring it back.
43312         (getopt_long, getopt_long_only): Use it.
43313
43314         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
43315         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
43316         (getopt): Argv is now char * const *, as per standard.
43317         (_getopt_internal_r, _getopt_internal): Argv is now char **,
43318         not char *__getopt_argv_const *.
43319         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
43320         _getopt_long_only_r): Likewise.
43321         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
43322         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
43323         _getopt_long_r, _getopt_long_only_r): Likewise.
43324         * lib/getopt_.h (__getopt_argv_const): Remove.
43325         (getopt): Argv is now char * const *, as per standard.
43326
43327         * lib/getdate.y (tORDINAL): New token.
43328         (day, relunit): Allow it for relative times.
43329         (relative_time_table): Use tORDINAL for ordinals.
43330
43331 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43332
43333         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
43334         Document that "second" isn't allowed as an ordinal number.
43335
43336 2004-11-16  Jim Meyering  <jim@meyering.net>
43337
43338         * modules/closeout (Depends-on): Add fpending.
43339
43340 2004-11-15  Jim Meyering  <jim@meyering.net>
43341
43342         * lib/closeout.c: Include "__fpending.h" once again.
43343         Include <stdbool.h>.
43344         (close_stdout): Don't fail just because stdout was closed initially,
43345         since some programs don't write to stdout in the normal course of
43346         operation (other than --version and --help), and we don't want this
43347         function to make e.g. `touch file >&-' fail.
43348         But do fail if it was closed and someone has tried to write to it.
43349         E.g., `printf foo >&-' must fail.
43350
43351 2004-11-13  Jim Meyering  <jim@meyering.net>
43352
43353         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
43354
43355 2004-11-12  Simon Josefsson  <jas@extundo.com>
43356
43357         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
43358         small doc fix is still pending.
43359
43360 2004-11-11  Simon Josefsson  <jas@extundo.com>
43361
43362         * modules/strtok_r: New file.
43363
43364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43365         strtok_r.
43366
43367 2004-11-11  Simon Josefsson  <jas@extundo.com>
43368
43369         * m4/strtok_r.m4: New file.
43370
43371         * m4/getopt.m4: Replace opterr.
43372
43373 2004-11-11  Simon Josefsson  <jas@extundo.com>
43374
43375         * lib/strtok_r.h, strtok_r.c: New file.
43376
43377 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43378
43379         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
43380         of replacing opterr, getopt, etc.  This should handle the
43381         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
43382
43383 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43384
43385         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
43386         we can stop lying to compilers about the constness of argv when we
43387         are compiled outside glibc.
43388         (getopt, getopt_long, getopt_long_only): Use it.
43389         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
43390         _getopt_internal, getopt): Likewise.
43391         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
43392         _getopt_long_only_r): Likewise.
43393         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
43394         _getopt_long_r, _getopt_long_only_r): Likewise.
43395
43396         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
43397         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
43398         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
43399         the other external symbols.
43400         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
43401         declaration, since the above renaming now works around collisions.
43402
43403 2004-11-11  Jim Meyering  <jim@meyering.net>
43404
43405         * lib/linebreak.c: Remove trailing blanks.
43406         * lib/alloca_.h: Likewise.
43407         * lib/acosl.c: Likewise.
43408         * lib/euidaccess.c: Likewise.
43409         * lib/allocsa.h: Likewise.
43410
43411 2004-11-10  Simon Josefsson  <jas@extundo.com>
43412
43413         * m4/getaddrinfo.m4: New file.
43414
43415 2004-11-10  Simon Josefsson  <jas@extundo.com>
43416
43417         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
43418
43419 2004-11-10  Simon Josefsson  <jas@extundo.com>
43420
43421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43422         getaddrinfo.
43423
43424         * modules/getaddrinfo: New file.
43425
43426 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43427
43428         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
43429
43430 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43431
43432         * lib/mktime.c (SHR): New macro, which is a portable
43433         substitute for >> that should work even on Crays.
43434         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
43435         Problem reported by Mark D. Baushke in
43436         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
43437         * lib/getdate.y (SHR): Likewise.
43438         (tm_diff): Use it.
43439         * lib/strftime.c (SHR): Likewise.
43440         (tm_diff): Use it.
43441         * lib/quotearg.c (struct quoting_options): Use unsigned int for
43442         quote_these_too, so that right shifts are well defined.  All uses
43443         changed.
43444
43445 2004-11-10  Jim Meyering  <jim@meyering.net>
43446
43447         Ensure that no close failure goes unreported.
43448         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
43449         return early when it seems there's nothing to flush.
43450         Don't include __fpending.h.
43451
43452 2004-11-10  Jim Meyering  <jim@meyering.net>
43453
43454         * modules/closeout (Depends-on): Remove fpending.
43455
43456 2004-11-10  Jim Meyering  <jim@meyering.net>
43457
43458         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
43459
43460 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43461
43462         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
43463         gl_FUNC_STRFTIME.
43464         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
43465         and AC_REQUIRE when possible, to avoid duplicate checks.
43466         Check for <wchar.h>.
43467
43468 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43469
43470         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
43471
43472 2004-11-09  Bruno Haible  <bruno@clisp.org>
43473
43474         * m4/sockpfaf.m4: New file.
43475
43476 2004-11-05  Bruno Haible  <bruno@clisp.org>
43477
43478         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
43479         Reported by Mark D. Baushke <mdb@cvshome.org>.
43480
43481 2004-11-04  Bruno Haible  <bruno@clisp.org>
43482
43483         2004-09-11  Bruno Haible  <bruno@clisp.org>
43484                 * allocsa.valgrind: New file.
43485         2004-02-06  Bruno Haible  <bruno@clisp.org>
43486                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
43487                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
43488                 Reported by Christopher Seip <chris.seip@hp.com>.
43489
43490 2004-11-04  Bruno Haible  <bruno@clisp.org>
43491
43492         * modules/allocsa (Files): Add lib/allocsa.valgrind.
43493         (Makefile.am): Distribute it.
43494
43495 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
43496
43497         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
43498         with errno == ERANGE if the buffer is too small.
43499         Problem reported by Mark D. Baushke.
43500
43501 2004-11-03  Albert Chin  <china@thewrittenword.com>
43502             Paul Eggert  <eggert@cs.ucla.edu>
43503
43504         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
43505         equivalent, substitute $ac_type for equivalent type rather than
43506         blindly using uint32_t *always* which won't work if uint32_t is not
43507         available.  Define _UINT32_T to work around typedef of uint32_t if
43508         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
43509         2.5.1.
43510
43511 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43512
43513         * m4/jm-macros.m4: Sync from coreutils.
43514         (gl_MACROS): Check for mbrlen, for pathchk.
43515         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
43516
43517 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43518
43519         * lib/xreadlink.c (MAXSIZE): New macro.
43520         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
43521         size does not exceed MAXSIZE.  Avoid cast.
43522         As suggested by Mark D. Baushke in
43523         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
43524         if readlink fails with buffer size just under MAXSIZE, try again
43525         with MAXSIZE.
43526
43527 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43528
43529         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
43530
43531 2004-11-02  Derek R. Price  <derek@ximbiot.com>
43532         and  Paul Eggert  <eggert@cs.ucla.edu>
43533
43534         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
43535         (get_date): Overparenthesize to avoid GCC warning.
43536
43537 2004-11-02  Bruno Haible  <bruno@clisp.org>
43538
43539         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
43540         returns void.
43541
43542 2004-11-02  Bruno Haible  <bruno@clisp.org>
43543
43544         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
43545         function returns void.
43546
43547 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43548
43549         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
43550         fflush_unlocked, flockfile, funlockfile, funlockfile,
43551         fputs_unlocked, putc_unlocked.
43552
43553 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43554
43555         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43556         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
43557         already declared.
43558
43559 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43560
43561         * modules/getdate (Files): Add doc/getdate.texi.
43562         (Depends-on): Add setenv, xalloc.
43563
43564 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43565
43566         * lib/getdate.y: Add support for TZ="foo" within a date string.
43567         Fix some bugs near time_t boundaries.  Reject dates with
43568         out-of-range components, e.g., "Sept 31".
43569         Include <stdlib.h>, "setenv.h", "xalloc.h".
43570         (ISDIGIT_LOCALE): Remove; unused.
43571         Note that the TZ and time functions used here are not reentrant.
43572         (mktime_ok, get_tz): New functions.
43573         (TZBUFSIZE): New constant.
43574         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
43575         This requires that we sometimes generate our own TZ="XXX..." setting.
43576
43577 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43578
43579         * doc/getdate.texi: New file, from coreutils with modifications for
43580         the new TZ parsing.
43581
43582 2004-10-27  Derek R. Price  <derek@ximbiot.com>
43583
43584         * lib/mktime.c (not_equal_tm): Remove redundant check.
43585
43586 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43587
43588         * modules/regex (lib_SOURCES): Add regex.c.
43589         Reported by James Youngman in
43590         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
43591
43592 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43593
43594         * lib/getdate.y: Use Bison 1.875 features, and some minor
43595         code cleanups.  This change does not affect semantics.
43596         Don't include <stdlib.h>; no longer needed.
43597         Don't include unlocked-io.h; only the "#if TEST" code uses
43598         stdio, and performance isn't crucial there.
43599         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
43600         Bison 1.875 features as described below.
43601         All uses of "PC." replaced by "pc->".
43602         (YYSTYPE): Add a forward declaration.
43603         (yylex, yyerror): Use full prototypes in forward decls.
43604         Use "%pure-parser" rather than obsolescent "%pure_parser".
43605         Use %parse-param and %lex-param instead of obsolescent
43606         YYPARSE_PARAM and YYLEX_PARAM.
43607         (meridian_table, month_and_day_table, time_units_table,
43608         relative_time_table, time_zone_table, military_table,
43609         lookup_zone, lookup_word, get_date):
43610         Use NULL instead of 0 where appropriate.
43611         (to_hour): Avoid abort (), to avoid a dependency on
43612         stdlib.h.
43613         (yyerror, yylex): Now accepts parser_control * arg.
43614         (main) [TEST]: Use '\0' rather than 0 for char.
43615
43616 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43617
43618         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
43619
43620 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43621
43622         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
43623         It's now the caller's responsibility to handle the case where
43624         !HAVE_GETPAGESIZE && !defined getpagesize.
43625
43626         * lib/mktime.c (leapyear): Arg is long int, not int.
43627
43628 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
43629
43630         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
43631
43632 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43633
43634         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
43635         missing.  Problem reported by James Youngman.
43636
43637 2004-10-16  Simon Josefsson  <jas@extundo.com>
43638
43639         * gnulib-tool: Fix comments.  Fix parse problem.
43640         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
43641
43642 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
43643
43644         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
43645         implementation of getopt_long.  Problem reported by Alexander Taler in:
43646         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
43647
43648 2004-10-15  Bruno Haible  <bruno@clisp.org>
43649
43650         * gnulib-tool: Untabify. Initialize supplied_libname.
43651         (func_usage): More homogenous output.
43652         (func_modules_transitive_closure, func_modules_to_filelist,
43653         func_emit_lib_Makefile_am): New functions.
43654         (func_import): New function, extracted from big case statement. Use
43655         func_get_license, func_modules_transitive_closure,
43656         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
43657         opt_lgpl. Don't use test -a, as it's not portable.
43658         (func_create_testdir): Use func_modules_transitive_closure,
43659         func_modules_to_filelist, func_emit_lib_Makefile_am.
43660
43661 2004-10-15  Bruno Haible  <bruno@clisp.org>
43662
43663         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
43664
43665 2004-10-15  Bruno Haible  <bruno@clisp.org>
43666
43667         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
43668         the portions belonging to each module.
43669         Suggested by Derek Robert Price <derek@ximbiot.com>.
43670
43671 2004-10-12  Simon Josefsson  <jas@extundo.com>
43672
43673         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43674         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
43675         to real functions.
43676
43677 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43678
43679         * modules/vsnprintf: New file.
43680
43681 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43682
43683         * m4/vsnprintf.m4: New file.
43684
43685 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43686
43687         * lib/vsnprintf.h: New file.
43688         * lib/vsnprintf.c: New file.
43689
43690 2004-10-11  Bruno Haible  <bruno@clisp.org>
43691
43692         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
43693         vsnprintf.
43694
43695 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43696
43697         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
43698
43699 2004-10-07  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
43702         fits into the provided buffer.
43703
43704 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43705
43706         * lib/diacrit.c, diacrit.h: Add GPL notice.
43707
43708         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
43709         notice.
43710         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
43711         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
43712         This avoids a potential constant-folding bug.
43713
43714 2004-10-05  Bruno Haible  <bruno@clisp.org>
43715
43716         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
43717         for the declaration of strsep.
43718
43719 2004-10-05  Bruno Haible  <bruno@clisp.org>
43720
43721         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
43722
43723 2004-10-04  Simon Josefsson  <jas@extundo.com>
43724
43725         * modules/memmem: New file.
43726         * tests/test-memmem.c: New file.
43727         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
43728
43729 2004-10-04  Simon Josefsson  <jas@extundo.com>
43730
43731         * m4/memmem.m4: New file.
43732
43733 2004-10-04  Simon Josefsson  <jas@extundo.com>
43734
43735         * lib/memmem.h: New file.
43736         * lib/memmem.c: New file, taken from glibc.
43737
43738 2004-10-04  Simon Josefsson  <jas@extundo.com>
43739
43740         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
43741         '#ifdef USE_UNLOCKED_IO'.
43742
43743 2004-10-04  Simon Josefsson  <jas@extundo.com>
43744
43745         * config/srclist.txt: Add memmem from glibc.
43746
43747 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43748
43749         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
43750
43751         * modules/argmatch, modules/argp, modules/closeout, modules/error,
43752         modules/exclude, modules/getdate, modules/getline,
43753         modules/getndelim2, modules/getpass, modules/getpass-gnu,
43754         modules/getusershell, modules/linebuffer, modules/md5,
43755         modules/mountlist, modules/posixtm, modules/readtokens,
43756         modules/readutmp, modules/regex, modules/sha1,
43757         modules/version-etc, modules/yesno:
43758         Remove dependency on unlocked-io.
43759
43760 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43761
43762         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
43763
43764         * m4/unlocked-io.m4: Add copyright notice.
43765         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
43766
43767 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43768
43769         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
43770         * lib/xmalloc.c (xmemdup): Likewise.
43771         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
43772         XFREE): Remove these long-obsolescent macros.
43773         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
43774         * lib/xstrdup.c: Remove.
43775
43776         * lib/regex.c (re_comp): Cast gettext return value to char *,
43777         Problem reported by Martin Neitzel via Mark D. Baushke.
43778
43779 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43780
43781         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
43782         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
43783         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
43784         regex.c, sha1.c, version-etc.c, yesno.c:
43785         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
43786         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
43787         the includer's responsibility.
43788
43789         Sync from coreutils.
43790
43791         * lib/modechange.c (mode_compile): Don't decrement a pointer that
43792         points to the start of a string, as the C Standard says the
43793         resulting behavior is undefined.
43794
43795         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
43796         simple -> simple_backups, numbered_existing ->
43797         numbered_existing_backups, numbered -> numbered_backups
43798         to avoid shadowing problems.  All uses changed.
43799         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
43800         * lib/backupfile.c (check_extension, numbered_backup):
43801         Rename locals to avoid shadowing 'basename'.
43802         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
43803         once.
43804
43805         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
43806         * lib/.cvsignore: Add getopt.h.
43807
43808 2004-10-04  Bruno Haible  <bruno@clisp.org>
43809
43810         * modules/README: New file.
43811         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
43812         not a module.
43813
43814 2004-10-02  Jim Meyering  <jim@meyering.net>
43815
43816         * lib/dirfd.h, getpagesize.h: Add copyright notice.
43817
43818 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43819
43820         * modules/strsep: New file.
43821
43822 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43823
43824         * m4/strsep.m4: New file.
43825
43826 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43827
43828         * lib/strsep.h: New file.
43829         * lib/strsep.c: New file.
43830
43831 2004-10-01  Simon Josefsson  <jas@extundo.com>
43832
43833         * lib/snprintf.c (snprintf): Handle size==0.
43834
43835 2004-10-01  Simon Josefsson  <jas@extundo.com>
43836             Bruno Haible  <bruno@clisp.org>
43837
43838         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
43839         (snprintf): Declare 'args'.
43840
43841 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
43842
43843         * lib/snprintf.c: Remove comments as to why each header is needed.
43844
43845 2004-10-01  Bruno Haible  <bruno@clisp.org>
43846
43847         * MODULES.html.sh: Add strsep.
43848
43849 2004-09-30  Simon Josefsson  <jas@extundo.com>
43850
43851         * modules/snprintf: New file.
43852
43853 2004-09-30  Simon Josefsson  <jas@extundo.com>
43854
43855         * m4/snprintf.m4: New file.
43856
43857 2004-09-30  Simon Josefsson  <jas@extundo.com>
43858
43859         * lib/snprintf.h, lib/snprintf.c: New files.
43860
43861 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43862
43863         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
43864         (hol_entry_help): Never translate an empty string.
43865         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
43866         * lib/argp.h (OPTION_NO_TRANS): New option.
43867
43868 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43869
43870         * modules/argp (Maintainer): Replace Simon Josefsson
43871         by Sergey Poznyakoff.
43872
43873 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43874
43875         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
43876         changes merged back into glibc.
43877
43878 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43879
43880         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
43881
43882 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
43883
43884         * lib/xvasprintf.c: Include xalloc.h.
43885         (xvasprintf): Use xalloc_die, not xmalloc_die.
43886
43887 2004-09-29  Bruno Haible  <bruno@clisp.org>
43888
43889         * modules/alloca-opt: New file, derived from modules/alloca.
43890         * modules/allocsa: Depend on alloca-opt instead of alloca.
43891         * modules/setenv: Likewise.
43892         * modules/vasnprintf: Likewise.
43893         * MODULES.html.sh: Add alloca-opt.
43894
43895 2004-09-28  Simon Josefsson  <jas@extundo.com>
43896
43897         * gnulib-tool: New parameter --lgpl, to asseert that modules are
43898         LGPL, and to replace license template from GPL to LGPL.
43899
43900 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43901
43902         * modules/dummy: Change license to LGPL.
43903
43904 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43905
43906         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
43907
43908 2004-09-24  Simon Josefsson  <jas@extundo.com>
43909
43910         * modules/minmax (License): Change from GPL to LGPL.
43911
43912 2004-09-23  Simon Josefsson  <jas@extundo.com>
43913
43914         * gnulib-tool (--import): Typo.
43915
43916 2004-09-23  Simon Josefsson  <jas@extundo.com>
43917
43918         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
43919
43920 2004-09-22  Bruno Haible  <bruno@clisp.org>
43921
43922         * modules/*: Add 'License' field.
43923         * gnulib-tool: Accept --extract-license option.
43924         (func_get_license): New function.
43925
43926 2004-09-21  Bruno Haible  <bruno@clisp.org>
43927
43928         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43929         Reported by Simon Josefsson.
43930
43931 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43932
43933         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
43934         gl_AC_TYPE_LONG_LONG.
43935
43936 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43937
43938         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
43939
43940 2004-09-18  Simon Josefsson  <jas@extundo.com>
43941         and  Paul Eggert  <eggert@cs.ucla.edu>
43942
43943         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
43944         calls with autoreconf.  Define GL_LIB.
43945
43946 2004-09-14  Karl Berry  <karl@gnu.org>
43947
43948         * config/srclist.txt: unsync setenv.c, sigh.
43949
43950 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43951
43952         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
43953         Problem reported by Bruno Haible in:
43954         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
43955
43956 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43957
43958         * config/srclist.txt: Comment out argp-pvh.c.
43959
43960 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
43961
43962         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
43963         in case some system header has #define'd it.  Problem reported by
43964         Soeren D. Schulze in
43965         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
43966
43967 2004-09-09  Karl Berry  <karl@gnu.org>
43968
43969         * regex.[ch]: delete from the root.  These were supposed to be
43970                 synced with emacs cvs, but this has not happened for about
43971                 a year, and anyway nothing else uses emacs regex.[ch].
43972                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
43973                 lib/regex[.ch] is untouched.
43974
43975 2004-09-09  Bruno Haible  <bruno@clisp.org>
43976
43977         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
43978
43979 2004-09-09  Bruno Haible  <bruno@clisp.org>
43980
43981         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
43982         modifications.
43983         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
43984
43985 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43986
43987         * modules/xvasprintf: New file.
43988         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
43989
43990 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43991
43992         * lib/xvasprintf.h: New file.
43993         * lib/xvasprintf.c: New file.
43994         * lib/xasprintf.c: New file.
43995
43996 2004-09-08  Bruno Haible  <bruno@clisp.org>
43997
43998         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
43999
44000 2004-09-08  Bruno Haible  <bruno@clisp.org>
44001
44002         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
44003         length is > INT_MAX.
44004         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
44005         more.
44006
44007 2004-09-08  Bruno Haible  <bruno@clisp.org>
44008
44009         * lib/stdint_.h: New file, taken from GNU clisp.
44010
44011 2004-09-08  Bruno Haible  <bruno@clisp.org>
44012             Oskar Liljeblad  <oskar@osk.mine.nu>
44013
44014         * modules/stdint: New file.
44015         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
44016
44017 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44018
44019         Import from coreutils.
44020         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
44021         strings on unbounded length.  alloca's performance benefits aren't
44022         that important here.
44023         (V_STRDUP): Remove.
44024         (parse_with_separator): New function, with most of the internals
44025         of the old parse_user_spec.  Allow user to omit both user and group,
44026         for compatibility with FreeBSD.
44027         Clone only the user name, not the entire spec.
44028         Do not set *uid, *gid unless entirely successful.
44029         Avoid memory leak in some failing cases.
44030         Fix regression for USER.GROUP reported by Dmitry V. Levin in
44031         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
44032         (parse_user_spec): Rewrite to use parse_with_separator.
44033
44034 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * modules/userspec: Don't depend on alloca.
44037
44038 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44039
44040         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
44041
44042 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44043
44044         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
44045         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
44046         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
44047
44048 2004-08-16  Simon Josefsson  <jas@extundo.com>
44049
44050         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
44051         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
44052         Add --dry-run for --import.
44053         Let user provided command line parameters override configure.ac
44054         settings.
44055
44056 2004-08-12  Simon Josefsson  <jas@extundo.com>
44057
44058         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
44059         as discussed with Paul Eggert in threads rooted at
44060         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
44061         and
44062         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
44063         Before, the test was empty, and relied on ELIDE_CODE in source
44064         code.)
44065         (gl_PREREQ_GETOPT): New macro.
44066         (gl_GETOPT): Use them.
44067
44068 2004-08-12  Simon Josefsson  <jas@extundo.com>
44069
44070         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
44071         * lib/getopt_.h: Renamed from getopt.h.
44072
44073 2004-08-12  Simon Josefsson  <jas@extundo.com>
44074
44075         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
44076         Change default library name from libfoo to libgnu.
44077         Now, if you have a configure.ac that says:
44078                 gl_SOURCE_BASE(gl)
44079                 gl_M4_BASE(gl/m4)
44080                 gl_MODULES(error getopt etcetera)
44081                 gl_INIT
44082         you can import all you need by running:
44083                 ../gnulib/gnulib-tool --import
44084
44085         * modules/getopt (Files): Rename getopt.h to getopt_.h.
44086         (Makefile.am): Rewrite, use logic from argz.
44087         (Include): Use <getopt.h> instead of "getopt.h".
44088
44089 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44090
44091         * modules/argp (Files): Add m4/unlocked-io.m4.
44092         (Depends-on): Add extensions.
44093
44094 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44095
44096         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
44097         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
44098         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
44099         Check for program_invocation_name, program_invocation_short_name,
44100         flockfile, funlockfile, features.h, _getopt_long_only_r.
44101
44102 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44103
44104         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
44105         its complicated substitute.
44106         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
44107         and program_invocation_name.
44108         (__argp_basename) [!_LIBC]: Remove; the only use was
44109         replaced by its body.
44110         (__argp_short_program_name): Change condition from
44111         !defined __argp_short_program_name to
44112         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
44113         to match argp-namefrob.h.
44114         (__argp_failure): Don't assume strerror_r returns char *.
44115         * lib/argp-parse.c (N_): Define unconditionally.
44116         (argp_default_options): Fill out initializers with 0 to avoid
44117         gcc warnings.
44118
44119 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44120
44121         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
44122         getopt1.c.
44123
44124 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         Merge from coreutils.
44127
44128         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
44129
44130         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
44131         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
44132
44133 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44134
44135         Merge from coreutils.
44136
44137         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
44138         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
44139         for Reliant Unix 5.43.
44140
44141         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
44142         (union fooround): Use uintmax_t, not long int.
44143         The rest is a merge from libc:
44144         [defined _LIBC]: Include <shlib-compat.h>.
44145         (_obstack) [defined _LIBC]: Remove after 2.3.4.
44146
44147         * lib/settime.c (settime): Recode to avoid warning with
44148         Sun Forte C 6U2.
44149
44150         * lib/strverscmp.c: Convert to UTF-8.
44151
44152 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44153
44154         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
44155         m4/uintmax_t.m4.
44156
44157 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44158
44159         * modules/xalloc-die: New file.
44160         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
44161
44162         * modules/md5 (Files): Add m4/uint32_t.m4.
44163         * modules/sha1: Renamed from modules/sha.
44164         (Files):
44165         Rename lib/sha.h to lib/sha1.h.
44166         Rename lib/sha.c to lib/sha1.c.
44167         Rename m4/sha.m4 to m4/sha1.m4.
44168         (lib_SOURCES): Likewise.
44169         (configure.ac): Rename gl_SHA to gl_SHA1.
44170         (Include): sha.h -> sha1.h.
44171
44172 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44173
44174         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
44175         * m4/sha1.m4: Renamed from sha.m4.
44176         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
44177
44178 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44179
44180         * lib/obstack.h (obstack_empty_p):
44181         Don't assume that chunk->contents is suitably aligned.
44182         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
44183         Likewise. Problem reported by Benno in
44184         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
44185
44186         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
44187         readable.  This could be improved further but it'd take some work.
44188
44189 2004-08-08  Simon Josefsson  <jas@extundo.com>
44190
44191         * modules/xgethostname (Depends-on): Remove exit and error (not
44192         used).
44193
44194         * modules/getpass-gnu: Add getpass.h.
44195         (Depends-on): Add stdbool.
44196         * modules/getpass: Add getpass.h.
44197
44198 2004-08-08  Simon Josefsson  <jas@extundo.com>
44199
44200         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
44201         Check getpass declaration.
44202
44203 2004-08-08  Simon Josefsson  <jas@extundo.com>
44204
44205         * lib/xgethostname.c: Don't include error.h (not used).
44206
44207         * lib/getpass.h: Add.
44208         * lib/getpass.c: Include getpass.h first.
44209
44210 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
44211
44212         * lib/xalloc-die.c: New file.
44213         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
44214         All uses removed.
44215         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
44216         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
44217         xalloc-die.c.
44218         (_, N_, xalloc_die): Move to xalloc-die.c.
44219         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
44220         so that we needn't mess with xalloc_msg_memory_exhausted.
44221
44222         * lib/sha1.h: Renamed from sha.h.
44223         (SHA1_H): Renamed from _SHA_H.
44224         (sha1_ctx): Renamed from sha_ctx.
44225         (sha1_init_ctx): Renamed from sha_init_ctx.
44226         (sha1_process_block): Renamed from sha_process_block.
44227         (sha1_process_bytes): Renamed from sha_process_bytes.
44228         (sha1_finish_ctx): Renamed from sha_finish_ctx.
44229         (sha1_read_ctx): Renamed from sha_read_ctx.
44230         (sha1_stream): Renamed from sha_stream.
44231         (sha1_buffer): Renamed from sha_buffer.
44232         * lib/sha1.c: Likewise; renamed from sha.c.
44233         Do not include <sys/types.h>.
44234         Include <stddef.h> rather than <stdlib.h>.
44235
44236 2004-08-08  Bruno Haible  <bruno@clisp.org>
44237
44238         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
44239         FILESYSTEM_PREFIX_LEN.
44240         * lib/progreloc.c: Likewise.
44241         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
44242
44243 2004-08-06  Simon Josefsson  <jas@extundo.com>
44244
44245         * modules/progname (Depends-on): Don't depend on stdbool.
44246
44247 2004-08-06  Simon Josefsson  <jas@extundo.com>
44248
44249         * modules/getsubopt: New file.
44250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44251         getsubopt.
44252
44253 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44254
44255         More merge from coreutils.
44256
44257         * m4/utimens.m4, m4/utimecmp.m4: New files.
44258         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
44259         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
44260         prereq.m4, sha.m4: Import changes from coreutils.
44261
44262 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44263
44264         More merge from coreutils.
44265         * modules/raise, modules/readtokens0, modules/utimens:
44266         * modules/utimecmp, module/xnanosleep: New files.
44267         * modules/strftime: Add lib/strftime.h.
44268         Change include from <time.h> to "strftime.h".
44269         * modules/yesno: Add lib/yesno.h.
44270         * modules/backupfile: Remove lib/addext.c.
44271         * modules/euidaccess: Add stat-macros.h.
44272         * modules/canonicalize, modules/euidaccess,
44273         modules/filemode, modules/lchown, modules/makepath,
44274         modules/rmdir, modules/stat: Likewise.
44275
44276 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44277
44278         Merge from tar.
44279         * lib/argp-help.c (make_hol, hol_append): Don't assume that
44280         SIZE_MAX is a valid preprocessor constant.
44281         (__argp_basename): Change from "#ifndef _LIBC"
44282         to "#ifndef __argp_short_program_name", so that
44283         we don't compile these functions for tar.
44284
44285         More merges from coreutils.
44286         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
44287         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
44288         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
44289         * lib/addext.c: Remove; no longer needed.
44290         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
44291         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
44292         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
44293         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
44294         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
44295         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
44296         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
44297         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
44298         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
44299         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
44300         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
44301         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
44302         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
44303         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
44304         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
44305         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
44306         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
44307         Import changes from coreutils.
44308
44309 2004-08-05  Simon Josefsson  <jas@extundo.com>
44310
44311         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
44312
44313 2004-08-05  Simon Josefsson  <jas@extundo.com>
44314
44315         * m4/getsubopt.m4: New file.
44316
44317 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44318
44319         Merge from coreutils.
44320
44321         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
44322         * m4/getcwd-path-max.m4: New files.
44323
44324         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
44325         FILESYSTEM_PREFIX_LEN ->
44326         FILE_SYSTEM_PREFIX_LEN.
44327         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
44328         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
44329         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
44330         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
44331
44332         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
44333         prerequisite modules now handle the DOS stuff.
44334         Don't check for unistd.h.
44335
44336 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44337
44338         Merge from coreutils.
44339
44340         * lib/.gdb-history: Remove; this doesn't belong here.
44341
44342         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
44343         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
44344         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
44345         * lib/getcwd.c: New files.
44346
44347         * lib/dirname.h: Include <stdbool.h>.
44348         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
44349         for consistency with POSIX terminology.  All uses changed.
44350         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
44351         (strip_trailing_slashes): Use bool for booleans.
44352         * lib/stripslash.c (strip_trailing_slashes): Likewise.
44353
44354         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
44355         sometimes returns a positive errno value even when it succeeds.
44356         (print_errno_message) [!LIBC]: Fall back on strerror if
44357         __strerror_r fails.
44358
44359         * lib/path-concat.c (mempcpy): Don't define if a system header defines
44360         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
44361         (longest_relative_suffix): New function.
44362         (path_concat): Use it.  Assume first argument is not NULL.
44363         Port to DOS.  Omit redundant separators.
44364         Report an error instead of returning NULL.
44365         Use mempcpy instead of memcpy.
44366         (xpath_concat): Remove: not declared or used.
44367
44368         * lib/same.h: Include <stdbool.h>
44369         (same_name): Return bool, not int.
44370         * lib/same.c (same_name): Likewise.
44371         (errno): Don't declare; we assume C89 or better now.
44372
44373         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
44374         if not already defined.
44375
44376         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
44377         * lib/dup-safer.c (errno): Likewise.
44378
44379 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44380
44381         Merge from coreutils.
44382         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
44383         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
44384         * modules/path-concat: Don't depend on strdup.
44385
44386 2004-08-03  Simon Josefsson  <jas@extundo.com>
44387
44388         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
44389         * lib/progname.h: Don't include stdbool.h.
44390
44391 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44392
44393         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
44394         * MODULES.html.sh (func_all_modules): Remove fatal.
44395
44396 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44397
44398         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
44399
44400 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44401
44402         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
44403         working.
44404
44405 2004-08-02  Simon Josefsson  <jas@extundo.com>
44406
44407         * lib/getsubopt.h: New file, with comments from Bruno Haible.
44408         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
44409         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
44410
44411 2004-08-01  Simon Josefsson  <jas@extundo.com>
44412
44413         * lib/xgetdomainname.c: Include stdlib.h, for free().
44414
44415 2004-07-19  Bruno Haible  <bruno@clisp.org>
44416
44417         * MODULES.html.sh (func_all_modules): Add dummy.
44418
44419 2004-07-16  Simon Josefsson  <jas@extundo.com>
44420
44421         * modules/dummy: New file.
44422
44423 2004-07-16  Simon Josefsson  <jas@extundo.com>
44424
44425         * lib/dummy.c: New file.
44426
44427 2004-07-16  Bruno Haible  <bruno@clisp.org>
44428
44429         * lib/backupfile.h: Add extern "C" for C++.
44430         * lib/closeout.h: Likewise.
44431         * lib/copy-file.h: Likewise.
44432         * lib/findprog.h: Likewise.
44433         * lib/full-write.h: Likewise.
44434         * lib/pathname.h: Likewise.
44435         * lib/progname.h: Likewise.
44436         * lib/stpcpy.h: Likewise.
44437         * lib/stpncpy.h: Likewise.
44438         * lib/strcase.h: Likewise.
44439         * lib/strstr.h: Likewise.
44440         * lib/xalloc.h: Likewise.
44441
44442         * lib/mbswidth.h: Add extern "C" for C++.
44443         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
44444
44445 2004-07-13  Robert Millan  <robertmh@gnu.org>
44446
44447         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
44448
44449 2004-07-09  Simon Josefsson  <jas@extundo.com>
44450
44451         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
44452         failed without this.)
44453
44454 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44455
44456         * modules/chown (Files): Add lib/fchown-stub.c, since
44457         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
44458
44459 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44460
44461         * lib/fchown-stub.c: New file.
44462
44463 2004-06-24  Jim Meyering  <jim@meyering.net>
44464
44465         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
44466
44467 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44468
44469         * modules/argz: Omit "#include".
44470
44471         * MODULES.html.sh (func_all_modules): Add calloc, to match
44472         2004-06-01 addition of calloc module.
44473
44474 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44475
44476         * m4/argz.m4: New file, which is autoupdated from libtool.
44477
44478 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44479
44480         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
44481         libtool.
44482
44483 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44484
44485         * config/srclist-update: Don't insist on "USA." before the
44486         close-comment, as libtool omits the period and puts the */ on a
44487         separate line.
44488         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
44489         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
44490
44491 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
44492
44493         * modules/argz: New file.
44494         * MODULES.html.sh (func_all_modules): Add argz.
44495
44496 2004-06-12  Jim Meyering  <jim@meyering.net>
44497         and  Paul Eggert  <eggert@cs.ucla.edu>
44498
44499         * modules/hash (Files): Add lib/xalloc.h.
44500         * modules/pipe (Depends-on): Add wait-process.
44501         * modules/stat (Depends-on): Add xalloc.
44502         * modules/userspec (Files): Add lib/userspec.h.
44503         * modules/xstrto
44504
44505         Upgrade from gettext-0.13.
44506         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
44507         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
44508         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
44509
44510 2004-06-10  Jim Meyering  <jim@meyering.net>
44511
44512         * lib/calloc.c: New file.
44513
44514 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44515
44516         * lib/getdate.y (yylex): Allow space between sign and number.
44517         Problem reported by Dan Jacobson.
44518
44519 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         Merge from coreutils CVS.
44522
44523         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
44524         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
44525         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
44526         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
44527         xstrtol.m4: Fix copyright date and/or serial number.
44528
44529         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
44530         See if we need an fchown replacement.
44531         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
44532         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
44533         and use the replacement function if we detect either defect.
44534
44535         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
44536         gl_UTIMECMP.
44537
44538 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44539         and  Jim Meyering  <jim@meyering.net>
44540
44541         Merge from coreutils CVS.
44542
44543         * lib/stat-macros.h: New file, with contents from file-type.h
44544         and coreutils' system.h.
44545         * lib/file-type.c: Include "stat-macros.h".
44546         * lib/file-type.h (file_type): Move all macro definitions to new file,
44547         stat-macros.h.
44548
44549         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
44550         Wrap old code with this conditional.
44551         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
44552         function that does not dereference symlinks.
44553         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
44554
44555         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
44556         dependency problems.
44557         (xreadlink): Accept new arg SIZE, for efficiency.
44558         All decls and uses changed.
44559         * lib/xreadlink.h: Include <stddef.h>, for size_t.
44560
44561         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
44562         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
44563
44564         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
44565         sysexits.h.
44566
44567 2004-06-01  Jim Meyering  <jim@meyering.net>
44568
44569         * m4/calloc.m4: New file.
44570
44571 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
44572
44573         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
44574         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
44575         Also, fix a typo in a diagnostic.
44576
44577 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44578
44579         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
44580         or AC_FUNC_REALLOC.
44581
44582 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44583
44584         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
44585         macros to be defined.
44586         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
44587         the allocator returns NULL because the requested size is zero.
44588
44589 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44590
44591         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
44592         var.  Add comment explaining why libc still defines it.  This
44593         merges the following patch from glibc:
44594         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
44595
44596 2004-05-20  Andreas Schwab  <schwab@suse.de>
44597
44598         * m4/free.m4: Replace free if it not known to work, not the other
44599         way round.
44600
44601 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44602
44603         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
44604         present in glibc since revision 1.1 of this file.
44605         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
44606         obstack_alignment_mask, obstack_alloc, obstack_base,
44607         obstack_blank, obstack_blank_fast, obstack_chunk_size,
44608         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
44609         obstack_grow0, obstack_init, obstack_int_grow,
44610         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
44611         obstack_next_free, obstack_object_size, obstack_ptr_grow,
44612         obstack_ptr_grow_fast, obstack_room): Remove declarations of
44613         nonexistent functions.
44614
44615 2004-05-18  Karl Berry  <karl@gnu.org>
44616
44617         * config/srclist.txt: break link for vasnprintf.c.
44618
44619 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44620
44621         Port obstack to the AS/400, where pointers are 16 bytes wide and
44622         you cannot cast an integer to a valid pointer.  This patch is
44623         currently waiting to be integrated into glibc; see
44624         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
44625
44626         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
44627         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
44628         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
44629         (struct obstack): temp member is now a union of a pointer and
44630         an integer, instead of an integer.  All integer uses changed.
44631         This does not affect the physical layout of struct obstack,
44632         except on hosts (like the AS/400) where the size or alignment of
44633         void * is greater than that of ptrdiff_t.
44634         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
44635         __STDC__)]: Store temporary in pointer member of union, not
44636         integer member.
44637         * lib/obstack.c: Include <stddef.h>, for offsetof.
44638         (struct fooalign): Remove; it doesn't need a name.
44639         (union fooround): Change double to long double, and add void *.
44640         (DEFAULT_ALIGNMENT): Use offsetof to compute.
44641         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
44642         not a macro.  Hence the values are always int; so remove all
44643         casts-to-int in uses.
44644
44645 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44646
44647         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
44648         we can get this patch merged into glibc.
44649
44650 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44651             Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         * m4/argp: Depend on alloca.
44654
44655 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44656             Paul Eggert  <eggert@cs.ucla.edu>
44657
44658         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
44659         freecoding.
44660
44661 2004-05-17  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
44664         precision that consists of a '.' followed by an empty digit string.
44665         Patch by Tor Lillqvist <tml@iki.fi>.
44666
44667 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44668
44669         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
44670         for backward compatibility with older code.  We need our own
44671         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
44672         it under some other name, and our alloca.h will define it.
44673
44674 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44675             Derek Price  <derek@ximbiot.com>
44676
44677         * lib/alloca.c: Include <alloca.h>, to get our interface.
44678         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
44679         include <alloca.h> first.  Use C89 prototype for alloca; this
44680         requires including <stddef.h> for size_t.  Use extern "C" if C++.
44681         Use #elif for simplicity, since we can assume C89 now.
44682         Don't try to source the system alloca.h since it will not be found
44683         and to prevent recursively including its replacement.
44684         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
44685         * lib/regex.c: Likewise.
44686
44687 2004-05-16  Derek Price  <derek@ximbiot.com>
44688             Paul Eggert  <eggert@cs.ucla.edu>
44689
44690         getline cleanup.  This changes the getndelim2 API: both order of
44691         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
44692         no delimiter).
44693
44694         * lib/getline.c: Don't include stddef.h or stdio.h, since our
44695         interface does that.
44696         (getline): Always use getdelim, so that we don't have two
44697         copies of this code.
44698         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
44699         if available.
44700         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
44701         (GETNDELIM2_MAXIMUM): New macro.
44702         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
44703         instead of the old practice of delim2==0.  All callers changed.
44704         Return -1 on overflow, instead of returning junk.
44705         Do not set *linesize unless allocation succeeds.
44706         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
44707         that we include sys/types.h.
44708         * lib/getnline.h: Likewise.
44709         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
44710         (getndelim2): Reorder arguments.
44711         * lib/getnline.c (getnline, getndelim):
44712         Don't discard the NMAX argument.
44713         (getnline): Invoke getndelim, to avoid code duplication.
44714         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
44715         of (size_t) -1 by callers of the getnline family.
44716
44717 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44718
44719         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
44720         Check for gettimeofday.
44721         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
44722         Check for settimeofday, stime.
44723
44724 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44725
44726         * lib/nanosleep.c (suspended): Change its type from int to
44727         sig_atomic_t volatile.
44728         (first_call): Make it private to rpl_nanosleep, and have it
44729         be zero initially as that's a bit faster.
44730         (my_usleep): Round up fractional times instead of truncating them,
44731         as this is the usual meaning for 'sleep'.
44732
44733         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
44734         doesn't work.
44735         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
44736         (ENOSYS): Define if not defined.
44737         (settime): Fall back on stime if it exists and settimeofday fails.
44738         But don't bother with fallbacks if a method fails with errno == EPERM.
44739
44740 2004-05-11  Jim Meyering  <jim@meyering.net>
44741
44742         Prior to this change, the save_cwd caller required read access to the
44743         current directory on most systems (ones with the fchdir function).
44744
44745         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
44746         fails, try write-only, and finally, resort to using xgetcwd.
44747
44748 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
44749
44750         * lib/obstack.c, obstack.h: Import changes from libc.
44751
44752 2004-04-28  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
44755         also implicitly appends .exe to executables.
44756         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
44757         accepts Windows pathnames.
44758         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44759         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44760         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44761         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44762         Reported by Derek Robert Price <derek@ximbiot.com>.
44763
44764 2004-04-21  Karl Berry  <karl@gnu.org>
44765
44766         * config/srclist.txt (localcharset.c): break sync.
44767
44768 2004-04-20  Paul Eggert  <eggert@twinsun.com>
44769
44770         * m4/host-os.m4: Add a copyright notice.
44771
44772 2004-04-20  Jim Meyering  <jim@meyering.net>
44773
44774         Change UTILS_ to gl_ in AC_DEFINE'd names.
44775         Change utils_- and jm_-prefixed variables, too.
44776         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
44777         UTILS_FUNC_MKDIR_TRAILING_SLASH.
44778         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
44779
44780         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
44781         Don't emit trailing blanks.
44782         Also rename jm_-prefixed variables to have gl_ prefix.
44783
44784         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
44785         Also rename jm_-prefixed variables to have gl_ prefix.
44786
44787         * m4/jm-macros.m4: Reflect the renamings.
44788         * m4/prereq.m4: Likewise.
44789
44790 2004-04-20  Jim Meyering  <jim@meyering.net>
44791
44792         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
44793         memory.
44794
44795 2004-04-20  Jim Meyering  <jim@meyering.net>
44796             Bruno Haible  <bruno@clisp.org>
44797
44798         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
44799         memory when realloc fails.
44800
44801 2004-04-19  Jim Meyering  <jim@meyering.net>
44802
44803         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
44804         now that readutmp.c may call `free (0)'.
44805
44806 2004-04-19  Bruno Haible  <bruno@clisp.org>
44807
44808         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
44809         * m4/inttypes_h.m4: Likewise.
44810         * m4/stdint_h.m4: Likewise.
44811         * m4/intmax_t.m4: Likewise.
44812         * m4/uintmax_t.m4: Likewise.
44813
44814 2004-04-18  Jim Meyering  <jim@meyering.net>
44815
44816         * m4/prereq.m4: Don't forbid jm_ prefix.
44817
44818         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
44819         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
44820         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
44821         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
44822         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
44823         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
44824         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
44825         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
44826         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
44827         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
44828         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
44829         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
44830         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
44831         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
44832         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
44833         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
44834         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
44835         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
44836         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
44837
44838 2004-04-18  Jim Meyering  <jim@meyering.net>
44839
44840         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
44841         failure, don't leak memory and do call END_UTMP_ENT.
44842
44843 2004-04-16  Jim Meyering  <jim@meyering.net>
44844
44845         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
44846         coreutils' stat program.
44847         (gl_PREREQ): Don't require jm_PREREQ_STAT.
44848
44849 2004-04-11  Paul Eggert  <eggert@twinsun.com>
44850
44851         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
44852         C89.
44853         (CHAR_BIT): Remove, since we assume C89.
44854         Include <stdint.h> if available, as per current Autoconf CVS advice.
44855
44856 2004-03-31  Jim Meyering  <jim@meyering.net>
44857
44858         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
44859         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
44860         * m4/xalloc.m4: Likewise.
44861
44862 2004-03-30  Paul Eggert  <eggert@twinsun.com>
44863
44864         Merge from coreutils.
44865
44866         * m4/inttostr.m4: New file.
44867         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
44868         Require AM_STDBOOL_H and gl_TIMESPEC instead.
44869         Require gl_CLOCK_TIME.
44870         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
44871
44872 2004-03-30  Paul Eggert  <eggert@twinsun.com>
44873
44874         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
44875         not bool, to be more consistent with Unix conventions.
44876         Suggested by Bruno Haible.
44877
44878         Merge from coreutils.
44879
44880         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
44881         * lib/umaxtostr.c: New files.
44882
44883         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
44884         the usual <time.h> dance.
44885         (get_date): Change signature to support fractional time stamps.
44886         All callers changed.
44887         * lib/getdate.y: Include "getdate.h" first, as we can now
44888         assume C89 and don't need to worry about 'const'.
44889         Similarly, include "unlocked-io.h" near start, not in middle.
44890         Include <limits.h>.
44891         (textint.value): Use long int rather than int.
44892         (textint.digits): Use size_t rather than int.
44893         (BILLION, LOG10_BILLION): New constants.
44894         (parser_control): New member rel_ns.  Members day_ordinal,
44895         time_zone, month, day, hour, minutes, rel_year, rel_month,
44896         rel_day, rel_hour, rel_minutes, rel_seconds
44897         are now long int, not int.  Member seconds is now struct timespec,
44898         not int.  New member timespec_seen.  Members dates_seen, days_seen,
44899         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
44900         not int.
44901         (%union.intval): Now long int, not int.
44902         New member timespec.
44903         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
44904         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
44905         (spec): Now is a timespec or an item list.
44906         (timespec, items): New nonterminals.
44907         (time, rel, relunit, number, get_date):
44908         Add support for fractional seconds.
44909         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
44910         (gmtime, localtime, mktime): Remove decls; not needed with C89.
44911         (to_hour): First arg is now long int, not int.
44912         (to_year): Returns long int, not int.
44913         Don't treat year -70 like 70.
44914         (tm_diff): Returns long int, not int.
44915         (lookup_word): Use bool instead of int when appropriate.
44916         (yylex): Use size_t for count, not int.
44917         Detect overflow when parsing large integer constants.
44918         Add support for fractions.
44919         (get_date): Make pointers 'const' if possible.
44920         Use more-portable code to detect integer overflow.
44921         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
44922         Don't use ctime; it's not reliable if the year has >4 digits.
44923
44924         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
44925         This is for compatibility with BSD.
44926
44927         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
44928         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
44929         From coreutils' system.h.
44930
44931         * lib/userspec.c: Don't include "posixver.h".
44932         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
44933         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
44934         compatible extension.  Simplify code by removing a boolean int
44935         that was always nonzero if a string was nonnull.
44936
44937 2004-03-30  Jim Meyering  <jim@meyering.net>
44938
44939         Merge from coreutils.
44940
44941         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
44942         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
44943         on some systems one must include <grp.h> before it.
44944         Reported by Christian Krackowizer.
44945
44946 2004-03-30  Jim Meyering  <jim@meyering.net>
44947
44948         Merge from coreutils.
44949
44950         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
44951
44952         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
44953         an empty input stream.
44954
44955         * lib/readtokens.c: Include <stdbool.h>.
44956         (readtoken): Use `size_t' rather than int/long.
44957         All callers adjusted.
44958         Use `bool' rather than `int' where appropriate.
44959         Use memset rather than an explicit loop.
44960         Use x2nrealloc rather than xrealloc.
44961         Allow the use of `\0' as a delimiter.
44962         (readtokens): Likewise.
44963         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
44964
44965 2004-03-30  Jim Meyering  <jim@meyering.net>
44966
44967         * m4/realloc.m4: Remove file, since now it does no more than
44968         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
44969         the `configure.ac' section of module/realloc.
44970         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
44971
44972 2004-03-30  Bruno Haible  <bruno@clisp.org>
44973
44974         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
44975         nonnull.
44976
44977 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44978
44979         Merge changes to getloadavg.c from coreutils and Emacs.
44980
44981         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
44982         Define to an expression, not to the empty string.
44983         Include cloexec.h and xalloc.h.
44984         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
44985         Use set_cloexec_flag rather than rolling our own.
44986         * lib/cloexec.c, lib/cloexec.h: New files.
44987
44988 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44989
44990         * m4/cloexec.m4: New file.
44991
44992 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44993
44994         * lib/getopt.h: Sync with libc CVS.
44995
44996 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44997             Bruno Haible  <bruno@clisp.org>
44998
44999         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
45000         mbswidth.
45001
45002 2004-03-18  Paul Eggert  <eggert@twinsun.com>
45003             Bruno Haible  <bruno@clisp.org>
45004
45005         * lib/mbswidth.h: Include <wchar.h> only if
45006         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
45007         <wchar.h>.
45008         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
45009
45010 2004-03-09  Paul Eggert  <eggert@twinsun.com>
45011
45012         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
45013         Sync with libc CVS.
45014         * lib/getopt_int.h: New file, also synced from libc.
45015
45016 2004-03-09  Paul Eggert  <eggert@twinsun.com>
45017
45018         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
45019         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
45020         Bring back getopt.c, getopt.h, getopt1.c.
45021
45022 2004-03-07  Paul Eggert  <eggert@twinsun.com>
45023
45024         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
45025         All uses changed.  Check for sa_sigaction member; this fixes
45026         a bug first reported by Jason Andrade in
45027         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45028
45029 2004-03-07  Paul Eggert  <eggert@twinsun.com>
45030
45031         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
45032         '#if' expressions.  Unlike the code it replaces, it does not
45033         depend on (defined _SC_PAGESIZE).  However, it does depend on
45034         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
45035         first reported by Jason Andrade in
45036         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45037
45038 2004-02-25  Simon Josefsson  <jas@extundo.com>
45039
45040         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
45041
45042 2004-02-25  Simon Josefsson  <jas@extundo.com>
45043
45044         * lib/strdup.h: New file.
45045         * lib/strdup.c: Include it.
45046         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
45047         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
45048
45049 2004-02-23  Karl Berry  <karl@gnu.org>
45050
45051         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
45052         (from fencepost.gnu.org:/gd/gnuorg).
45053
45054 2004-02-23  Karl Berry  <karl@gnu.org>
45055
45056         * config/srclistvars.sh (GNUORG) [karl]: redefine.
45057         * config/srclist.txt: add maintain/standards documents.
45058
45059 2004-02-18  Bruno Haible  <bruno@clisp.org>
45060
45061         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
45062         Reported by Derek Robert Price <derek@ximbiot.com>.
45063
45064 2004-02-16  Karl Berry  <karl@gnu.org>
45065
45066         * config/mkinstalldirs, install-sh: update from automake.
45067
45068 2004-02-06  Karl Berry  <karl@gnu.org>
45069
45070         * m4/po.m4: update from gettext 0.14.1.
45071
45072 2004-02-06  Karl Berry  <karl@gnu.org>
45073
45074         * lib/config.charset: update from gettext 0.14.1.
45075
45076 2004-02-05  Paul Eggert  <eggert@twinsun.com>
45077
45078         Add comments and code, prompted by suggestions from Bruno Haible
45079         for sh-quote.
45080         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
45081         describing the enum quoting_style values.
45082         * lib/quotearg.c (quotearg_alloc): New function.
45083         (quotearg_buffer_restyled): Treat lone { and } as special.
45084         Treat = as special.  Work around bug with older shells
45085         that "see" a '\' that is really the 2nd byte of a multibyte char.
45086         Quote empty string with shell_quoting_style.
45087
45088 2004-02-03  Bruno Haible  <bruno@clisp.org>
45089
45090         * m4/pipe.m4: New file, from GNU gettext.
45091
45092 2004-02-03  Bruno Haible  <bruno@clisp.org>
45093
45094         * lib/pipe.h: New file, from GNU gettext.
45095         * lib/pipe.c: New file, from GNU gettext.
45096
45097 2004-01-27  Bruno Haible  <bruno@clisp.org>
45098
45099         * m4/execute.m4: New file, from GNU gettext.
45100
45101 2004-01-27  Bruno Haible  <bruno@clisp.org>
45102
45103         * lib/execute.h: New file, from GNU gettext.
45104         * lib/execute.c: New file, from GNU gettext.
45105         * lib/w32spawn.h: New file, from GNU gettext.
45106
45107 2004-01-24  Paul Eggert  <eggert@twinsun.com>
45108
45109         Merge from diffutils.
45110
45111         * lib/file-type.c (file_type): Add typed memory objects.
45112         * lib/file-type.h (S_TYPEISTMO): New macro.
45113
45114         * lib/c-stack.h (c_stack_action): Remove argv argument.
45115         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
45116         (die): Don't calculate message unless segv_action returns.
45117         (get_stack_location, min_address_from_argv, max_address_from_argv,
45118         volatile stack_base, volatile_stack_size): Remove.
45119         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
45120         that every segmentation violation is a stack overflow.  (Ouch!)
45121         See Debian bug 136249 (still outstanding) for more info about why
45122         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
45123
45124 2004-01-24  Paul Eggert  <eggert@twinsun.com>
45125
45126         Exit-status fix from coreutils.
45127
45128         Use exit_failure consistently in place of EXIT_FAILURE,
45129         so that program exit statuses are consistent on failure.
45130
45131         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
45132         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
45133         * lib/argmatch.h: Comment fix to match the above.
45134         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
45135         Now a macro referring to exit_failure, instead of a separate
45136         variable.  Include "exitfail.h" to get it.
45137         * lib/xstrtol.h: Include "exitfail.h".
45138         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
45139
45140         * lib/long-options.c (parse_long_options): Use prototype
45141         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
45142         for clarity.
45143
45144 2004-01-21  Jim Meyering  <jim@meyering.net>
45145
45146         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
45147         so as not to conflict with a different-sized __mktime_internal
45148         function in GNU libc.
45149         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
45150         Problem building statically-linked `ls' reported by Michael Brunnbauer.
45151
45152 2004-01-20  Karl Berry  <karl@gnu.org>
45153
45154         * config/config.guess: update from config.
45155
45156         * config/srclistvars.sh: GNUWWWLICENSES for karl.
45157
45158 2004-01-20  Bruno Haible  <bruno@clisp.org>
45159
45160         Safer stack allocation.
45161         * lib/setenv.c: Include allocsa.h.
45162         (alloca): Remove fallback definition.
45163         (freea): Remove macro.
45164         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
45165         instead of freea.
45166
45167 2004-01-20  Bruno Haible  <bruno@clisp.org>
45168
45169         * m4/eealloc.m4: New file, from GNU gettext.
45170
45171 2004-01-20  Bruno Haible  <bruno@clisp.org>
45172
45173         * m4/allocsa.m4: New file, from GNU gettext.
45174
45175 2004-01-20  Bruno Haible  <bruno@clisp.org>
45176
45177         * lib/xallocsa.h: New file, from GNU gettext.
45178         * lib/xallocsa.c: New file, from GNU gettext.
45179
45180 2004-01-20  Bruno Haible  <bruno@clisp.org>
45181
45182         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
45183
45184 2004-01-20  Bruno Haible  <bruno@clisp.org>
45185
45186         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
45187         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
45188         specially.
45189
45190 2004-01-20  Bruno Haible  <bruno@clisp.org>
45191
45192         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
45193         patch.
45194
45195 2004-01-20  Bruno Haible  <bruno@clisp.org>
45196
45197         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
45198
45199 2004-01-20  Bruno Haible  <bruno@clisp.org>
45200
45201         * lib/eealloc.h: New file.
45202
45203 2004-01-20  Bruno Haible  <bruno@clisp.org>
45204
45205         * lib/binary-io.h: Avoid warnings on Cygwin.
45206
45207 2004-01-20  Bruno Haible  <bruno@clisp.org>
45208
45209         * lib/allocsa.h: New file, from GNU gettext.
45210         * lib/allocsa.c: New file, from GNU gettext.
45211
45212 2004-01-18  Karl Berry  <karl@gnu.org>
45213
45214         * doc/gpl.texi, doc/lgpl.texi: new files.
45215
45216 2004-01-18  Karl Berry  <karl@gnu.org>
45217
45218         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
45219         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
45220
45221 2004-01-15  Paul Eggert  <eggert@twinsun.com>
45222
45223         Merge from coreutils.
45224
45225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
45226         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
45227         (gl_DEFAULT_POSIX2_VERSION): Move
45228         the documentation from 'configure' into 'config.hin',
45229         so that 'configure --help' isn't burdened by it and
45230         we don't have to worry about its formatting there.
45231         Reword the documentation so that it's more succinct
45232         and can be run together into a single paragraph.
45233         * m4/same.m4 (gl_SAME): Check for pathconf.
45234
45235 2004-01-15  Paul Eggert  <eggert@twinsun.com>
45236
45237         Merge from coreutils.
45238
45239         * lib/posixver.c: Include posixver.h.
45240
45241         * lib/same.c: Include <stdbool.h>, <limits.h>.
45242         (_POSIX_NAME_MAX): Define if not defined.
45243         (MIN): New macro.
45244         (same_name): If file names are silently truncated, report
45245         that the file names are the same if they are the same after
45246         the silent truncation.
45247
45248         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
45249         conversion function.
45250         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
45251         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
45252         longer needed.
45253
45254 2004-01-15  Jim Meyering  <jim@meyering.net>
45255
45256         Merge from coreutils.
45257
45258         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
45259         if no library is required.
45260         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
45261         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
45262         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
45263         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
45264         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
45265         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
45266         value, $ac_cv_search_crypt, if it's "none required".
45267         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
45268         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
45269         not gl_FUNC_GETLOADAVG.
45270         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
45271         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
45272
45273 2004-01-15  Jim Meyering  <jim@meyering.net>
45274
45275         Merge from coreutils.
45276
45277         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
45278         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
45279         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
45280
45281         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
45282         optional configure-time default.
45283
45284         * lib/version-etc.c (version_etc_copyright): Update copyright date.
45285
45286         * lib/xreadlink.c (xreadlink): Correct outdated comment.
45287
45288 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
45289
45290         Merge from coreutils.
45291
45292         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
45293         value, $ac_cv_search_nanosleep, if it's "none required".
45294
45295 2004-01-14  Paul Eggert  <eggert@twinsun.com>
45296
45297         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
45298         with like-named macro in fnmatch.c.
45299         (EXT): Use an internal constant instead.
45300
45301         Merge fnmatch patches from glibc.
45302         * lib/fnmatch.c (mbsinit): Remove define.
45303         Add libc_hidden_ver (__fnmatch, fnmatch).
45304         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
45305         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
45306
45307 2004-01-14  Karl Berry  <karl@gnu.org>
45308
45309         * config/install-sh: update from automake.
45310
45311 2004-01-13  Karl Berry  <karl@gnu.org>
45312
45313         * config/install-sh: update from automake.
45314
45315 2004-01-09  Karl Berry  <karl@gnu.org>
45316
45317         * config/install-sh: update from automake.
45318
45319 2004-01-05  Karl Berry  <karl@gnu.org>
45320
45321         * config/config.{sub,guess}: update from config.
45322
45323 2003-12-31  Karl Berry  <karl@gnu.org>
45324
45325         * config/depcomp: update from automake.
45326
45327 2003-12-14  Karl Berry  <karl@gnu.org>
45328
45329         * lib/config.charset: update from gettext-runtime.
45330
45331 2003-12-03  Paul Eggert  <eggert@twinsun.com>
45332
45333         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
45334         Bug reported by Alfred M. Szmidt.
45335
45336 2003-12-03  Bruno Haible  <bruno@clisp.org>
45337
45338         * m4/gettext.m4: Upgrade from gettext-0.13.
45339         * m4/po.m4: Upgrade from gettext-0.13.
45340         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
45341         * m4/intmax.m4: New file, from gettext-0.13.
45342         * m4/printf-posix.m4: New file, from gettext-0.13.
45343
45344 2003-11-29  Karl Berry  <karl@gnu.org>
45345
45346         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
45347
45348 2003-11-25  Paul Eggert  <eggert@twinsun.com>
45349             Bruno Haible  <bruno@clisp.org>
45350
45351         * lib/printf-parse.h: Don't include sys/types.h.
45352         (ARG_NONE): New macro.
45353         (char_directive): Change type of *arg_index fields to size_t.
45354         * lib/printf-parse.c: Don't include sys/types.h.
45355         (SSIZE_MAX): Remove macro.
45356         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
45357         Remove unnecessary overflow check.
45358         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
45359         fields.
45360
45361 2003-11-25  Bruno Haible  <bruno@clisp.org>
45362
45363         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
45364
45365 2003-11-25  Bruno Haible  <bruno@clisp.org>
45366
45367         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
45368         gt_TYPE_SSIZE_T.
45369
45370 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45371
45372         * modules/alloca: Remove dependency on xalloc.
45373
45374 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45375
45376         * lib/alloca.c: Remove dependency on xalloc module.
45377         (xalloc_die): Remove.
45378         (memory_full) [!defined emacs]: New macro.
45379         [!defined emacs]: Don't include xalloc.h.
45380         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
45381         address arithmetic overflows.  Change datatypes a bit to avoid
45382         unnecessary casts.
45383
45384 2003-11-22  Jim Meyering  <jim@meyering.net>
45385
45386         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
45387         s/size/size_t/.
45388
45389 2003-11-21  Karl Berry  <karl@gnu.org>
45390
45391         * config/config.{sub,guess}: update from config.
45392
45393 2003-11-18  Karl Berry  <karl@gnu.org>
45394
45395         * config/config.{sub,guess}: update from config.
45396
45397         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
45398
45399 2003-11-17  Paul Eggert  <eggert@twinsun.com>
45400
45401         * README: Mention that S+T cannot overflow if S is the size of
45402         an existing object and T is sufficiently small.
45403
45404 2003-11-17  Jim Meyering  <jim@meyering.net>
45405
45406         On systems without utime and without a utimes function capable of
45407         dealing with a NULL struct utimbuf* argument, this utime replacement
45408         could -- in unusual circumstances -- leak a file descriptor.
45409         * lib/utime.c: Include <unistd.h> and <errno.h>.
45410         (utime_null): Be sure to close `fd' and to preserve errno.
45411         Reported by Geoff Collyer via Arnold Robbins.
45412
45413 2003-11-17  Bruno Haible  <bruno@clisp.org>
45414
45415         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
45416         (Depends-on): Add xsize.
45417
45418 2003-11-17  Bruno Haible  <bruno@clisp.org>
45419
45420         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
45421
45422 2003-11-17  Bruno Haible  <bruno@clisp.org>
45423
45424         * lib/vasnprintf.c (alloca): Remove fallback definition.
45425         (freea): Remove definition.
45426         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
45427         Reported by Paul Eggert.
45428
45429 2003-11-16  Paul Eggert  <eggert@twinsun.com>
45430             Bruno Haible  <bruno@clisp.org>
45431
45432         Protect against address arithmetic overflow.
45433         * lib/printf-args.h: Include stddef.h.
45434         (arguments): Change type of field 'count' to size_t.
45435         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
45436         'unsigned int' where appropriate.
45437         * lib/printf-parse.h: Include sys/types.h.
45438         (char_directive): Change type of *arg_index fields to ssize_t.
45439         (char_directives): Change type of fields 'count', max_*_length to
45440         size_t.
45441         * lib/printf-parse.c: Include sys/types.h and xsize.h.
45442         (SSIZE_MAX): Define fallback value.
45443         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
45444         instead of 'int' where appropriate. Check a_allocated, d_allocated
45445         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
45446         * lib/vasnprintf.c: Include xsize.h.
45447         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
45448         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
45449         overflow. Avoid wraparound when converting a width or precision from
45450         decimal to binary.
45451
45452 2003-11-16  Bruno Haible  <bruno@clisp.org>
45453
45454         Update from GNU gettext.
45455         * lib/printf-parse.c: Generalize to it can be compiled for wide
45456         strings.
45457         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
45458         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
45459         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
45460         SNPRINTF): New macros.
45461         Don't include <alloca.h> if the file is used inside libintl.
45462         (local_wcslen): New function, for Solaris 2.5.1.
45463         (VASNPRINTF): Use it instead of wcslen.
45464
45465 2003-11-16  Bruno Haible  <bruno@clisp.org>
45466
45467         * lib/xsize.h (xmax): New function.
45468         (xsum, xsum3, xsum4): Declare as "pure" functions.
45469
45470 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45471
45472         * modules/xalloc (Files): Undo latest change, since xalloc.h
45473         no longer needs SIZE_MAX or PTRDIFF_MAX.
45474
45475 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45476
45477         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
45478         gl_PTRDIFF_MAX.
45479
45480 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45481
45482         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
45483         "return", to pacify some unknown compiler.  Problem reported
45484         by Joerg Schilling.
45485
45486 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45487
45488         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
45489         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
45490         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
45491         heuristic is just as accurate as far as we know, and it removes a
45492         dependency on size_max.m4 and ptrdiff_max.m4.
45493
45494 2003-11-11  Bruno Haible  <bruno@clisp.org>
45495
45496         * modules/xsize (Files): Add m4/size_max.m4.
45497         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
45498
45499 2003-11-11  Bruno Haible  <bruno@clisp.org>
45500
45501         * m4/size_max.m4: New file.
45502         * m4/ptrdiff_max.m4: New file.
45503         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
45504         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
45505         (gl_XALLOC): Invoke it.
45506
45507 2003-11-11  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
45510         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
45511         defined.
45512
45513 2003-11-10  Paul Eggert  <eggert@twinsun.com>
45514
45515         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
45516         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
45517         rejected some allocations of exactly SIZE_MAX - 2 bytes.
45518         From Bruno Haible.
45519         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
45520         not (size_t) -1, since it's defined here.
45521
45522 2003-11-09  Karl Berry  <karl@gnu.org>
45523
45524         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
45525
45526 2003-11-06  Paul Eggert  <eggert@twinsun.com>
45527
45528         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
45529         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
45530         Reject sizes of exactly SIZE_MAX bytes.
45531         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
45532         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
45533
45534 2003-11-05  Bruno Haible  <bruno@clisp.org>
45535
45536         * lib/xsize.h: Include limits.h, to avoid a possible collision with
45537         SIZE_MAX defined in <limits.h> on Solaris.
45538
45539 2003-11-04  Jim Meyering  <jim@meyering.net>
45540
45541         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
45542         variable names, rather than @VAR@.
45543         * modules/poll: Likewise.
45544
45545 2003-11-04  Bruno Haible  <bruno@clisp.org>
45546
45547         * modules/xsize: New file.
45548         * modules/linebreak: Depend on xsize.
45549         * MODULES.html.sh (func_all_modules): Add xsize.
45550
45551 2003-11-04  Bruno Haible  <bruno@clisp.org>
45552
45553         * m4/xsize.m4: New file.
45554
45555 2003-11-04  Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/xsize.h: New file.
45558         * lib/linebreak.c: Include xsize.h.
45559         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
45560         argument for overflow.
45561         Suggested by Paul Eggert.
45562
45563 2003-11-03  Karl Berry  <karl@gnu.org>
45564
45565         * config/config.{guess,sub}: update from config.
45566
45567 2003-11-03  Jim Meyering  <jim@meyering.net>
45568
45569         * modules/userspec (lib_SOURCES): Add userspec.h.
45570         (Include): Add "userspec.h".
45571         Improve description.
45572
45573 2003-11-03  Jim Meyering  <jim@meyering.net>
45574
45575         * lib/userspec.c: Include "userspec.h".
45576         * lib/userspec.h: New file.
45577
45578 2003-11-03  Bruno Haible  <bruno@clisp.org>
45579
45580         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
45581
45582 2003-11-03  Bruno Haible  <bruno@clisp.org>
45583
45584         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
45585         available, to avoid (extremely rare) race condition.
45586         Suggested by Paul Eggert.
45587
45588 2003-11-02  Karl Berry  <karl@gnu.org>
45589
45590         * config/srclist.txt (vasprintf.c): sync broken, sigh.
45591
45592 2003-10-31  Paul Eggert  <eggert@twinsun.com>
45593
45594         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
45595         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
45596         (read_filesystem_list): Set and use me_type_malloced.
45597         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
45598         whatever the type happens to be), for brevity and consistency.
45599         Check for size calculation overflow on Alphas running OSF/1.
45600
45601 2003-10-31  Jim Meyering  <jim@meyering.net>
45602
45603         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
45604
45605         * lib/linebuffer.c: Include <string.h> for declaration of memset.
45606
45607 2003-10-30  Paul Eggert  <eggert@twinsun.com>
45608             Bruno Haible  <bruno@clisp.org>
45609
45610         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
45611         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
45612
45613 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45614
45615         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
45616         netbsd*-gnu*.  Suggested by Robert Millan.
45617
45618 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45619
45620         * modules/group-member: Depend on stdbool.
45621
45622 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45623
45624         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
45625
45626 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45627
45628         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
45629         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
45630         after the 'gnu' in these cases.  This fixes some bugs in the
45631         previous change, and is based on suggestions by Robert Millan.
45632
45633 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45634
45635         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
45636         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
45637         no longer needed.
45638         * lib/quotearg.c (quotearg_n_options): Use it.
45639         * lib/group-member.c: Include <stdbool.h>.
45640         (free_group_info): Arg is now const *; don't free arg.
45641         (get_group_info): Now returns bool and accepts struct group_info *,
45642         rather than returning a malloc'ed struct group_info *.
45643         All uses changed.  Check for overflow in internal size calculation.
45644
45645         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
45646         rather than xmalloc/xrealloc.
45647         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
45648         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
45649         conformance bug: the old code used a pointer after freeing the
45650         storage that it addressed.
45651         * lib/hash.c (hash_initialize): Simplify the code by using
45652         xalloc_oversized rather than doing it by hand.
45653         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
45654         the buffer preserved.  Use free and xmalloc instead.
45655         * lib/quotearg.c (quotearg_n_options): Likewise.
45656         Use a simpler test for size overflow.  Don't use xalloc_oversized
45657         because unsigned int might be wider than size_t (!); this suggests
45658         that we should switch from unsigned int to size_t for slot numbers.
45659
45660 2003-10-28  Paul Eggert  <eggert@twinsun.com>
45661
45662         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
45663         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
45664         NetBSD kernels.  Requested by Richard Stallman.
45665
45666 2003-10-27  Paul Eggert  <eggert@twinsun.com>
45667
45668         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
45669         to allocate the returned structure.  Do not allocate a subarray,
45670         as x2nrealloc will do that.
45671         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
45672         instead of xnrealloc.
45673         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
45674
45675 2003-10-27  Bruno Haible  <bruno@clisp.org>
45676
45677         * lib/stdbool_.h: Better support for BeOS.
45678
45679 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45680
45681         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
45682         now uses inline.
45683
45684 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45685
45686         * lib/xalloc.h (xalloc_oversized): New static inline function, for
45687         callers that want to do their own size-overflow checking.  Include
45688         <stdbool.h>, since xalloc_oversized returns bool.
45689         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
45690         to use xalloc_oversized.
45691
45692         Add two functions x2realloc, x2nrealloc, for programs that grow
45693         arrays dynamically by doubling their sizes.
45694         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
45695         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
45696         New functions.
45697
45698         Port to C99 semantics for 'inline' of external functions.
45699         Bug reported by Bruno Haible.
45700         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
45701         with the old contents of xnmalloc.
45702         (xnmalloc, xmalloc): Use it.
45703         (xnrealloc_inline): New static inline function,
45704         with the old contents of xnrealloc.
45705         (xnrealloc, xrealloc): Use it.
45706
45707         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
45708         that.
45709
45710 2003-10-26  Karl Berry  <karl@gnu.org>
45711
45712         * config/srclist.txt (COPYING.DOC): no longer available from
45713         /gd/gnuorg; don't know where the ultimate source is.
45714
45715 2003-10-25  Paul Eggert  <eggert@twinsun.com>
45716
45717         Fix several address-calculation bugs in the hash modules,
45718         plus some minor code cleanup.
45719
45720         * lib/hash.h: Include <stdbool.h>, for bool.
45721         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
45722         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
45723         hash_get_n_entries, hash_get_max_bucket_length,
45724         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
45725         hash_rehash): Use size_t rather than unsigned.
45726         * lib/hash.c (struct hash_table, hash_get_n_buckets,
45727         hash_get_n_buckets_used, hash_get_n_entries,
45728         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
45729         hash_get_entries, hash_do_for_each, hash_string, is_prime,
45730         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
45731         Likewise.
45732         (SIZE_MAX): Define if not defined.
45733         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
45734         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
45735         hash_print):
45736         Use const * when possible.
45737         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
45738         (check_tuning): Fix bug: if tuning parameters were very close to
45739         0 or 1, rounding errors could have caused subscript violations.
45740         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
45741         (hash_initialize): Add 'fail:' label
45742         to free table and return NULL, and use it to simplify code.
45743         Use calloc rather than clearing the storage ourself.
45744         (hash_initialize, hash_rehash): Check for arithmetic overflow in
45745         buffer size calculations.
45746         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
45747         Include <stddef.h>, for size_t.
45748         * lib/hash-pjw.c (hash_pjw): Likewise.
45749         Switch to method described by Bruno Haible.
45750         Include <limits.h>, for CHAR_BIT.
45751         (SIZE_BITS): New macro.
45752
45753 2003-10-23  Paul Eggert  <eggert@twinsun.com>
45754
45755         * m4/getline.m4 (AM_FUNC_GETLINE):
45756         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
45757         hosts.  Problem reported by Derek Robert Price in
45758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
45759         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
45760         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
45761
45762 2003-10-21  Paul Eggert  <eggert@twinsun.com>
45763
45764         * lib/getndelim2.c (getndelim2): When size calculation overflows,
45765         ceiling the allocation at NMAX bytes rather than silently
45766         discarding input bytes before NMAX is reached.  This makes
45767         a difference only if NMAX exceeds SIZE_MAX / 2.
45768
45769         * lib/obstack.c: Merge from glibc.
45770         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
45771         Add libc_hidden_def (_obstack_newchunk).
45772         (_obstack_free) [! defined _LIBC]: Remove.
45773         [defined _LIBC]: Make a strong alias from obstack_free, rather than
45774         a clone of the function body.
45775         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
45776         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
45777
45778         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
45779         glibc.
45780         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
45781         arg to memcpy.
45782
45783         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
45784         (obstack_ptr_grow_fast, obstack_int_grow_fast):
45785         Don't use lvalue casts, as GCC plans to remove support for them
45786         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
45787         was also present in the non-GCC version, indicating that this
45788         code had always been buggy and had never been widely used.
45789         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
45790         Use the fast variant of each macro, rather than copying the
45791         definiens of the fast variant; that way, we'll be more likely to
45792         catch future bugs in the fast variants.
45793
45794 2003-10-20  Bruno Haible  <bruno@clisp.org>
45795
45796         * modules/wait-process: New file.
45797         * MODULES.html.sh (func_all_modules): Add wait-process.
45798
45799 2003-10-20  Bruno Haible  <bruno@clisp.org>
45800
45801         * m4/wait-process.m4: New file.
45802
45803 2003-10-20  Bruno Haible  <bruno@clisp.org>
45804
45805         * lib/wait-process.h: New file, from GNU gettext.
45806         * lib/wait-process.c: New file, from GNU gettext.
45807
45808 2003-10-19  Jim Meyering  <jim@meyering.net>
45809
45810         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
45811         HPUX 10.20.
45812
45813 2003-10-18  Karl Berry  <karl@gnu.org>
45814
45815         * config/config.guess: update from config.
45816
45817 2003-10-16  Paul Eggert  <eggert@twinsun.com>
45818
45819         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
45820         (getgroups): First arg is int, not size_t.
45821         Don't let 'free' mangle errno.
45822
45823 2003-10-16  Paul Eggert  <eggert@twinsun.com>
45824
45825         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
45826
45827 2003-10-16  Karl Berry  <karl@gnu.org>
45828
45829         * config/config.{guess,sub}: update from config.
45830
45831 2003-10-16  Jim Meyering  <jim@meyering.net>
45832
45833         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
45834         memcpy.
45835
45836 2003-10-15  Paul Eggert  <eggert@twinsun.com>
45837
45838         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
45839         (SIZE_MAX): Remove.
45840         (new_exclude, add_exclude_file): Initial size no longer needs to
45841         be a power of 2.
45842         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
45843         our own address arithmetic overflow checking.
45844
45845         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
45846         (fnmatch): Do not alloca more than 2000 wide characters;
45847         instead, use malloc for large buffers.
45848         Check for address arithmetic overflow, and return -1
45849         with errno set to ENOMEM in that case.
45850         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
45851         (NEW_PATTERN): Do not alloca more than 8000 bytes;
45852         instead, return -1.  Check for address arithmetic overflow.
45853
45854 2003-10-14  Paul Eggert  <eggert@twinsun.com>
45855
45856         Handle invalid suffixes and overflow independently, so that
45857         callers can treat them independently as needed.  Fix some bugs in
45858         suffix handling, e.g., "100k@" was not diagnosed as an invalid
45859         suffix for a human-readable blocksize.  The major caller-visible
45860         change is the addition of a new
45861         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
45862         that both overflow and suffix chars were found.
45863
45864         * lib/human.c (humblock): Don't check separately for invalid suffix
45865         char; that is xstrtoumax's job (now that its bug is fixed).
45866         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
45867         INTMAX_MAX]: New macros.
45868         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
45869         TYPE_MAXIMUM): New macros.
45870         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
45871         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
45872         if overflow occurs, as it's what __strtol does and it's more useful
45873         in practice.
45874         (__xstrtol): If __strtol reports some error other than ERANGE,
45875         reflect it to the caller as LONGINT_INVALID.  If it reports
45876         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
45877         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
45878         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
45879         value.
45880         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
45881         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
45882         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
45883         [defined UINTMAX_MAX]: New macros.
45884
45885 2003-10-14  Bruno Haible  <bruno@clisp.org>
45886
45887         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
45888
45889 2003-10-14  Bruno Haible  <bruno@clisp.org>
45890
45891         * m4/sig_atomic_t: New file, from GNU gettext.
45892         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
45893
45894 2003-10-14  Bruno Haible  <bruno@clisp.org>
45895
45896         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
45897         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
45898         Also use volatile where needed.
45899
45900 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45901
45902         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
45903         Change maintainer from Bruno Haible to 'all'.
45904
45905 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45906
45907         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
45908
45909 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45910
45911         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
45912         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
45913         and define in terms of the other primitives.
45914         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
45915         (SIZE_MAX): Define if not already defined.
45916         (array_size_overflow): New function.
45917         (xalloc_die): Abort instead of exiting if 'error' returns.
45918         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
45919         (xmalloc, xrealloc): Use them.
45920         (xcalloc): Check for address arithmetic overflow.
45921         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
45922         a bit faster than strcpy.
45923
45924 2003-10-10  Simon Josefsson  <jas@extundo.com>
45925
45926         * modules/argp (Depends-on): Add restrict and strcase.
45927
45928 2003-10-10  Simon Josefsson  <jas@extundo.com>
45929
45930         * m4/argp.m4: Add AC_C_INLINE.
45931
45932 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45933
45934         Merge getpass from libc, plus a few fixes.
45935
45936         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
45937         Include <stdbool.h>.
45938         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
45939         __fsetlocking to empty.
45940         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
45941         do include <bits/libc-lock.h>.
45942         Do not include <fcntl.h>; not needed.
45943         [_LIBC]: Include <wchar.h>.
45944         (NOTCANCEL_MODE): New macro.
45945         (flockfile, funlockfile) [_LIBC]: New macros.
45946         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
45947         [!_LIBC]: New macros.
45948         (call_fclose): New function.
45949         (getpass): Use it.  Save tty stream separately; this simplifies the
45950         code and makes it more reliable if stdin happens to equal stdout.
45951         Invoke __fsetlocking on tty.
45952         Handle thread cancellation if needed.
45953         Namespace cleanup (use __tcgetattr, __getline).
45954         Use bool for Booleans.
45955         [USE_IN_LIBIO]: Handle wide streams.
45956         [!_LIBC]: Unconditionally do the fseek, since we don't know what
45957         stream might go where.
45958
45959         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
45960         doesn't have to include <stdio.h> before us.
45961         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
45962         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
45963         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
45964         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
45965         if not declared, so that we can use getpass.c code from libc without
45966         rewriting it.
45967         (flockfile, ftrylockfile, funlockfile): New macros.
45968
45969 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45970
45971         * modules/getpass: Depend on stdbool.
45972
45973 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45974
45975         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
45976
45977 2003-10-07  Karl Berry  <karl@gnu.org>
45978
45979         * config/config.{guess,sub}: update from config.
45980
45981 2003-10-06  Jim Meyering  <jim@meyering.net>
45982             Bruno Haible  <bruno@clisp.org>
45983
45984         This lets translators provide better translations for the
45985         "Written by ..." part of --version output.
45986         * lib/version-etc.h: Include stdarg.h.
45987         (version_etc_copyright): Declare as readonly.
45988         (version_etc): Make this function variadic with a NULL-terminated list
45989         of author name strings.
45990         (version_etc_va): New declaration.
45991         * lib/version-etc.c: Include stdarg.h, stdlib.h.
45992         (version_etc_copyright): Declare as readonly.
45993         (version_etc_va): New function. Provide a different translatable string
45994         for each possible number of authors < 10. Abbreviate when there are 10
45995         authors or more.
45996         (version_etc): Make this function variadic. Call version_etc_va.
45997         Suggestion from Gary V. Vaughan.
45998
45999         * lib/long-options.h (parse_long_options): Change prototype: the
46000         authors string is moved to the end and becomes variadic.
46001         * lib/long-options.c: Include stdarg.h.
46002         (parse_long_options): Make this function variadic, too.
46003         Call version_etc_va, not version_etc.
46004
46005 2003-10-06  Bruno Haible  <bruno@clisp.org>
46006
46007         * modules/version-etc-2: Remove file.
46008         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
46009
46010 2003-10-06  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/fatal-signal: New file.
46013         * MODULES.html.sh (func_all_modules): Add fatal-signal.
46014
46015 2003-10-06  Bruno Haible  <bruno@clisp.org>
46016
46017         * m4/fatal-signal.m4: New file.
46018         * m4/signalblocking.m4: New file, from GNU gettext.
46019
46020 2003-10-06  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/version-etc-2.h: Remove file.
46023         * lib/version-etc-2.c: Remove file.
46024
46025 2003-10-06  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/fatal-signal.h: New file, from GNU gettext.
46028         * lib/fatal-signal.c: New file, from GNU gettext.
46029
46030 2003-10-05  Paul Eggert  <eggert@twinsun.com>
46031
46032         * README: Rework advice for preventing empty .o files.
46033         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
46034         not <sys/types.h>.
46035
46036 2003-10-04  Karl Berry  <karl@gnu.org>
46037
46038         * lib/argp*: update from libc.
46039
46040 2003-10-04  Karl Berry  <karl@gnu.org>
46041
46042         * config/config.{guess,sub}: update from config.
46043
46044 2003-10-02  Bruno Haible  <bruno@clisp.org>
46045
46046         * modules/lchown (Include): Add lchown.h.
46047         * modules/time_r (Include): Use "..." syntax.
46048         * modules/xgetdomainname (Include): Add xgetdomainname.h.
46049
46050 2003-10-01  Simon Josefsson  <jas@extundo.com>
46051
46052         * MODULES.html.sh (func_all_modules): Move gethostname from section
46053         'based on' to section 'lacking' POSIX:2001.
46054
46055 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
46056
46057         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
46058         to output mode on the same stream.
46059
46060 2003-09-29  Paul Eggert  <eggert@twinsun.com>
46061
46062         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
46063         Fix arg typo in previous patch.
46064
46065 2003-09-28  Jim Meyering  <jim@meyering.net>
46066
46067         * lib/error.c: Correct cpp indentation.
46068
46069 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46070
46071         * modules/free: New file.
46072
46073 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46074
46075         * m4/free.m4: New file.
46076
46077 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46078
46079         * lib/minmax.h (MIN, MAX)
46080         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
46081         Omit the special code that used __typeof__, since we worry that
46082         it could be more trouble than it's worth.  See:
46083         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
46084         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
46085
46086         * lib/free.c: New file.
46087
46088 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
46089
46090         Trivial fixes to Makefile.am parts of module listings.
46091         * modules/strstr: Append strstr.h to lib_SOURCES.
46092         * modules/strcase: Likewise, for strcase.h.
46093
46094 2003-09-27  Karl Berry  <karl@gnu.org>
46095
46096         * config/mkinstalldirs: update from automake.
46097
46098 2003-09-26  Paul Eggert  <eggert@twinsun.com>
46099
46100         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
46101         (error_tail): Do not loop, reallocating temporary buffer, since
46102         the output cannot contain more wide characters than the input
46103         contains bytes, the size must be big enough already.  This avoids
46104         one potential size overflow calculation.  Check for size overflow
46105         when calculating temporary buffer size.  Free temporary buffer
46106         when done, if it was allocated with malloc; this plugs a memory
46107         leak.  Remove casts from void * to pointers, that are no longer
46108         needed now that we're assuming C89 or better.
46109
46110         Merge error changes from glibc.
46111
46112         * lib/error.c, error.h: Update copyright notice header to match glibc.
46113         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
46114         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
46115         Disable cancellation while printing error.
46116         * lib/error.h: Prepend __ to parameter names.
46117
46118 2003-09-26  Jim Meyering  <jim@meyering.net>
46119
46120         * lib/error.c (error_tail): Move some declarations
46121         into inner scope where the local variables are used.
46122
46123 2003-09-26  Bruno Haible  <bruno@clisp.org>
46124
46125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
46126         stpncpy().
46127         Don't define stpncpy through config.h; it's now done through stpncpy.h.
46128
46129 2003-09-26  Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/stpncpy.h (gnu_stpncpy): New declaration.
46132         (stpncpy): Define as alias for gnu_stpncpy.
46133         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
46134
46135 2003-09-25  Simon Josefsson  <jas@extundo.com>
46136
46137         * lib/xgetdomainname.h: New file.
46138         * lib/xgetdomainname.c: New file.
46139
46140 2003-09-25  Simon Josefsson  <jas@extundo.com>
46141             Bruno Haible  <bruno@clisp.org>
46142
46143         * modules/getdomainname: New file.
46144         * modules/xgetdomainname: New file.
46145         * MODULES.html.sh (func_all_modules): Add getdomainname,
46146         xgetdomainname.
46147
46148 2003-09-25  Simon Josefsson  <jas@extundo.com>
46149             Bruno Haible  <bruno@clisp.org>
46150
46151         * m4/getdomainname.m4: New file.
46152
46153 2003-09-25  Simon Josefsson  <jas@extundo.com>
46154             Bruno Haible  <bruno@clisp.org>
46155
46156         * lib/getdomainname.h: New file.
46157         * lib/getdomainname.c: New file.
46158
46159 2003-09-25  Karl Berry  <karl@gnu.org>
46160
46161         * lib/argp-fmtstream.c, argp-help.c: update from libc.
46162
46163 2003-09-25  Karl Berry  <karl@gnu.org>
46164
46165         * config/install-sh: update from automake.
46166
46167 2003-09-25  Bruno Haible  <bruno@clisp.org>
46168
46169         * modules/version-etc-2: New file, from modules/version-etc with
46170         modifications.
46171         * MODULES.html.sh (func_all_modules): Add version-etc-2.
46172
46173 2003-09-25  Bruno Haible  <bruno@clisp.org>
46174
46175         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
46176         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
46177
46178 2003-09-24  Simon Josefsson  <jas@extundo.com>
46179
46180         * modules/xgethostname: Add xgethostname.h.
46181
46182 2003-09-24  Paul Eggert  <eggert@twinsun.com>
46183
46184         * lib/linebuffer.c (freebuffer): Don't free the argument, just
46185         the buffer associated with the argument.  Bug reported by
46186         Simon Josefsson.
46187
46188 2003-09-24  Paul Eggert  <eggert@twinsun.com>
46189
46190         * README: Document assumptions that 'int' is at least 32 bits
46191         wide, that integer arithmetic is 2's complement without overflow,
46192         that there are no holes in integer values, that adding sizes of
46193         two nonoverlapping objects can't overflow, and that all-bits-zero
46194         yields scalar zero.  Fix spelling and capitalization typos.
46195
46196 2003-09-19  Karl Berry  <karl@gnu.org>
46197
46198         * lib/argp.h: update from libc.
46199
46200 2003-09-17  Paul Eggert  <eggert@twinsun.com>
46201
46202         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
46203         to avoid spurious warnings like "AC_RUN_IFELSE was called before
46204         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
46205
46206 2003-09-17  Paul Eggert  <eggert@twinsun.com>
46207
46208         * gnulib-tool: Use "test -h", not "test -L", for portability
46209         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
46210         (tags_regexp): Remove, since \| doesn't conform to POSIX.
46211         (sed_extract_prog): Issue s commands one-by-one, rather than
46212         using \| in one s command.
46213
46214 2003-09-16  Paul Eggert  <eggert@twinsun.com>
46215
46216         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
46217         input error, instead of returning NULL the next time we are called
46218         (and therefore losing track of errno).
46219
46220 2003-09-16  Bruno Haible  <bruno@clisp.org>
46221
46222         * gnulib-tool (func_create_testdir): Warn about duplicated
46223         dependencies.
46224
46225 2003-09-15  Paul Eggert  <eggert@twinsun.com>
46226
46227         * modules/argmatch, modules/fatal, modules/obstack,
46228         modules/xalloc, modules/xgethostname: Sort dependencies by
46229         importance, not alphabetically.
46230
46231 2003-09-15  Paul Eggert  <eggert@twinsun.com>
46232
46233         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
46234         fails, so that the caller gets the proper errno.
46235
46236         * lib/readutmp.c (read_utmp): Likewise.
46237         Check for fstat error.  Close stream and free storage
46238         when failing.
46239
46240 2003-09-14  Karl Berry  <karl@gnu.org>
46241
46242         * config/srclist.txt (strdup.c): disable for c89 changes.
46243
46244 2003-09-14  Jim Meyering  <jim@meyering.net>
46245
46246         * lib/getloadavg.c: Correct cpp indentation.
46247         * lib/strdup.c: Likewise.
46248         * lib/vasnprintf.c: Likewise.
46249
46250 2003-09-14  Bruno Haible  <bruno@clisp.org>
46251
46252         * modules/fwriteerror: New file.
46253         * MODULES.html.sh (func_all_modules): Add fwriteerror.
46254
46255 2003-09-14  Bruno Haible  <bruno@clisp.org>
46256
46257         * lib/fwriteerror.h: New file.
46258         * lib/fwriteerror.c: New file.
46259
46260 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46261
46262         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
46263         modules/xgethostname, modules/xalloc: Depend on exit.
46264
46265 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46266
46267         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
46268
46269         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
46270         and AC_MINIX, too, so that their extensions are available.
46271
46272         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
46273         This macro has been superseded by gl_BACKUPFILE.
46274
46275         More patches to assume C89 or better.
46276
46277         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
46278
46279         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
46280         unconditionally.
46281         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
46282         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
46283         Include <string.h>, <stdlib.h> unconditionally.
46284         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
46285         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
46286         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
46287         headers or for string.h.
46288         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
46289         or strtoul.
46290
46291         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
46292         headers.
46293         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
46294         * m4/userspec.m4 (gl_USERSPEC): Likewise.
46295         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
46296         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
46297         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46298         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
46299         memcpy, memset.
46300         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
46301         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
46302         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
46303         strtol.
46304         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
46305         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
46306         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
46307         strtoul.
46308
46309 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46310
46311         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
46312         * lib/obstack.c [!defined _LIBC]: Likewise.
46313         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
46314         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
46315         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
46316
46317         More changes to assume C89 or better.
46318
46319         * lib/error.c (error_tail): Assume vprintf.
46320
46321         * lib/argmatch.c (getenv): Remove decl.
46322         * lib/progreloc.c (get_full_program_name): Define via prototype.
46323         * lib/setenv.c (clearenv): Likewise.
46324         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
46325         needed.
46326         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
46327         (malloc, memcpy): Remove decls.
46328         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
46329         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
46330         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
46331         (memcpy): Remove macro.
46332         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
46333         (__P): Remove.  All uses removed.
46334         (PTR): Remove.  All uses changed to void *.
46335         (CHAR_BIT, NULL): Remove.
46336         (spaces, zeros, memset_space, memset_zero)
46337         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
46338         Remove.
46339         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
46340         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
46341         Define with prototype.
46342         Remove now-unnecessary prototype decl.
46343         (extra_args_spec): Assume ANSI C.  All uses changed.
46344         (extra_args_spec_iso): Remove.
46345         (my_strftime, emacs_strftimeu): Define via prototype.
46346         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
46347         unconditionally.
46348         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
46349         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
46350         (strtoul, strtol): Remove decls.
46351         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
46352         LONG_MAX): Remove.
46353         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
46354         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
46355         (LOCALE_PARAM_PROTO): New macro.
46356         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
46357         (INTERNAL (strtol), strtol): Define with a prototype.
46358         (PARAMS): Remove.  All uses removed.
46359         * lib/tempname.c: Include <string.h> unconditionally.
46360         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
46361         * lib/xgethostname.c (main): Define with a prototype.
46362         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
46363         Include <stdlib.h> unconditionally.
46364         (calloc, malloc, realloc, free): Remove decls.
46365         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
46366         Include <stdlib.h> unconditionally.  Sort include file names.
46367         (strtod): Remove.
46368         (xstrtod): Define with a prototype.
46369         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
46370         (strtol, strtoul): Remove decls.
46371
46372 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46373
46374         More patches to assume C89 or better.
46375         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
46376         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
46377         string.h, memchr, STDC_HEADERS.
46378
46379 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46380
46381         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
46382         Include <stdlib.h>, <string.h> unconditionally.
46383         Remove now-unnecessary cast to char *.
46384         * lib/strnlen.c: Include <string.h> unconditionally.
46385         * lib/yesno.c (yesno): Define with a prototype.
46386
46387 2003-09-11  Bruno Haible  <bruno@clisp.org>
46388
46389         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
46390
46391 2003-09-10  Jim Meyering  <jim@meyering.net>
46392
46393         * lib/error.c: Correct indentation of cpp directives.
46394
46395 2003-09-10  Bruno Haible  <bruno@clisp.org>
46396
46397         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
46398         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
46399         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
46400         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
46401         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
46402         <stdlib.h> and <string.h> checks.
46403         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
46404         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
46405
46406 2003-09-10  Bruno Haible  <bruno@clisp.org>
46407
46408         * lib/strcspn.c: Include <string.h> unconditionally.
46409         * lib/strpbrk.c: Include <string.h> unconditionally.
46410         * lib/strstr.c: Include <string.h> unconditionally.
46411         * lib/unicodeio.c: Include <string.h> unconditionally.
46412         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
46413         * lib/unsetenv.c: Likewise.
46414         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
46415         * lib/yesno.c: Include <stdlib.h> unconditionally.
46416         (rpmatch): Add prototype.
46417
46418 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46419
46420         More patches to assume C89 or better.
46421         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
46422         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
46423         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
46424         or for string.h.
46425         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
46426         stdlib.h.
46427         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
46428         C headers.
46429         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
46430         string.h.
46431         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
46432         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
46433         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
46434         or for string.h.
46435         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
46436         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
46437         C headers.
46438         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
46439         memcpy.
46440         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
46441         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
46442         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
46443         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
46444         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
46445         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
46446         string.h, free.
46447         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
46448         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
46449         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
46450         C headers, or for string.h.
46451         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
46452         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
46453         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
46454         headers, memory.h, stdlib.h, string.h, strings.h.
46455         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
46456         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
46457         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
46458         strchr.
46459         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
46460         headers, memory.h, string.h.
46461         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
46462         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
46463         free.
46464         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
46465         headers.
46466         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
46467         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
46468         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
46469         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
46470         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
46471
46472 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46473
46474         More K&R removal.
46475
46476         * lib/acosl.c (main): Use a prototype.
46477         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
46478         tanl.c: Likewise.
46479
46480         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
46481
46482         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
46483         (getopt, etopt_long, getopt_long_only, _getopt_internal)
46484         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
46485         with a prototype.
46486         * lib/getopt.c (const): Remove macro.
46487         Include <string.h> unconditionally.
46488         (my_index): Remove; all uses changed to strchr.
46489         (strlen): Remove decl.
46490         (exchange): Remove forward decl; no longer needed.
46491         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
46492         Define with prototype.
46493         * lib/getopt1.c (const): Remove macro.
46494         (getopt_long, getopt_long_only, main): Define with prototype.
46495
46496         * lib/getugroups.c: Include <string.h> unconditionally.
46497
46498         * lib/getusershell.c: Include <stdlib.h> unconditionally.
46499         (getusershell, setusershell, endusershell, readname, main):
46500         Define with prototypes.
46501
46502         * lib/group-member.c: Include group-member.h first.
46503         Include <stdlib.h> unconditionally.
46504
46505         * lib/hard-locale.c: Include hard-locale.h first.
46506         Include <stdlib.h>, <string.h> unconditionally.
46507
46508         * lib/hash.c (free, malloc): Remove decls.
46509         Include <stdlib.h> unconditionally.
46510
46511         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
46512         (getenv): Do not declare.
46513
46514         * lib/idcache.c: Include <string.h> unconditionally.
46515
46516         * lib/long-options.c: Include long-options.h first, to test interface.
46517         Include <stdlib.h> unconditionally.
46518
46519         * lib/makepath.c: Include makepath.h first, to test interface.
46520         Include <stdlib.h> and <string.h> unconditionally.
46521
46522         * lib/linebuffer.c: Include <stdlib.h>.
46523         (free): Remove decl.
46524
46525         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
46526         stddef.h. rpl_malloc returns void *, not char *.
46527         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
46528         prototype.
46529
46530         * lib/md5.h: Include <limits.h> unconditionally.
46531         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
46532         (__P): Remove; all uses removed.
46533         * lib/md5.c: Include "md5.h" first.
46534         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
46535         md5_buffer, md5_process_bytes, md5_process_block):
46536         Define with prototypes.
46537         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
46538         * lib/sha.c: Include "sha.h" first.
46539         Include <stdlib.h>, <string.h> unconditionally.
46540
46541         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
46542         * lib/memcmp.c (__ptr_t): Likewise.
46543         * lib/memrchr.c (__ptr_t): Likewise.
46544         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
46545         Include <string.h> unconditionally.
46546         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
46547         * lib/memchr.c: Include <stdlib.h> unconditionally.
46548         * lib/memchr.c (LONG_MAX): Remove.
46549         * lib/memrchr.c (LONG_MAX): Likewise.
46550         * lib/memchr.c (__memchr): Define via a prototype.
46551         * lib/memrchr.c (__memrchr): Likewise.
46552         * lib/memcmp.c (__P): Remove, and remove all uses.
46553         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
46554         Remove forward decls; no longer needed.
46555         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
46556         Use types required by C89 in prototype.
46557
46558         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
46559         * lib/savedir.c: Likewise.
46560         * lib/mkdir.c (free): Remove decl.
46561         * lib/rmdir.c (rmdir): Define with a prototype.
46562         * lib/savedir.c: Include savedir.h first, to test interface.
46563
46564         * lib/mktime.c (STDC_HEADERS): Remove.
46565         Include <stdlib.h>, <string.h> unconditionally.
46566
46567         * lib/modechange.c: Include <stdlib.h> unconditionally.
46568         (malloc): Remove decl.
46569
46570         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
46571         (free): Remove decl.
46572
46573         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
46574         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
46575         (This type really should be intptr_t, but that's a C99ism.)
46576         (_obstack_memcpy): Remove: all uses changed to memcpy.
46577         Include <string.h> unconditionally.
46578         (struct obstack): Assume __STDC__ for types of members
46579         chunkfun, freefun, extra_arg.
46580         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
46581         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
46582         obstack_begin, obstack_specify_allocation,
46583         obstack_specify_allocation_with_arg, obstack_chunkfun,
46584         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
46585         Remove unprototyped decls and the macros that use them.
46586         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
46587         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
46588         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
46589         (defined __STDC__ && __STDC__)]:
46590         Remove nonprototyped code.
46591         Include <stdlib.h> unconditionally.
46592         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
46593         _obstack_allocated_p, _obstack_free, obstack_free,
46594         _obstack_memory_used, print_and_abort):
46595         Define using prototypes.
46596         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
46597         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
46598         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
46599         obstack_next_free, obstack_object_size, obstack_room) [0]:
46600         Remove unused, unprototyped code.
46601
46602         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
46603
46604         * lib/physmem.c (physmem_total, physmem_available, main): Define
46605         with prototypes.
46606
46607         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
46608         (main): Define with a prototype.
46609
46610         * lib/posixver.c (getenv): Remove decl.
46611
46612         * lib/putenv.c (malloc): Returns void *, not char *.
46613         Include <string.h> unconditionally.
46614         (strchr, memcpy, NULL): Do not define.
46615
46616         * lib/readtokens.c: Include readtokens.h first, to test interface.
46617         Include <stdlib.h>, <string.h> unconditionally.
46618         (init_tokenbuffer): Define with a prototype.
46619
46620         * lib/regex.c (PARAMS): Remove.  All uses removed.
46621         All uses of _RE_ARGS removed, too.
46622         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
46623         unconditionally.
46624         (bzero): Assume memset exists.
46625         (memcmp, memcpy, NULL): Remove.
46626         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
46627         char, or assignments to local vars of type signed char.
46628         (init_syntax_once, PREFIX(extract_number_and_incr),
46629         PREFIX(print_partial_compiled_pattern),
46630         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
46631         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
46632         PREFIX(regex_grow_registers), PREFIX(regex_compile),
46633         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
46634         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
46635         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
46636         wcs_compile_range, byte_compile_range, truncate_wchar,
46637         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
46638         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
46639         count_mbs_length, wcs_re_match_2_internal,
46640         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
46641         PREFIX(alt_match_null_string_p),
46642         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
46643         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
46644         regfree, PREFIX(extract_number)): Define with prototype.  Remove
46645         now-unnecessary declaration, if any.
46646         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
46647         regcomp, regexec):
46648         Remove now-unnecessary casts among pointer types.
46649         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
46650
46651         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
46652         (free): Remove decl.
46653
46654         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
46655
46656         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
46657         (free): Remove decl.
46658
46659         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
46660         * lib/xgetcwd.c: Likewise.
46661
46662         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
46663         (free): Remove decl.
46664
46665         * lib/strchrnul.c (strchrnul): Define with a prototype.
46666         Fix bug: c_in was not converted to char before searching.
46667
46668         The following changes are not K&R related:
46669
46670         * lib/group-member.h: Include <sys/types.h>, so that this file is
46671         self-contained.
46672         * lib/makepath.h: Likewise.
46673
46674         * lib/getusershell.c (readname, default_index, line_size, readname):
46675         Use size_t, not int, for sizes.
46676         (readname): If the size overflows, report an error instead of
46677         looping forever.
46678
46679 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46680
46681         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
46682         libc.
46683
46684 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46685
46686         * README: New section: portability guidelines.
46687
46688 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46689
46690         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
46691         C89 spec.
46692
46693 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46694
46695         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
46696
46697 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46698
46699         Assume C89 or better; remove K&R cruft.
46700         A few of these changes were first proposed by Derek Robert Price
46701         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
46702
46703         * lib/addext.c: Include <string.h> unconditionally.
46704         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
46705         Don't declare getenv or malloc.
46706
46707         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
46708         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
46709         (NULL): Remove.
46710         (find_stack_direction, alloca): Use prototypes.
46711
46712         * lib/atexit.c (atexit): Define using a prototype.
46713
46714         * lib/basename.c, dirname.c, stripslash.c:
46715         Include <string.h> unconditionally.
46716
46717         * lib/bcopy.c: Include <stddef.h>.
46718         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
46719
46720         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
46721
46722         * lib/error.h (error, error_at_line, error_print_progname)
46723         [! (defined (__STDC__) && __STDC__)]: Remove decls.
46724         * lib/error.c: Include error.h first, to check interface.
46725         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46726         (VA_START): Remove; all uses changeed to va_start.
46727         (exit, strerror): Remove decls.
46728         (error_print_progname): Prototype uncondionally.
46729         Don't include <errno.h>; no longer needed.
46730         (private_strerror): Remove.
46731         (error_tail): Always define.
46732         (error, error_at_line): Assume C89 or better; always use prototypes.
46733         * lib/fatal.c: Include "fatal.h" first, to test interface.
46734         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46735         (VA_START): Remove; all uses changed to va_start.
46736         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
46737         this case.
46738         (exit): Remove decl.
46739         (fatal): Prototype unconditionally.  Assume va_start works.
46740         Abort at end, to pacify gcc.
46741
46742         * lib/euidaccess.c (main): Define with a prototype.
46743
46744         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
46745
46746         * lib/exitfail.c: Include <stdlib.h> unconditionally.
46747
46748         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
46749         prototypes.
46750         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
46751         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
46752         (getenv): Remove decl.
46753         (fnmatch): Define using a prototype.
46754         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
46755         (FCT): Define using a prototype.
46756
46757         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
46758
46759         * lib/gethostname.c: Include <stddef.h>.
46760         (gethostname): Define with prototype.  Length is size_t, not int.
46761
46762 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46763
46764         Assume C89 or better; remove K&R cruft.
46765         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
46766         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
46767         string.h, getenv, malloc.
46768         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
46769         headers.
46770         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
46771         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
46772         do not check for strerror.
46773         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
46774         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
46775         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
46776         do not check for doprnt or vprintf.
46777         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
46778         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
46779
46780 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46781
46782         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
46783         getversion.c should have been removed then, but was accidentally
46784         preserved.
46785
46786         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
46787         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
46788
46789 2003-09-08  Karl Berry  <karl@gnu.org>
46790
46791         * config/config.sub, config.guess, srclistvars.sh: update from savannah
46792                 config, forget about prep.
46793
46794         * config/depcomp, missing: update from automake.
46795
46796 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46797
46798         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
46799         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46800
46801 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46802
46803         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
46804         copy_tm_result.  Bug reported by Simon Josefsson in
46805         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46806
46807 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46808
46809         * m4/time_r.m4: New file.
46810         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
46811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
46812         is. Check for timegm declaration.
46813         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
46814         Do not check for gmtime_r.
46815         Replace mktime if __mktime_internal does not exist and if mktime
46816         hasn't been replaced already.
46817
46818 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46819
46820         * lib/time_r.c, lib/time_r.h: New files.
46821
46822         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
46823         __localtime_r.
46824         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
46825         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
46826
46827         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
46828         __gmtime_r.
46829         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
46830         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
46831         Include <time_r.h>.
46832
46833         * lib/timegm.c: Switch to glibc implementation, with the following
46834         changes:
46835         [defined HAVE_CONFIG_H]: Include <config.h>.
46836         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
46837         (__mktime_internal) [!defined _LIBC]: New decl.
46838         (__gmtime_r) [!defined _LIBC]: New macro and function.
46839         (timegm): Use a prototype, since gnulib assumes C89.
46840         Do not bother declaring tmp to be const, as it's not really usefu.
46841         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
46842         (timegm): Declare only if HAVE_DECL_TIMEGM.
46843
46844 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46845
46846         * MODULES.html.sh (func_all_modules): Add time_r.
46847         * modules/time_r: New file.
46848         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
46849         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
46850
46851 2003-09-03  Paul Eggert  <eggert@twinsun.com>
46852
46853         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
46854         Bug reported by Lute Kamstra in
46855         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
46856
46857         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
46858         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
46859         course with correspondingly smaller numbers for tomorrow and
46860         yesterday.  From Tadayoshi Funaba.  Originally installed into
46861         sh-utils on 1999-08-07, but the patch got lost (I guess during the
46862         coreutils merge?).
46863
46864 2003-08-31  Simon Josefsson  <jas@extundo.com>
46865
46866         * modules/timegm: New file.
46867         * MODULES.html.sh (func_all_modules): Add timegm.
46868
46869 2003-08-31  Simon Josefsson  <jas@extundo.com>
46870
46871         * m4/timegm.m4: New file.
46872
46873 2003-08-31  Simon Josefsson  <jas@extundo.com>
46874
46875         * lib/timegm.h: New file.
46876         * lib/timegm.c: New file.  Based on
46877         wget-1.8.2/src/http.c:mktime_from_utc.
46878
46879 2003-08-31  Karl Berry  <karl@gnu.org>
46880
46881         * lib/argp.h: update from libc.
46882
46883 2003-08-28  Bruno Haible  <bruno@clisp.org>
46884
46885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
46886         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
46887         followed by '#define fnmatch fnmatch_posix' gives an error.
46888
46889 2003-08-28  Bruno Haible  <bruno@clisp.org>
46890
46891         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
46892         warning on QNX, which defines O_BINARY to 000000.
46893
46894 2003-08-27  Jim Meyering  <jim@meyering.net>
46895
46896         * m4/mkstemp.m4: Require that the system mkstemp be able to create
46897         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
46898         would fail after 32.  Reported by Danny Levinson.  Details here:
46899         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
46900
46901 2003-08-24  Bruno Haible  <bruno@clisp.org>
46902
46903         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
46904         MSVC7 <stdio.h> is included later.
46905
46906 2003-08-22  Simon Josefsson  <jas@extundo.com>
46907
46908         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
46909
46910 2003-08-20  Karl Berry  <karl@gnu.org>
46911
46912         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
46913
46914 2003-08-20  Bruno Haible  <bruno@clisp.org>
46915
46916         * modules/progname: New file.
46917         * MODULES.html.sh (func_all_modules): Add progname.
46918
46919 2003-08-20  Bruno Haible  <bruno@clisp.org>
46920
46921         * lib/progname.h: New file, from GNU gettext.
46922         * lib/progname.c: New file, from GNU gettext.
46923         * lib/progreloc.c: New file, from GNU gettext.
46924
46925 2003-08-19  Jim Meyering  <jim@meyering.net>
46926
46927         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
46928         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
46929
46930 2003-08-19  Bruno Haible  <bruno@clisp.org>
46931
46932         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
46933         more.
46934
46935 2003-08-19  Bruno Haible  <bruno@clisp.org>
46936
46937         * lib/xstrdup.c: Assume <string.h> exists.
46938
46939 2003-08-18  Paul Eggert  <eggert@twinsun.com>
46940
46941         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
46942         in makefile rules.
46943
46944 2003-08-18  Jim Meyering  <jim@meyering.net>
46945
46946         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
46947         * m4/lib-ld.m4: Likewise.
46948
46949 2003-08-18  Jim Meyering  <jim@meyering.net>
46950
46951         * lib/setenv.h: Indent nested cpp directive.
46952         * lib/vasnprintf.c: Remove trailing blanks.
46953
46954 2003-08-17  Simon Josefsson  <jas@extundo.com>
46955
46956         * modules/xstrndup: New file.
46957         * MODULES.html.sh (func_all_modules): Add xstrndup.
46958
46959 2003-08-17  Simon Josefsson  <jas@extundo.com>
46960
46961         * modules/argp: Fix autoconf macro name. Add more dependencies.
46962
46963 2003-08-17  Simon Josefsson  <jas@extundo.com>
46964
46965         * m4/xstrndup.m4: New file.
46966
46967 2003-08-17  Simon Josefsson  <jas@extundo.com>
46968
46969         * m4/argp.m4: New file.
46970
46971 2003-08-17  Simon Josefsson  <jas@extundo.com>
46972             Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/xstrndup.h: New file.
46975         * lib/xstrndup.c: New file.
46976
46977 2003-08-17  Bruno Haible  <bruno@clisp.org>
46978
46979         * modules/strndup (Files, Include): Add lib/strndup.h.
46980
46981 2003-08-17  Bruno Haible  <bruno@clisp.org>
46982
46983         * modules/euidaccess (Files): Add lib/euidaccess.h.
46984
46985 2003-08-17  Bruno Haible  <bruno@clisp.org>
46986
46987         * lib/strndup.h: New file.
46988
46989 2003-08-17  Bruno Haible  <bruno@clisp.org>
46990
46991         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
46992         like AC_GNU_SOURCE.
46993         * modules/extensions (configure.ac): Comment out the invocation of
46994         gl_USE_SYSTEM_EXTENSIONS.
46995
46996 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46997
46998         Merges from coreutils, etc.
46999         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
47000         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
47001         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
47002         fixing a typo.
47003         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
47004         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
47005
47006 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47007
47008         Document merge from coreutils.
47009         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
47010         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
47011         * modules/utime: Add m4/utimes-null.m4.
47012
47013 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47014
47015         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
47016         space, undoing this 2003-08-12 change:
47017         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47018
47019 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47020
47021         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
47022         strtoul.c from libc, undoing this 2003-08-12 change:
47023         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47024
47025 2003-08-16  Jim Meyering  <jim@meyering.net>
47026
47027         Merges from coreutils.
47028         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
47029         prefix.  Adjust cache variables similarly.  Create 500 rather than
47030         just 300 files, to exercise bug on Darwin6.5, too.
47031         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
47032         $missing_dir.
47033         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
47034         AM_SYS_POSIX_TERMIOS.
47035         Reported by mkc@mathdogs.com.
47036         Also change use of $am_cv_sys_posix_termios
47037         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
47038         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
47039         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
47040         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
47041         in /proc/mounts until it finds one with matching device number.  This
47042         is unnecessary when the FILE argument *is* a mount point.  No stat call
47043         is necessary in that case.  So, disable the statvfs-testing code on
47044         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
47045         as RedHat bug# 84846.
47046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
47047         to 1MB, so as not to render systems with no stack size limit (e.g.,
47048         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
47049         Include <unistd.h>.  On some systems,
47050         it is required for the definition of _SC_PAGESIZE.
47051
47052 2003-08-16  Jim Meyering  <jim@meyering.net>
47053
47054         Merge from coreutils.
47055         * lib/xstrtoimax.c: #else #if -> #elif.
47056         * lib/xstrtoumax.c: Likewise.
47057
47058 2003-08-16  Jim Meyering  <jim@meyering.net>
47059
47060         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
47061         * m4/utimes.m4: Removed.
47062         * m4/utimes-null.m4: Renamed from utimes.m4.
47063
47064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
47065         to 1MB, so as not to render systems with no stack size limit (e.g.,
47066         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
47067         Include <unistd.h>.  On some systems,
47068         it is required for the definition of _SC_PAGESIZE.
47069
47070 2003-08-16  Jim Meyering  <jim@meyering.net>
47071         and Paul Eggert  <eggert@cs.ucla.edu>
47072
47073         Merges from coreutils, etc.
47074
47075         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
47076         using the latest version from cvs.  This avoids problems with #line
47077         directives using a vendor (Sun) compiler.
47078         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
47079         Don't set GETGROUPS_LIB here; now it's
47080         done via getgroups.m4's wrapper function.
47081         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
47082         rather than just in sh-util/configure.in, so that the
47083         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
47084         same.
47085         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
47086         AC_FUNC_GETLOADAVG where to find getloadavg.c.
47087         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
47088         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
47089         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
47090         Remove code that is now done by the newly-required macros.
47091         Append $(EXEEXT) to DF_PROG.
47092         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
47093         Do not invoke or require the following here,
47094         since prereq.m4 or some gnulib .m4 now does this for us:
47095         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
47096         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
47097         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
47098         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
47099         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
47100         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
47101         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
47102         AC_FUNC_OBSTACK.
47103         Do not replace the following functions, as this is now the job
47104         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
47105         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
47106         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
47107         atexit getpass, strdup, getpagesize.
47108         Replace 'raise'.
47109         Do not check for the following functions, as this is now the job
47110         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
47111         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
47112         setregid.
47113         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
47114         Check for sys/sysctl.h.
47115         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
47116         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
47117         of checking for ssize_t ourselves.
47118
47119         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
47120         Require every macro that gnulib/modules/* suggests for us.
47121         (jm_PREREQ_ADDEXT): New macro.
47122         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
47123         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
47124
47125         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
47126         (gl_PHYSMEM): Use it.
47127         Also check for `table' function.
47128         Check for new headers and functions.
47129         Add check for sys/sysmp.h.
47130         With suggestions from Kaveh Ghazi.
47131         Ignore headers that are present but cannot be compiled.  This
47132         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
47133         C 5.4.
47134
47135 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47136
47137         Document merge from coreutils.
47138         * modules/userspec: Depend on posixver.
47139         * modules/strftime: Depend on tzset.
47140
47141 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47142
47143         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
47144         rather than tab, after '#' in shell-script copyright notices.
47145         Suggested by Bruno Haible.
47146
47147 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47148
47149         * config/srclist-update: Use three spaces, rather than tab, after '#'
47150         in shell-script copyright notices.  Suggested by Bruno Haible.
47151         Remove unnecessary parenthesization in regular expression.
47152
47153 2003-08-15  Jim Meyering  <jim@meyering.net>
47154
47155         Merge from coreutils.
47156         * lib/xgethostname.c: Include <stdlib.h>.
47157         (xghostname): Don't exit for anything other than memory-related
47158         failure; just return NULL.
47159         * lib/userspec.c: Include "posixver.h".
47160         (parse_user_spec): Accept `.' as a separator only
47161         in pre-POSIX-200112 mode.
47162         * lib/strtoimax.c: Use #elif rather than #else #if.
47163         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
47164         Remove function, now that we can rely on a working tzset function.
47165         [!_LIBC]: Ensure that the required autoconf test has been run.
47166         [!defined _NL_CURRENT && HAVE_STRFTIME]:
47167         Use underlying_strftime for %r.
47168         * lib/sha.c: Merge in some clean-up and optimization changes from
47169         glibc.
47170         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
47171         Ensure that it is a multiple of 64.
47172         Rearrange loop exit tests so as to avoid performing an
47173         additional fread after encountering an error or EOF.
47174         * lib/realloc.c: Update copyright date.
47175
47176 2003-08-15  Jim Meyering  <jim@meyering.net>
47177         and Paul Eggert  <eggert@twinsun.com>
47178
47179         Merge from coreutils.
47180         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
47181         member but strut utmpx does not.  Needed for AIX 4.3.3.
47182         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
47183
47184 2003-08-15  Jim Meyering  <jim@meyering.net>
47185         and Paul Eggert  <eggert@cs.ucla.edu>
47186
47187         Merges from coreutils, etc.
47188         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
47189         Require gl_FUNC_TZSET_CLOBBER.
47190         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
47191         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
47192         members.
47193
47194 2003-08-14  Paul Eggert  <eggert@twinsun.com>
47195
47196         Help the merge from coreutils.
47197         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
47198         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
47199         * m4/tzset.m4: Use it too.
47200
47201 2003-08-14  Paul Eggert  <eggert@twinsun.com>
47202
47203         * modules/tzset: New file.
47204
47205 2003-08-14  Jim Meyering  <jim@meyering.net>
47206
47207         Merges from coreutils.
47208         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
47209         variable names, rather than @FNMATCH_H@.
47210         * modules/alloca: Likewise for $(ALLOCA_H).
47211
47212         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
47213         the three copies of the literal target, `fnmatch.h'.
47214         * modules/alloca (alloca.h): Likewise.
47215
47216 2003-08-14  Jim Meyering  <jim@meyering.net>
47217
47218         Merge from coreutils.
47219         * m4/tzset.m4: New file.
47220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
47221         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
47222         otherwise, AIX 5.1 systems would end up using the latter.
47223         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
47224         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
47225         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
47226         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
47227
47228 2003-08-14  Jim Meyering  <jim@meyering.net>
47229
47230         Merge from coreutils.
47231         * lib/obstack.h: Whitespace changes.
47232         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
47233         and xcalloc return values.
47234         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
47235         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
47236         hang on OSF/1 5.1 for DIR on both local and remote file systems.
47237         Reported by (and fix confirmed by) Nelson H. F. Beebe.
47238         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
47239         error from mntctl.
47240         Use mntctl's return value to drive the entry-processing loop, since
47241         we can't rely on the value of the vmt_length member in the last
47242         entry.  On some systems doing so could result in exhausting
47243         virtual memory.  Based in part on a patch from Mike Jetzer.
47244
47245 2003-08-14  Jim Meyering  <jim@meyering.net>
47246         and Paul Eggert  <eggert@twinsun.com>
47247
47248         Merges from coreutils, plus other fixes.
47249         * lib/physmem.c: Merge in portability changes from gcc/libiberty
47250         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
47251         for credits and details.  Thanks to Kaveh Ghazi for helping
47252         to keep these files in sync.
47253         (ARRAY_SIZE): Define it.
47254         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
47255         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
47256         (memcasecmp): Don't assume size_t fits in unsigned int.
47257         Remove casts and duplicate code.
47258         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
47259         (memcpy): Remove definition.
47260         Merge in some clean-up and optimization changes from glibc.
47261         [BLOCKSIZE]: Move definition to top of file.
47262         Ensure that it is a multiple of 64.
47263         Rearrange loop exit tests so as to avoid performing an
47264         additional fread after encountering an error or EOF.
47265         * lib/md5.h (md5_uintptr): Define.
47266         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
47267         return to the initial working directory.  Preserve errno
47268         for caller.
47269         * lib/idcache.c: Include "xalloc.h".
47270         (xmalloc, xrealloc): Remove decls.
47271         (getuser): Remove casts no longer required in C89.
47272         * lib/human.c: Include stdio.h, for sprintf.
47273         * lib/group-member.c: Include "xalloc.h".
47274         (xmalloc, xrealloc): Remove decls.
47275         (get_group_info): Remove casts no longer required in C89.
47276         * lib/getusershell.c (readname): Remove casts no longer required in
47277         C89.
47278         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
47279         * lib/getline.c: Whitespace fix, from coreutils.
47280
47281 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47282
47283         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
47284         Check for isascii.
47285
47286         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
47287         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
47288         Undo previous (whitespace-only) change.
47289
47290 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47291
47292         * lib/exclude.c: Include <ctype.h>
47293         (IN_CTYPE_DOMAIN): New macro.
47294         (is_space): New fn.
47295         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
47296         and empty lines.
47297
47298         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
47299         Undo previous (whitespace-only) change.
47300
47301 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47302
47303         * config/srclist-update: Change update back to the old behavior,
47304         leaving whitespace alone.  Use one 'sed' command rather than a
47305         pipeline.
47306         (fixlicense): Now a variable, not a function.
47307         (remove_trailing_blanks): Remove.
47308         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
47309         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
47310         Undo previous (whitespace-only) change.
47311
47312 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47313
47314         Merge from coreutils.
47315         * modules/euidaccess: Add lib_SOURCES, include for new
47316         file euidaccess.h
47317
47318 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47319
47320         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
47321         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
47322         Normalize leading white space and remove trailing white space.
47323
47324         Merge from coreutils
47325         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
47326
47327         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
47328         0.12.1.  These files are now being upgraded automatically by
47329         ../config/srclist-update.
47330
47331 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47332
47333         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
47334         Normalize leading white space and remove trailing white space.
47335         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
47336         notice, as per ../config/srclist-update.
47337
47338         Merge from coreutils.
47339         * lib/euidaccess.h: New file.
47340         * lib/euidaccess.c: Include it.
47341         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
47342         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
47343         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
47344
47345 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47346
47347         * config/srclist-update: Add copyright notice.
47348         (remove_id_lines, remove_trailing_blanks): New constants.
47349         (fixfile): Use them to normalize spacing a bit in copied files.
47350         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
47351         Normalize leading white space and remove trailing white space.
47352
47353         * config/texinfo.tex: Sync with texinfo.
47354
47355         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
47356         strtoul.c from libc, to merge coreutils whitespace changes.
47357
47358         * config/srclist.txt: Get the following m4 files from gettext:
47359         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
47360         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
47361         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
47362         wint_t.m4.
47363
47364 2003-08-12  Karl Berry  <karl@gnu.org>
47365
47366         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
47367         been made.
47368
47369 2003-08-11  Paul Eggert  <eggert@twinsun.com>
47370
47371         * modules/gnu-source, m4/gnu-source.m4:
47372         Remove; we're assuming Autoconf 2.54 or later now.
47373         Suggested by Bruno Haible.
47374         * MODULES.html.sh (func_all_modules): Remove gnu-source.
47375
47376 2003-08-11  Bruno Haible  <bruno@clisp.org>
47377
47378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
47379
47380 2003-08-11  Bruno Haible  <bruno@clisp.org>
47381
47382         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
47383         (vasnprintf): Use it instead of wcslen.
47384
47385 2003-08-11  Bruno Haible  <bruno@clisp.org>
47386
47387         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
47388         value to ensure that _Bool promotes to int. Use #define for _Bool when
47389         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
47390
47391 2003-08-10  Karl Berry  <karl@gnu.org>
47392
47393         * lib/regex.h: update from libc (whitespace fix).
47394
47395 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47396
47397         Merge some files from coreutils.  These changes were
47398         originally made by Jim Meyering.
47399         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
47400         many older Unixes require this.
47401         * lib/alloca.c (alloca): Remove cast to argument of free;
47402         no longer needed in C89.
47403         * lib/alloca_.h, regex.h: Fix white space to match
47404         what GNU indent does.
47405
47406 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47407
47408         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
47409         apparently Emacs's Unicode mode got confused before my 2003-08-05
47410         checkin.
47411
47412 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47413
47414         * m4/extensions.m4: New file.
47415         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
47416         Require gl_USE_SYSTEM_EXTENSIONS.
47417         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
47418         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
47419
47420 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47421
47422         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
47423         * modules/extensions, modules/gnu-source: New files.
47424         * modules/timespec, modules/unlocked-io: Depend on extensions.
47425
47426 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47427
47428         * modules/restrict: New file.
47429         * MODULES.html.sh (func_all_modules): Add restrict.
47430         * modules/regex: Depend on restrict.
47431
47432 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47433
47434         * m4/restrict.m4: New file.
47435         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
47436
47437 2003-08-07  Bruno Haible  <bruno@clisp.org>
47438
47439         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
47440         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
47441
47442 2003-08-07  Bruno Haible  <bruno@clisp.org>
47443
47444         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
47445         makes the module 'getndelim2' compatible with the module 'getline'.
47446
47447 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47448
47449         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
47450         byte with "\201" to avoid glitches when editing that source file
47451         with multi-gnome-terminal.
47452
47453 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47454
47455         * lib/bumpalloc.h: Remove.
47456
47457 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47458
47459         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
47460         * modules/bumpalloc: Remove.
47461
47462 2003-08-04  Paul Eggert  <eggert@twinsun.com>
47463
47464         * lib/getloadavg.c: Change copyright notice and spacing to conform to
47465         GNU coding style.
47466
47467         Merge from coreutils.
47468         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
47469         1. From glibc.
47470         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
47471         from Karl Berry, implemented by Jim Meyering.
47472         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
47473         from Dmitry V. Levin.
47474         Remove anachronistic cast of xrealloc.
47475         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
47476         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
47477         type. Otherwise, it wouldn't compile with at least /bin/cc on
47478         ymp-cray-unicos9.0.2.X.
47479         Combine two mostly-identical uses of alloca into one.
47480         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
47481
47482 2003-08-04  Dave Love  <d.love@dl.ac.uk>
47483
47484         [From Emacs.]
47485
47486         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
47487         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
47488         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
47489         obsolete NLIST_NAME_UNION.
47490         [__GNU__]: Undef BSD and FSCALE.
47491         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
47492
47493 2003-08-03  Paul Eggert  <eggert@twinsun.com>
47494
47495         * lib/stdbool_.h (_Bool): Make it signed char, instead of
47496         an enum type, so that it's guaranteed to promote to int.  See:
47497         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
47498
47499 2003-08-03  Karl Berry  <karl@gnu.org>
47500
47501         * config/depcomp: update from automake.
47502
47503 2003-07-31  Paul Eggert  <eggert@twinsun.com>
47504
47505         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
47506         (strerror): Don't assume that a printable int fits in 14 bytes.
47507
47508 2003-07-31  Bruno Haible  <bruno@clisp.org>
47509
47510         * modules/getpass-gnu: New file.
47511         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
47512
47513 2003-07-31  Bruno Haible  <bruno@clisp.org>
47514
47515         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
47516
47517 2003-07-24  Karl Berry  <karl@gnu.org>
47518
47519         * config/missing: update from automake.
47520
47521 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
47522             Bruno Haible  <bruno@clisp.org>
47523
47524         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
47525         * lib/getline.c (getline, getdelim): Likewise.
47526         Remove _GNU_SOURCE define; now it's defined in config.h through
47527         m4/getline.m4.
47528
47529 2003-07-23  Karl Berry  <karl@gnu.org>
47530
47531         * config/config.sub: update from prep.
47532
47533 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47534
47535         * modules/xalloc (Depends-on): Add exitfail.
47536         * modules/xmemcoll: Likewise.
47537
47538 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47539
47540         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
47541         over-parenthesization in macros.
47542
47543         Sync with coreutils.
47544
47545         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
47546         required by C99.
47547
47548         Use `exit_failure' for xalloc and xmemcoll instead of their own
47549         private exit-failure variables.
47550         * lib/xalloc.h (xalloc_exit_failure): Remove.
47551         * lib/xmalloc.c: Likewise.  Include exitfail.h.
47552         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
47553         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
47554         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
47555         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
47556
47557 2003-07-20  Jim Meyering  <jim@meyering.net>
47558
47559         * modules/closeout (Depends-on): Add exitfail.
47560         Suggestion from Bruno Haible.
47561
47562 2003-07-19  Karl Berry  <karl@gnu.org>
47563
47564         * config/config.sub: update from prep.
47565
47566 2003-07-18  Paul Eggert  <eggert@twinsun.com>
47567
47568         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
47569         Remove.
47570         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
47571         to test that it can stand by itself.  Include "exitfail.h".
47572         Clients should set exit_failure instead.
47573         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
47574
47575 2003-07-18  Bruno Haible  <bruno@clisp.org>
47576
47577         * modules/getndelim2: New file.
47578         * modules/getline: Share files with module getndelim2.
47579         * modules/getnline: Depend on getndelim2 instead of sharing files with
47580         it. Add getnline.c to lib_SOURCES.
47581         * MODULES.html.sh (func_all_modules): Add getndelim2.
47582
47583 2003-07-18  Bruno Haible  <bruno@clisp.org>
47584
47585         * m4/getndelim2.m4: New file.
47586         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
47587         invoke gl_PREREQ_GETNDELIM2.
47588         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
47589         gl_PREREQ_GETNDELIM2.
47590         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
47591         gl_GETNDELIM2.
47592
47593 2003-07-18  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/getndelim2.h: New file.
47596         * lib/getndelim2.c: Make into a module of its own. Include config.h,
47597         getndelim2.h.
47598         (getndelim2): Make non-static. Change return type to ssize_t.
47599         * lib/getline.h: Change argument names.
47600         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
47601         * lib/getnline.c: Include getndelim2.h.
47602
47603 2003-07-18  Andreas Schwab  <schwab@suse.de>
47604
47605         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
47606
47607 2003-07-17  Karl Berry  <karl@gnu.org>
47608
47609         * config/config.sub: update from prep.
47610
47611 2003-07-17  Bruno Haible  <bruno@clisp.org>
47612
47613         * modules/getnline: New file.
47614         * modules/getline: Add lib/getndelim2.c to source file list.
47615         * MODULES.html.sh (func_all_modules): Add getnline.
47616
47617 2003-07-17  Bruno Haible  <bruno@clisp.org>
47618
47619         * m4/getnline.m4: New file.
47620
47621 2003-07-17  Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/Makefile.am.in: Remove file.
47624         * m4/Makefile.am: Remove file.
47625         * m4/Makefile.in: Remove file.
47626
47627 2003-07-17  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/getnline.h: New file.
47630         * lib/getnline.c: New file.
47631         * lib/getndelim2.c: New file, extracted from getline.c.
47632         (getndelim2): Renamed from getdelim2, with added nmax argument.
47633         * lib/getline.c: Include getndelim2.c.
47634         (getdelim2): Moved out to getndelim2.c.
47635         (getline, getdelim): Update.
47636
47637 2003-07-17  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/Makefile.am: Remove file.
47640         * lib/Makefile.in: Remove file.
47641
47642 2003-07-17  Bruno Haible  <bruno@clisp.org>
47643
47644         * configure.in: Remove file.
47645         * Makefile.in: Remove file.
47646
47647 2003-07-17  Bruno Haible  <bruno@clisp.org>
47648
47649         * MODULES.html.sh: Put the </BODY> right before </HTML>.
47650
47651 2003-07-16  Karl Berry  <karl@gnu.org>
47652
47653         * config/srclist-update: was running fixlicense twice, which caused
47654                 texinfo.tex to be nullified for some reason.  Simplify,
47655                 $gplsrc is no longer needed as far as I can see?
47656
47657 2003-07-16  Jim Meyering  <jim@meyering.net>
47658
47659         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
47660
47661 2003-07-15  Paul Eggert  <eggert@twinsun.com>
47662
47663         * config/srclist.txt: Get the following files from gettext-runtime/intl
47664         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
47665         ref-del.sin.  From Bruno Haible.
47666         * config/srclist-update (fixfile): Change grep pattern again, since the
47667         previous fix didn't work (there was another trailing $).  Use
47668         '[$]' to escape the $s.
47669
47670 2003-07-15  Karl Berry  <karl@gnu.org>
47671
47672         * lib/vasnprintf.c: update from gettext.
47673
47674 2003-07-15  Karl Berry  <karl@gnu.org>
47675
47676         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
47677         gets expanded when surrounded by '$'.
47678
47679 2003-07-15  Jim Meyering  <jim@meyering.net>
47680
47681         * modules/save-cwd: Don't depend on error.  From Derek Price.
47682
47683 2003-07-15  Jim Meyering  <jim@meyering.net>
47684
47685         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
47686
47687 2003-07-14  Simon Josefsson  <jas@extundo.com>
47688
47689         * modules/mempcpy: New file.
47690         * MODULES.html.sh (func_all_modules): Add mempcpy.
47691
47692 2003-07-14  Simon Josefsson  <jas@extundo.com>
47693
47694         * m4/mempcpy.m4: New file.
47695
47696 2003-07-14  Simon Josefsson  <jas@extundo.com>
47697
47698         * lib/mempcpy.h: New file.
47699         * lib/mempcpy.c: New file.
47700
47701 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47702
47703         * modules/getdate, modules/posixtm: Depend on mktime.
47704
47705 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47706
47707         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
47708         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
47709         unicodeio.c, unicodeio.h, unlocked-io.h:
47710         Switch from LGPL to GPL.
47711
47712 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47713
47714         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
47715         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
47716         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
47717         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
47718         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
47719         updated automatically by ../config/srclist-update.  This changes
47720         their license from LPGL to GPL.
47721
47722 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47723
47724         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
47725         assumed to refer to the root of the most recent stable gettext version.
47726         * config/srclistvars.sh: Add defaults for eggert.
47727         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
47728         Match "This program" as well as "The program".  This is needed
47729         for gettext.
47730
47731 2003-07-14  Jim Meyering  <jim@meyering.net>
47732
47733         Don't emit diagnostics.  Let callers do that.
47734         * lib/save-cwd.c: Don't include "error.h".
47735         (save_cwd): Don't call error.  Ensure that errno is valid
47736         when returning nonzero.
47737
47738         * lib/save-cwd.h (restore_cwd): Update prototype.
47739         * lib/save-cwd.c (restore_cwd): Remove two parameters.
47740         Simplify.  Don't call error upon failure.  Let callers do that.
47741         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
47742         when auditing is enabled.  But don't bother updating the #if.
47743
47744 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
47745
47746         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
47747         it breaks C++ compilation.
47748         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
47749
47750 2003-07-10  Simon Josefsson  <jas@extundo.com>
47751
47752         * modules/strchrnul (Makefile.am): Add strchrnul.h.
47753
47754 2003-07-10  Jim Meyering  <jim@meyering.net>
47755
47756         * m4/clock_time.m4: Remove trailing blank.
47757         * m4/intmax_t.m4: Likewise.
47758
47759 2003-07-10  Jim Meyering  <jim@meyering.net>
47760
47761         * lib/vasnprintf.c: Remove trailing blanks.
47762         Make cpp indentation consistent.
47763
47764 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47765
47766         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
47767         posixver.c, strftime.c, strnlen.c, strverscmp.c:
47768         Switch from LGPL to GPL.
47769
47770 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47771
47772         * config/srclist.txt: Sort sublists.  Add
47773         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
47774         that differ from gnulib for one reason or another; we'd like this list
47775         to be smaller but for now let's document what we have.
47776
47777 2003-07-08  Paul Eggert  <eggert@twinsun.com>
47778
47779         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
47780         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
47781         and sweeter "eval x=$x".
47782         * config/srclist.txt: Get lib/argp* from glibc.
47783
47784 2003-07-07  Paul Eggert  <eggert@twinsun.com>
47785
47786         * lib/mktime.c: Fix some boundary cases and remove need for floating
47787         point.
47788
47789         Issue a compile-time diagnostic if time_t is floating point, or if
47790         two's complement arithmetic is not in effect, or if arithmetic
47791         right shift does not propagate the sign.  These assumptions were
47792         all in the original code but they weren't checked.
47793
47794         (TIME_T_MIDPOINT, verify): New macros.
47795         (__isleap): Remove; it has integer overflow problems.
47796         (leapyear): New function, without those problems.
47797         (ydhms_tm_diff): Remove; splitting into two parts.
47798         (ydhms_diff): New function, containing the arithmetic part of
47799         the old ydhms_tm_diff function.  Issue a compile-time
47800         diagnostic if we are not using C99 integer division.
47801         Avoid casts when possible.
47802         (guess_time_tm): New function, containing the checking part of
47803         the old ydhms_tm_diff function.  Return the new value, rather than
47804         the difference between it and the old.  Accept a new argument T
47805         so that *T specifies the old value.  Check for overflow in the result.
47806
47807         (__mktime_internal): Use a time_t offset, not a long int offset.
47808         This undoes the 2003-06-04 change, which is no longer needed now
47809         that we have better overflow checking.
47810         (localtime_offset): Likewise.
47811
47812         (__mktime_internal): Avoid harmful overflow on hosts where time_t
47813         and long are 64-bit but int is only 32-bit.
47814         (ydhms_diff): Use long int to store year1 and yday1.
47815         Issue a compile-time diagnostic if long int is not wide enough.
47816
47817         (__mktime_internal): Use long int to store adjusted year and yday.
47818         Use plain C rather than preprocessor commands, if that doesn't
47819         affect efficiency.
47820         Check for overflow (and try to repair) after each probe
47821         rather than checking only at the very end.  This avoids some bugs
47822         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
47823         does not equal GMT offset at maximum time).
47824         Use integer to check for overflow rather than floating point; this
47825         is more portable to non-IEEE hosts, and is a tad faster.
47826         When we detect that we are oscillating between two values,
47827         don't check whether tm_isdst has the requested value, since
47828         we already know the answer.  When tm_isdst has the wrong value,
47829         use a different heuristic to find the right one, based on the
47830         extreme values actually observed in practice in tz2003a,
47831         rather than the (overly optimistic) "previous 3 calendar quarters".
47832
47833         (not_equal_tm, print_tm, check_result): Use "const T" rather than
47834         "T const" to accommodate glibc style.
47835         (check_result): Use less-confusing report format.  "long" -> "long int.
47836         (main): Likewise.
47837         Don't loop if the iteration overflows time_t.
47838         Allow a negative step in the iteration.
47839
47840 2003-07-06  Karl Berry  <karl@gnu.org>
47841
47842         * config/depcomp: update from automake.
47843         * config/config.sub: update from prep.
47844
47845 2003-07-03  Karl Berry  <karl@gnu.org>
47846
47847         * config/config.guess: update from prep.
47848
47849 2003-07-01  Paul Eggert  <eggert@twinsun.com>
47850
47851         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
47852         xreadlink.c now includes it unconditionally.
47853
47854 2003-07-01  Paul Eggert  <eggert@twinsun.com>
47855
47856         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
47857         having it depend on HAVE_SYS_TYPES_H.
47858
47859 2003-07-01  Bruno Haible  <bruno@clisp.org>
47860
47861         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
47862         <sys/types.h> should be sufficient.
47863         Reported by Paul Eggert.
47864
47865 2003-06-26  Karl Berry  <karl@gnu.org>
47866
47867         * config/depcomp: update from automake.
47868
47869 2003-06-26  Bruno Haible  <bruno@clisp.org>
47870
47871         * modules/human: Depend on module stdbool.
47872
47873 2003-06-25  Bruno Haible  <bruno@clisp.org>
47874
47875         * modules/readlink: New file.
47876         * modules/xreadlink: Depend on it.
47877         * MODULES.html.sh (func_all_modules): Add readlink.
47878
47879 2003-06-25  Bruno Haible  <bruno@clisp.org>
47880
47881         * m4/readlink.m4: New file.
47882
47883 2003-06-25  Bruno Haible  <bruno@clisp.org>
47884
47885         * lib/readlink.c: New file.
47886
47887 2003-06-22  Karl Berry  <karl@gnu.org>
47888
47889         * config/srclist.txt: update mkinstalldirs from automake.
47890         * config/mkinstalldirs: update.
47891
47892 2003-06-22  Bruno Haible  <bruno@clisp.org>
47893
47894         Portability to mingw32.
47895         * m4/ssize_t.m4: New file, from GNU gettext.
47896         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
47897         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
47898
47899 2003-06-22  Bruno Haible  <bruno@clisp.org>
47900
47901         * modules/safe-read: Add m4/ssize_t.m4.
47902         * modules/xreadlink: Add m4/ssize_t.m4.
47903
47904 2003-06-20  Bruno Haible  <bruno@clisp.org>
47905
47906         Assume C89, so PARAMS isn't needed.
47907         * lib/unicodeio.h (PARAMS): Remove.
47908         * lib/unicodeio.c: Don't use PARAMS.
47909
47910 2003-06-18  Karl Berry  <karl@gnu.org>
47911
47912         * config/config.{guess,sub}: update from prep.
47913
47914 2003-06-18  Jim Meyering  <jim@meyering.net>
47915
47916         Merge changes from coreutils.
47917         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
47918         Remove explicit declarations of xmalloc and realloc.
47919         Include xalloc.h.
47920         (read_utmp): Remove anachronistic cast of xmalloc.
47921
47922 2003-06-17  Paul Eggert  <eggert@twinsun.com>
47923
47924         Assume C89, so PARAMS isn't needed.
47925         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
47926         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
47927         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
47928         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
47929         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
47930         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
47931         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
47932         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
47933         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
47934         lib/xstrtod.h, lib/xstrtol.h: Likewise.
47935         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
47936         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
47937         no longer needed. Anyway, config.h should always be included before any
47938         other file.
47939
47940 2003-06-11  Simon Josefsson  <jas@extundo.com>
47941
47942         * modules/sysexits: New file.
47943         * MODULES.html.sh (func_all_modules): Add sysexits.
47944
47945 2003-06-11  Simon Josefsson  <jas@extundo.com>
47946
47947         * lib/sysexit_.h: New file.
47948
47949 2003-06-11  Derek Price  <derek@ximbiot.com>
47950
47951         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
47952         necessary.
47953
47954 2003-06-11  Bruno Haible  <bruno@clisp.org>
47955
47956         * m4/sysexits.m4: New file.
47957
47958 2003-06-10  Simon Josefsson  <jas@extundo.com>
47959
47960         * lib/argp.h: New file, from glibc.
47961         * lib/argp-ba.c: New file, from glibc.
47962         * lib/argp-eexst.c: New file, from glibc.
47963         * lib/argp-fmtstream.c: New file, from glibc.
47964         * lib/argp-fmtstream.h: New file, from glibc.
47965         * lib/argp-fs-xinl.c: New file, from glibc.
47966         * lib/argp-help.c: New file, from glibc.
47967         * lib/argp-namefrob.h: New file, from glibc.
47968         * lib/argp-parse.c: New file, from glibc.
47969         * lib/argp-pv.c: New file, from glibc.
47970         * lib/argp-pvh.c: New file, from glibc.
47971         * lib/argp-xinl.c: New file, from glibc.
47972
47973 2003-06-10  Simon Josefsson  <jas@extundo.com>
47974
47975         * modules/strchrnul: New file.
47976
47977 2003-06-10  Simon Josefsson  <jas@extundo.com>
47978
47979         * modules/argp: New file.
47980
47981 2003-06-10  Simon Josefsson  <jas@extundo.com>
47982
47983         * m4/strchrnul.m4: New file.
47984
47985 2003-06-10  Simon Josefsson  <jas@extundo.com>
47986
47987         * lib/strchrnul.h: New file.
47988         * lib/strchrnul.c: New file.
47989
47990 2003-06-10  Bruno Haible  <bruno@clisp.org>
47991
47992         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
47993
47994 2003-06-07  Karl Berry  <karl@gnu.org>
47995
47996         * config/config.{guess,sub}: update from prep.
47997
47998 2003-06-07  Jim Meyering  <jim@meyering.net>
47999
48000         * modules/strtod: Use $(...) notation, not @...@ for
48001         AC_REPLACE'd variables.
48002         * modules/localcharset: Likewise.
48003
48004 2003-06-07  Jim Meyering  <jim@meyering.net>
48005
48006         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
48007         in place of my name in the copyright comment.
48008         Remove definition and uses of __P.
48009
48010         From coreutils.
48011         * lib/stat.c: Don't declare xmalloc explicitly.
48012         Instead, include "xalloc.h".
48013         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
48014         xrealloc, and xcalloc return values.
48015         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
48016         Improve comment.
48017         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
48018
48019 2003-06-07  Bruno Haible  <bruno@clisp.org>
48020
48021         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
48022         avoid AC_CONFIG_LINKS.
48023         * modules/fnmatch (Makefile.am): Use explicit creation rule for
48024         fnmatch.h, to avoid AC_CONFIG_LINKS.
48025         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
48026
48027 2003-06-07  Bruno Haible  <bruno@clisp.org>
48028
48029         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
48030         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
48031         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48032         directory.
48033         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
48034         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48035         directory.
48036
48037 2003-06-06  Jim Meyering  <jim@meyering.net>
48038
48039         Merge from coreutils.
48040         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
48041         Consolidate declarations and initializations of *_base* locals.
48042
48043         Merge from coreutils.
48044         This avoids a core dump on systems without GNU putenv,
48045         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
48046         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
48047         (unsetenv): New static function, from GNU libc.
48048         (rpl_putenv): Use it.
48049
48050         * lib/modechange.c: Remove trailing blanks.
48051
48052         Merge from coreutils.
48053         * lib/fsusage.c: Remove declaration of statfs.
48054         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
48055
48056         * lib/posixtm.c: Include <stdbool.h> unconditionally.
48057
48058 2003-06-06  Jim Meyering  <jim@meyering.net>
48059
48060         * lib/stdbool_.h: Renamed from stdbool.h.in.
48061
48062 2003-06-06  Jim Meyering  <jim@meyering.net>
48063             Bruno Haible  <bruno@clisp.org>
48064
48065         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
48066         Adjust Makefile.am snippet not to redirect directly to target.
48067         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
48068
48069 2003-06-05  Paul Eggert  <eggert@twinsun.com>
48070
48071         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
48072         mismatch, look in future quarters as well as past.  This fixes a
48073         bug when processing fall-backwards gaps immediately after a long
48074         period of daylight-saving time.
48075
48076         * lib/mktime.c: Assume freestanding C89 or better.
48077         (HAVE_LIMITS_H): Remove.  Assume it's 1.
48078         (__P): Remove; not used.
48079         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
48080         (mktime, not_equal_tm, print_tm, check_result,
48081         main): Use prototypes.  Use const * where appropriate.
48082         (main): Fix typo in testing code that uncovered by above changes.
48083         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
48084
48085 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48086
48087         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
48088         locale.h, localeconv.  This merges changes from coreutils.
48089
48090         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
48091         It can be removed after the next Autoconf is released.
48092         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
48093         needed.
48094
48095 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48096
48097         * lib/mktime.c: Fix Debian bug 177940
48098         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
48099         (localtime_offset): Now long int, not time_t, because we want it
48100         to be guaranteed to be signed.  All uses changed.
48101         (__mktime_internal): If overflow would occur when adding offset,
48102         don't add it.
48103
48104         Merge 'human' changes from coreutils.  Rewrite to support
48105         locale-specific notations like thousands separators.
48106         * lib/human.c: Simplify authorship notice.
48107         Include human.h immediately after config.h.
48108         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
48109         <limits.h>: Do not include, since human.h does.
48110         (SIZE_MAX, UINTMAX_MAX): New macros.
48111         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
48112         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
48113         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
48114         (power_letter): Renamed from suffixes.
48115         (generate_suffix_backwards): Remove.
48116         (adjust_value): Now takes int style (because of human.h changes)
48117         and long double value (for greater precision on some platforms).
48118         (group_number): New function.
48119         (human_readable): Use it.  Use integer options, not enum.
48120         Put the options before the sizes in the arg list.
48121         Support all the new options.
48122         The old human_readable function has been removed;
48123         use inttostr.h instead.
48124         (human_readable, default_block_size, humblock):
48125         Use uintmax_t, not int, for block sizes.
48126         (human_readable_inexact, block_size_types): Remove.
48127         (block_size_opts): New constant.
48128         (human_options): Renamed from human_block_size, with new signature
48129         that allows block sizes up to UINTMAX_MAX.  All callers changed.
48130         * lib/human.h: Add copyright and authorship notice.
48131         Include <limits.h> and <stdbool.h> unconditionally.
48132         (PARAMS): Remove.  All uses removed.
48133         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
48134         (enum human_inexact_style): Remove tag; now a nameless enum.
48135         (human_floor, human_ceiling, human_round_to_even): Now have
48136         values 2, 0, 1 rather than -1, 1, 0.
48137         (human_group_digits, human_suppress_point_zero, human_autoscale,
48138         human_base_1024, human_SI, human_B): New constants.
48139         (human_readable_inexact, human_block_size): Remove.
48140         (human_readable): Size args are now uintmax_t, not int.
48141         (human_options): New decl.
48142
48143         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
48144         unnecessary now that we assume C89 or better.  This change
48145         imported from coreutils.
48146
48147         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
48148         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
48149         in the 2003-05-30 sync from glibc.
48150
48151         .h files should stand alone, but we shouldn't include <sys/types.h>
48152         if we can get away with just <stddef.h>.
48153
48154         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
48155         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
48156         rather than <sys/types.h>, as we merely need size_t.
48157         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
48158         to get size_t.
48159         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
48160         Include <stdio.h>, to get FILE.
48161         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
48162         memcasecmp.h has included <stddef.h> and all we need is size_t.
48163         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
48164         our interface, instead of including <sys/types.h>
48165
48166 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48167
48168         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
48169         now, as glibc mktime is buggy on non-glibc systems.
48170
48171 2003-06-03  Karl Berry  <karl@gnu.org>
48172
48173         * config/config.sub: update from prep.
48174
48175 2003-06-02  Paul Eggert  <eggert@twinsun.com>
48176
48177         [from coreutils]
48178         Fix some minor time-related bugs with POSIX time arguments.
48179         Some valid time stamps were being rejected (notably -1, and
48180         time stamps before 1900 on 64-bit hosts).  And some invalid
48181         time stamps were being accepted, e.g. September 31.
48182
48183         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
48184         that we can return (time_t) -1 successfully.
48185         * lib/posixtm.c: Likewise.
48186         [HAVE_STDBOOL_H]: Include <stdbool.h>.
48187         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
48188         (t): Remove static var.
48189         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
48190         of static var.  All uses changed.
48191         (year): Do not reject years before 1900; they can occur with
48192         64-bit time_t.
48193         (posix_time_parse): Do not check for out-of-range components;
48194         that is now the caller's responsibility, since our checks were
48195         only approximations.
48196         (posixtime): Use mktime to check for out-of-range components,
48197         since it knows them exactly.
48198         If mktime returns (time_t) -1, check whether an error actually occurred
48199         by invoking localtime on -1.
48200         (main) [TEST_POSIXTIME]: Check for input data errors, and report
48201         posixtime failures better.
48202         Improve the test data (in comments only).
48203
48204 2003-06-02  Karl Berry  <karl@gnu.org>
48205
48206         * config/mkinstalldirs (version): new variable.
48207         (--version): new option.
48208         (usage): improve message.
48209
48210 2003-05-30  Karl Berry  <karl@gnu.org>
48211
48212         * lib/mktime.c: update from libc.
48213
48214 2003-05-30  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
48217         * config/config.rpath: Upgrade to gettext-0.12.1.
48218
48219 2003-05-30  Bruno Haible  <bruno@clisp.org>
48220
48221         * m4/gettext.m4: Upgrade to gettext-0.12.1.
48222         * m4/nls.m4: New file, from gettext-0.12.1.
48223         * m4/po.m4: New file, from gettext-0.12.1.
48224         * m4/progtest.m4: Upgrade to gettext-0.12.1.
48225
48226 2003-05-30  Bruno Haible  <bruno@clisp.org>
48227
48228         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
48229         * lib/localcharset.h: Likewise.
48230         * lib/localcharset.c: Likewise.
48231
48232 2003-05-29  Karl Berry  <karl@gnu.org>
48233
48234         * config/config.rpath: update from gettext.
48235
48236 2003-05-28  Paul Eggert  <eggert@twinsun.com>
48237
48238         Assume the headers required for C89 freestanding compilers.
48239         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
48240         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
48241         * m4/human.m4 (gl_HUMAN): Likewise.
48242         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
48243         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
48244         * m4/userspec.m4 (gl_USERSPEC): Likewise.
48245         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
48246         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48247         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
48248
48249 2003-05-28  Paul Eggert  <eggert@twinsun.com>
48250
48251         Assume the headers required for C89 freestanding compilers.
48252         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
48253         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
48254         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
48255         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
48256         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
48257         define, since <limits.h> is guaranteed to do that.
48258         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
48259         * lib/exclude.c: Include <stdbool.h> unconditionally.
48260         * lib/tempname.c: Include <stddef.h> unconditionally.
48261         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
48262         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
48263         <stddef.h> does that.
48264         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
48265         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
48266         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
48267         needed.
48268         * lib/xstrtol.c: Likewise.
48269         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
48270         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
48271
48272         * lib/addext.c (addext): Use assignment rather than cast, to avoid
48273         warnings on some platforms.
48274
48275         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
48276         arbitrarily.
48277
48278 2003-05-26  Jim Meyering  <jim@meyering.net>
48279
48280         Merge in a change from coreutils:
48281         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
48282         that is guaranteed to be `no'.  Use `no_such_member' to indicate
48283         that condition, rather than `-1' which is slightly misleading.
48284         Change the name of the cache variable to have the gl_ prefix.
48285         Prompted by a patch from Richard Dawe for DJGPP.
48286
48287 2003-05-24  Karl Berry  <karl@gnu.org>
48288
48289         * config/config.guess: update from prep.
48290
48291 2003-05-22  Karl Berry  <karl@gnu.org>
48292
48293         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
48294
48295 2003-05-20  Karl Berry  <karl@gnu.org>
48296
48297         * config/config.guess: update from prep.
48298
48299 2003-05-18  Karl Berry  <karl@gnu.org>
48300
48301         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
48302         might actually be set by the user.
48303
48304         * config/depcomp, install-sh, mdate-sh: update from automake.
48305
48306 2003-05-17  Bruno Haible  <bruno@clisp.org>
48307
48308         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
48309         invalid expansion for AC_EGREP_CPP.
48310         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
48311         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
48312         Suggested by Akim Demaille <akim@epita.fr> in
48313         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
48314
48315 2003-05-12  Jim Meyering  <jim@meyering.net>
48316
48317         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
48318         the space-padded-by-default conversion specifiers, %e, %k, %l.
48319
48320 2003-05-12  Bruno Haible  <bruno@clisp.org>
48321
48322         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
48323         the string is longer than 4 KB.
48324
48325 2003-05-11  Karl Berry  <karl@gnu.org>
48326
48327         * config/config.{guess,sub}: update from prep.
48328
48329 2003-05-09  Bruno Haible  <bruno@clisp.org>
48330
48331         * modules/error: Add m4/strerror_r.m4 to file list.
48332
48333 2003-05-03  Bruno Haible  <bruno@clisp.org>
48334
48335         Upgrade to Unicode-4.0.
48336         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
48337         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
48338         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
48339         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
48340         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
48341         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
48342         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
48343         Change width of U+E0100..U+E01EF from 1 to 0.
48344
48345 2003-04-25  Jim Meyering  <jim@meyering.net>
48346
48347         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
48348         of type size_t, not int.
48349
48350 2003-04-25  Bruno Haible  <bruno@clisp.org>
48351
48352         * lib/copy-file.c: Include <stddef.h>, for size_t.
48353
48354 2003-04-21  Paul Eggert  <eggert@twinsun.com>
48355
48356         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
48357         code which expansion is under static control.  Patch imported from
48358         Akim Demaille's patch to Bison; see
48359         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
48360
48361 2003-04-14  Bruno Haible  <bruno@clisp.org>
48362
48363         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
48364
48365 2003-04-11  Jim Meyering  <jim@meyering.net>
48366
48367         Merge changes from Coreutils.
48368
48369         2003-03-22  Jim Meyering  <jim@meyering.net>
48370
48371         * lib/strftime.c (widen): Cast alloca return value to proper type.
48372
48373         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
48374
48375         From GNU libc.
48376         * lib/strftime.c (my_strftime): Handle very large width
48377         specifications for numeric values correctly.  Improve checks for
48378         overflow.
48379
48380         2003-01-19  Jim Meyering  <jim@meyering.net>
48381
48382         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
48383         definitions.
48384         (nl_get_alt_digit) [! defined my_strftime]: Define.
48385         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
48386         _nl_get_alt_digit and _nl_get_walt_digit.
48387
48388         * lib/strftime.c (my_strftime): Merge in locale-related changes from
48389         libc. These changes have no effect outside of _LIBC.
48390
48391 2003-04-10  Bruno Haible  <bruno@clisp.org>
48392
48393         * modules/findprog: New file.
48394         * MODULES.html.sh (func_all_modules): Add it.
48395
48396 2003-04-10  Bruno Haible  <bruno@clisp.org>
48397
48398         * m4/findprog.m4: New file.
48399         * m4/eaccess.m4: New file.
48400
48401 2003-04-10  Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/findprog.h: New file, from GNU gettext.
48404         * lib/findprog.c: New file, from GNU gettext.
48405
48406 2003-04-05  Jim Meyering  <jim@meyering.net>
48407
48408         Merge changes from Coreutils.
48409
48410         * lib/exclude.h (PARAMS): Remove definition and uses.
48411         * lib/exclude.c: Remove uses of `PARAMS'.
48412
48413         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
48414         Add test-cases for DOS filenames. Declare program_name.
48415         (main): Set up program_name.  Patch by Rich Dawe.
48416
48417         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48418         error from mntctl.
48419         Use mntctl's return value to drive the entry-processing loop, since
48420         we can't rely on the value of the vmt_length member in the last
48421         entry.  On some systems doing so could result in exhausting
48422         virtual memory.  Based in part on a patch from Mike Jetzer.
48423
48424 2003-04-04  Bruno Haible  <bruno@clisp.org>
48425
48426         * modules/linebreak: New file.
48427         * MODULES.html.sh (func_all_modules): Add it.
48428
48429 2003-04-04  Bruno Haible  <bruno@clisp.org>
48430
48431         * m4/linebreak.m4: New file.
48432
48433 2003-04-04  Bruno Haible  <bruno@clisp.org>
48434
48435         * lib/linebreak.h: New file, from GNU gettext.
48436         * lib/linebreak.c: New file, from GNU gettext with slight
48437         modifications.
48438         * lib/lbrkprop.h: New file, from GNU gettext.
48439
48440 2003-04-03  Bruno Haible  <bruno@clisp.org>
48441
48442         * modules/utf8-ucs4: New file.
48443         * modules/utf16-ucs4: New file.
48444         * modules/ucs4-utf8: New file.
48445         * modules/ucs4-utf16: New file.
48446         * MODULES.html.sh (func_all_modules): Add them.
48447
48448 2003-04-03  Bruno Haible  <bruno@clisp.org>
48449
48450         * m4/utf-ucs4.m4: New file.
48451         * m4/ucs4-utf.m4: New file.
48452
48453 2003-04-03  Bruno Haible  <bruno@clisp.org>
48454
48455         * lib/utf8-ucs4.h: New file, from GNU gettext.
48456         * lib/utf16-ucs4.h: New file, from GNU gettext.
48457         * lib/ucs4-utf8.h: New file, from GNU gettext.
48458         * lib/ucs4-utf16.h: New file, from GNU gettext.
48459
48460 2003-04-02  Bruno Haible  <bruno@clisp.org>
48461
48462         * modules/binary-io: New file.
48463         * MODULES.html.sh (func_all_modules): Add it.
48464
48465 2003-04-02  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/binary-io.h: New file, from GNU gettext.
48468
48469 2003-04-01  Bruno Haible  <bruno@clisp.org>
48470
48471         * modules/pathname: New file.
48472         * MODULES.html.sh (func_all_modules): Add it.
48473
48474 2003-04-01  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/pathname.h: New file, from GNU gettext.
48477         * lib/concatpath.c: New file, from GNU gettext.
48478
48479 2003-03-30  Bruno Haible  <bruno@clisp.org>
48480
48481         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
48482
48483 2003-03-30  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
48486         function chown() doesn't exist.
48487
48488 2003-03-28  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/copy-file: New file.
48491         * MODULES.html.sh (func_all_modules): Add it.
48492
48493 2003-03-28  Bruno Haible  <bruno@clisp.org>
48494
48495         * m4/copy-file.m4: New file.
48496
48497 2003-03-28  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/copy-file.h: New file, from GNU gettext.
48500         * lib/copy-file.c: New file, from GNU gettext.
48501
48502 2003-03-18  Jim Meyering  <jim@meyering.net>
48503
48504         * lib/quote.c (quote_n): Fix typo in comment.
48505
48506 2003-03-18  Bruno Haible  <bruno@clisp.org>
48507
48508         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
48509         checking.
48510         * m4/onceonly_2_57.m4: Likewise.
48511
48512 2003-03-17  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/onceonly.m4: Require autoconf 2.54 or newer.
48515         (m4_quote): Remove macro.
48516         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
48517
48518 2003-03-14  Jim Meyering  <jim@meyering.net>
48519
48520         Merge changes from Coreutils.
48521         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
48522         to be const, in order to avoid warnings.
48523         (obstack_room): Likewise.
48524         (obstack_empty_p): Likewise.
48525
48526 2003-03-14  Bruno Haible  <bruno@clisp.org>
48527
48528         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
48529         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
48530
48531 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48532
48533         Merge changes from Bison.
48534         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
48535         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
48536         when compiling Bison 1.875's `bitset bset = obstack_alloc
48537         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
48538         * lib/hash.c: Include <stdbool.h> unconditionally.
48539
48540 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48541
48542         * m4/onceonly.m4 (m4_quote): New macro.
48543         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
48544         Quote AC_FOREACH variable-expansions properly.
48545
48546 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48547
48548         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
48549
48550 2003-03-09  Paul Eggert  <eggert@twinsun.com>
48551
48552         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
48553         Reported by Bruce Becker; see:
48554         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
48555
48556 2003-03-03  Paul Eggert  <eggert@twinsun.com>
48557             Bruno Haible  <bruno@clisp.org>
48558
48559         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
48560         Reported by John Hughes, see
48561         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
48562
48563 2003-02-20  Bruno Haible  <bruno@clisp.org>
48564
48565         * MODULES.html.sh (func_all_modules): Add poll.
48566
48567 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48568
48569         * modules/poll: New file.
48570
48571 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48572
48573         * lib/poll_.h: New file.
48574         * lib/poll.c: New file.
48575
48576 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48577
48578         * m4/poll.m4: New file.
48579
48580 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48581
48582         * modules/mathl: New file.
48583
48584 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48585
48586         * lib/mathl.h: New file.
48587         * lib/acosl.c: New file.
48588         * lib/asinl.c: New file.
48589         * lib/atanl.c: New file.
48590         * lib/ceill.c: New file.
48591         * lib/cosl.c: New file.
48592         * lib/expl.c: New file.
48593         * lib/floorl.c: New file.
48594         * lib/frexpl.c: New file.
48595         * lib/ldexpl.c: New file.
48596         * lib/logl.c: New file.
48597         * lib/sincosl.c: New file.
48598         * lib/sinl.c: New file.
48599         * lib/sqrtl.c: New file.
48600         * lib/tanl.c: New file.
48601         * lib/trigl.c: New file.
48602         * lib/trigl.h: New file.
48603
48604 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48605
48606         * m4/mathl.m4: New file.
48607
48608 2003-02-18  Bruno Haible  <bruno@clisp.org>
48609
48610         * MODULES.html.sh (func_all_modules): Add mathl.
48611
48612 2003-02-17  Bruno Haible  <bruno@clisp.org>
48613
48614         * modules/mkdtemp: New module.
48615         * MODULES.html.sh (func_all_modules): Add it.
48616
48617 2003-02-17  Bruno Haible  <bruno@clisp.org>
48618
48619         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
48620
48621 2003-02-17  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/mkdtemp.h: New file, from GNU gettext.
48624         * lib/mkdtemp.c: New file, from GNU gettext.
48625
48626 2003-02-02  Jim Meyering  <jim@meyering.net>
48627
48628         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
48629         e.g. glibc-2.2.93.
48630
48631 2003-01-31  Bruno Haible  <bruno@clisp.org>
48632
48633         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
48634         'rpl_rename'.
48635         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
48636         'rpl_strnlen'.
48637         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
48638         'rpl_strtod'.
48639         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
48640         'rpl_utime'.
48641
48642 2003-01-31  Bruno Haible  <bruno@clisp.org>
48643
48644         * lib/rename.c: #undef rename before defining rpl_rename.
48645         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
48646
48647 2003-01-30  Bruno Haible  <bruno@clisp.org>
48648
48649         * modules/vasnprintf, modules/vasprintf: New modules.
48650         * MODULES.html.sh (func_all_modules): Add them.
48651
48652 2003-01-30  Bruno Haible  <bruno@clisp.org>
48653
48654         * m4/signed.m4: New file, from GNU gettext.
48655         * m4/longdouble.m4: New file, from GNU gettext.
48656         * m4/wchar_t.m4: New file, from GNU gettext.
48657         * m4/wint_t.m4: New file, from GNU gettext.
48658         * m4/vasnprintf.m4: New file.
48659         * m4/vasprintf.m4: New file.
48660
48661 2003-01-30  Bruno Haible  <bruno@clisp.org>
48662
48663         * lib/printf-args.h: New file, from GNU gettext.
48664         * lib/printf-args.c: New file, from GNU gettext.
48665         * lib/printf-parse.h: New file, from GNU gettext.
48666         * lib/printf-parse.c: New file, from GNU gettext.
48667         * lib/vasnprintf.h: New file, from GNU gettext.
48668         * lib/vasnprintf.c: New file, from GNU gettext.
48669         * lib/asnprintf.c: New file, from GNU gettext.
48670         * lib/vasprintf.h: New file, from GNU gettext with modifications.
48671         * lib/vasprintf.c: New file, from GNU gettext.
48672         * lib/asprintf.c: New file, from GNU gettext.
48673
48674 2003-01-29  Bruno Haible  <bruno@clisp.org>
48675
48676         * modules/stpncpy: New module.
48677         * MODULES.html.sh (func_all_modules): Add it.
48678
48679 2003-01-29  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/stpncpy.m4: New file.
48682
48683 2003-01-29  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/stpncpy.h: New file, from GNU gettext with modifications.
48686         * lib/stpncpy.c: New file, from GNU gettext with modifications.
48687
48688 2003-01-28  Bruno Haible  <bruno@clisp.org>
48689
48690         * modules/c-ctype: New module.
48691         * MODULES.html.sh (func_all_modules): Add it.
48692
48693 2003-01-28  Bruno Haible  <bruno@clisp.org>
48694
48695         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
48696         Paul Eggert.
48697         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
48698         Paul Eggert.
48699
48700 2003-01-27  Bruno Haible  <bruno@clisp.org>
48701
48702         * modules/xsetenv: New module.
48703         * MODULES.html.sh (func_all_modules): Add it.
48704
48705 2003-01-27  Bruno Haible  <bruno@clisp.org>
48706
48707         * lib/xsetenv.h: New file, from GNU gettext.
48708         * lib/xsetenv.c: New file, from GNU gettext.
48709
48710 2003-01-23  Jim Meyering  <jim@meyering.net>
48711
48712         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
48713         from working on systems without dirfd (at least Irix and OSF1/Tru64).
48714
48715 2003-01-23  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/minmax: New module.
48718         * MODULES.html.sh (func_all_modules): Add it.
48719
48720 2003-01-23  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
48723         Eggert.
48724
48725 2003-01-22  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/exit: New module.
48728         * MODULES.html.sh (func_all_modules): Add it.
48729
48730 2003-01-22  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/exit.h: New file, from GNU gettext.
48733
48734 2003-01-19  Bruno Haible  <bruno@clisp.org>
48735
48736         * gnulib-tool: Recognize option --extract-maintainer.
48737         (func_get_maintainer): New function.
48738         * modules/*: Add Maintainer entry.
48739
48740 2003-01-16  Jim Meyering  <jim@meyering.net>
48741
48742         * m4/regex.m4: The `regex' struct is both input and output.
48743         Initialize it before each use.  Patch by Tim Waugh.
48744
48745 2003-01-16  Bruno Haible  <bruno@clisp.org>
48746
48747         * MODULES.html.sh: Add a table of contents. Add the module name as
48748         leftmost column. Add hyperlinks.
48749
48750 2003-01-15  Bruno Haible  <bruno@clisp.org>
48751
48752         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
48753
48754 2003-01-15  Bruno Haible  <bruno@clisp.org>
48755
48756         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
48757         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
48758         suffix.
48759
48760 2003-01-15  Bruno Haible  <bruno@clisp.org>
48761
48762         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
48763
48764 2003-01-15  Bruno Haible  <bruno@clisp.org>
48765
48766         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
48767         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
48768
48769 2003-01-14  Jim Meyering  <jim@meyering.net>
48770
48771         * lib/same.c (same_name): Tweak a comment.
48772
48773 2003-01-14  Bruno Haible  <bruno@clisp.org>
48774
48775         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
48776         when a string comparison is sufficient.
48777
48778 2003-01-14  Bruno Haible  <bruno@clisp.org>
48779
48780         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
48781         'unsigned int'.
48782
48783 2003-01-14  Bruno Haible  <bruno@clisp.org>
48784
48785         * lib/hash-pjw.c: Add comment about low quality of this function.
48786
48787 2003-01-13  Bruno Haible  <bruno@clisp.org>
48788
48789         * modules/stpcpy: Distribute lib/stpcpy.h.
48790         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
48791
48792 2003-01-13  Bruno Haible  <bruno@clisp.org>
48793
48794         * modules/*: Add a description.
48795         * modules/strpbrk: Fix Makefile.am snippet.
48796         * modules/strtoimax: Fix dependencies.
48797         * modules/strtoumax: Likewise.
48798
48799 2003-01-13  Bruno Haible  <bruno@clisp.org>
48800
48801         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
48802         * modules/alloca (Makefile.am): All object files depend on alloca.h.
48803         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
48804
48805 2003-01-13  Bruno Haible  <bruno@clisp.org>
48806
48807         * gnulib-tool (func_create_testdir): Store config/* files in the main
48808         directory.
48809         * config.rpath: Move to ...
48810         * config/config.rpath: ... here.
48811         * modules/gettext: Contains config/config.rpath, not config.rpath.
48812         * modules/iconv: Likewise.
48813
48814 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48815
48816         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48817         to avoid collisions with libcurses and libreadline.
48818
48819         * m4/getstr.m4: Remove.
48820         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
48821
48822 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48823
48824         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48825         to avoid collisions with libcurses and libreadline.
48826
48827         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
48828         * lib/getstr.h, getstr.c: Remove.
48829         * lib/getline.c: Include "getline.h", to check interface.
48830         Move body of old getstr.c here: this defines MIN_CHUNK and
48831         declares getdelim2, which is renamed from getstr.
48832         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
48833
48834         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
48835         All uses changed.
48836         * lib/linebuffer.h: Likewise.
48837         (readline): Remove backward-compatibility macro.
48838
48839 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48840
48841         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48842         to avoid collisions with libcurses and libreadline.
48843         * getstr: Remove.
48844         * MODULES.html.sh: Remove getstr.
48845         * modules/getline: Depend on unlocked-io, not getstr.
48846
48847 2003-01-12  Jim Meyering  <jim@meyering.net>
48848
48849         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
48850
48851 2003-01-10  Bruno Haible  <bruno@clisp.org>
48852
48853         * modules/alloca: Change Makefile.am requirements. Simplify Include
48854         requirements. Add lib/alloca_.h to file list.
48855
48856 2003-01-10  Bruno Haible  <bruno@clisp.org>
48857
48858         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
48859
48860 2003-01-10  Bruno Haible  <bruno@clisp.org>
48861
48862         * lib/alloca_.h: New file.
48863         * lib/getdate.y: Unconditionally include alloca.h.
48864         * lib/makepath.c: Likewise.
48865         * lib/setenv.c: Likewise.
48866         * lib/userspec.c: Likewise.
48867
48868 2003-01-09  Karl Berry  <karl@gnu.org>
48869
48870         * MODULES.html.sh: include `dirname $0` in PATH, to find
48871         gnulib-tool.
48872
48873 2003-01-09  Bruno Haible  <bruno@clisp.org>
48874
48875         * modules/stdbool: Change configure.ac, Makefile.am requirements.
48876         Simplify Include requirements. Add lib/stdbool.h.in to file list.
48877
48878 2003-01-09  Bruno Haible  <bruno@clisp.org>
48879
48880         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
48881
48882 2003-01-09  Bruno Haible  <bruno@clisp.org>
48883
48884         * lib/stdbool.h.in: New file.
48885
48886 2003-01-09  Bruno Haible  <bruno@clisp.org>
48887
48888         * gnulib-tool (func_all_modules): Ignore files ending in ~.
48889         * MODULES.html.sh: Likewise.
48890
48891 2003-01-08  Jim Meyering  <jim@meyering.net>
48892
48893         * lib/full-write.c: Undefine and define-away `const' after inclusion
48894         of errno.h, not before.  Suggestion from Bruno Haible.
48895
48896 2003-01-08  Bruno Haible  <bruno@clisp.org>
48897
48898         * modules/full-read: Depend on full-write.
48899
48900 2003-01-08  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/safe-read.c: Include specification header first, to ensure its
48903         selfcontainedness.
48904         * lib/full-write.c: Likewise.
48905
48906 2003-01-07  Jim Meyering  <jim@meyering.net>
48907
48908         * lib/full-write.c: Rework so that it may serve to define full_read,
48909         too.
48910         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
48911
48912 2003-01-07  Bruno Haible  <bruno@clisp.org>
48913
48914         * lib/strtoimax.c: Include <stdint.h> as an alternative to
48915         <inttypes.h>.
48916         * lib/xstrtol.h: Likewise.
48917         * lib/xstrtoimax.c: Likewise.
48918         * lib/xstrtoumax.c: Likewise.
48919         * lib/human.h: Likewise.
48920
48921         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
48922         on systems that have <inttypes.h> but not <stdint.h>.
48923
48924 2003-01-07  Bruno Haible  <bruno@clisp.org>
48925
48926         * MODULES.html.sh: Add copyright notice.
48927         (missed_files): Omit CVS directory entries.
48928         (func_module): Make it work with sed-3.02.
48929         * MODULES.txt: Remove file.
48930
48931 2003-01-06  Jim Meyering  <jim@meyering.net>
48932
48933         * lib/version-etc.c: Update year in translatable copyright string.
48934
48935 2003-01-03  Karl Berry  <karl@gnu.org>
48936
48937         * config/config.{guess,sub}: update from prep.
48938
48939 2003-01-02  Karl Berry  <karl@gnu.org>
48940
48941         * doc/COPYING.DOC: belatedly updated to 1.2.
48942
48943 2003-01-01  Karl Berry  <karl@gnu.org>
48944
48945         * gnulib-tool (func_verify_module): report module name $module in
48946         error message, not $1.
48947         * gnulib-tool (create-testdir): don't complain if destdir couldn't
48948         be created, only if it doesn't exist.
48949         * gnulib-tool (last_checkin_date): don't expand the $Date here.
48950
48951 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48952
48953         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
48954
48955 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48956
48957         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
48958         memcmp if strcoll doesn't work.
48959
48960 2002-12-31  Bruno Haible  <bruno@clisp.org>
48961
48962         * lib/utime.c (utime_null): No need to call ftruncate if the file was
48963         nonempty.
48964
48965 2002-12-31  Bruno Haible  <bruno@clisp.org>
48966
48967         * lib/memcoll.c (STRCOLL): New macro.
48968         (memcoll): Use it.
48969
48970 2002-12-31  Bruno Haible  <bruno@clisp.org>
48971
48972         * lib/localcharset.h: New file.
48973         * lib/localcharset.c: Include it.
48974         * lib/unicodeio.c: Likewise.
48975
48976 2002-12-31  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
48979         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
48980
48981 2002-12-31  Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/getline.h: Include <stddef.h>, for size_t.
48984
48985         * lib/unicodeio.h: Include <stddef.h>, for size_t.
48986         * lib/unicodeio.c: Don't include <stddef.h>.
48987
48988 2002-12-31  Bruno Haible  <bruno@clisp.org>
48989
48990         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
48991         HAVE_TM_ZONE.
48992
48993 2002-12-24  Karl Berry  <karl@gnu.org>
48994
48995         * config/config.guess: update from prep.
48996
48997 2002-12-24  Bruno Haible  <bruno@clisp.org>
48998
48999         General infrasructure.
49000         * m4/README: Rewritten.
49001         * m4/onceonly.m4: New file.
49002         * m4/onceonly_2_57.m4: New file.
49003
49004         Module atexit.
49005         * m4/atexit.m4: New file.
49006
49007         Module strtod.
49008         * m4/strtod.m4: New file.
49009
49010         Module strtol.
49011         * m4/strtol.m4: New file.
49012
49013         Module strtoul.
49014         * m4/strtoul.m4: New file.
49015
49016         Module memchr.
49017         * m4/memchr.m4: New file.
49018
49019         Module memcmp.
49020         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
49021         (jm_FUNC_MEMCMP): Invoke it.
49022
49023         Module memcpy.
49024         * m4/memcpy.m4: New file.
49025
49026         Module memmove.
49027         * m4/memmove.m4: New file.
49028
49029         Module memset.
49030         * m4/memset.m4: New file.
49031
49032         Module strcspn.
49033         * m4/strcspn.m4: New file.
49034
49035         Module strpbrk.
49036         * m4/strpbrk.m4: New file.
49037
49038         Module strstr.
49039         * m4/strstr.m4: New file.
49040
49041         Module strerror.
49042         * m4/strerror.m4: New file.
49043
49044         Module mktime.
49045         * m4/mktime.m4: Renamed from jm-mktime.m4.
49046         (gl_PREREQ_MKTIME): New macro.
49047         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
49048
49049         Module malloc.
49050         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
49051         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
49052         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
49053
49054         Module realloc.
49055         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
49056         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
49057         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
49058
49059         Module strftime.
49060         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
49061         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
49062         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
49063         gl_TM_GMTOFF.
49064         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
49065
49066         Module xalloc.
49067         * m4/xalloc.m4: New file.
49068
49069         Module alloca.
49070         * m4/alloca.m4: New file.
49071
49072         Module putenv.
49073         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
49074         (jm_FUNC_PUTENV): Invoke it.
49075
49076         Module setenv.
49077         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
49078         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
49079         when invoked twice.
49080         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
49081         gt_FUNC_SETENV.
49082
49083         Module memrchr.
49084         * m4/memrchr.m4: New file.
49085
49086         Module stpcpy.
49087         * m4/stpcpy.m4: New file.
49088
49089         Module strcase.
49090         * m4/strcase.m4: New file.
49091
49092         Module strdup.
49093         * m4/strdup.m4: New file.
49094
49095         Module strnlen.
49096         * m4/strnlen.m4: New file.
49097
49098         Module strndup.
49099         * m4/strndup.m4: New file.
49100
49101         Module xstrtod.
49102         * m4/xstrtod.m4: New file.
49103
49104         Module xstrtol.
49105         * m4/xstrtol.m4: New file.
49106
49107         Module getdate.
49108         * m4/getdate.m4: New file.
49109
49110         Module unlocked-io.
49111         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
49112         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
49113         * m4/jm-glibc-io.m4n: Remove file.
49114
49115         Module long-options.
49116         * m4/long-options.m4: New file.
49117
49118         Module md5.
49119         * m4/md5.m4: New file.
49120
49121         Module sha.
49122         * m4/sha.m4: New file.
49123
49124         Module getstr.
49125         * m4/getstr.m4: New file.
49126
49127         Module getline.
49128         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
49129         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
49130         <sys/types.h>, for size_t. Use the function name gnu_getline, not
49131         simply getline. Infoke gl_PREREQ_GETLINE.
49132
49133         Module obstack.
49134         * m4/obstack.m4: New file.
49135
49136         Module hash.
49137         * m4/hash.m4: New file.
49138
49139         Module readtokens.
49140         * m4/readtokens.m4: New file.
49141
49142         Module strverscmp.
49143         * m4/strverscmp.m4: New file.
49144
49145         Module stdbool.
49146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
49147         OSF/1.
49148
49149         Module strtoll.
49150         * m4/strtoll.m4: New file.
49151
49152         Module strtoull.
49153         * m4/strtoull.m4: New file.
49154
49155         Module strtoimax.
49156         * m4/strtoimax.m4: New file.
49157
49158         Module strtoumax.
49159         * m4/strtoumax.m4: New file.
49160
49161         Module xstrtoimax.
49162         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
49163         jm_AC_PREREQ_XSTRTOIMAX.
49164         Moved the strtol prerequisites to strtol.m4.
49165         Moved the strtoll prerequisites to strtoll.m4.
49166         Moved the strtoimax prerequisites to strtoimax.m4.
49167
49168         Module xstrtoumax.
49169         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
49170         jm_AC_PREREQ_XSTRTOUMAX.
49171         Moved the strtoul prerequisites to strtoul.m4.
49172         Moved the strtoull prerequisites to strtoull.m4.
49173         Moved the strtoumax prerequisites to strtoumax.m4.
49174
49175         Module chown.
49176         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
49177         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
49178
49179         Module dup2.
49180         * m4/dup2.m4: New file.
49181
49182         Module ftruncate.
49183         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
49184         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
49185
49186         Module getgroups.
49187         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
49188         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
49189
49190         Module gettimeofday.
49191         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
49192         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
49193         gl_PREREQ_GETTIMEOFDAY.
49194
49195         Module mkdir.
49196         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
49197         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
49198
49199         Module mkstemp.
49200         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
49201         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
49202         jm_AC_TYPE_UINTMAX_T.
49203         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
49204
49205         Module stat.
49206         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
49207         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
49208
49209         Module lstat.
49210         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
49211         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
49212
49213         Module timespec.
49214         * m4/timespec.m4 (gl_TIMESPEC): New macro.
49215         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
49216         * m4/st_mtim.m4: Indentation.
49217
49218         Module nanosleep.
49219         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
49220         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
49221         gl_PREREQ_NANOSLEEP.
49222
49223         Module regex.
49224         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
49225         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
49226         (gl_REGEX): New macro.
49227
49228         Module rename.
49229         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
49230         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
49231
49232         Module rmdir.
49233         * m4/rmdir.m4: New file.
49234
49235         Module utime.
49236         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
49237         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
49238         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
49239
49240         Module dirname.
49241         * m4/dirname.m4: New file.
49242
49243         Module getopt.
49244         * m4/getopt.m4: New file.
49245
49246         Module unistd-safer.
49247         * m4/unistd-safer.m4: New file.
49248
49249         Module fnmatch.
49250         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
49251         declaration.
49252         (gl_PREREQ_FNMATCH_EXTRA): New macro.
49253         (gl_FUNC_FNMATCH_POSIX): New macro.
49254         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
49255         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
49256         simply fnmatch.
49257
49258         Module exclude.
49259         * m4/exclude.m4: New file.
49260
49261         Module human.
49262         * m4/human.m4: New file.
49263
49264         Module acl.
49265         * m4/acl.m4: Nop.
49266
49267         Module backupfile.
49268         * m4/backupfile.m4: New file.
49269         * m4/d-ino.m4: Indentation.
49270
49271         Module fsusage.
49272         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
49273         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
49274         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
49275
49276         Module dirfd.
49277         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
49278         requirements.
49279
49280         Module euidaccess.
49281         * m4/euidaccess.m4: New file.
49282
49283         Module file-type.
49284         * m4/file-type.m4: New file.
49285
49286         Module fileblocks.
49287         * m4/fileblocks.m4: New file.
49288
49289         Module filemode.
49290         * m4/filemode.m4: New file.
49291
49292         Module isdir.
49293         * m4/isdir.m4: New file.
49294
49295         Module lchown.
49296         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
49297         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
49298
49299         Module makepath.
49300         * m4/makepath.m4: New file.
49301
49302         Module modechange.
49303         * m4/modechange.m4: New file.
49304
49305         Module mountlist.
49306         * m4/mountlist.m4: New file.
49307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
49308         Indentation.
49309
49310         Module path-concat.
49311         * m4/path-concat.m4: New file.
49312
49313         Module pathmax.
49314         * m4/pathmax.m4: New file.
49315
49316         Module same.
49317         * m4/same.m4: New file.
49318
49319         Module save-cwd.
49320         * m4/save-cwd.m4: New file.
49321
49322         Module savedir.
49323         * m4/savedir.m4: New file.
49324
49325         Module xgetcwd.
49326         * m4/xgetcwd.m4: New file.
49327         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
49328
49329         Module xreadlink.
49330         * m4/xreadlink.m4: New file.
49331
49332         Module safe-read.
49333         * m4/safe-read.m4: New file.
49334
49335         Module safe-write.
49336         * m4/safe-write.m4: New file.
49337
49338         Module closeout.
49339         * m4/closeout.m4: New file.
49340
49341         Module stdio-safer.
49342         * m4/stdio-safer.m4: New file.
49343
49344         Module getpass.
49345         * m4/getpass.m4: New file.
49346
49347         Module getugroups.
49348         * m4/getugroups.m4: New file.
49349
49350         Module group-member.
49351         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
49352         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
49353
49354         Module idcache.
49355         * m4/idcache.m4: New file.
49356
49357         Module userspec.
49358         * m4/userspec.m4: New file.
49359
49360         Module gettime.
49361         * m4/clock_time.m4: New file.
49362         * m4/gettime.m4: New file.
49363
49364         Module settime.
49365         * m4/settime.m4: New file.
49366
49367         Module posixtm.
49368         * m4/posixtm.m4: New file.
49369
49370         Module gethostname.
49371         * m4/gethostname.m4: New file.
49372
49373         Module canon-host.
49374         * m4/canon-host.m4: New file.
49375
49376         Module gettext.
49377         * m4/codeset.m4: New file, from gettext-0.11.5.
49378         * m4/gettext.m4: New file, from gettext-0.11.5.
49379         * m4/glibc21.m4: New file, from gettext-0.11.5.
49380         * m4/iconv.m4: New file, from gettext-0.11.5.
49381         * m4/intdiv0.m4: New file, from gettext-0.11.5.
49382         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
49383         * m4/inttypes.m4: New file, from gettext-0.11.5.
49384         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
49385         * m4/isc-posix.m4: New file, from gettext-0.11.5.
49386         * m4/lcmessage.m4: New file, from gettext-0.11.5.
49387         * m4/lib-ld.m4: New file, from gettext-0.11.5.
49388         * m4/lib-link.m4: New file, from gettext-0.11.5.
49389         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
49390         * m4/progtest.m4: New file, from gettext-0.11.5.
49391         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
49392         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
49393         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
49394
49395         Module localcharset.
49396         * m4/localcharset.m4: New file.
49397
49398         Module hard-locale.
49399         * m4/hard-locale.m4: New file.
49400
49401         Module mbswidth.
49402         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
49403         onceonly macros.
49404         * m4/mbrtowc.m4: Add comment.
49405
49406         Module memcasecmp.
49407         * m4/memcasecmp.m4: New file.
49408
49409         Module memcoll.
49410         * m4/memcoll.m4: New file.
49411
49412         Module unicodeio.
49413         * m4/unicodeio.m4: New file.
49414
49415         Module rpmatch.
49416         * m4/rpmatch.m4: New file.
49417
49418         Module yesno.
49419         * m4/yesno.m4: New file.
49420
49421         Module exitfail.
49422         * m4/exitfail.m4: New file.
49423
49424         Module c-stack.
49425         * m4/c-stack.m4 (gl_C_STACK): New macro.
49426         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
49427
49428         Module error.
49429         * m4/error.m4 (gl_ERROR): New macro.
49430         (jm_PREREQ_ERROR): Use onceonly macros.
49431
49432         Module fatal.
49433         * m4/fatal.m4: New file.
49434
49435         Module getloadavg.
49436         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
49437         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
49438
49439         Module getpagesize.
49440         * m4/getpagesize.m4: New file.
49441
49442         Module getusershell.
49443         * m4/getusershell.m4: New file.
49444
49445         Module physmem.
49446         * m4/physmem.m4: New file.
49447
49448         Module posixver.
49449         * m4/posixver.m4: New file.
49450
49451         Module quotearg.
49452         * m4/quotearg.m4: New file.
49453
49454         Module quote.
49455         * m4/quote.m4: New file.
49456
49457         Module readutmp.
49458         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
49459
49460         Module sig2str.
49461         * m4/sig2str.m4: New file.
49462
49463         Other.
49464         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
49465         ulonglong.m4.
49466         * m4/intmax_t.m4: New file.
49467         * m4/d-type.m4: Indentation.
49468         * m4/jm-macros.m4: Update.
49469         * m4/prereq.m4 (jm_PREREQ): Update.
49470         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
49471         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
49472         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
49473         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
49474         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
49475         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
49476         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
49477         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
49478         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
49479         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
49480         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
49481         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
49482         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
49483         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
49484         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
49485         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
49486         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
49487         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
49488         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
49489
49490 2002-12-24  Bruno Haible  <bruno@clisp.org>
49491
49492         * MODULES.txt: Update according to m4/ changes.
49493
49494         Module gettext.
49495         * config.rpath: New file, from gettext-0.11.5.
49496
49497         * modules/*: New module descriptions.
49498         * gnulib-tool: New file.
49499         * MODULES.html.sh: New file.
49500
49501 2002-12-21  Karl Berry  <karl@gnu.org>
49502
49503         * doc/fdl.texi: update to version 1.2.
49504
49505 2002-12-19  Karl Berry  <karl@gnu.org>
49506
49507         * config/config.guess: update from prep.
49508
49509 2002-12-18  Bruno Haible  <bruno@clisp.org>
49510
49511         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
49512         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
49513
49514 2002-12-17  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
49517         stdlib.h, string.h.
49518
49519 2002-12-17  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/canon-host.c (strdup): Remove unused declaration.
49522
49523         * lib/fsusage.c: Include full_read.h.
49524         (get_fs_usage): Use full_read instead of safe_read.
49525
49526         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
49527
49528 2002-12-12  Karl Berry  <karl@gnu.org>
49529
49530         * config/config.guess: update from prep.
49531
49532 2002-12-11  Bruno Haible  <bruno@clisp.org>
49533
49534         * m4/setenv.m4: New file, from gettext-0.11.5.
49535
49536 2002-12-11  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
49539         not unsetenv().
49540         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
49541         modifications:
49542
49543         2002-12-11  Bruno Haible  <bruno@clisp.org>
49544
49545                 * setenv.c (alloca): Fall back to malloc.
49546                 (freea): New macro.
49547                 (setenv): Use freea() to free memory allocated with alloca().
49548
49549         2002-11-13  Bruno Haible  <bruno@clisp.org>
49550
49551                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
49552                 function declarations.
49553                 * unsetenv.c (unsetenv): Likewise.
49554
49555         2002-03-04  Bruno Haible  <bruno@clisp.org>
49556
49557                 Portability to AIX 4.3.3.
49558                 * unsetenv.c: New file, extracted from setenv.c.
49559                 * setenv.c: Move the unsetenv() function to unsetenv.c.
49560
49561         2001-12-20  Bruno Haible  <bruno@clisp.org>
49562
49563                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
49564                 use malloc instead. For SunOS 4.
49565
49566         2001-12-11  Bruno Haible  <bruno@clisp.org>
49567
49568                 * setenv.c: Declare alloca.
49569                 (compar_fn_t): New typedef.
49570                 (KNOWN_VALUE, STORE_VALUE): Use it.
49571
49572         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
49573         setenv.h.
49574
49575 2002-12-10  Paul Eggert  <eggert@twinsun.com>
49576
49577         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
49578         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
49579         Choose values that are less likely to collide with system fnmatch
49580         options.
49581         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
49582         defined (e.g., a pure POSIX system).
49583         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
49584         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
49585
49586 2002-12-06  Paul Eggert  <eggert@twinsun.com>
49587
49588         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
49589         a pain in practice to deal with generated m4 files.  This change
49590         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
49591
49592         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
49593         and jm-glibc-io.m4, as they are no longer a special case.
49594         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
49595         kludge and the auto-generation stuff.  Check only whether the
49596         functions are declared, not whether they exist, since older hosts
49597         that don't declare the functions can't use the optimization anyway.
49598
49599 2002-12-06  Jim Meyering  <jim@meyering.net>
49600
49601         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
49602
49603         Merge in changes from libc's misc/error.c, in preparation
49604         for the merge of gnulib's changes back into libc.
49605
49606         * lib/error.c (_): Define only if not already defined.
49607         Move definition to follow all #include directives.
49608         Include unlocked-io.h only if !_LIBC.
49609         [_LIBC]: Include <libio/libioP.h>.
49610         [USE_IN_LIBIO]: Include <libio/iolibio.h>
49611         (fflush): Tweak definition to use INTUSE.
49612         (putc): Define.
49613
49614 2002-12-05  Paul Eggert  <eggert@twinsun.com>
49615
49616         * lib/alloca.c [defined emacs]: Include "lisp.h".
49617         (xalloc_die) [defined emacs]: New macro.
49618         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
49619         [! defined emacs]: Include <xalloc.h>.
49620         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
49621         (pointer): Typedef to POINTER_TYPE *.
49622         (malloc): Remove decl; we now always use xmalloc.
49623         (alloca): Use old-style definition, since Emacs needs this.
49624         Check for arithmetic overflow when computing combined size.
49625
49626 2002-12-04  Paul Eggert  <eggert@twinsun.com>
49627
49628         Do not generate unlocked-io.h automatically, since it's easier to
49629         maintain it by hand.
49630
49631         * lib/unlocked-io.h: New file, from GNU diffutils,
49632         but with proper copyright notice and attribution.
49633         * lib/gen-uio: Remove.
49634         * lib/Makefile.am: Add copyright notice.
49635         (libfetish_a_SOURCES): Add unlocked-io.h.
49636         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
49637         (DISTCLEANFILES, io_functions): Remove macros.
49638         (EXTRA_DIST): Remove gen_uio.
49639         (unlocked-io.h): Remove rule.
49640
49641 2002-12-04  Jim Meyering  <jim@meyering.net>
49642
49643         Reflect the fact that stat.c and lstat.c are no longer generated.
49644         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
49645         (DISTCLEANFILES): Likewise.
49646         (EXTRA_DIST): Likewise.
49647         (all_local): Don't depend on stat.c or lstat.c.
49648         (stat.c, lstat.c): Remove rules.
49649         (EXTRA_DIST): Remove xstat.in.
49650
49651         * lib/xstat.in: Remove file.  Contents moved into stat.c.
49652         * lib/stat.c: New file.  Contents mostly from xstat.in.
49653         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
49654         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
49655
49656         * lib/safe-read.c: Rework so that it may serve to define safe_write,
49657         too.
49658         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
49659
49660 2002-12-03  Jim Meyering  <jim@meyering.net>
49661
49662         * lib/safe-read.c, safe-write.c: Change variable names and comments,
49663         but not semantics, to minimize the differences between these two files.
49664         (safe_read): Change comment to mention SAFE_READ_ERROR.
49665
49666         * lib/safe-read.c (IS_EINTR): Define.
49667         (safe_read): Use IS_EINTR in place of in-function cpp directives.
49668
49669 2002-12-02  Jim Meyering  <jim@meyering.net>
49670
49671         * lib/safe-read.c (EINTR): Define.
49672         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
49673         (INT_MAX): Provide fallback.
49674         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
49675
49676         * lib/safe-read.h (SAFE_READ_ERROR): Define.
49677
49678 2002-12-02  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
49681         Define, taken from safe-read.c.
49682         (INT_MAX): Provide fallback.
49683         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
49684         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
49685
49686         * lib/safe-read.c (EINTR): Remove definition.
49687         (safe_read): Don't use EINTR if it is absent.
49688
49689 2002-12-01  Jim Meyering  <jim@meyering.net>
49690
49691         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
49692         zero.
49693         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
49694
49695 2002-11-27  Paul Eggert  <eggert@twinsun.com>
49696
49697         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
49698         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
49699         with `if (! (value < limit)) abort ();', for readability.
49700
49701 2002-11-26  Karl Berry  <karl@gnu.org>
49702
49703         * lib/strdup.c: copy from libc again, with jim's ok.
49704         * lib/.cppi-disable: re-add strdup.c
49705
49706 2002-11-25  Karl Berry  <karl@gnu.org>
49707
49708         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
49709         instead of "strtol.c".
49710
49711 2002-11-25  Karl Berry  <karl@gnu.org>
49712
49713         * config/install-sh: update from automake for variable quoting, $0 in
49714         error msgs, etc.
49715
49716         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
49717         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
49718         entry.
49719
49720 2002-11-25  Jim Meyering  <jim@meyering.net>
49721
49722         * lib/mktime.c: Sync from libc, now that it has the latest fix.
49723
49724 2002-11-24  Karl Berry  <karl@gnu.org>
49725
49726         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
49727         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
49728
49729 2002-11-24  Jim Meyering  <jim@meyering.net>
49730
49731         Update from coreutils:
49732
49733         * lib/mktime.c: Merge in changes from libc.
49734
49735         Avoid a link-time failure on some Linux systems.
49736         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
49737         (otherwise).
49738         (__mon_yday): Declare with the STATIC attribute.
49739         (__mktime_internal): Likewise.
49740         Based on a report from Greg Schafer.
49741
49742 2002-11-23  Jim Meyering  <jim@meyering.net>
49743
49744         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
49745         Use `unsigned', not `int', as type of index.
49746
49747         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
49748
49749         * lib/fsusage.c: Remove unneeded parentheses around operands of
49750         `defined'.
49751
49752 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49753
49754         * lib/quotearg.h: Allow multiple inclusion by surrounding with
49755         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
49756         so that we can be included first.
49757         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
49758         * lib/quotearg.c: Include quotearg.h immediately after config.h.
49759         No need to include stddef.h or sys/types.h any more.
49760         Surround local include files with "", not "<>".
49761         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
49762         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
49763         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
49764         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
49765         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
49766         (ISPRINT): Remove; no longer needed now that we assume C89.
49767
49768         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
49769         Preserve errno.
49770
49771         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
49772         quotearg_char): Use SIZE_MAX rather than
49773         (size_t) -1 when we are talking about "infinity".
49774
49775         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
49776
49777 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49778
49779         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
49780         hint that one should use `if (! x) abort ();' rather than `assert
49781         (x);', and anyway it's one less thing to worry about configuring.
49782         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
49783         hash_rehash, hash_insert): Use abort rather than assert.
49784
49785 2002-11-22  Bruno Haible  <bruno@clisp.org>
49786
49787         * lib/safe-read.h: Assume C89. Add comments.
49788         (safe_read): Change return type to size_t.
49789         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
49790         byte counts > SSIZE_MAX correctly.
49791         * lib/safe-write.h: New file.
49792         * lib/safe-write.c: New file.
49793         * lib/full-read.h: New file.
49794         * lib/full-read.c: New file.
49795         * lib/full-write.h: Assume C89. Add comments.
49796         * lib/full-write.c: Include safe-write.h.
49797         (full_write): Rewritten to use safe_write.
49798         Suggested by Jim Meyering and Paul Eggert.
49799
49800 2002-11-21  Jim Meyering  <jim@meyering.net>
49801
49802         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
49803
49804         Merge in changes from the coreutils.
49805
49806         2002-09-25  Paul Eggert  <eggert@twinsun.com>
49807         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
49808         <stdint.h>.
49809         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
49810         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
49811         int.  Work more efficiently if X is the same width as uintmax_t.
49812         Do not compare X to -1, to avoid bogus compiler warning.
49813         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
49814         Don't assume that f_frsize and f_bsize are the same type.
49815
49816         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
49817         warning on FreeBSD.
49818
49819         * lib/makepath.c (make_path): Restore umask *before* creating the final
49820         component.
49821         (make_path): Minor reformatting.
49822
49823         * lib/xmalloc.c: Adjust to work with new autoconf macros,
49824         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
49825         HAVE_MALLOC/HAVE_REALLOC.
49826
49827         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
49828         dummy ones.  At least on GNU/Linux systems, `auto' means something
49829         else.
49830         From Michael Stone.
49831
49832 2002-11-21  Bruno Haible  <bruno@clisp.org>
49833
49834         Remove case insensitive option matching.
49835         * lib/argmatch.h (argcasematch): Remove declaration.
49836         (ARGCASEMATCH): Remove macro.
49837         (__xargmatch_internal): Remove case_sensitive argument.
49838         (XARGMATCH): Update.
49839         (XARGCASEMATCH): Remove macro.
49840         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
49841         case_sensitive argument.
49842         (argcasematch): Remove function.
49843         (__xargmatch_internal): Remove case_sensitive argument.
49844         (main): Use XARGMATCH instead of XARGCASEMATCH.
49845
49846         * lib/xmalloc.c: Change compile-time error message. Add comment about
49847         required autoconf version.
49848
49849 2002-11-20  Paul Eggert  <eggert@twinsun.com>
49850
49851         Merge argmatch cleanups from Bison.  Assume C89.
49852
49853         * lib/argmatch.c: Include config.h here, not in argmatch.h.
49854         Include stdlib.h, for EXIT_FAILURE.
49855         Always include <string.h>, since we assume C89.
49856         (EXIT_FAILURE): Remove pre-C89 bug workaround.
49857         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
49858         Include <stddef.h> instead, since it's all we need for size_t.
49859         (PARAMS): Remove.  All uses removed.
49860         (ARRAY_CARDINALITY): Do not bother to #undef.
49861         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
49862         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
49863         Remove unnecessary parentheses.
49864         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
49865         Insert necessary parentheses.
49866         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
49867         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
49868
49869 2002-11-19  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
49872         * lib/mbswidth.h: Include <stddef.h>, for size_t.
49873
49874         * lib/mbswidth.h (PARAMS): Remove macro.
49875         (mbswidth, mbsnwidth): Use ANSI C function declarations.
49876         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
49877
49878         * lib/gcd.h (PARAMS): Remove macro.
49879         (gcd): Use ANSI C function declarations.
49880         * lib/gcd.c (gcd): Likewise.
49881
49882 2002-11-15  Bruno Haible  <bruno@clisp.org>
49883
49884         * lib/strcspn.c: Include <stddef.h>.
49885         (strcspn): Use ANSI C function declaration. Change return type to
49886         size_t. Use NULL.
49887         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
49888         (strpbrk): Use NULL.
49889         * lib/strpbrk.h (PARAMS): Remove macro.
49890         (strpbrk): Use ANSI C function declaration.
49891         * lib/strstr.c: Don't include <sys/types.h>.
49892         * lib/strstr.h (PARAMS): Remove macro.
49893         (strstr): Use ANSI C function declarations.
49894
49895 2002-11-14  Karl Berry  <karl@gnu.org>
49896
49897         * config/mkinstalldirs: `do' on separate line, instead of
49898         `for var; do'.
49899
49900 2002-11-06  Bruno Haible  <bruno@clisp.org>
49901
49902         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
49903         * lib/gcd.c (gcd): Likewise.
49904
49905 2002-11-05  Bruno Haible  <bruno@clisp.org>
49906
49907         * lib/gcd.h: New file, from gettext-0.11.5.
49908         * lib/gcd.c: New file, from gettext-0.11.5.
49909
49910 2002-11-05  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49913         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49914         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49915         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49916
49917         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
49918         <libintl.h>.
49919         * lib/makepath.c: Include gettext.h instead of <locale.h> and
49920         <libintl.h>.
49921
49922         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
49923         * lib/human.c: Include gettext.h instead of <libintl.h>.
49924         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
49925         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
49926         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
49927         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
49928         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
49929         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
49930         (textdomain): Remove definition.
49931         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
49932
49933         * lib/long-options.c: Remove include of <libintl.h> and definition of
49934         _.
49935         * lib/same.c: Remove include of <libintl.h> and definition of _.
49936
49937 2002-11-04  Owen Taylor  <otaylor@redhat.com>
49938
49939         * lib/config.charset: A few additions for Solaris.
49940
49941 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49942
49943         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
49944         * lib/localcharset.c (locale_charset): Declare as extern "C".
49945
49946 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49947
49948         * lib/config.charset: msdos in uk_UA uses CP1125.
49949
49950 2002-11-04  Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
49953         * lib/strcase.h: New file, from GNU gettext-0.11.5.
49954         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
49955         * lib/strstr.h: New file, from GNU gettext-0.11.5.
49956         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
49957
49958 2002-11-04  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/localcharset.c (locale_charset): Don't return an empty string.
49961
49962 2002-11-04  Bruno Haible  <bruno@clisp.org>
49963
49964         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
49965         aliases.
49966
49967 2002-11-04  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/config.charset: Update for newest glibc. Add canonical names
49970         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
49971
49972 2002-11-04  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/config.charset: Add support for NetBSD.
49975
49976 2002-11-04  Bruno Haible  <bruno@clisp.org>
49977
49978         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
49979
49980 2002-11-01  Bruno Haible  <bruno@clisp.org>
49981
49982         * configure.in: Add AC_CONFIG_AUX_DIR call.
49983         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
49984         test/Makefile.
49985         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
49986
49987 2002-09-28  Karl Berry  <karl@gnu.org>
49988
49989         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
49990         installed automake until the next release, since changes have been
49991         made.
49992
49993 2002-09-25  Karl Berry  <karl@gnu.org>
49994
49995         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
49996         * lib/getopt*: copy from libc/posix.
49997         * lib/gettext.h: copy from gettext.
49998         * lib/.cppi-disable: add strdup.c, gettext.h.
49999
50000 2002-09-25  Karl Berry  <karl@gnu.org>
50001
50002         * config/srclist.txt: enable gettext.h check.
50003         * config/config.{guess,sub}: update from prep.
50004         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
50005                 from automake 1.6.3.
50006         See srclist*.
50007
50008 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
50009
50010         * regex.c (PATFETCH): Remove the translating fetch.
50011         (PATFETCH_RAW): Rename to PATFETCH.
50012         (set_image_of_range): New fun.
50013         (SET_RANGE_TABLE_WORK_AREA): Use it.
50014         (regex_compile): Don't translate the pattern chars so eagerly.
50015         Only do it when inserting an `exactn' bytecode or when handling
50016         a char-range.
50017         (mutually_exclusive_p): Avoid empty statement.
50018
50019 2002-07-06  Jim Meyering  <meyering@lucent.com>
50020
50021         * m4/README: Don't mention Makefile.am.in.
50022         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
50023
50024 2002-07-01  Jim Meyering  <meyering@lucent.com>
50025
50026         * lib/c-stack.c: Include sys/time.h.
50027         From Volker Borchert.
50028
50029 2002-06-26  Paul Eggert  <eggert@twinsun.com>
50030
50031         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
50032
50033 2002-06-26  Paul Eggert  <eggert@twinsun.com>
50034
50035         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
50036         New macro.  Use it uniformly instead of
50037         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
50038         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
50039         reported by Vin Shelton.
50040
50041 2002-06-22  Paul Eggert  <eggert@twinsun.com>
50042
50043         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
50044         Do not assume SA_SIGINFO behavior.
50045         Bug reported by Jim Meyering on NetBSD 1.5.2.
50046
50047 2002-06-22  Jim Meyering  <meyering@lucent.com>
50048
50049         * m4/c-stack.m4: New file, from diffutils-2.8.2.
50050         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
50051
50052         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
50053         now that configure.ac uses AC_GNU_SOURCE.
50054         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
50055         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
50056
50057         Update to latest tools.  Suggestions from Paul Eggert.
50058         * m4/stdbool.m4: New file, from diffutils-2.8.2.
50059         * m4/gnu-source.m4: Update from diffutils-2.8.2.
50060         * m4/fnmatch.m4: Likewise.
50061         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
50062         to AC_HEADER_STDBOOL
50063
50064 2002-06-22  Jim Meyering  <meyering@lucent.com>
50065
50066         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
50067         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
50068
50069 2002-06-22  Jim Meyering  <meyering@lucent.com>
50070
50071         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
50072
50073         * lib/exitfail.c, exitfail.h: Likewise.
50074         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
50075
50076         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
50077         of fnmatch.h.
50078         (EXTRA_DIST): Add fnmatch_loop.c.
50079         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
50080
50081         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
50082         * lib/fnmatch.c: Update from diffutils-2.8.2.
50083         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
50084         * lib/fnmatch.h: Remove file.
50085
50086 2002-06-21  Jim Meyering  <meyering@lucent.com>
50087
50088         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
50089         * m4/mbrtowc.m4: Likewise.
50090
50091         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
50092         * m4/mbswidth.m4: Reflect name change:
50093         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
50094         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50095
50096         * m4/lib-link.m4: Update from gettext-0.11.2.
50097         * m4/gettext.m4: Likewise.
50098
50099         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
50100         From Alfred M. Szmidt.
50101
50102 2002-06-18  Paul Eggert  <eggert@twinsun.com>
50103
50104         * lib/file-type.h: Report an error if neither S_ISREG nor
50105         S_IFREG is defined, instead of using a test specific to glibc
50106         2.2.  This should be safe, since POSIX requires S_ISREG and
50107         Unix Version 7 had S_IFREG.  We don't need to check for
50108         <sys/types.h> since we don't use any symbols that it defines.
50109
50110 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
50111
50112         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
50113         $@-t, so that each temporary file name is unique and valid in the first
50114         8 characters, for operation under DOS.
50115
50116 2002-06-15  Paul Eggert  <eggert@twinsun.com>
50117
50118         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
50119
50120 2002-06-15  Jim Meyering  <meyering@lucent.com>
50121
50122         Work even with DJGPP 2.03, which lacks support for symlinks.
50123         From Richard Dawe.
50124         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
50125         is defined.
50126         * lib/lchown.c (S_ISLNK): Likewise.
50127
50128 2002-06-15  Jim Meyering  <meyering@lucent.com>
50129
50130         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
50131         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
50132         have been included before this file.
50133
50134 2002-06-14  Jim Meyering  <meyering@lucent.com>
50135
50136         * lib/file-type.h: Use the version from diffutils-2.8.2.
50137         * lib/file-type.c: Likewise.
50138
50139 2002-06-07  Jim Meyering  <meyering@lucent.com>
50140
50141         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
50142         They're needed at least for NetBSD 1.5.2.
50143         ($statxfs_includes): Include those same headers.
50144         ($statxfs_includes): Include sys/vfs.h if available.
50145         ($statxfs_includes): Likewise for sys/statvfs.h.
50146         Check for the following members in both structs statfs and statvfs:
50147         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
50148
50149 2002-06-01  Jim Meyering  <meyering@lucent.com>
50150
50151         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
50152         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
50153
50154 2002-05-28  Jim Meyering  <meyering@lucent.com>
50155
50156         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
50157         Reported by Volker Borchert.
50158
50159 2002-05-27  Jim Meyering  <meyering@lucent.com>
50160
50161         Fix a problem seen only on nonconforming systems whereby ls.c's
50162         use of localtime, and then of gettimeofday would cause trouble:
50163         the localtime call used to initialize rpl_gettimeofday's save
50164         mechanism would clobber ls's current local time information so
50165         that in any long listing the first file would always be listed
50166         with date 1970-01-01.  Analysis by Volker Borchert.
50167
50168         * lib/gettimeofday.c (localtime): Undefine.
50169         (rpl_localtime): New function.
50170
50171 2002-05-27  Jim Meyering  <meyering@lucent.com>
50172
50173         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
50174         localtime.
50175
50176         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
50177         use the replacement function; it wouldn't resolve at link time.
50178         Reported by Volker Borchert.
50179
50180 2002-05-22  Jim Meyering  <meyering@lucent.com>
50181
50182         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
50183         file-type.h.
50184         * lib/file-type.h: New file.
50185         * lib/file-type.c (file_type): New file/function.  Extracted from
50186         diffutils.
50187
50188 2002-04-30  Jim Meyering  <meyering@lucent.com>
50189
50190         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
50191
50192 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50193
50194         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
50195
50196 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50197
50198         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
50199         Do not check for alloca.h (no longer used) or stdbool.h (was never
50200         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
50201
50202 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50203
50204         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
50205
50206 2002-04-29  Jim Meyering  <meyering@lucent.com>
50207
50208         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
50209         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
50210         Use AC_FUNC_STRNLEN here instead.
50211
50212         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
50213         With autoconf-2.53a, it's part of AC_PROG_CC.
50214
50215 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50216
50217         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
50218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
50219
50220 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50221
50222         * lib/sig2str.h, lib/sig2str.c: New files.
50223         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
50224
50225 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50226
50227         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
50228         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
50229         of 127, since 64 is the largest conceivable number for ancient
50230         nonstandard hosts.
50231         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
50232
50233 2002-04-28  Jim Meyering  <meyering@lucent.com>
50234
50235         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
50236
50237 2002-04-24  Jim Meyering  <meyering@lucent.com>
50238
50239         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
50240         (jm_PREREQ): Use it.
50241
50242         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
50243         mach/mach.h fcntl.h.
50244         Check for this function: setlocale.
50245
50246 2002-04-24  Jim Meyering  <meyering@lucent.com>
50247
50248         * lib/gettext.h: New file, from Gettext.
50249         * lib/Makefile.am (INCLUDES): Remove -I../intl.
50250         (libfetish_a_SOURCES): Add gettext.h.
50251
50252 2002-04-16  Jim Meyering  <meyering@lucent.com>
50253
50254         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
50255         ut_pid, ut_id, ut_exit.
50256
50257 2002-04-16  Jim Meyering  <meyering@lucent.com>
50258
50259         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
50260         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
50261         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
50262
50263 2002-04-12  Jim Meyering  <meyering@lucent.com>
50264
50265         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
50266         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
50267         existence of the getmntinfo function.  Needed for Darwin 5.3.
50268
50269         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
50270         This is necessary at least on Darwin 5.3.
50271
50272         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
50273         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
50274         strnlen.o in the library, and that makes some versions of ranlib
50275         object.
50276
50277 2002-04-12  Jim Meyering  <meyering@lucent.com>
50278
50279         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
50280
50281 2002-04-09  Jim Meyering  <meyering@lucent.com>
50282
50283         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
50284         to be more precise.  Rather than saying we're checking whether the
50285         function `works', say what we're testing.
50286         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
50287         Reported by Bruno Haible.
50288
50289 2002-03-10  Jim Meyering  <meyering@lucent.com>
50290
50291         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
50292         Suggestion from Santiago Vila.
50293
50294 2002-03-08  Jim Meyering  <meyering@lucent.com>
50295
50296         * lib/rename.c: Mention that this wrapper is needed also on
50297         mips-dec-ultrix4.4 systems.
50298
50299 2002-03-02  Jim Meyering  <meyering@lucent.com>
50300
50301         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
50302         not HAVE_CLOCK_SETTIME.
50303
50304 2002-02-27  Paul Eggert  <eggert@twinsun.com>
50305
50306         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
50307         Check for clock_settime.
50308
50309 2002-02-27  Paul Eggert  <eggert@twinsun.com>
50310
50311         * lib/nanosleep.h: Rename to....
50312         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
50313
50314         * lib/gettime.c: New file.
50315         * lib/settime.c: New file.
50316         * lib/stime.c: Remove.
50317
50318         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
50319         timespec.h.  Remove nanosleep.h.
50320
50321 2002-02-25  Paul Eggert  <eggert@twinsun.com>
50322
50323         * m4/acl.m4: New file.
50324         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
50325         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
50326
50327 2002-02-25  Paul Eggert  <eggert@twinsun.com>
50328
50329         * lib/acl.c, lib/acl.h: New files.
50330         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
50331
50332 2002-02-24  Jim Meyering  <meyering@lucent.com>
50333
50334         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
50335         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
50336         cause trouble.  Reported by Nelson Beebe.
50337
50338 2002-02-23  Paul Eggert  <eggert@twinsun.com>
50339
50340         * lib/path-concat.c (xpath_concat): Reorder code to pacify
50341         compilers that don't know that xalloc_die never returns.
50342
50343 2002-02-20  Jim Meyering  <meyering@lucent.com>
50344
50345         * lib/getdate.c: Regenerate using bison-1.33.
50346
50347 2002-02-17  Jim Meyering  <meyering@lucent.com>
50348
50349         * config/config.guess (main): Don't use `head -1'; it's no longer
50350         portable. Use `sed 1q' instead.
50351
50352 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
50353
50354         * m4/codeset.m4: Upgrade to gettext-0.11.
50355         * m4/gettext.m4: Upgrade to gettext-0.11.
50356         * m4/glibc21.m4: Upgrade to gettext-0.11.
50357         * m4/iconv.m4: Upgrade to gettext-0.11.
50358         * m4/isc-posix.m4: Upgrade to gettext-0.11.
50359         * m4/lcmessage.m4: Upgrade to gettext-0.11.
50360         * m4/lib-ld.m4: New file, from gettext-0.11.
50361         * m4/lib-link.m4: New file, from gettext-0.11.
50362         * m4/lib-prefix.m4: New file, from gettext-0.11.
50363         * m4/progtest.m4: Upgrade to gettext-0.11.
50364
50365 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50366
50367         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
50368         (jm_PREREQ): Use it.
50369
50370 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50371
50372         * lib/posixver.c, lib/posixver.h: New files.
50373         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50374
50375 2002-02-02  Paul Eggert  <eggert@twinsun.com>
50376             Bruno Haible  <bruno@clisp.org>
50377
50378         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
50379         (fwrite_success_callback): New declaration.
50380         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
50381         print_unicode_char. Call failure callback instead of error.
50382         (fwrite_success_callback): New function.
50383         (exit_failure_callback): New function.
50384         (fallback_failure_callback): New function.
50385         (print_unicode_char): Call unicode_to_mb.
50386
50387 2002-01-26  Jim Meyering  <meyering@lucent.com>
50388
50389         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
50390         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
50391
50392 2002-01-26  Jim Meyering  <meyering@lucent.com>
50393
50394         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
50395
50396 2002-01-22  Paul Eggert  <eggert@twinsun.com>
50397
50398         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
50399
50400 2002-01-22  Jim Meyering  <meyering@lucent.com>
50401
50402         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
50403         Otherwise, some versions of automake would omit the rule that makes
50404         Makefile from Makefile.in.
50405
50406 2002-01-21  Paul Eggert  <eggert@twinsun.com>
50407
50408         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
50409         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50410         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
50411         (memcoll): Set errno to zero if there is no error.
50412
50413         * lib/quotearg.c (quotearg_buffer_restyled):
50414         Fix bug with quoting buffers containing NUL when backslashing escapes.
50415         This bug was exposed by the other changes in this patch.
50416         (quotearg_n_options): New arg ARGSIZE.
50417         All callers changed.
50418         (quoting_options_from_style): New function.
50419         (quotearg_n_style): Use it.
50420         (quotearg_n_style_mem): New function.
50421
50422         * lib/quotearg.h (quotearg_n_style_mem): New function.
50423
50424 2002-01-19  Jim Meyering  <meyering@lucent.com>
50425
50426         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
50427         Remove useless quotes: DF_PROG="df".
50428         * m4/strnlen.m4: New file.
50429
50430 2002-01-16  Paul Eggert  <eggert@twinsun.com>
50431
50432         * lib/backupfile.c (ISDIGIT): Comment fix.
50433         * lib/getdate.y (ISDIGIT): Likewise.
50434         * lib/posixtm.c (ISDIGIT, year): Likewise.
50435         * lib/strverscmp.c (ISDIGIT): Likewise.
50436         * lib/userspec.c (ISDIGIT): Likewise.
50437
50438 2002-01-16  Jim Meyering  <meyering@lucent.com>
50439
50440         * lib/getdate.y: Add three semicolons, each just before a closing
50441         brace. Bison (as of version 1.31) no longer papers over that mistake.
50442
50443 2002-01-05  Jim Meyering  <meyering@lucent.com>
50444
50445         * lib/version-etc.c (version_etc_copyright): Update copyright year.
50446
50447 2001-12-19  Paul Eggert  <eggert@twinsun.com>
50448
50449         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
50450         not silently exit merely because the output buffer happens to
50451         have nothing pending.
50452
50453 2001-12-18  Paul Eggert  <eggert@twinsun.com>
50454
50455         See the big note in ../ChangeLog.
50456         * lib/human.c (suffixes): Prefer K to k for 1024.
50457         (generate_suffix_backwards): New function.
50458         (human_readable_inexact): Use it.
50459         * lib/xstrtol.c (__xstrtol): If there is no number but there
50460         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
50461         Accept 'K' as well as 'k'.
50462
50463 2001-12-15  Jim Meyering  <meyering@lucent.com>
50464
50465         * lib/regex.h (__restrict_arr): Update from libc.
50466
50467         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
50468         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
50469         (STREQ): Define.
50470
50471 2001-12-14  Jim Meyering  <meyering@lucent.com>
50472
50473         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
50474         Suggestion from Bruno Haible.
50475
50476 2001-12-10  Jim Meyering  <meyering@lucent.com>
50477
50478         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
50479         xrealloc, Instead, include "xalloc.h".
50480         (initbuffer): Don't cast xmalloc return value to char*.
50481         (readline): Reword comment.
50482         Don't cast xrealloc return value to char*
50483         Return NULL, not 0.
50484
50485 2001-12-09  Jim Meyering  <meyering@lucent.com>
50486
50487         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
50488         about `signed and unsigned type in conditional expression'.
50489         * lib/posixtm.c (posix_time_parse): Likewise.
50490
50491         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
50492
50493         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
50494         to avoid a pedantic warning.
50495
50496         * lib/getstr.c: Don't include assert.h.
50497         (getstr): Remove warning-evoking assertions.
50498         Return -1 if offset parameter is out of bounds.
50499         Change the type of a local from int to size_t.
50500
50501         * lib/strftime.c (my_strftime_localtime_r): Include this function
50502         definition in the `#if ! HAVE_TM_GMTOFF' block.
50503
50504         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
50505         Include xalloc.h instead.
50506
50507 2001-12-02  Jim Meyering  <meyering@lucent.com>
50508
50509         * lib/tempname.c: Don't declare getenv, thus reverting the change of
50510         2001-11-18.  It's no longer necessary, now that stdlib.h is always
50511         included.
50512
50513         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
50514         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
50515
50516 2001-11-30  Akim Demaille  <akim@epita.fr>
50517
50518         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
50519         before being defined.
50520
50521 2001-11-27  Paul Eggert  <eggert@twinsun.com>
50522
50523         * lib/quotearg.h (quotearg_n, quotearg_n_style):
50524         First arg is int, not unsigned.
50525         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
50526         (SIZE_MAX, UINT_MAX): New macros.
50527         (quotearg_n_options): Abort if N is negative.
50528         Avoid overflow check on hosts where size_t is 64 bits and int
50529         is 32 bits, as overflow is impossible there.
50530         Fix off-by-one typo that caused unnecessary reallocation.
50531
50532 2001-11-27  Jim Meyering  <meyering@lucent.com>
50533
50534         * lib/tempname.c: Merge with version from libc.
50535         * lib/regex.c: Likewise.
50536
50537         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
50538         systems for which STDC_HEADERS is 0, it was not included, resulting in
50539         a warning about an integer-to-pointer conversion problem with getenv.
50540         Reported by Volker Borchert.
50541
50542 2001-11-26  Jim Meyering  <meyering@lucent.com>
50543
50544         * lib/gtod.h: Remove file.
50545         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
50546         * lib/gettimeofday.c: Don't include gtod.h.
50547         (GTOD_init): Remove function.
50548         (rpl_gettimeofday): Do its job here instead, rather than aborting.
50549         Suggestion from Volker Borchert.
50550
50551 2001-11-23  Jim Meyering  <meyering@lucent.com>
50552
50553         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
50554         it.
50555         * lib/hash.c (struct hash_table): Define it here instead.
50556
50557 2001-11-22  Jim Meyering  <meyering@lucent.com>
50558
50559         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
50560
50561 2001-11-20  Jim Meyering  <meyering@lucent.com>
50562
50563         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
50564         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
50565
50566 2001-11-19  Jim Meyering  <meyering@lucent.com>
50567
50568         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
50569         directory.  Use "conftestXXXXXX" as the template.
50570         Suggestion from Paul Eggert.
50571
50572         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
50573         immediately, so the test doesn't mistakenly hit the max-open-files
50574         limit.
50575
50576 2001-11-18  Paul Eggert  <eggert@twinsun.com>
50577
50578         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
50579         (TEMPORARIES): New macro.
50580         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
50581         removes an artificial limitation (e.g. HP-UX 10.20, where
50582         TMP_MAX is 17576).
50583
50584 2001-11-18  Jim Meyering  <meyering@lucent.com>
50585
50586         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
50587
50588 2001-11-18  Jim Meyering  <meyering@lucent.com>
50589
50590         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
50591         on SunOS 4.
50592
50593         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
50594         files will be created before anything else.
50595
50596 2001-11-17  Paul Eggert  <eggert@twinsun.com>
50597
50598         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
50599         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
50600
50601 2001-11-17  Jim Meyering  <meyering@lucent.com>
50602
50603         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
50604         Prompted by a report from Bob Proulx.
50605
50606         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
50607         Instead, require UTILS_FUNC_MKSTEMP.
50608
50609 2001-11-17  Jim Meyering  <meyering@lucent.com>
50610
50611         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
50612         Now, that's done as part of AC_FUNC_STRTOD.
50613
50614 2001-11-17  Jim Meyering  <meyering@lucent.com>
50615
50616         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
50617         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
50618         rather than group writable.  Patch by Juan F. Codagnone.
50619
50620         * lib/readtokens.c: Remove explicit declarations of xmalloc and
50621         xrealloc, Instead, include "xalloc.h".
50622
50623         * lib/mountlist.c: Include unlocked-io.h after all system headers.
50624         Remove explicit declarations of xmalloc, xrealloc,
50625         and xstrdup.  Instead, include "xalloc.h".
50626
50627         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
50628         unlocked-io.h.
50629         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
50630         Likewise.
50631         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
50632
50633         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
50634         Reported by Padraig Brady.
50635
50636         * lib/mkstemp.c: #undef mkstemp.
50637         Include config.h.
50638         (rpl_mkstemp): Rename from mkstemp.
50639         Protoize.
50640
50641 2001-11-16  Jim Meyering  <meyering@lucent.com>
50642
50643         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
50644         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
50645         determine the amount of total physical memory, use pstat_getstatic.
50646         HPUX-11 doesn't define _SC_PHYS_PAGES.
50647         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
50648         If sysconf couldn't be used to determine the amount of available
50649         physical memory, use both pstat_getstatic and pstat_getdynamic.
50650         Based on a patch from Bob Proulx.
50651
50652 2001-11-10  Jim Meyering  <meyering@lucent.com>
50653
50654         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
50655         (jm_PREREQ): Use it.
50656
50657 2001-11-09  Jim Meyering  <meyering@lucent.com>
50658
50659         * m4/jm-macros.m4: Require autoconf-2.52f.
50660         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
50661         Use these AC_-prefixed names, not the AM_-prefixed ones.
50662
50663         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
50664
50665 2001-11-05  Jim Meyering  <meyering@lucent.com>
50666
50667         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
50668
50669 2001-11-04  Jim Meyering  <meyering@lucent.com>
50670
50671         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
50672         $DEFS.
50673
50674 2001-11-03  Jim Meyering  <meyering@lucent.com>
50675
50676         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
50677         of AC_DEFUN.
50678
50679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
50680         know the name of the variable in the macro definition.
50681
50682 2001-11-03  Jim Meyering  <meyering@lucent.com>
50683
50684         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
50685         in argmatch_to_argument call.
50686
50687         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
50688         argument.
50689
50690         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
50691         e.g., a fault due to an attempt to free a NULL pointer.
50692
50693 2001-11-01  Jim Meyering  <meyering@lucent.com>
50694
50695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
50696         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
50697
50698 2001-11-01  Jim Meyering  <meyering@lucent.com>
50699
50700         * lib/dirfd.c, lib/dirfd.h: New files.
50701         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
50702
50703         * lib/hash.c (hash_print) [TESTING]: Clean up.
50704
50705 2001-10-22  Paul Eggert  <eggert@twinsun.com>
50706
50707         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
50708         to avoid a warning if -Wall.
50709
50710 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
50711
50712         * README: New file
50713         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
50714         (per RMS's instructions, this is now the canonical source)
50715         * lgpl/, gpl/: New directories.
50716
50717 2001-10-21  Paul Eggert  <eggert@twinsun.com>
50718
50719         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
50720
50721 2001-10-21  Jim Meyering  <meyering@lucent.com>
50722
50723         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
50724         this code would end up calling gettext even in packages built
50725         with --disable-nls.
50726         * lib/getopt.c (_): Likewise.
50727         * lib/regex.c (_): Likewise.
50728
50729 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50730
50731         * m4/error.m4 (jm_PREREQ_ERROR):
50732         Do not invoke AC_CHECK_FUNCS with strerror_r, as
50733         AC_FUNC_STRERROR_R does that.
50734         Check for strerror declaration.
50735
50736         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
50737         are supposed to have them these days.
50738         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
50739         Merge changes from latest Autoconf CVS.
50740         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
50741         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
50742         POSIX decided to standardize on the int flavor of strerror_r.
50743
50744 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50745
50746         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
50747         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
50748         Use strerror_r that is only a macro, even if it is not a function.
50749         (strerror): Check for HAVE_DECL_STRERROR before declaring.
50750         (private_strerror): Use prototypes, not old-style function definition.
50751         (print_errno_message): New function.
50752         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
50753         char*-flavored one.
50754         (error_tail, error, error_at_line): Use it.
50755
50756 2001-10-11  Jim Meyering  <meyering@lucent.com>
50757
50758         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
50759         and quote_n (1, ... to avoid clobbering a buffer.
50760
50761 2001-10-05  Jim Meyering  <meyering@lucent.com>
50762
50763         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
50764         hash-pjw.h.
50765         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
50766         * lib/hash-pjw.h: New file.
50767
50768 2001-09-30  Jim Meyering  <meyering@lucent.com>
50769
50770         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
50771         `struct fsstat' has the `f_fstypename' member.
50772         Use that to define FS_TYPE, which is now used to make
50773         the getfsstat link test tighter.
50774
50775 2001-09-30  Jim Meyering  <meyering@lucent.com>
50776
50777         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
50778         Include <sys/ucred.h>, for Apple Darwin.
50779         Include sys/mount.h and sys/fs_types.h only if available.
50780         (FS_TYPE): Define.
50781         (read_filesystem_list): Use FS_TYPE.
50782
50783 2001-09-29  Paul Eggert  <eggert@twinsun.com>
50784
50785         * lib/exclude.c (excluded_filename): 0 -> false, since it's
50786         a boolean context.
50787
50788 2001-09-29  Jim Meyering  <meyering@lucent.com>
50789
50790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50791         [one-argument getmntent function]): Include stdio.h before mntent.h.
50792         SunOS 4.1.x needs it for the declaration of `FILE'.
50793         Patch by Volker Borchert.
50794
50795         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50796         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
50797         sys/fs_types.h, and make the link-test for getfsstat guard #include
50798         directives with appropriate #if HAVE_*_H tests so that we can
50799         detect getfsstat on Apple Darwin1.3.7 systems.
50800         Reported by Nelson Beebe.
50801         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
50802
50803 2001-09-28  Paul Eggert  <eggert@twinsun.com>
50804
50805         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
50806         #defines strtoimax.  Also treat the other strto* functions
50807         like strtoimax.
50808
50809         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
50810         Check for strtoul and strtoumax,
50811         as those declarations are made even in the signed case.
50812         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
50813         Likewise, for strtol and strtoimax.
50814
50815 2001-09-28  Paul Eggert  <eggert@twinsun.com>
50816
50817         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
50818         #defines strtoimax.  Also treat the other strto* functions
50819         like strtoimax.
50820
50821         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
50822         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
50823         (strtoimax, strtoumax): Do not declare if already defined as a macro.
50824
50825 2001-09-26  Jim Meyering  <meyering@lucent.com>
50826
50827         Most macros in unlocked-io.h had the wrong number of arguments.
50828         * lib/gen-uio: New script.
50829         (USE_UNLOCKED_IO): Define to 1 if not already defined.
50830         * lib/unlocked-io.hin: Remove file.
50831         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
50832         rather than trying to embed it here.
50833         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
50834         Reported by Padraig Brady.
50835
50836 2001-09-25  Volker Borchert  <bt@teknon.de>
50837
50838         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
50839         `result'.
50840
50841 2001-09-24  Jim Meyering  <meyering@lucent.com>
50842
50843         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
50844
50845 2001-09-23  Jim Meyering  <meyering@lucent.com>
50846
50847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
50848         instead of the mere test for existence of mntent.h.  The latter
50849         would get a false-positive on AIX 3.4 systems.
50850         In the outer getmntent if-block, don't die if neither of the getmntent
50851         tests succeeds.  Instead, just fall through and continue with the
50852         remaining tests.
50853
50854 2001-09-23  Jim Meyering  <meyering@lucent.com>
50855
50856         * lib/mountlist.c: Remove useless parentheses in #if directives.
50857         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
50858         the deprecated MOUNTED symbol is no longer defined in mntent.h.
50859
50860 2001-09-22  Jim Meyering  <meyering@lucent.com>
50861
50862         * m4/gettext.m4: New file.  From gettext.
50863         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
50864         * m4/progtest.m4: Likewise
50865         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
50866         * m4/glibc21.m4: Likewise.
50867
50868         * m4/libintl.m4: Remove.  No longer used.
50869
50870 2001-09-22  Jim Meyering  <meyering@lucent.com>
50871
50872         * lib/localcharset.c: Update from latest gettext.
50873         * lib/config.charset: Likewise.
50874
50875 2001-09-20  Jim Meyering  <meyering@lucent.com>
50876
50877         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
50878         strtoimax.
50879         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
50880         strtoumax.
50881
50882 2001-09-20  Jim Meyering  <meyering@lucent.com>
50883
50884         * lib/xstrtol.c (strtoimax): Guard declaration with
50885         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
50886         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
50887         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
50888         (strtoumax): Likewise, for completeness (it wasn't necessary).
50889
50890 2001-09-17  Paul Eggert  <eggert@twinsun.com>
50891
50892         * lib/strtoimax.c (HAVE_LONG_LONG):
50893         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
50894         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
50895         to work around bug in IBM C compiler.
50896
50897 2001-09-17  Jim Meyering  <meyering@lucent.com>
50898
50899         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
50900         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
50901         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
50902         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
50903         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
50904         whenever the right hand side need not be expanded by the shell.
50905
50906 2001-09-16  Paul Eggert  <eggert@twinsun.com>
50907
50908         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
50909         library.  It's not correct, as some older glibcs are buggy.
50910         fnmatch wasn't fixed until glibc 2.2.
50911
50912         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
50913         special shell magic here.
50914
50915 2001-09-16  Jim Meyering  <meyering@lucent.com>
50916
50917         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
50918         * m4/jm-macros.m4: Require it.
50919
50920 2001-09-16  Jim Meyering  <meyering@lucent.com>
50921
50922         * lib/mkdir.c: New file.
50923
50924 2001-09-15  Jim Meyering  <meyering@lucent.com>
50925
50926         * m4/jm-macros.m4: Check for help2man.
50927
50928 2001-09-11  Jim Meyering  <meyering@lucent.com>
50929
50930         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
50931         The body, by Paul Eggert, was moved here from configure.in.
50932         * m4/jm-macros.m4: Require UTILS_HOST_OS.
50933
50934 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50935
50936         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
50937         (jm_PREREQ): Use it.
50938
50939 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50940
50941         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
50942         Use ssize_t, not int, to store result of readlink.
50943         Check for ssize_t overflow as well as size_t overflow,
50944         as POSIX says the result of readlink is implementation-defined
50945         when ssize_t overflows.
50946         Remove unnecessary cast to char*.
50947         Use free+malloc instead of realloc, as the storage doesn't need
50948         to be preserved and it's clearer and can be more efficient that way.
50949         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
50950         * lib/xreadlink.h (xreadlink): Update prototype.
50951
50952 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50953
50954         * lib/xgetcwd.c: Revert some of the previous change; intead,
50955         fix the HAVE_GETCWD_NULL code to behave more like the
50956         !HAVE_GETCWD_NULL code used to.
50957
50958         Include "xalloc.h".
50959         (xgetcwd): Do not return NULL when memory is exhausted; instead,
50960         invoke xalloc_die.
50961
50962 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50963
50964         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
50965         sys/param.h, as pathmax.h includes them.
50966
50967 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50968
50969         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
50970         (jm_PREREQ_XGETCWD): New macro.
50971
50972         * m4/getcwd.m4: New file.
50973
50974 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50975
50976         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
50977         like the HAVE_GETCWD_NULL code.
50978         Include pathmax.h if not HAVE_GETCWD.
50979         Do not include xalloc.h.
50980         (INITIAL_BUFFER_SIZE): New symbol.
50981         Do not use xmalloc / xrealloc, since the caller is responsible for
50982         handling errors.  Preserve errno around `free' during failure.
50983         Do not overrun buffer when using getwd.
50984
50985 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50986
50987         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
50988         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
50989         getcwd (NULL, 0).
50990
50991 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50992
50993         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
50994         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
50995         spotted by Jim Meyering.
50996
50997 2001-09-03  Jim Meyering  <meyering@lucent.com>
50998
50999         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
51000         failure.
51001
51002 2001-09-02  Jim Meyering  <meyering@lucent.com>
51003
51004         * lib/error.c: Update from GNU libc.
51005
51006 2001-09-01  Jim Meyering  <meyering@lucent.com>
51007
51008         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
51009         Used by df.
51010
51011 2001-09-01  Jim Meyering  <meyering@lucent.com>
51012
51013         * lib/xreadlink.c: New file.
51014         * lib/xreadlink.h: New file.
51015         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
51016         xreadlink.h.
51017
51018         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
51019         doesn't conflict with sparc Solaris 7's definition in
51020         /usr/include/sys/int_types.h.
51021
51022         * lib/exclude.c: Use `""', not `<>' to #include non-system header
51023         files.
51024         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
51025         and strncasecmp as r-values.  Unixware didn't have declarations.
51026
51027 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51028
51029         * lib/xstrtol.h: Add copyright notice.
51030         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
51031         LONGINT_INVALID_SUFFIX_CHAR.
51032
51033 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51034
51035         * lib/xstrtol.c (strtoimax): New decl.
51036
51037 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51038
51039         * lib/xgetcwd.c: Don't include pathmax.h.
51040         Include stdlib.h and unistd.h if available.
51041         Include xalloc.h.
51042         (xmalloc, xstrdup, free): Remove decls.
51043         (xgetcwd): Don't assume sizes fit in unsigned.
51044         Check for overflow when computing sizes.
51045         Simplify reallocation code.
51046
51047 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51048
51049         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
51050         a directory's st_size can have an arbitrary value, so the old
51051         usage could waste an arbitrary amount of memory.  All uses
51052         changed.
51053         * lib/savedir.h: Update prototype.
51054
51055 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51056
51057         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
51058
51059         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
51060         old strtoimax.c.
51061
51062         Also, make the following further changes to make this file's
51063         configuration more similar to that of strtol.c:
51064         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
51065         (strtoumax, uintmax_t, strtoull, strtol): Remove.
51066         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
51067         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
51068         changed to signed values.
51069
51070         And make the following changes as well:
51071         Fix copyright notice, as 1999 was missing.
51072         (verify): New macro.
51073         (strtoimax): Check sizes at compile-time, not run-time.
51074         Prefer strtol to strtoll if both work.
51075         (main): Remove; it was not that useful and was a pain to maintain.
51076
51077         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
51078
51079 2001-08-31  Jim Meyering  <meyering@lucent.com>
51080
51081         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
51082         Use an initial, malloc'd, buffer of length 128 rather than
51083         a statically allocated one of length 1024.
51084
51085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51086
51087         Simplify code, partly by assuming autoconf 2.52 semantics.
51088
51089         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
51090
51091         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
51092         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
51093         All uses removed.
51094         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
51095         Move AC_REQUIRE to next-to-top level, to avoid confusion.
51096         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
51097         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
51098         jm_AC_HEADER_INTTYPES_H.
51099         * m4/jm-macros.m4 (jm_MACROS): Likewise.
51100
51101         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
51102
51103         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
51104         Quote first arg of AC_DEFUN.
51105         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
51106         since they are needed to parse the include file even if we need
51107         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
51108         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
51109         but with opposite signedness.
51110
51111 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51112
51113         Merge 'exclude' changes from tar 1.13.22.
51114         This fixes one or two unlikely storage allocation overflow bugs,
51115         but doesn't change user-visible behavior otherwise.
51116
51117 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51118
51119         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
51120         (jm_PREREQ_EXCLUDE): New macro.
51121
51122 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51123
51124         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
51125         tm to be declared.
51126
51127 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51128
51129         * lib/hash.c: Remove '2001' from copyright notice.
51130
51131 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51132
51133         * lib/full-write.h: New file.
51134         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
51135         * lib/full-write.c: Correct credits, as cccp.c no longer
51136         exists and anyway it was so heavily changed from the old cccp
51137         code as to be unrecognizable.  Include full-write.h.
51138         (full_write) Return size_t, with short writes meaning failure.
51139         All callers changed.  This fixes a bug with large buffers
51140         on 64-bit hosts.
51141         * lib/utime.c: Include full-write.h.
51142
51143 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51144
51145         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
51146         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
51147         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
51148         Include if available.
51149         (<xalloc.h>): Include
51150         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
51151         (verify): New macro.  Use it to verify that EXCLUDE macros do not
51152         collide with FNM macros.
51153         (struct patopts): New struct.
51154         (struct exclude): Use it, as exclude patterns now come with options.
51155         (new_exclude): Support above changes.
51156         (new_exclude, add_exclude_file):
51157         Initial size must now be a power of two to simplify overflow checking.
51158         (free_exclude, fnmatch_no_wildcards): New function.
51159         (excluded_filename): No longer requires options arg, as the options
51160         are determined by add_exclude.  Now returns bool, not int.
51161         (excluded_filename, add_exclude):
51162         Add support for the fancy new exclusion options.
51163         (add_exclude, add_exclude_file): Now takes int options arg.
51164         Check for arithmetic overflow when computing sizes.
51165         (add_exclude_file): xrealloc might modify errno, so don't
51166         realloc until after errno might be used.
51167
51168         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
51169         New macros.
51170         (free_exclude): New decl.
51171         (add_exclude, add_exclude_file): Now takes int options arg.
51172         (excluded_filename): No longer requires options arg, as the options
51173         are determined by add_exclude.  Now returns bool, not int.
51174
51175 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51176
51177         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
51178
51179 2001-08-27  Jim Meyering  <meyering@lucent.com>
51180
51181         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
51182
51183         * lib/version-etc.c (N_): Remove definition.
51184         Revert most of last change.
51185         Instead, simply don't mark the `Copyright...' string for translation.
51186         Based on advice from Paul Eggert.
51187
51188         * lib/strtoxmax.c: Tweak comment.
51189
51190 2001-08-26  Jim Meyering  <meyering@lucent.com>
51191
51192         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
51193
51194         * m4/xstrtoimax.m4: New file.
51195         * m4/xstrtoumax.m4: Add comments explaining why we
51196         AC_REPLACE_FUNCS(strtol).
51197
51198 2001-08-26  Jim Meyering  <meyering@lucent.com>
51199
51200         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
51201         of copyright with `%s' so translators don't get an untranslated
51202         message in 2002.
51203         (COPYRIGHT_YEAR): Define.
51204         (version_etc): Use fprintf rather than fputs.
51205         Suggestion from Ulrich Drepper.
51206
51207         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
51208
51209         * lib/strtoll.c: New file, from GNU libc.
51210         * lib/xstrtoimax.c: New file.
51211
51212         * lib/xstrtol.h: Add xstrtoimax.
51213         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
51214         * lib/strtoimax.c: New file.  Likewise, but first define
51215         STRTOUXMAX_SIGNED.
51216
51217         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
51218         ...
51219         * lib/strtoxmax.c: ... then renamed to this.
51220
51221 2001-08-18  Paul Eggert  <eggert@twinsun.com>
51222
51223         * m4/inttypes.m4: Add AC_PREREQ(2.13).
51224         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
51225         (jm_AC_TYPE_INTMAX_T): New macro.
51226         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
51227
51228         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
51229
51230         * m4/longlong.m4: Renamed from ulonglong.m4.
51231         * m4/inttypes.m4: Renamed from inttypes_h.m4.
51232         * m4/uintmax_t.m4: Removed.
51233
51234 2001-08-13  Paul Eggert  <eggert@twinsun.com>
51235
51236         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
51237         Port to Solaris 8, where 'sed' requires a space after the 'r'
51238         command, and where sh dislikes "$/".  Clean up the spacing a bit.
51239         Redirect output to $tmp just once.
51240
51241 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
51242
51243         * lib/addext.c (<errno.h>): Include.
51244         (errno): Declare if not defined.
51245         (addext): Work correctly when pathconf returns -1 and leaves
51246         errno alone because there is no limit.  Also, work even if
51247         pathconf returns a value greater than SIZE_MAX.
51248
51249 2001-08-12  Jim Meyering  <meyering@lucent.com>
51250
51251         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
51252         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
51253         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
51254         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
51255         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
51256         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
51257         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
51258         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
51259         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
51260         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
51261         utime.m4, utimes.m4, xstrtoumax.m4:
51262         Quote the first argument in each use of AC_DEFUN.
51263
51264 2001-08-12  Jim Meyering  <meyering@lucent.com>
51265
51266         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
51267         Simply `return getcwd (NULL, 0);'.
51268         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
51269         Use 1300 as initial value for length, not PATH_MAX.
51270
51271         * lib/pathmax.h: Clean up cpp syntax.
51272
51273 2001-08-12  Jim Meyering  <meyering@lucent.com>
51274
51275         * lib/gettimeofday.c: New file.
51276         * lib/gtod.h: New file.
51277         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
51278
51279 2001-08-05  Jim Meyering  <meyering@lucent.com>
51280
51281         * m4/jm-macros.m4: Require autoconf-2.52.
51282
51283 2001-08-04  Jim Meyering  <meyering@lucent.com>
51284
51285         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
51286         stmt, to get in sync with glibc.
51287
51288 2001-08-03  Paul Eggert  <eggert@twinsun.com>
51289
51290         The following changes are from gettext 0.10.39 as maintained by
51291         Bruno Haible.
51292
51293         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
51294         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
51295         with inverted sense.  All uses changed.
51296
51297         * lib/mbswidth.c: Don't include <limits.h>.
51298         Include <stdlib.h> and <string.h> unconditionally.
51299         (iswcntrl, mbsinit, ISCNTRL): New macros.
51300         (mbsnwidth): Use K&R style function declarations.
51301         Don't bother checking for MB_LEN_MAX == 1, since the compiler
51302         can optimize it when MB_CUR_MAX == 1.
51303         The width of control characters is zero, not 1.
51304
51305 2001-08-03  Paul Eggert  <eggert@twinsun.com>
51306
51307         The following changes are from gettext 0.10.39 as maintained by
51308         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
51309
51310         * m4/codeset.m4: Upgrade to serial AM1.
51311         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
51312         all uses changed.  Quote first arg of AC_DEFUN.
51313         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
51314
51315         * m4/iconv.m4: Upgrade to serial AM2.
51316         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
51317         Add --with-libconv-prefix.
51318         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
51319         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
51320         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
51321         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
51322         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
51323
51324         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
51325         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
51326         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
51327         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
51328         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
51329         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
51330         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51331         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
51332         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
51333
51334         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
51335         string.h any more.
51336
51337         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
51338         not the default value.
51339
51340         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
51341         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
51342         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
51343         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
51344         Also check for iswcntrl, used for wcwidth fallback.
51345         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
51346         to Autoconf 2.13.
51347
51348 2001-08-03  Jim Meyering  <meyering@lucent.com>
51349
51350         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
51351         as it was in the original.  Reported by Paul Eggert.
51352
51353 2001-07-16  Jim Meyering  <meyering@lucent.com>
51354
51355         * m4/gettimeofday.m4: New file.
51356         Prompted by a report from Bernhard Baehr.
51357
51358 2001-07-15  Jim Meyering  <meyering@lucent.com>
51359
51360         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
51361         stuff. Now it's in ../Makefile.cfg.
51362
51363 2001-07-15  Jim Meyering  <meyering@lucent.com>
51364
51365         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
51366         (BUILT_SOURCES): Add unlocked-io.h.
51367         (io_functions): Define.
51368         (unlocked-io.h): New rule.
51369         (DISTCLEANFILES): Add unlocked-io.h.
51370         (all-local): Depend on unlocked-io.h, to ensure it is created.
51371
51372         * lib/unlocked-io.hin: New file
51373
51374         * lib/regex.c: Update from glibc.
51375
51376 2001-07-05  Jim Meyering  <meyering@lucent.com>
51377
51378         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
51379         recommendation.
51380         (libfetish_a_SOURCES): Put all .h files here instead.
51381         Remove a thus-exposed (better checks in automake) duplicate and
51382         two unnecessary .h files.
51383
51384 2001-07-04  Jim Meyering  <meyering@lucent.com>
51385
51386         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
51387         that generates jm-glibc-io.m4 so that it doesn't trigger any make
51388         distcheck failure.
51389
51390 2001-07-02  Jim Meyering  <meyering@lucent.com>
51391
51392         The following changes were prompted by suggestions from Bruno Haible.
51393
51394         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
51395         is now generated.
51396         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
51397         definition of EXTRA_DIST.
51398         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
51399         ensure that the generated file is created/updated whenever the list
51400         of $(unlocked_functions) is changed.
51401         (jm-glibc-io.m4): New rule.
51402         (unlocked-io.h): New rule -- currently unused.
51403
51404 2001-06-24  Jim Meyering  <meyering@lucent.com>
51405
51406         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
51407         unmatched right bracket, rather than kludging it with an extra,
51408         falsely-matching quote in a comment.  Patch by Akim Demaille.
51409
51410 2001-06-11  Jim Meyering  <meyering@lucent.com>
51411
51412         * lib/regex.c: Update from GNU libc.
51413
51414 2001-05-27  Jim Meyering  <meyering@lucent.com>
51415
51416         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
51417         Check for ut_type in struct utmp.
51418
51419 2001-05-27  Jim Meyering  <meyering@lucent.com>
51420
51421         * lib/readutmp.h (UT_TYPE): Define.
51422
51423 2001-05-24  Jim Meyering  <meyering@lucent.com>
51424
51425         * lib/argmatch.c: Include "quote.h".
51426         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
51427         quote function.  Reported by Göran Uddeborg.
51428
51429 2001-05-22  Jim Meyering  <meyering@lucent.com>
51430
51431         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
51432         now that we use the package-supplied version unconditionally.
51433         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
51434
51435 2001-05-21  Jim Meyering  <meyering@lucent.com>
51436
51437         * m4/regex.m4: Change a couple backticks to single quotes to avoid
51438         shell syntax errors.
51439
51440 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51441
51442         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
51443
51444 2001-05-20  Paul Eggert  <eggert@twinsun.com>
51445
51446         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
51447         Don't bother to check library strftime, since
51448         we'll be using our own my_strftime function anyway.
51449         Define my_strftime instead of strftime.
51450
51451 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
51452
51453         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
51454         which is not yet declared.
51455
51456 2001-05-15  Jim Meyering  <meyering@lucent.com>
51457
51458         * m4/regex.m4: Use proper quoting so brackets appear in the test
51459         program.
51460         Reported by, and with help from, Bruno Haible.
51461
51462 2001-05-13  Jim Meyering  <meyering@lucent.com>
51463
51464         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
51465         undefined.
51466
51467 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51468
51469         dirname code cleanup.  base_name now behaves more compatibly
51470         with POSIX basename when given file names that have trailing
51471         slashes, and similarly for dir_name.  Add new primitives
51472         base_len and dir_len.  Put the directory-name-related decls
51473         into dirname.h.
51474
51475         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
51476         * lib/backupfile.c (base_name): Likewise.
51477         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
51478         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
51479         * lib/makepath.c (strip_trailing_slashes): Likewise.
51480         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
51481         ISSLASH): Likewise.
51482         * lib/rename.c (strip_trailing_slashes): Likewise.
51483         * lib/same.c (base_name): Likewise.
51484         * lib/stripslash.c (ISSLASH): Likewise.
51485
51486         * lib/addext.c: Include <dirname.h> after size_t is defined.
51487         * lib/backupfile.c: Likewise.
51488
51489         * lib/addext.c (addext): Use base_len to trim redundant
51490         trailing slashes instead of doing it ourselves.
51491         But do not trim the last slash if it is not redundant.
51492
51493         * lib/backupfile.c (find_backup_file_name,
51494         max_backup_version): Use base_len instead of rolling it ourselves.
51495         Handle the case of "" and (on DOS) "C:" correctly.
51496
51497         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
51498         needed. Include <string.h>, <dirname.h>.
51499         (base_name): Allow file names ending in slashes, other than names
51500         that are all slashes.  In this case, return the basename followed
51501         by the slashes.  This is more general, and can be used in places
51502         where the original base_name purposely had an assertion failure.
51503         (base_len): New function.
51504
51505         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
51506         Do not include <assert.h>; no longer needed.
51507         Include xalloc.h.
51508         (memrchr): Remove decl.
51509         (dir_name_r): Remove.
51510         (dir_len): Renamed from dirlen.  All callers changed.
51511         Rewrite in terms of base_name, for simplicity and consistency.
51512         (dir_name): Never return NULL.  All callers changed.
51513         Do not include <stdlib.h> in test program; no longer needed.
51514         return 0; is fine for test program.
51515
51516         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
51517         New macros.
51518         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
51519
51520         * lib/path-concat.c (path_concat): Use base_len to compute
51521         base length, not strlen; this means we cannot rely on memcpy
51522         to null-terminate.
51523
51524         * lib/same.c (STREQ): Remove.
51525         (same_name): Handle the case where the basename ends in trailing '/'.
51526
51527         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
51528         a slash was stripped.  Do not strip the last slash after a
51529         file system prefix.
51530
51531 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51532
51533         * lib/Makefile.am (libfetish_a_SOURCES):
51534         Add strftime.c, since we now compile it on all hosts.
51535
51536         * lib/strftime.c (my_strftime):
51537         Define to nstrftime if emacs, but only if my_strftime is not defined.
51538         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
51539         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
51540         Add one more extra argument: a nanoseconds value.
51541         All uses changed.
51542         (ns): New macro.
51543         (my_strftime function): Add %N format.
51544         (emacs_strftimeu): Renamed from emacs_strftime,
51545         with extra ut argument.
51546
51547 2001-05-09  Paul Eggert  <eggert@twinsun.com>
51548
51549         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
51550
51551 2001-04-21  Jim Meyering  <meyering@lucent.com>
51552
51553         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
51554         doesn't interfere.
51555
51556 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51557
51558         * m4/ftruncate.m4: Check for chsize.
51559         Link with ftruncate.o unconditionally if ftruncate is missing.
51560         This was required when cross-compiling to i586-mingw32msvc.
51561
51562 2001-04-08  Jim Meyering  <meyering@lucent.com>
51563
51564         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
51565         recomputed; that's necessary when the offset spans a DST transition.
51566         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
51567
51568 2001-04-02  Jim Meyering  <meyering@lucent.com>
51569
51570         * lib/regex.h, regex.c: Update from GNU libc.
51571
51572 2001-03-24  Jim Meyering  <meyering@lucent.com>
51573
51574         * m4/jm-macros.m4: Require autoconf-2.49d.
51575
51576 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
51577
51578         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
51579
51580 2001-03-19  Paul Eggert  <eggert@twinsun.com>
51581
51582         * lib/version-etc.c (version_etc_copyright): Update to 2001.
51583
51584 2001-03-17  Jim Meyering  <meyering@lucent.com>
51585
51586         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
51587         now that the version in autoconf is equivalent.
51588         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
51589
51590         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
51591         Suggestion from Akim Demaille.
51592
51593         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
51594         (jm_PREREQ_TEMPNAME): New function.
51595
51596 2001-03-16  Paul Eggert  <eggert@twinsun.com>
51597
51598         * lib/tempname.c (uint64_t): Define to uintmax_t if
51599         not defined, and if UINT64_MAX is not defined.
51600         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
51601         Reported by John David Anglin.
51602
51603 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
51604
51605         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
51606         resolve alias if codeset is empty.
51607         * lib/config.charset (BeOS): Use wildcard syntax.
51608
51609 2001-03-13  Jim Meyering  <meyering@lucent.com>
51610
51611         * lib/path-concat.c (path_concat)
51612         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
51613         concatenating e.g., `C:' and `foo'.
51614         From Bruno Haible.
51615
51616 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51617
51618         * lib/localcharset.c (locale_charset): Don't use
51619         setlocale(LC_CTYPE,NULL). Don't return NULL.
51620         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
51621
51622 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51623
51624         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
51625         support for DOS/DJGPP.
51626
51627 2001-03-01  Paul Eggert  <eggert@twinsun.com>
51628
51629         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
51630         lacks mkstemp.  Compile our own tempname.c if we compile our own
51631         mkstemp.c, as mkstemp relies on tempname.
51632
51633 2001-03-01  Jim Meyering  <meyering@lucent.com>
51634
51635         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
51636         AH_VERBATIM really does output its argument verbatim.
51637
51638 2001-02-28  Paul Eggert  <eggert@twinsun.com>
51639
51640         * lib/Makefile.am (libfetish_a_SOURCES):
51641         Add dup-safer.c, fopen-safer.c.
51642         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
51643
51644         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
51645         * lib/unistd-safer.h: New files.
51646
51647 2001-02-25  Paul Eggert  <eggert@twinsun.com>
51648
51649         The mkstemp replacement is taken from glibc 2.2.2, with some
51650         portability fixes for use outside glibc, as follows:
51651
51652         * lib/tempname.c (struct_stat64): New macro.
51653         (direxists, __gen_tempname): Use it.
51654         This avoids a portability problem with Solaris 8.
51655
51656         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
51657         (<stddef.h>, <stdint.h>, <string.h>):
51658         Include only if STDC_HEADERS || _LIBC.
51659         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
51660         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
51661         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
51662         (__set_errno): Define this macro if <errno.h> doesn't.
51663         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
51664         Define these macros if <stdio.h> doesn't.
51665         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
51666         Define these macros if <sys/stat.h>
51667         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
51668         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
51669         __xstat64): Define if not _LIBC.
51670         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
51671         (__gen_tempname): Invoke gettimeofday only if
51672         HAVE_GETTIMEOFDAY || _LIBC;
51673         otherwise, fall back on plain "time".
51674         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
51675
51676         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
51677
51678         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
51679
51680 2001-02-18  Paul Eggert  <eggert@twinsun.com>
51681
51682         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
51683
51684 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51685
51686         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
51687         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
51688         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
51689         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51690
51691 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51692
51693         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
51694         Remove workaround macros for hosts that have mbrtowc but not
51695         mbstate_t, as we now insist on proper declarations for both
51696         before using mbrtowc.
51697
51698 2001-02-17  Jim Meyering  <meyering@lucent.com>
51699
51700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
51701         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
51702         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
51703         UnixWare 7.1.1.
51704
51705         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
51706         rather than AC_CACHE_VAL.
51707
51708 2001-02-17  Jim Meyering  <meyering@lucent.com>
51709
51710         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
51711         around included file name.
51712
51713         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
51714
51715         * lib/strftime.c: Update from GNU libc (the only changes were to
51716         comments).
51717
51718 2001-02-17  Jim Meyering  <meyering@lucent.com>
51719
51720         * lib/regex.c: Update from libc.
51721
51722 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
51723
51724         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
51725         clash.
51726
51727 2001-02-16  Paul Eggert  <eggert@twinsun.com>
51728
51729         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
51730         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
51731         Reported by Mark Hounschell via Paul Eggert.
51732
51733 2001-02-07  Jim Meyering  <meyering@lucent.com>
51734
51735         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
51736
51737 2001-02-05  Jim Meyering  <meyering@lucent.com>
51738
51739         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
51740         it includes the patch required for `large file' support with at least
51741         HP-UX's 10.20 /bin/cc.
51742
51743 2001-02-03  Jim Meyering  <meyering@lucent.com>
51744
51745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
51746         AS_IF, now that it works once again (mysteriously).
51747         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51748
51749 2001-01-30  Jim Meyering  <meyering@lucent.com>
51750
51751         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
51752         * m4/chown.m4: Rename conftestchown to conftest.chown.
51753         * m4/rename.m4: s/conftestdir/conftest.d1/ and
51754         s/conftestdir2/conftest.d2/.
51755         * m4/utimes.m4: s/conftestdata/conftest.data/
51756         Inspired by Pavel Roskin's change in autoconf.
51757
51758 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
51759
51760         * lib/config.charset: Update for FreeBSD 4.2.
51761
51762 2001-01-27  Jim Meyering  <meyering@lucent.com>
51763
51764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
51765         a use of AS_IF.
51766         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51767
51768 2001-01-26  Jim Meyering  <meyering@lucent.com>
51769
51770         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
51771         quotearg.c includes it.
51772
51773 2001-01-26  Jim Meyering  <meyering@lucent.com>
51774
51775         * lib/quotearg.c: Include stddef.h.
51776         * lib/quote.c: Include stddef.h.
51777         Reported by Axel Kittenberger.
51778
51779         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
51780         line in double quotes so that it evokes a better diagnostic.
51781         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
51782         Reported by Axel Kittenberger.
51783
51784 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
51785
51786         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
51787         as if it was a `charset'.
51788
51789 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51790
51791         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
51792         has const.
51793
51794 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51795
51796         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
51797         to avoid a warning.  Add back 'const' to inptr.
51798
51799 2001-01-20  Jim Meyering  <meyering@lucent.com>
51800
51801         Be sure that headers are checked before used in code compiled
51802         for the type checks.
51803         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
51804         In place of that, invoke jm_CHECK_ALL_TYPES.
51805         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
51806         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
51807         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
51808         The check for ssize_t was mistakenly run before the test for unistd.h.
51809
51810         The configure-time check for stdbool.h was missing.
51811         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
51812         (jm_PREREQ_HASH): New function.
51813
51814 2001-01-17  Jim Meyering  <meyering@lucent.com>
51815
51816         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
51817         for autoconf-2.49c.
51818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
51819
51820 2001-01-16  Jim Meyering  <meyering@lucent.com>
51821
51822         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
51823         From Bruno Haible.
51824
51825 2001-01-14  Jim Meyering  <meyering@lucent.com>
51826
51827         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
51828         foo and bar.  Create conftestdir/ in the script, not in the C code.
51829         Remove directories in the script, not in the C code.
51830         Remove conftestdir{,2} before trying to create the directory.
51831         Make the entire configure script fail if the mkdir fails.
51832
51833 2001-01-14  Jim Meyering  <meyering@lucent.com>
51834
51835         * lib/rename.c: New file.  From Volker Borchert.
51836         Include stdlib.h, string.h or strings.h, and xalloc.h.
51837         Use strip_trailing_slashes rather than open-coding it.
51838
51839 2001-01-03  Paul Eggert  <eggert@twinsun.com>
51840
51841         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
51842
51843 2001-01-03  Jim Meyering  <meyering@lucent.com>
51844
51845         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
51846         of local `inptr' to avoid warning with some system declarations of
51847         iconv.
51848
51849 2001-01-02  Volker Borchert  <bt@teknon.de>
51850
51851         * m4/rename.m4: New file.
51852         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
51853
51854 2001-01-01  Jim Meyering  <meyering@lucent.com>
51855
51856         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
51857         even on systems with utmpx.h.  It's necessary for the declaration of
51858         utmp's ut_user member.  Reported by Andreas Jaeger.
51859
51860         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
51861         available. They are required for the declarations of getgrgid and
51862         getpwuid resp.
51863         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
51864         Reported by Andreas Jaeger.
51865
51866 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
51867
51868         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
51869         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
51870         so `make install' also works in VPATH builds.
51871
51872 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
51873
51874         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
51875         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
51876         can be used in subdirectories.
51877
51878 2000-12-29  Paul Eggert  <eggert@twinsun.com>
51879
51880         * lib/modechange.c: Do not assume that mode_t uses the
51881         traditional octal encoding.  E.g. "chmod 1 FOO" should set
51882         the other-execute bit of FOO even if S_IXOTH != 1.
51883
51884         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
51885         WOTH, XOTH, ALLM): New macros.
51886         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
51887          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
51888         Use them.
51889         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
51890         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
51891         (mode_compile):
51892         No need to use uintmax_t; unsigned long is long enough.
51893         Don't bother to get suffix since we don't use it.
51894
51895 2000-12-26  Jim Meyering  <meyering@lucent.com>
51896
51897         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
51898         better with autoheader.
51899
51900 2000-12-24  Jim Meyering  <meyering@lucent.com>
51901
51902         * lib/hash.c (is_prime): Return explicit boolean values.
51903         (hash_get_first): Return NULL to appease Irix5.6's 89.
51904         Reported by Nelson Beebe.
51905
51906 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
51907
51908         * lib/localcharset.c (locale_charset): Add support for Win32.
51909
51910 2000-12-18  Paul Eggert  <eggert@twinsun.com>
51911
51912         * lib/physmem.h, lib/physmem.c: New files.
51913
51914         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
51915         (noinst_HEADERS): Add physmem.h.
51916
51917         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
51918         't' for compatibility with Solaris 8 sort.
51919
51920 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
51921
51922         * lib/config.charset: Add support for BeOS.
51923
51924 2000-12-17  Jim Meyering  <meyering@lucent.com>
51925
51926         * m4/dos.m4 (jm_AC_DOS): New file and macro.
51927         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
51928
51929 2000-12-16  Jim Meyering  <meyering@lucent.com>
51930
51931         This bug had a serious impact on chown: `chown N:M FILE' (for integer
51932         N and M) would have treated it like `chown N:N FILE'.
51933
51934         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
51935
51936 2000-12-16  Jim Meyering  <meyering@lucent.com>
51937
51938         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
51939         SHELLS_FILE to a file name that's useful on djgpp systems.
51940         Include stdlib.h.
51941         (ADDITIONAL_DEFAULT_SHELLS): Define.
51942         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
51943         Based mostly on a patch from Prashant TR.
51944
51945 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
51946
51947         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
51948         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
51949         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
51950
51951 2000-12-08  Andreas Schwab  <schwab@suse.de>
51952
51953         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
51954         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
51955
51956 2000-12-07  Jim Meyering  <meyering@lucent.com>
51957
51958         * lib/stripslash.c (ISSLASH): Define.
51959         (strip_trailing_slashes): Use ISSLASH rather than comparing against
51960         `/'.
51961         From Prashant TR.
51962
51963         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
51964         (dir_name_r): Declare this function as static.
51965         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
51966         manifest itself on a name containing a mix of slashes and
51967         backslashes.
51968         Make this function work with names starting with a DOS-style
51969         drive letter and colon prefix.
51970         (dir_name): Append `.' if necessary.
51971         Based mostly on patches from Prashant TR and Eli Zaretskii.
51972
51973         * lib/dirname.h (dir_name_r): Remove prototype.
51974
51975 2000-12-06  Paul Eggert  <eggert@twinsun.com>
51976
51977         * m4/off_t-format.m4: Remove this file.
51978         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
51979
51980 2000-12-06  Jim Meyering  <meyering@lucent.com>
51981
51982         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
51983         replacement strtoull, we may well need the replacement strtoul, too.
51984         Check for declarations of strtoul and strtoull.
51985         Check for strtol.  Mainly as a cue to cause automake to include
51986         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
51987         Check for limits.h -- strtol.c needs it.
51988
51989 2000-12-05  Jim Meyering  <meyering@lucent.com>
51990
51991         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
51992
51993 2000-12-04  Jim Meyering  <meyering@lucent.com>
51994
51995         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
51996         Also include memory.h, stdlib.h, unistd.h if appropriate.
51997         Reported by Andreas Jaeger (conflicting declaration of malloc).
51998
51999 2000-12-02  Jim Meyering  <meyering@lucent.com>
52000
52001         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
52002         * m4/jm-macros.m4 (jm_MACROS): require it.
52003
52004 2000-12-02  Jim Meyering  <meyering@lucent.com>
52005
52006         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
52007
52008 2000-12-01  Paul Eggert  <eggert@twinsun.com>
52009
52010         * lib/memrchr.c: Include <config.h> before any system include file.
52011
52012 2000-11-30  Jim Meyering  <meyering@lucent.com>
52013
52014         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
52015
52016 2000-11-30  Jim Meyering  <meyering@lucent.com>
52017
52018         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
52019
52020 2000-11-29  Paul Eggert  <eggert@twinsun.com>
52021
52022         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
52023
52024 2000-11-26  Jim Meyering  <meyering@lucent.com>
52025
52026         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
52027
52028 2000-11-22  Paul Eggert  <eggert@twinsun.com>
52029
52030         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
52031         size of (size_t) -1; it's not portable.
52032
52033 2000-11-17  Jim Meyering  <meyering@lucent.com>
52034
52035         * lib/strstr.c: Update from GNU libc.
52036
52037 2000-11-17  Akim Demaille  <akim@epita.fr>
52038
52039         * lib/obstack.h: Formatting changes.
52040         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
52041         prevent type checking.
52042         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
52043         cast the value to (void *): assigning a `foo *' to a `void *'
52044         variable is valid.
52045         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
52046
52047 2000-11-16  Jim Meyering  <meyering@lucent.com>
52048
52049         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
52050
52051 2000-11-11  Jim Meyering  <meyering@lucent.com>
52052
52053         * lib/error.c: Add a couple #includes, merging from GNU libc version.
52054
52055 2000-11-10  Jim Meyering  <meyering@lucent.com>
52056
52057         * lib/obstack.h: Update from GNU libc.
52058         * lib/obstack.c: Likewise.
52059
52060 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
52061
52062         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
52063
52064 2000-11-06  Paul Eggert  <eggert@twinsun.com>
52065
52066         * lib/getusershell.c (setusershell): Use rewind rather than
52067         fseek/fseeko, to avoid configuration hassles with fseeko.
52068         Don't bother opening SHELLS_FILE if shellstream is NULL;
52069         it's not necessary.
52070
52071 2000-11-05  Jim Meyering  <meyering@lucent.com>
52072
52073         * lib/makepath.h (make_dir): Declare.
52074         * lib/makepath.c (make_dir): Remove `static' attribute.
52075         Tweak a comment.
52076
52077 2000-11-04  Jim Meyering  <meyering@lucent.com>
52078
52079         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
52080
52081 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
52082
52083         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
52084         last one in a bucket, advance to the next bucket.
52085
52086 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
52087
52088         * lib/fnmatch.c: Do not comment out all the code if we are using
52089         the GNU C library, because in some cases we are replacing buggy
52090         code in the GNU C library itself.
52091
52092 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
52093
52094         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
52095         (regex_compile): Catch bogus \(\1\).
52096
52097 2000-10-30  Paul Eggert  <eggert@twinsun.com>
52098
52099         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
52100         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
52101         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
52102
52103 2000-10-30  Paul Eggert  <eggert@twinsun.com>
52104
52105         * lib/error.h, getline.h, modechange.h:
52106         Remove "2000" from Copyright line, as the file hasn't been
52107         changed this year other than in the copyright notice.
52108
52109         * lib/xalloc.h: Add "2000" to Copyright line, as this file
52110         was changed this year.
52111
52112 2000-10-29  Jim Meyering  <meyering@lucent.com>
52113
52114         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
52115         renaming.
52116         * m4/ls-mntd-fs.m4: Likewise
52117
52118 2000-10-29  Jim Meyering  <meyering@lucent.com>
52119
52120         * lib/xstat.in: Fix grammar in comment.
52121
52122 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
52123
52124         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
52125         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
52126         doesn't define __restrict_arr.
52127
52128 2000-10-28  Jim Meyering  <meyering@lucent.com>
52129
52130         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
52131         (jm_PREREQ_MEMCHR): New function.
52132
52133 2000-10-28  Jim Meyering  <meyering@lucent.com>
52134
52135         * lib/memchr.c: Update from libc.
52136         Adjust for portability:
52137         [HAVE_STDLIB_H]: Include stdlib.h.
52138         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
52139         Undef __memchr, too.
52140         [!weak_alias]: Define __memchr to memchr.
52141
52142         * lib/regex.c: Update from libc.
52143         * lib/regex.h: Likewise.
52144         * lib/getopt1.c: Likewise.
52145         * lib/memcmp.c: Likewise.
52146
52147         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
52148         Avoid using fseek, when possible -- it's broken by design.
52149         Patch by Ulrich Drepper.
52150
52151 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
52152
52153         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
52154         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
52155         Giving in to popular pressure to shut up the compiler with casts.
52156
52157 2000-10-26  Jim Meyering  <meyering@lucent.com>
52158
52159         * lib/strftime.c: Update from libc.
52160
52161 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
52162
52163         * regex.c: More `unsigned char' -> `re_char' changes.
52164         Also change several `int' into `re_wchar_t'.
52165         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
52166         (PUSH_FAILURE_POINTER): Don't cast any more.
52167         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
52168         We want GCC to complain, since this piece of code makes
52169         re_match non-reentrant, which *should* be fixed.
52170         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
52171         (EXTEND_BUFFER): Use RETALLOC.
52172         (SET_LIST_BIT): Don't cast.
52173         (re_wchar_t): New type.
52174         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
52175         that those two functions will always properly return.
52176         (IMMEDIATE_QUIT_CHECK): Cast to void.
52177         (analyse_first): Use recursion rather than an explicit stack.
52178         (re_compile_fastmap): Can't fail anymore.
52179         (re_search_2): Don't check re_compile_fastmap for failure.
52180         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
52181         Now also sets the new value (passed in a new argument).
52182         (re_match_2_internal): Use it.
52183         Also, use a new var `reg' of type size_t when looping through regs
52184         rather than reuse the inappropriate `mcnt'.
52185
52186 2000-10-25  Jim Meyering  <meyering@lucent.com>
52187
52188         * lib/obstack.c: Update from libc.
52189
52190 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
52191
52192         * regex.c (regex_compile): Change the way of handling a range from
52193         a char less than 256 to a char not less than 256.
52194
52195 2000-10-24  Andrew Innes  <andrewi@gnu.org>
52196
52197         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
52198         NT-Emacs only.
52199         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
52200         so that re_search functions only quit when callers expect them to.
52201
52202 2000-10-23  Jim Meyering  <meyering@lucent.com>
52203
52204         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
52205         wrong.  That set_locale call must not have any side effects.
52206         From Paul Eggert.
52207
52208 2000-10-22  Jim Meyering  <meyering@lucent.com>
52209
52210         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
52211         [CYCLIC]: Remove now-unused definition.
52212
52213         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
52214         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
52215         Suggestion from Ulrich Drepper.
52216
52217 2000-10-21  Jim Meyering  <meyering@lucent.com>
52218
52219         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
52220         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
52221         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
52222
52223 2000-10-21  Jim Meyering  <meyering@lucent.com>
52224
52225         * lib/dirname.c (memrchr): Declare if necessary.
52226         (dir_name): Remove the restriction that there be no
52227         trailing slashes.  Now, this code skips past them, effectively
52228         ignoring them.
52229         [TEST_DIRNAME] (main): New unit tests.
52230
52231         * lib/memrchr.c: New file from GNU libc.
52232         Undef __memrchr, too.
52233         [!weak_alias]: Define __memrchr to memrchr.
52234         Guard weak_alias use with `#ifdef weak_alias'.
52235
52236 2000-10-21  Jim Meyering  <meyering@lucent.com>
52237
52238         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
52239         (dir_name): Use dir_name_r.
52240         * lib/dirname.h (dir_name_r): Declare it.
52241
52242 2000-10-17  Jim Meyering  <meyering@lucent.com>
52243
52244         * lib/quote.h (PARAMS): Define and use.
52245         Reported by Akim Demaille.
52246
52247         * lib/getopt.c: Update from libc.
52248
52249 2000-10-16  Jim Meyering  <meyering@lucent.com>
52250
52251         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
52252         setlocale.
52253         From Jan Fedak.
52254
52255 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
52256
52257         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
52258
52259 2000-09-25  Jim Meyering  <meyering@lucent.com>
52260
52261         * lib/md5.h (rol): Define (from GnuPG).
52262
52263         * lib/sha.c: Give credit (GnuPG) where due.
52264         (M): Use rol rather than open-coding it.
52265         Add a FIXME comment.
52266
52267 2000-09-21  Jim Meyering  <meyering@lucent.com>
52268
52269         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
52270         Reported by Michael Stone.
52271
52272 2000-09-20  Jim Meyering  <meyering@lucent.com>
52273
52274         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
52275         (noinst_HEADERS): Add sha.h.
52276         Based on code from Scott G. Miller and from GnuPG.
52277
52278 2000-09-18  Jim Meyering  <meyering@lucent.com>
52279
52280         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
52281         LIBS. Otherwise, everyone ends up linking with -lelf for some
52282         configurations.
52283         Reported by Mike Stone.
52284
52285 2000-09-15  Jim Meyering  <meyering@lucent.com>
52286
52287         * lib/regex.c: Update from libc.
52288
52289 2000-09-10  Jim Meyering  <meyering@lucent.com>
52290
52291         * lib/getopt.c (_getopt_internal): Update from glibc.
52292
52293 2000-09-09  Jim Meyering  <meyering@lucent.com>
52294
52295         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
52296         think it should be used as a general replacement for isascii.
52297         * lib/fnmatch.c: Likewise.
52298         * lib/mbswidth.c: Likewise
52299         * lib/regex.c: Likewise.
52300
52301         Don't use atoi.
52302         * lib/userspec.c: Include sys/param.h and limits.h.
52303         Include xstrtol.h.
52304         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
52305         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
52306         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
52307         UID, GID.  Check range.
52308
52309 2000-09-06  Jim Meyering  <meyering@lucent.com>
52310
52311         * lib/getopt.c (_getopt_internal): Update from glibc.
52312
52313 2000-08-30  Jim Meyering  <meyering@lucent.com>
52314
52315         * lib/strftime.c: Merge in changes from GNU libc.
52316
52317 2000-08-26  Jim Meyering  <meyering@lucent.com>
52318
52319         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
52320         * m4/fpending.m4: New file.
52321
52322 2000-08-26  Jim Meyering  <meyering@lucent.com>
52323
52324         * lib/closeout.c: Include "__fpending.h".
52325         (close_stdout_status): Return right away if there's nothing to flush.
52326
52327         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
52328         * lib/__fpending.c: New file.
52329         * lib/__fpending.h: New file.
52330
52331 2000-08-20  Jim Meyering  <meyering@lucent.com>
52332
52333         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
52334         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
52335         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
52336
52337 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
52338
52339         Improve fileutils installation on systems where running
52340         programs (like install) can't be unlinked.
52341         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
52342         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
52343
52344 2000-08-07  Paul Eggert  <eggert@twinsun.com>
52345
52346         Standardize on "memory exhausted" instead of "Memory exhausted"
52347         or "virtual memory exhausted".
52348         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
52349         "virtual memory exhausted".
52350         * lib/same.c (same_name): Invoke xalloc_die instead of printing
52351         our own message.
52352         * lib/userspec.c (parse_user_spec): Likewise.
52353         * lib/bumpalloc.h: comment fix
52354         * lib/same.c, userspec.c: Include xalloc.h.
52355
52356         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
52357         not char *const and pointing to a constant array.
52358         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
52359         (xrealloc): Comment fix.
52360
52361         * lib/userspec.c (parse_user_spec):
52362         Don't translate a message until just before returning,
52363         to avoid unnecessary translation.
52364
52365 2000-08-07  Jim Meyering  <meyering@lucent.com>
52366
52367         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
52368         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
52369         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
52370         getgroups.c, gethostname.c, getopt.h, group-member.c,
52371         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
52372         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
52373         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
52374         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
52375         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
52376         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
52377         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
52378         yesno.c: Back out Copyright date changes for each file with no change
52379         this year.  This eases coordination with other programs using the same
52380         source code modules.  From Paul Eggert.
52381
52382 2000-08-06  Paul Eggert  <eggert@twinsun.com>
52383
52384         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
52385         not char, for compatibility with glibc 2.1.3 strftime.c.
52386
52387 2000-08-03  Greg McGary  <greg@mcgary.org>
52388
52389         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
52390         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
52391         (EXTEND_BUFFER): Use them.
52392
52393 2000-08-01  Jim Meyering  <meyering@lucent.com>
52394
52395         * lib/dirname.c (ISSLASH): Define.
52396         (BACKSLASH_IS_PATH_SEPARATOR): Define.
52397         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
52398         both `\' and `/' may be use as path separators.
52399         Based on a patch from Prashant TR.
52400
52401 2000-07-31  Paul Eggert  <eggert@twinsun.com>
52402
52403         * lib/quotearg.c (quotearg_n_options): Don't make the initial
52404         slot vector a constant, since it might get modified.
52405
52406 2000-07-31  Jim Meyering  <meyering@lucent.com>
52407
52408         * lib/xmalloc.c: Use `virtual memory exhausted', not
52409         `Memory exhausted'.
52410         * lib/obstack.c (print_and_abort): Likewise.
52411
52412 2000-07-30  Paul Eggert  <eggert@twinsun.com>
52413
52414         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
52415         buffer, so that the caller can always quote one small
52416         component of a "memory exhausted" message in slot 0.
52417         From a suggestion by Jim Meyering.
52418
52419 2000-07-30  Jim Meyering  <meyering@lucent.com>
52420
52421         * lib/makepath.c (make_path): Quote the other instance, too.
52422
52423         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
52424         (STATIC_BUF_SIZE): Define.
52425         (quotearg_n_options): Use only statically allocated storage when
52426         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
52427         than STATIC_BUF_SIZE.
52428
52429 2000-07-29  Jim Meyering  <meyering@lucent.com>
52430
52431         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
52432         * lib/dirname.c (dir_name): Likewise.
52433
52434         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
52435         `/'.
52436
52437         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
52438         (dir_name): Assert that there are no trailing slashes.
52439
52440 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
52441
52442         * lib/mbswidth.h (mbswidth): Add a flags argument.
52443         (mbswidth): New declaration.
52444         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
52445         * lib/mbswidth.c (mbswidth): Add a flags argument.
52446         (mbsnwidth): New function.
52447
52448 2000-07-24  Jim Meyering  <meyering@lucent.com>
52449
52450         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
52451
52452 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52453
52454         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
52455
52456 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52457
52458         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
52459         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
52460         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
52461         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
52462         invoke multibyte primitives.
52463
52464 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52465
52466         * lib/quotearg.c:
52467         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
52468         so that mbstate_t is always defined.
52469
52470         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
52471         be 1 in at least one GCC installation, and this configuration
52472         error is likely to be common.  Ignoring MB_LEN_MAX hurts
52473         performance on hosts that have mbrtowc but have only unibyte
52474         locales, but I assume these hosts are rare.
52475
52476 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52477
52478         * lib/mbswidth.c (_XOPEN_SOURCE):
52479         Don't define; this causes problems on Solaris 7.
52480         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
52481
52482 2000-07-23  Jim Meyering  <meyering@lucent.com>
52483
52484         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
52485         too: getgrgid, getpwuid, getuid.
52486
52487 2000-07-23  Jim Meyering  <meyering@lucent.com>
52488
52489         * lib/basename.c (base_name): Add an assertion.
52490
52491 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
52492
52493         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
52494         shadow its mbsinit function.
52495
52496 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52497
52498         * lib/mbswidth.h: New file.
52499         * lib/mbswidth.c: New file.
52500         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
52501         (noinst_HEADERS): Add mbswidth.h.
52502
52503 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52504
52505         * lib/config.charset: Add support for FreeBSD. Improve support for
52506         HP-UX and IRIX 6.
52507
52508 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
52509
52510         * m4/mbswidth.m4: New file.
52511         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
52512
52513 2000-07-15  Jim Meyering  <meyering@lucent.com>
52514
52515         * lib/makepath.c: Include quote.h.
52516         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
52517         corresponding argument in a `quote (...)' call.
52518         Give better diagnostics.
52519
52520         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
52521         (noinst_HEADERS): Add quote.h.
52522
52523         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
52524         from tar's src/misc.c.
52525         * lib/quote.h: New file.  Prototypes for same.
52526
52527 2000-07-14  Paul Eggert  <eggert@twinsun.com>
52528
52529         From a suggestion by Bruno Haible.
52530         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
52531         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
52532         to decide whether to define the BeOS workaround macro;
52533         this adjusts to the change to AC_MBSTATE_T.
52534
52535 2000-07-14  Jim Meyering  <meyering@lucent.com>
52536
52537         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
52538         jm_AC_TYPE_UINTMAX_T.
52539
52540 2000-07-13  Paul Eggert  <eggert@twinsun.com>
52541
52542         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
52543
52544         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
52545         quotearg_buffer_restyled): Add support for
52546         clocale_quoting_style.  Undo previous change to
52547         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
52548         and "{RIGHT QUOTATION MARK}" msgids.
52549
52550 2000-07-10  Paul Eggert  <eggert@twinsun.com>
52551
52552         From a suggestion by Bruno Haible.
52553         * m4/mbstate_t.m4 (AC_MBSTATE_T):
52554         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
52555         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
52556         and mbstate_t, to a single-part test that simply defines mbstate_t.
52557         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
52558         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
52559
52560 2000-07-10  Jim Meyering  <meyering@lucent.com>
52561
52562         * m4/strerror_r.m4: Mirror the correction made in autoconf.
52563
52564         * m4/gnu-source.m4: Output to confdefs.h directly.
52565         Suggestion from Akim Demaille.
52566
52567 2000-07-09  Paul Eggert  <eggert@twinsun.com>
52568
52569         The old behavior of quoting `like this' doesn't look good with
52570         newer, ISO-style fonts.  See:
52571         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
52572
52573         Instead, quote "like this" by default.  Let the translator
52574         tailor the locale-specific quoting behavior by providing
52575         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
52576
52577         * lib/quotearg.c (N_): New macro.
52578         (gettext_default): New function.
52579         (quotearg_buffer_restyled): Use
52580         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
52581         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
52582
52583 2000-07-09  Jim Meyering  <meyering@lucent.com>
52584
52585         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
52586         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
52587
52588         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
52589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
52590
52591 2000-07-09  Jim Meyering  <meyering@lucent.com>
52592
52593         * lib/Most files: Update copyright dates to include 2000.
52594
52595 2000-07-08  Jim Meyering  <meyering@lucent.com>
52596
52597         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
52598         if not defined.
52599         (xgethostname): Remove now-unnecessary #ifdef.
52600         Move declaration of `err' into loop where it's used.
52601
52602 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52603         and Bruno Haible  <haible@clisp.cons.org>
52604
52605         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
52606         only if the test for an object-type mbstate_t fails.  This
52607         prevents us from mistakenly reporting that mbstate_t is a
52608         system object type after we "#define mbstate_t int" to work
52609         around its lack.
52610
52611 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52612         and Bruno Haible  <haible@clisp.cons.org>
52613
52614         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
52615
52616 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52617
52618         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
52619         to strerror_r.
52620         Include <ctype.h> for use of isalpha.
52621
52622 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52623
52624         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
52625         by allocating a larger buffer. Test the gethostname return value for
52626         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
52627         returns an error and ENAMETOOLONG isn't defined.
52628
52629 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52630
52631         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
52632         dimension.
52633
52634 2000-07-04  Jim Meyering  <meyering@lucent.com>
52635
52636         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
52637         of the deprecated AC_CHECKING.
52638
52639 2000-07-04  Jim Meyering  <meyering@lucent.com>
52640
52641         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
52642         Reported by Bruno Haible.
52643
52644 2000-07-04  Jim Meyering  <meyering@lucent.com>
52645
52646         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
52647         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
52648         lacks mbrtowc.
52649
52650 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52651
52652         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
52653         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
52654
52655 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52656         and Bruno Haible  <haible@clisp.cons.org>
52657
52658         * lib/quotearg.c (mbrtowc):
52659         Assign to *pwc, and return 1 only if result is nonzero.
52660         (iswprint): Use ISPRINT when substituting our own mbrtowc.
52661
52662 2000-07-03  Jim Meyering  <meyering@lucent.com>
52663
52664         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
52665
52666 2000-07-03  Jim Meyering  <meyering@lucent.com>
52667
52668         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
52669         This is necessary to get a definition of e.g., UTMP_FILE on
52670         HP-UX 10.20.
52671         From Bob Proulx.
52672
52673 2000-07-02  Jim Meyering  <meyering@lucent.com>
52674
52675         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
52676
52677         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
52678         AC_LIBOBJ(function_name).
52679         * m4/chown.m4: Likewise.
52680         * m4/fnmatch.m4: Likewise.
52681         * m4/ftruncate.m4: Likewise.
52682         * m4/getgroups.m4: Likewise.
52683         * m4/getline.m4: Likewise.
52684         * m4/group-member.m4: Likewise.
52685         * m4/jm-macros.m4: Likewise.
52686         * m4/lstat.m4: Likewise.
52687         * m4/malloc.m4: Likewise.
52688         * m4/memcmp.m4: Likewise.
52689         * m4/nanosleep.m4: Likewise.
52690         * m4/putenv.m4: Likewise.
52691         * m4/realloc.m4: Likewise.
52692         * m4/regex.m4: Likewise.
52693         * m4/stat.m4: Likewise.
52694         * m4/strftime.m4: Likewise.
52695
52696 2000-07-02  Jim Meyering  <meyering@lucent.com>
52697
52698         * lib/quotearg.c (mbstate_t): Don't define here.
52699
52700 2000-07-02  Jim Meyering  <meyering@lucent.com>
52701
52702         * lib/nanosleep.c (SIGCONT): Define if not already defined.
52703
52704 2000-07-01  Jim Meyering  <meyering@lucent.com>
52705
52706         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
52707
52708 2000-07-01  Jim Meyering  <meyering@lucent.com>
52709
52710         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
52711         problem.
52712
52713 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52714
52715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
52716         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
52717
52718 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52719
52720         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
52721         per change in ../m4/ls-mntd-fs.m4.
52722         (read_filesystem_list): Ignore symbolic links.
52723
52724 2000-06-29  Jim Meyering  <meyering@lucent.com>
52725
52726         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
52727         for declaration of strcmp.
52728
52729         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
52730
52731         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
52732         Avoid warning by casting result to `char *' to remove `const'.
52733
52734 2000-06-28  Jim Meyering  <meyering@lucent.com>
52735
52736         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
52737         included by quotearg.c, for which we perform this test.  From
52738         Bruno Haible.
52739
52740 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52741
52742         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
52743         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
52744         <utmpx.h> exists, put readutmp.o into LIBOBJS.
52745
52746 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52747
52748         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
52749
52750 2000-06-26  Paul Eggert  <eggert@twinsun.com>
52751
52752         savedir now sets errno on failure and invokes xmalloc to get memory.
52753         Fix a couple of other minor bugs while we're at it.
52754
52755         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
52756         (NAMLEN): Remove macro.
52757         (malloc, realloc): Remove decls.
52758         (stpcpy): Likewise.
52759         ("xalloc.h"): Include.
52760         (NAME_SIZE_DEFAULT): New macro.
52761         (savedir): Use xmalloc / xrealloc to allocate memory.
52762         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
52763         Skip "" directory entries.
52764         Use strlen to calculate directory entry length, since the old method
52765         is rarely used these days and isn't worth supporting.
52766         Don't use a pointer after freeing it.
52767         Check for integer overflow when calculating allocation size.
52768         Use memcpy to copy entries, instead of stpcpy.
52769         Set errno properly when returning NULL.
52770         Check for readdir error.
52771
52772 2000-06-26  Jim Meyering  <meyering@lucent.com>
52773
52774         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
52775
52776 2000-06-25  Jim Meyering  <meyering@lucent.com>
52777
52778         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
52779         Linux header bug when _XOPEN_SOURCE is defined to 500.
52780
52781 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52782
52783         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
52784         deficiency.
52785
52786 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52787
52788         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
52789         Include xalloc.h.
52790         Don't include <stdlib.h>.  Don't declare malloc, realloc.
52791
52792 2000-06-24  Jim Meyering  <meyering@lucent.com>
52793
52794         * m4/strerror_r.m4: Revive this file -- to try out an experimental
52795         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
52796         for which strerror does return char*, but which lacks a conveniently
52797         accessible declaration of the function.  If the compile-test says
52798         strerror_r doesn't work, then resort to a `run'-test that works on
52799         BeOS and segfaults on DEC Unix.
52800
52801 2000-06-24  Jim Meyering  <meyering@lucent.com>
52802
52803         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
52804
52805 2000-06-23  Paul Eggert  <eggert@twinsun.com>
52806
52807         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
52808         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
52809
52810 2000-06-23  Paul Eggert  <eggert@twinsun.com>
52811
52812         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
52813         (mbrtowc, mbstate_t): Define substitutes if
52814         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
52815         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
52816         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
52817
52818 2000-06-23  Jim Meyering  <meyering@lucent.com>
52819
52820         * m4/afs.m4: Add missing AC_MSG_RESULT.
52821         Reported by Bruno Haible.
52822
52823         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
52824         Suggestion from Bruno Haible.
52825
52826 2000-06-23  Jim Meyering  <meyering@lucent.com>
52827
52828         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
52829
52830 2000-06-21  Jim Meyering  <meyering@lucent.com>
52831
52832         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
52833
52834 2000-06-21  Jim Meyering  <meyering@lucent.com>
52835
52836         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
52837         (noinst_HEADERS): Add getstr.h.
52838
52839         * lib/getline.c (getstr): Move into a separate file.
52840         * lib/getstr.c (getstr): New file, extracted from getline.c, with
52841         the following changes: new parameter, delim2; both delim[12]
52842         parameters have type `int', not `char'.  The latter would lose
52843         with 8-bit delimiters.
52844         * lib/getstr.h: New file.
52845
52846 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52847
52848         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
52849         than 1024, return a memory chunk of least possible size, instead
52850         of size PATH_MAX + 2. In the loop, increment the size proportionally.
52851         Use free/xmalloc instead of xrealloc to avoid copying for very long
52852         paths.
52853
52854 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52855
52856         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
52857         the empty string.
52858
52859 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52860
52861         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
52862         address, not strdup.  Include <stdlib.h> and don't declare free().
52863
52864 2000-06-19  Jim Meyering  <meyering@lucent.com>
52865
52866         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
52867
52868 2000-06-18  Jim Meyering  <meyering@lucent.com>
52869
52870         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
52871
52872         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
52873         `checking whether...' message to be consistent with that of the
52874         lstat test.
52875
52876 2000-06-18  Jim Meyering  <meyering@lucent.com>
52877
52878         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
52879         Besides, these days every porting target provides a mkdir function.
52880
52881         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
52882         needed. (this snippet comes from src/system.h).
52883
52884 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
52885
52886         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
52887
52888 2000-06-15  Paul Eggert  <eggert@twinsun.com>
52889
52890         * lib/human.c (adjust_value): New function.
52891         (human_readable_inexact): Apply rounding style even when
52892         printing approximate values.
52893
52894 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52895
52896         * lib/human.c (human_readable_inexact): Allow an input block
52897         size that is not a multiple of the output block size, and vice versa.
52898         Reported by Piergiorgio Sartor.
52899
52900 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52901
52902         * lib/getdate.y (get_date): Apply relative times after time
52903         zone indicator, not before.  Reported by Todd A. Jacobs.
52904
52905 2000-06-13  Jim Meyering  <meyering@lucent.com>
52906
52907         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
52908
52909         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
52910
52911 2000-06-12  Paul Eggert  <eggert@twinsun.com>
52912
52913         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
52914
52915 2000-06-12  Jim Meyering  <meyering@lucent.com>
52916
52917         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
52918         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
52919         optional argument.
52920         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
52921         the optional argument, `lib'.
52922
52923 2000-06-08  Jim Meyering  <meyering@lucent.com>
52924
52925         * m4/largefile.m4: Remove file (now that it's part of autoconf).
52926
52927 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52928
52929         Rewrite largefile configuration so that we don't need to run
52930         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
52931         AC_CANONICAL_HOST in configure.in -- jmm]
52932
52933         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
52934         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
52935         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
52936         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
52937         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
52938         All uses changed.
52939         Instead of inspecting the output of getconf, try to compile the
52940         test program without and with the macro definition.
52941         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
52942         for getconf.  Instead, check for the needed flags by compiling
52943         test programs.
52944
52945 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52946
52947         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
52948
52949 2000-06-04  Jim Meyering  <meyering@lucent.com>
52950
52951         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
52952         SunOS 4.1.4 for which gid_t is an unsigned type.
52953
52954 2000-06-03  Jim Meyering  <meyering@lucent.com>
52955
52956         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
52957         now that autoconf requires that.
52958
52959         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
52960         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
52961         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
52962
52963 2000-06-03  Jim Meyering  <meyering@lucent.com>
52964
52965         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
52966
52967 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52968
52969         * m4/glibc21.m4: New file.
52970         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
52971
52972 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52973
52974         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
52975         newer, don't install charset.alias.
52976         * lib/config.charset: Change the Linux/glibc rules so they become empty
52977         on glibc-2.1 or newer.
52978
52979 2000-06-02  Jim Meyering  <meyering@lucent.com>
52980
52981         * lib/mountlist.c: Back out last change.  Instead, do this...
52982         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
52983         me_dummy member using the same `ignore'-testing code.
52984         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
52985         fs_type strings.
52986         From Mark D. Roth.
52987
52988 2000-05-29  Jim Meyering  <meyering@lucent.com>
52989
52990         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
52991         mounts with the `ignore' attribute.  Based on a patch from
52992         Mark D. Roth.
52993
52994 2000-05-28  Jim Meyering  <meyering@lucent.com>
52995
52996         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
52997         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52998         * m4/stat.m4: Likewise.
52999         * m4/lstat.m4: Likewise.
53000         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
53001
53002         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
53003         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
53004
53005 2000-05-26  Jim Meyering  <meyering@lucent.com>
53006
53007         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
53008
53009 2000-05-24  Jim Meyering  <meyering@lucent.com>
53010
53011         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
53012         autoconf requires that.
53013         * m4/lib-check.m4: Likewise.
53014         * m4/jm-macros.m4: Likewise.
53015         * m4/strftime.m4: Likewise.
53016
53017         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
53018         AC_CHECK_DECLS, now that autoconf requires that.
53019
53020 2000-05-22  Jim Meyering  <meyering@lucent.com>
53021
53022         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53023         * m4/lstat.m4: Likewise.
53024
53025 2000-05-22  Jim Meyering  <meyering@lucent.com>
53026
53027         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
53028
53029 2000-05-20  Jim Meyering  <meyering@lucent.com>
53030
53031         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
53032         (jm_PREREQ): Use it.
53033
53034 2000-05-18  Jim Meyering  <meyering@lucent.com>
53035
53036         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
53037         back, too, since it may have been modified by allocate_entry.
53038         (hash_delete): Rewrite to use neither the assignment operator
53039         nor the comma operator in an if-expression.
53040
53041 2000-05-15  Paul Eggert  <eggert@twinsun.com>
53042
53043         * lib/closeout.c:
53044         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
53045         Remove; no longer needed.
53046         "quotearg.h": Add include.
53047         (file_name): Do not bother to explicitly initialize to NULL; it's less
53048         efficient on some hosts.
53049         (close_stdout_status): Remove test as to whether stdout was already
53050         closed; it breaks for the case "echo x | sort >&-".
53051         Quote file name colons.
53052         Do not assume that _("write error") lacks format strings.
53053
53054 2000-05-15  Jim Meyering  <meyering@lucent.com>
53055
53056         * lib/version-etc.c (version_etc_copyright): Update the copyright
53057         string used in all --version output.
53058
53059 2000-05-14  Jim Meyering  <meyering@lucent.com>
53060
53061         * lib/closeout.c (close_stdout_set_file_name): New function.
53062         (close_stdout_status): Use new file-scoped global.
53063         Return right away if fstat says the stdout file descriptor is invalid.
53064         * lib/closeout.h (close_stdout_set_file_name): Declare.
53065
53066 2000-05-10  Jim Meyering  <meyering@lucent.com>
53067
53068         * lib/closeout.c [default_exit_status]: New file-scoped variable.
53069         (close_stdout_set_status): New function.
53070         * lib/closeout.h (close_stdout_set_status): Declare.
53071
53072 2000-05-09  Jim Meyering  <meyering@lucent.com>
53073
53074         * m4/gettext.m4: Rename this...
53075         * m4/libintl.m4: ...to this.
53076
53077 2000-05-08  Jim Meyering  <meyering@lucent.com>
53078
53079         * lib/long-options.c: Don't include closeout.h.
53080         (parse_long_options): Don't call close_stdout for --version.
53081
53082 2000-05-06  Paul Eggert  <eggert@twinsun.com>
53083
53084         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
53085         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
53086         2.1.3 bug.  This avoids a clash when files like regex.c define
53087         _GNU_SOURCE.
53088
53089 2000-05-06  Jim Meyering  <meyering@lucent.com>
53090
53091         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
53092         (AC_REPLACE_FUNCS): Add strnlen.
53093
53094         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
53095         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
53096
53097         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
53098         AC_SEARCH_LIBS call for nanosleep.
53099         (LIB_NANOSLEEP): Set and AC_SUBST.
53100
53101 2000-05-06  Jim Meyering  <meyering@lucent.com>
53102
53103         * lib/strnlen.c: Undefine __strnlen and strnlen.
53104         [!weak_alias]: Define __strnlen to strnlen.
53105
53106         * lib/atexit.c: New file, from libiberty.
53107
53108 2000-05-06  Jim Meyering  <meyering@lucent.com>
53109
53110         * lib/closeout.c (close_stdout_status): Also check for errors on the
53111         stderr stream.
53112
53113 2000-05-05  Jim Meyering  <meyering@lucent.com>
53114
53115         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
53116         AC_SEARCH_LIBS call for clock_gettime.
53117         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
53118
53119         * m4/search-libs.m4: Update from autoconf.
53120
53121         su doesn't work on Solaris 2.6.
53122         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
53123         <shadow.h>.  Reported by Dragos Harabor.
53124
53125 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
53126
53127         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
53128         memcpy instead of xmalloc, xrealloc, path_concat.
53129         (locale_charset): Treat empty environment variables as absent.
53130         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
53131
53132 2000-05-04  Jim Meyering  <meyering@lucent.com>
53133
53134         * lib/getopt.c: Update from glibc.
53135         * lib/obstack.c: Likewise.
53136         * lib/obstack.h: Likewise.
53137         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
53138         file
53139
53140         * lib/regex.h: Likewise.
53141         * lib/strndup.c: Likewise.
53142         * lib/strnlen.c: New file, from glibc.
53143
53144 2000-05-03  Jim Meyering  <meyering@lucent.com>
53145
53146         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
53147
53148 2000-05-02  Paul Eggert  <eggert@twinsun.com>
53149
53150         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
53151         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
53152         compile-time test, rather than inspecting host and OS, to
53153         decide whether to define _LARGEFILE_SOURCE.
53154
53155 2000-05-01  Jim Meyering  <meyering@lucent.com>
53156
53157         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
53158
53159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
53160         Based on a patch from Bruno Haible.
53161
53162 2000-05-01  Jim Meyering  <meyering@lucent.com>
53163
53164         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
53165
53166 2000-04-29  Jim Meyering  <meyering@lucent.com>
53167
53168         * lib/path-concat.c: Declare strdup only if it's not defined.
53169         * lib/canon-host.c: Likewise.
53170
53171 2000-04-28  Jim Meyering  <meyering@lucent.com>
53172
53173         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
53174         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
53175         is included first, then limits.h is included by locale.h by libintl.h.
53176         From John David Anglin.
53177
53178 2000-04-25  Jim Meyering  <meyering@lucent.com>
53179
53180         * lib/makepath.c (S_IRWXUGO): Define.
53181         (make_path): Always perform explicit chmod if MODE specifies any
53182         of the `special' permission bits.  Prompted by a bug report against
53183         install from Mate Wierdl and Joost van Baal.
53184
53185 2000-04-18  Jim Meyering  <meyering@lucent.com>
53186
53187         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
53188         (jm_PREREQ): Use it.
53189
53190 2000-04-18  Jim Meyering  <meyering@lucent.com>
53191
53192         * lib/README: New file.
53193
53194         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
53195         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
53196
53197 2000-04-17  Jim Meyering  <meyering@lucent.com>
53198
53199         Get it right :-)
53200         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
53201         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
53202         Suggestion from Akim Demaille.
53203
53204 2000-04-17  Jim Meyering  <meyering@lucent.com>
53205
53206         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
53207         the definition of it to rpl_strftime also defined-away the system's
53208         declaration.
53209
53210 2000-04-15  Jim Meyering  <meyering@lucent.com>
53211
53212         Use `C' to denote so-called `contiguous' files, the same way
53213         that tar does.
53214         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
53215         (ftypelet): Use S_ISCTG.
53216         From Michael Deutschmann.
53217
53218 2000-04-14  Jim Meyering  <meyering@lucent.com>
53219
53220         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
53221         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
53222         clobbered.
53223
53224 2000-04-14  Jim Meyering  <meyering@lucent.com>
53225
53226         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
53227
53228 2000-04-13  Jim Meyering  <meyering@lucent.com>
53229
53230         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
53231         AH_VERBATIM to insert required #ifndef into config.h.in.
53232         Suggestion from Akim Demaille.
53233
53234 2000-04-12  Jim Meyering  <meyering@lucent.com>
53235
53236         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
53237         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
53238         Christian Krackowizer.
53239
53240         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
53241         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
53242         (AC_SYS_LARGEFILE): Require.
53243         (AM_C_PROTOTYPES): Require.
53244
53245 2000-04-08  Jim Meyering  <meyering@lucent.com>
53246
53247         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
53248         names don't conflict.  Reported by Eli Zaretskii.
53249
53250 2000-04-07  Jim Meyering  <meyering@lucent.com>
53251
53252         * lib/putenv.c: Move inclusion of errno.h so it follows that of
53253         sys/types.h, to work around system header problems on AIX 3.2.5.
53254         From Bruno Haible.
53255
53256 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
53257
53258         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
53259         bug.  Deal with the different error behavior of Irix iconv.
53260
53261 2000-04-05  Paul Eggert  <eggert@twinsun.com>
53262
53263         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
53264         IRIX if the installer said otherwise.
53265
53266 2000-04-05  Jim Meyering  <meyering@lucent.com>
53267
53268         Portability tweaks required for ultrix4.3.
53269         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
53270         (jm_CHECK_DECLS): Add getutent to the list of functions.
53271         (_jm_DECL_HEADERS): Add utmpx.h.
53272         From John David Anglin.
53273
53274         * m4/strftime.m4: Back out the 2000-04-02 change.
53275         Instead of that change, simply undefine putenv in the test program.
53276
53277 2000-04-05  Jim Meyering  <meyering@lucent.com>
53278
53279         Portability tweaks required for ultrix4.3.
53280         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
53281         getutent.
53282         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
53283         * lib/canon-host.c: Declare strdup.
53284         * lib/path-concat.c: Likewise.
53285         From John David Anglin.
53286
53287 2000-04-04  Jim Meyering  <meyering@lucent.com>
53288
53289         Be more DOS 8.3-friendly.
53290         * lib/ref-add.sin: Renamed from ref-add.sed.in.
53291         * lib/ref-del.sin: Renamed from ref-del.sed.in.
53292         * lib/Makefile.am: Reflect renaming.
53293         Reported by Eli Zaretskii.
53294
53295         Use a temporary file name that won't clash with `charset.alias'
53296         in the DOS 8.3 name space.
53297         * lib/Makefile.am (charset_tmp): Define.
53298         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
53299         (uninstall-local): Likewise.
53300         Reported by Eli Zaretskii.
53301
53302 2000-04-03  Jim Meyering  <meyering@lucent.com>
53303
53304         * m4/gettext.m4: Fix typo in comment.
53305
53306         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
53307         textutils/configure.in).  Suggestion from Paul Eggert.
53308         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
53309
53310 2000-04-02  Paul Eggert  <eggert@twinsun.com>
53311
53312         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
53313         variable in the shell rather than using putenv, which isn't
53314         portable.  This avoids the configure-time inter-test dependency
53315         on the potentially-renamed putenv function.
53316
53317 2000-03-30  Paul Eggert  <eggert@twinsun.com>
53318
53319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
53320         before checking struct stat.st_blksize, so that
53321         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
53322
53323 2000-03-29  Paul Eggert  <eggert@twinsun.com>
53324
53325         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
53326         since strftime.c uses HAVE_STRFTIME to decide whether to use
53327         the underlying strftime.
53328
53329 2000-03-29  Paul Eggert  <eggert@twinsun.com>
53330
53331         * lib/time/strftime.c (my_strftime): Make sure we call the system
53332         strftime, not ourselves, when invoking the underlying strftime.
53333
53334 2000-03-24  Jim Meyering  <meyering@lucent.com>
53335
53336         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
53337         (charset_alias): Define.
53338         (install-exec-local): Factor out common code.
53339         (uninstall-local): Split lines longer than 80.
53340         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
53341         (SUFFIXES): Define.
53342         (.sed.in.sed): New rule.  Don't redirect directly to $@.
53343         (CLEANFILES): Add ref-add.sed and ref-del.sed.
53344
53345 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
53346
53347         * lib/config.charset: Output a line containing "Packages using this
53348         file".
53349         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
53350         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
53351         ref-del.sed): New rules.
53352
53353 2000-03-17  Jim Meyering  <meyering@lucent.com>
53354
53355         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
53356         Otherwise, include <strings.h>
53357
53358 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
53359
53360         * lib/unicodeio.c (utf8_wctomb): New function.
53361         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
53362         format instead of in UCS-4 with platform dependent endianness.
53363
53364 2000-03-10  Jim Meyering  <meyering@lucent.com>
53365
53366         * m4/lib-check.m4: Look for getspnam in -lgen, too.
53367         From Marco Franzen.
53368
53369 2000-03-07  Paul Eggert  <eggert@twinsun.com>
53370
53371         * lib/savedir.c (savedir): Work even if directory size is
53372         negative; this can happen with some screwy NFS configurations.
53373
53374 2000-03-06  Jim Meyering  <meyering@lucent.com>
53375
53376         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
53377         if it's NULL (because we ran out of memory).  From Bruno Haible.
53378
53379 2000-03-05  Jim Meyering  <meyering@lucent.com>
53380
53381         * lib/localcharset.c ("path-concat.h"): Include.
53382         (get_charset_aliases): Use path_concat instead of ANSI string
53383         concatenation.
53384
53385         * lib/unicodeio.h (PARAMS): Define.
53386         Use it to guard prototype.
53387
53388 2000-03-04  Jim Meyering  <meyering@lucent.com>
53389
53390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
53391         for lib/localcharset.c.
53392
53393 2000-03-04  Jim Meyering  <meyering@lucent.com>
53394
53395         * lib/Makefile.am (install-exec-local): Create $(libdir) before
53396         installing into it.
53397         (uninstall-local): Uncomment this rule so `make distcheck' works
53398         once again.
53399
53400         * lib/unicodeio.c (<errno.h>): Include it.
53401         (errno): Declare if not defined.
53402
53403         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
53404
53405         * lib/config.charset: New version, incorporating remarks from a linux
53406         i18n mailing list.  From Bruno Haible.
53407
53408 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
53409
53410         * m4/codeset.m4: New file.
53411         * m4/iconv.m4: New file.
53412         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
53413
53414 2000-03-03  Jim Meyering  <meyering@lucent.com>
53415
53416         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
53417
53418 2000-03-02  Jim Meyering  <meyering@lucent.com>
53419
53420         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
53421         the messages come out on separate lines.
53422
53423         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
53424         rather than jm_CHECK_DECLARATIONS.
53425         * m4/decl.m4: Remove now-unused file.
53426
53427         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
53428         geteuid.
53429
53430 2000-03-02  Jim Meyering  <meyering@lucent.com>
53431
53432         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
53433
53434 2000-03-01  Jim Meyering  <meyering@lucent.com>
53435
53436         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
53437         * lib/unicodeio.c: Likewise.
53438
53439 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
53440
53441         * lib/config.charset: New file.
53442         * lib/localcharset.c: New file.
53443         * lib/unicodeio.h, lib/unicodeio.c: New files.
53444         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
53445         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
53446         (noinst_HEADERS): Add unicodeio.h.
53447         (all-local, install-exec-local, charset.alias): New targets.
53448
53449 2000-02-28  Paul Eggert  <eggert@twinsun.com>
53450
53451         * lib/quotearg.c (ALERT_CHAR): New macro.
53452         (quotearg_buffer_restyled): Use it.
53453
53454 2000-02-27  Jim Meyering  <meyering@lucent.com>
53455
53456         * m4/check-decl.m4: Add getenv to the list.
53457
53458 2000-02-27  Jim Meyering  <meyering@lucent.com>
53459
53460         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
53461         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
53462
53463         * lib/backupfile.c: Guard inclusion of stdlib.h with
53464         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
53465         Declare malloc if needed.
53466
53467         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
53468         `#ifndef HAVE_DECL..'
53469         now that autoconf always defines the HAVE_DECL_ symbols.
53470         * lib/human.c: Likewise.
53471         * lib/same.c: Likewise.
53472         * lib/strtoumax.c: Likewise.
53473
53474         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
53475         declaration check was not run.
53476         * lib/hash.c: Likewise.
53477         * lib/human.c: Likewise.
53478         * lib/same.c: Likewise.
53479         * lib/strtoumax.c: Likewise.
53480
53481         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
53482         `.', then first look up the entire `.'-containing string as a login
53483         name.
53484
53485 2000-02-23  Jim Meyering  <meyering@lucent.com>
53486
53487         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
53488         in place of my hack.
53489
53490 2000-02-18  Paul Eggert  <eggert@twinsun.com>
53491
53492         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
53493         (textint): New typedef.
53494         (parser_control): Member year changed from int to textint.
53495         All uses changed.
53496         (YYSTYPE): Removed; replaced by %union with int and textint members.
53497         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
53498         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
53499         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
53500         (tSNUMBER, tUNUMBER): Now of type <textintval>.
53501         (date, number, to_year): Use width of number in digits, not its value,
53502         to determine whether it's a 2-digit year, or a 2-digit time.
53503         (yylex): Store number of digits of numeric tokens.
53504         Reported by John Kendall.
53505
53506         (parser_control): Changed from struct parser_control to typedef (for
53507         consistency).  All uses changed.
53508
53509         (tID): Removed; not used.
53510         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
53511
53512 2000-02-14  Paul Eggert  <eggert@twinsun.com>
53513
53514         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
53515         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
53516
53517 2000-02-12  Jim Meyering  <meyering@lucent.com>
53518
53519         * lib/userspec.c (ISDIGIT): Define it.
53520         (isdigit): Remove definition.
53521         (is_number): Use ISDIGIT, not isdigit.
53522         <libintl.h>: Include.
53523         (_ and N_): Define.
53524         (parse_user_spec): Mark translatable strings.
53525
53526 2000-02-10  Jim Meyering  <meyering@lucent.com>
53527
53528         With these changes, nanosleep.[ch] are finally enough like the other
53529         lib/* replacement files to compile on a few more losing systems.
53530
53531         * lib/nanosleep.h: Don't include config.h.
53532         Remove prototype from declaration of nanosleep.
53533         (PARAMS): Remove now-unneeded definition.
53534         * lib/nanosleep.c: #undef nanosleep.
53535         (rpl_nanosleep): Rename from nanosleep.
53536
53537 2000-02-10  Jim Meyering  <meyering@lucent.com>
53538
53539         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
53540         gnu_nanosleep to rpl_nanosleep.
53541
53542 2000-02-09  Jim Meyering  <meyering@lucent.com>
53543
53544         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
53545         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
53546
53547 2000-02-08  Akim Demaille  <akim@epita.fr>
53548
53549         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
53550         `[' and `]' and remove uses of `changequote'.
53551         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
53552         (AC_SYS_LARGEFILE): Likewise.
53553         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53554         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
53555         of changequote.
53556         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
53557         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
53558         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
53559         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
53560
53561 2000-02-05  Jim Meyering  <meyering@lucent.com>
53562
53563         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
53564         Remove explicit use of AC_HEADER_TIME.  It is required by
53565         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
53566         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
53567         in autoconf whereby the expansion of the latter ended up preceding
53568         the expansion of its prerequisite, AC_HEADER_TIME.
53569         Reported by Volker Borchert.
53570
53571 2000-02-03  Jim Meyering  <meyering@lucent.com>
53572
53573         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
53574
53575 2000-02-03  Jim Meyering  <meyering@lucent.com>
53576
53577         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
53578         rather than with `#if HAVE_UTMPNAME'.
53579
53580 2000-02-02  Jim Meyering  <meyering@lucent.com>
53581
53582         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
53583         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
53584         Reported by Eli Zaretskii.
53585
53586 2000-02-01  Jim Meyering  <meyering@lucent.com>
53587
53588         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
53589
53590 2000-01-31  Jim Meyering  <meyering@lucent.com>
53591
53592         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
53593         functions.  Add the time.h and sys/time.h headers along with the
53594         AC_REQUIRE'ment of AC_HEADER_TIME.
53595
53596 2000-01-31  Jim Meyering  <meyering@lucent.com>
53597
53598         * lib/nanosleep.h (nanosleep): Guard declaration with
53599         `#if ! HAVE_DECL_NANOSLEEP'.
53600         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
53601         the declaration in that vendor's sys/timers.h.
53602         Reported by Christian Krackowizer.
53603
53604         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
53605         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
53606         (ISPRINT): Likewise.
53607         Reported by Tom Tromey.
53608
53609 2000-01-30  Jim Meyering  <meyering@lucent.com>
53610
53611         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
53612
53613         * m4/prereq.m4 (utmp_includes): Define.
53614         Check for ut_user and ut_name members in both struct utmpx
53615         and struct utmp.
53616
53617 2000-01-30  Jim Meyering  <meyering@lucent.com>
53618
53619         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
53620         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
53621         header files where only utmpx.ut_user is declared.
53622
53623         * lib/readutmp.h (UT_USER): Define.
53624
53625 2000-01-29  Jim Meyering  <meyering@lucent.com>
53626
53627         * m4/lib-check.m4: New file containing library-related checks from
53628         fileutils and sh-utils (textutils had none).
53629
53630 2000-01-28  Jim Meyering  <meyering@lucent.com>
53631
53632         * m4/perl.m4: Change format of warning message to look more like that
53633         from the missing script.  Suggestion from François Pinard.
53634
53635 2000-01-25  Jim Meyering  <meyering@lucent.com>
53636
53637         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
53638         well as time.h in the compile check.
53639         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
53640         Fix typo in cross-compiling case: s/yes/no/.
53641
53642 2000-01-23  Jim Meyering  <meyering@lucent.com>
53643
53644         * m4/jm-macros.m4: Move df-related tests here from
53645         fileutils/configure.in
53646
53647         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
53648         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
53649
53650         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
53651         s/space/ac_fsusage_space/.
53652         (jm_FILE_SYSTEM_USAGE): Take two parameters.
53653
53654         * m4/ftruncate.m4: New file (derived from part of
53655         fileutils/configure.in).
53656         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
53657         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
53658
53659         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
53660         AC_SUBST these here, rather than just in sh-util/configure.in, so
53661         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
53662         all the same.
53663         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
53664         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
53665         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
53666         (AC_SUBST(POW_LIBM)): Likewise.
53667         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
53668
53669 2000-01-23  Jim Meyering  <meyering@lucent.com>
53670
53671         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
53672         obstack.c.
53673
53674 2000-01-22  Jim Meyering  <meyering@lucent.com>
53675
53676         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
53677
53678         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
53679
53680         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
53681         configure.in
53682         (AC_CHECK_HEADERS): Likewise for sh-utils.
53683         (AC_CHECK_HEADERS): Likewise for textutils.
53684         Merge the three lists of headers.
53685
53686         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
53687         from fileutils' configure.in.
53688
53689         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
53690         code. Moved tests into their own function (_jm_DECL_HEADERS) in
53691         check-decl.m4.
53692
53693         * m4/check-decl.m4: Use #if rather than #ifdef.
53694         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
53695         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
53696         (_jm_DECL_HEADERS): Define new function.
53697         (jm_CHECK_DECLARATIONS): Require it.
53698
53699 2000-01-22  Jim Meyering  <meyering@lucent.com>
53700
53701         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
53702         [! HAVE_DECL_STRTOULL]: Declare strtoull.
53703         Required for some AIX systems.  Reported by Christian Krackowizer.
53704         [TESTING] (main): New function.
53705
53706         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
53707         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
53708         letters.
53709
53710         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
53711         iswprint.
53712
53713         * lib/strverscmp.c (ISDIGIT): Define.
53714         (strverscmp): Use ISDIGIT, not isdigit.
53715
53716 2000-01-19  Jim Meyering  <meyering@lucent.com>
53717
53718         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
53719         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
53720         defines `struct timespec' in <sys/time.h>
53721
53722         * m4/c-bs-a.m4: Remove uses of changequote altogether.
53723         Thanks to Akim for explaining.
53724
53725 2000-01-17  Paul Eggert  <eggert@twinsun.com>
53726
53727         * lib/nanosleep.c (nanosleep):
53728         Don't use SA_INTERRUPT to decide whether to call sigaction, as
53729         POSIX.1 doesn't require SA_INTERRUPT and some systems
53730         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
53731         it's been part of POSIX.1 since day 1 (in 1988).
53732
53733 2000-01-17  Jim Meyering  <meyering@lucent.com>
53734
53735         * lib/interlock: Remove unused file.  Reported by François Pinard.
53736
53737 2000-01-16  Paul Eggert  <eggert@twinsun.com>
53738
53739         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
53740         alert, backslash, formfeed, and vertical tab unnecessarily in
53741         shell quoting style.
53742
53743 2000-01-16  Jim Meyering  <meyering@lucent.com>
53744
53745         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
53746         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
53747         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
53748         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
53749
53750 2000-01-16  Jim Meyering  <meyering@lucent.com>
53751
53752         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
53753         because the latter didn't work.
53754
53755 2000-01-15  Jim Meyering  <meyering@lucent.com>
53756
53757         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
53758         (AC_REPLACE_FUNCS): Add memcpy and memset.
53759         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
53760         Add strpbrk.
53761         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
53762
53763 2000-01-12  Jim Meyering  <meyering@lucent.com>
53764
53765         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
53766         (jm_PREREQ): Use it.
53767         (jm_PREREQ_READUTMP): New macro.
53768         (jm_PREREQ): Use it.
53769
53770 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53771
53772         Quote multibyte characters correctly.
53773         * m4/c-bs-a.m4: New file.
53774         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
53775         (jm_PREREQ): Use it.
53776
53777 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53778
53779         * m4/uintmax_t.m4: Port to autoconf 2.13.
53780
53781 2000-01-08  Jim Meyering  <meyering@ascend.com>
53782
53783         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
53784         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
53785
53786 2000-01-04  Jim Meyering  <meyering@ascend.com>
53787
53788         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
53789         jm_STRUCT_DIRENT_D_TYPE.
53790         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
53791         jm_STRUCT_DIRENT_D_INO.
53792         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
53793         jm_STRUCT_UTIMBUF.
53794         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
53795         renamings.
53796         * m4/utime.m4: Likewise.
53797
53798         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
53799         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
53800
53801 2000-01-03  Paul Eggert  <eggert@twinsun.com>
53802
53803         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
53804         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
53805
53806 2000-01-02  Jim Meyering  <meyering@ascend.com>
53807
53808         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
53809         remember if this is necessary.
53810
53811 1999-12-26  Jim Meyering  <meyering@ascend.com>
53812
53813         * m4/jm-macros.m4: Use it here.
53814         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
53815
53816 1999-12-23  Jim Meyering  <meyering@ascend.com>
53817
53818         * m4/jm-macros.m4: Check for clock_gettime (moved from
53819         fileutils/configure.in)
53820         Check for gettimeofday.
53821
53822 1999-12-20  Jim Meyering  <meyering@ascend.com>
53823
53824         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
53825         autoconf-2.14a-1999-12-20.
53826
53827 1999-12-19  Jim Meyering  <meyering@ascend.com>
53828
53829         * m4/lstat-slash.m4: New file.
53830         * m4/jm-macros.m4: Use the new macro:
53831         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53832
53833 1999-12-07  Jim Meyering  <meyering@ascend.com>
53834
53835         * m4/perl.m4: Require that File::Compare be available, too.
53836         Too many systems seem to lack it.
53837
53838         * m4/strftime.m4: Add checks for most of the cpp macros tested in
53839         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
53840
53841 1999-11-18  Paul Eggert  <eggert@twinsun.com>
53842
53843         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
53844         problem with the QNX 4.25 shell, which doesn't propagate exit
53845         status of failed commands inside shell assignments.
53846
53847 1999-11-17  Jim Meyering  <meyering@ascend.com>
53848
53849         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
53850
53851 1999-11-07  Jim Meyering  <meyering@ascend.com>
53852
53853         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
53854
53855 1999-11-06  Jim Meyering  <meyering@ascend.com>
53856
53857         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
53858         * m4/jm-macros.m4 (jm_MACROS): Use it here.
53859
53860 1999-11-05  Jim Meyering  <meyering@ascend.com>
53861
53862         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
53863         configure.in of textutils, fileutils, and sh-utils into this one
53864         (shared between those packages) file.
53865         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
53866         AC_STRUCT_ST_BLKSIZE.
53867
53868 1999-11-03  Jim Meyering  <meyering@ascend.com>
53869
53870         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
53871         of AC_CHECK_TYPE checks includes unistd.h.
53872         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
53873         Suggestion from Akim Demaille.
53874
53875 1999-10-30  Jim Meyering  <meyering@ascend.com>
53876
53877         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
53878         m4-quoted string.
53879         * m4/ls-mntd-fs.m4: Likewise.
53880         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
53881         * m4/jm-winsz1.m4: Likewise.
53882
53883         * m4/const.m4: Remove file, since the fix made it into the experimental
53884         version of autoconf.
53885         * m4/mktime.m4: Likewise.
53886
53887         * m4/check-type.m4: Remove file, now that the latest version of
53888         AC_CHECK_TYPE takes a third arg to specify additional #includes.
53889
53890         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
53891         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
53892         AC_CHECK_TYPE.
53893
53894 1999-10-04  Jim Meyering  <meyering@ascend.com>
53895
53896         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
53897
53898 1999-09-22  Paul Eggert  <eggert@twinsun.com>
53899
53900         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
53901         2.95.1 bug with HP-UX 10.20.
53902
53903 1999-09-17  Jim Meyering  <meyering@ascend.com>
53904
53905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
53906         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
53907         due to missing strdup (against sh-utils-2.0).
53908
53909 1999-08-29  Jim Meyering  <meyering@ascend.com>
53910
53911         * m4/jm-macros.m4: Require jm_BISON.
53912         * m4/bison.m4: New file.
53913
53914 1999-08-17  Paul Eggert  <eggert@twinsun.com>
53915
53916         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
53917         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
53918
53919 1999-08-05  Jim Meyering  <meyering@ascend.com>
53920
53921         * m4/getline.m4: Rename test file from conftestdata to conftest.data
53922         to avoid conflicts with `conftest' on 8+3 filesystems.
53923         Suggestion from Eli Zaretskii.
53924
53925 1999-08-04  Jim Meyering  <meyering@ascend.com>
53926
53927         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
53928         fileutils and sh-utils (textutils's getline test was inadequate).
53929         (AM_FUNC_GETLINE): Run this test.
53930         (AC_CHECK_FUNCS): Check for getdelim.
53931         Reported by Bob Proulx.
53932
53933 1999-08-02  Jim Meyering  <meyering@ascend.com>
53934
53935         * m4/jm-macros.m4: Add a comment.
53936
53937 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53938
53939         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
53940         <inttypes.h> defines strtoumax as a macro (and not as a
53941         function).
53942
53943 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53944
53945         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
53946         that we can shift, multiply and divide unsigned long long
53947         values; Ultrix cc can't do it.
53948
53949 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53950
53951         * m4/mktime.m4: New file, which is a preview of what should appear
53952         in the next public autoconf release.
53953
53954 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53955
53956         * m4/lfs.m4: Remove this file.
53957         * m4/largefile.m4: New file.  It contains the old contents of
53958         lfs.m4, except that all names with prefix AC_LFS have been
53959         changed to use the prefix AC_SYS_LARGEFILE instead, to be
53960         compatible with future autoconf versions.  Also, some minor m4
53961         quoting problems have been fixed.
53962
53963 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53964
53965         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
53966         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
53967         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
53968         and simplify the shell code.
53969
53970 1999-08-01  Jim Meyering  <meyering@ascend.com>
53971
53972         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
53973         m4.
53974
53975 1999-07-20  Jim Meyering  <meyering@ascend.com>
53976
53977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
53978
53979 1999-07-15  Jim Meyering  <meyering@ascend.com>
53980
53981         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
53982
53983 1999-05-22  Jim Meyering  <meyering@ascend.com>
53984
53985         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
53986
53987 1999-05-20  Jim Meyering  <meyering@ascend.com>
53988
53989         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
53990         Add a colon after each `then' in case $4 is empty.
53991
53992 1999-05-16  Jim Meyering  <meyering@ascend.com>
53993
53994         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
53995
53996 1999-05-10  Jim Meyering  <meyering@ascend.com>
53997
53998         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
53999
54000         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
54001         AC_FUNC_MKTIME.
54002
54003 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
54004
54005         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
54006
54007 1999-05-04  Paul Eggert  <eggert@twinsun.com>
54008
54009         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
54010         not CPPFLAGS, so that linking works correctly in IRIX.
54011
54012 1999-04-30  Paul Eggert  <eggert@twinsun.com>
54013
54014         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
54015
54016 1999-04-20  Paul Eggert  <eggert@twinsun.com>
54017
54018         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
54019         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
54020         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
54021         jm_AC_TYPE_UNSIGNED_LONG_LONG.
54022         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
54023
54024         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
54025
54026 1999-04-20  Jim Meyering  <meyering@ascend.com>
54027
54028         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
54029         AC_REPLACE xstroull if necessary.  From Paul Eggert.
54030         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
54031
54032 1999-04-18  Jim Meyering  <meyering@ascend.com>
54033
54034         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
54035         * m4/jm-macros.m4: Use it.
54036
54037 1999-04-06  Jim Meyering  <meyering@ascend.com>
54038
54039         * m4/strftime.m4: Remove test for %f.
54040
54041 1999-03-29  Jim Meyering  <meyering@ascend.com>
54042
54043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
54044         superset of the AC_TYPE_* checks in the textutils, fileutils,
54045         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
54046         AC_TYPE_PID_T.
54047
54048 1999-03-28  Jim Meyering  <meyering@ascend.com>
54049
54050         * m4/jm-macros.m4: Define GNU_PACKAGE here.
54051         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
54052         replaced e.g., in the *.sh files of the sh-utils.
54053
54054 1999-03-20  Jim Meyering  <meyering@ascend.com>
54055
54056         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
54057         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
54058         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
54059
54060 1999-03-19  Jim Meyering  <meyering@ascend.com>
54061
54062         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
54063
54064 1999-03-12  Jim Meyering  <meyering@ascend.com>
54065
54066         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
54067
54068 1999-03-07  Jim Meyering  <meyering@ascend.com>
54069
54070         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
54071         declared.
54072
54073 1999-02-17  Jim Meyering  <meyering@ascend.com>
54074
54075         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
54076         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
54077
54078 1999-02-07  Jim Meyering  <meyering@ascend.com>
54079
54080         * m4/group-member.m4: New file -- extracted from sh-utils'
54081         configure.in.
54082
54083         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
54084         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
54085
54086 1999-02-06  Jim Meyering  <meyering@ascend.com>
54087
54088         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
54089         * m4/fnmatch.m4: Likewise.
54090         * m4/getgroups.m4: Likewise.
54091         * m4/lstat.m4: Likewise.
54092         * m4/malloc.m4: Likewise.
54093         * m4/putenv.m4: Likewise.
54094         * m4/realloc.m4: Likewise.
54095         * m4/regex.m4: Likewise.
54096         * m4/stat.m4: Likewise.
54097         * m4/strftime.m4: Likewise.
54098         Suggestion from Alain Magloire.
54099
54100         * m4/chown.m4: Use `.$ac_objext', not `.o'.
54101         * m4/fnmatch.m4: Likewise.
54102         * m4/getgroups.m4: Likewise.
54103         * m4/getline.m4: Likewise.
54104         * m4/lstat.m4: Likewise.
54105         * m4/malloc.m4: Likewise.
54106         * m4/memcmp.m4: Likewise.
54107         * m4/putenv.m4: Likewise.
54108         * m4/realloc.m4: Likewise.
54109         * m4/regex.m4: Likewise.
54110         * m4/stat.m4: Likewise.
54111         * m4/strftime.m4: Likewise.
54112         Suggestion from Alain Magloire.
54113
54114         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
54115         an argument.
54116
54117         * m4/regex.m4: Add a run-time Test for proper operation of
54118         re_compile_pattern.
54119
54120 1999-01-31  Jim Meyering  <meyering@ascend.com>
54121
54122         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
54123
54124 1999-01-30  Jim Meyering  <meyering@ascend.com>
54125
54126         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
54127
54128         * m4/jm-mktime.m4: Make this a wrapper around the official
54129         AM_FUNC_MKTIME rather than my private copy, now that the official one
54130         is up to date.
54131         * m4/mktime.m4: Remove file.
54132
54133         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
54134         * m4/uptime.m4: Likewise.
54135         * m4/uintmax_t.m4: Likewise.
54136
54137 1999-01-28  Jim Meyering  <meyering@ascend.com>
54138
54139         * m4/jm-macros.m4: Use jm_AFS.
54140         * m4/afs.m4: New file (from fileutils' configure.in).
54141
54142         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
54143         * m4/chown.m4: Likewise.
54144         * m4/d-ino.m4: Likewise.
54145         * m4/d-type.m4: Likewise.
54146         * m4/fnmatch.m4: Likewise.
54147         * m4/getgroups.m4: Likewise.
54148         * m4/gettext.m4: Likewise.
54149         * m4/jm-mktime.m4: Likewise.
54150         * m4/jm-winsz2.m4: Likewise.
54151         * m4/lcmessage.m4: Likewise.
54152         * m4/ls-mntd-fs.m4: Likewise.
54153         * m4/malloc.m4: Likewise.
54154         * m4/memcmp.m4: Likewise.
54155         * m4/putenv.m4: Likewise.
54156         * m4/realloc.m4: Likewise.
54157         * m4/st_mtim.m4: Likewise.
54158         * m4/strftime.m4: Likewise.
54159
54160 1999-01-16  Jim Meyering  <meyering@ascend.com>
54161
54162         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
54163         (ARGMATCH_DIE_DECL): Define.
54164
54165 1999-01-12  Jim Meyering  <meyering@ascend.com>
54166
54167         * m4/Makefile.am.in: Rewrite to avoid using fmt.
54168         Reported by Lars Hecking.
54169
54170 1999-01-10  Jim Meyering  <meyering@ascend.com>
54171
54172         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
54173         gross kludge.
54174         * m4/inttypes_h.m4: Likewise.
54175         * m4/lstat.m4: Likewise.
54176         * m4/malloc.m4: Likewise.
54177         * m4/readdir.m4: Likewise.
54178         * m4/realloc.m4: Likewise.
54179         * m4/st_dm_mode.m4: Likewise.
54180         * m4/stat.m4: Likewise.
54181         * m4/utimbuf.m4: Likewise.
54182         * m4/utimes.m4: Likewise.
54183
54184         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
54185         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
54186         comments in config.h.in are meaningful.
54187
54188         * m4/jm-macros.m4: Require autoconf-2.13 here.
54189
54190         * m4/regex.m4: By default, don't use the included regex.c on systems
54191         with glibc 2.  Suggestion from Uli Drepper.
54192
54193 1999-01-02  Jim Meyering  <meyering@ascend.com>
54194
54195         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
54196
54197 1998-12-18  Jim Meyering  <meyering@ascend.com>
54198
54199         * m4/Makefile.am.in (Makefile.am): Simplify rule.
54200         Based on a suggestion from Lars Hecking.
54201
54202 1998-11-16  Paul Eggert  <eggert@twinsun.com>
54203
54204         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
54205
54206 1998-11-16  Jim Meyering  <meyering@ascend.com>
54207
54208         * m4/lfs.m4: Double-quote the `uname...` expression.
54209
54210 1998-11-14  Jim Meyering  <meyering@ascend.com>
54211
54212         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
54213         * m4/stat.m4: Likewise.
54214
54215 1998-11-03  Jim Meyering  <meyering@ascend.com>
54216
54217         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
54218         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
54219
54220 1998-10-18  Jim Meyering  <meyering@ascend.com>
54221
54222         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
54223
54224 1998-10-17  Jim Meyering  <meyering@ascend.com>
54225
54226         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
54227         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
54228         calls for those previously hard-coded headers.  Instead, take a new
54229         parameter.
54230         (jm_CHECK_DECLARATIONS): Reflect interface change.
54231         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
54232         (jm_CHECK_DECL_LOCALTIME_R): New macro.
54233
54234         * m4/mktime.m4: Test for spring-forward gap before long-running test.
54235
54236 1998-10-14  Jim Meyering  <meyering@ascend.com>
54237
54238         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
54239         instead of "TZ=America/Vancouver".  From Paul Eggert.
54240
54241 1998-10-11  Jim Meyering  <meyering@ascend.com>
54242
54243         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
54244         This adds a test for a recently added compatibility fix for mktime.c.
54245         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
54246
54247 1998-09-27  Jim Meyering  <meyering@ascend.com>
54248
54249         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
54250
54251         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
54252         ../configure.in, including a change from Gordon Matzigkeit to allow
54253         cross-compiling for the Hurd.
54254
54255         * m4/glibc.m4: New file/macro to test for the GNU C Library
54256         versions 1 and 2.  From Gordon Matzigkeit.
54257         Indent.
54258
54259 1998-09-21  Jim Meyering  <meyering@ascend.com>
54260
54261         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
54262
54263 1998-08-18  Paul Eggert  <eggert@twinsun.com>
54264
54265         Port nanosecond-resolution times to UnixWare 2.1.2 and
54266         pedantic Solaris 2.6.
54267
54268         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
54269         AC_STRUCT_ST_MTIM.
54270         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
54271         Generate name of ns member, instead of just 1 or undef.
54272         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
54273
54274 1998-08-15  Jim Meyering  <meyering@ascend.com>
54275
54276         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
54277         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
54278         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
54279         instead of jm_TYPE_SSIZE_T.
54280
54281 1998-08-12  Jim Meyering  <meyering@ascend.com>
54282
54283         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
54284
54285 1998-08-02  Jim Meyering  <meyering@ascend.com>
54286
54287         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
54288         in acconfig.h manually.
54289
54290 1998-07-31  Paul Eggert  <eggert@twinsun.com>
54291
54292         * m4/st_mtim.m4: New file.
54293
54294 1998-07-28  Jim Meyering  <meyering@ascend.com>
54295
54296         * m4/utimes.m4: Undef stat.
54297
54298 1998-07-25  Jim Meyering  <meyering@ascend.com>
54299
54300         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
54301         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
54302
54303 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
54304
54305         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
54306         uid and gid actually remain unchanged.
54307
54308 1998-07-07  Jim Meyering  <meyering@ascend.com>
54309
54310         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
54311
54312 1998-07-04  Jim Meyering  <meyering@ascend.com>
54313
54314         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
54315         to prove that this macro can be used in packages without regex.c.
54316
54317 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
54318
54319         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
54320         is to be used.
54321
54322 1998-07-03  Jim Meyering  <meyering@ascend.com>
54323
54324         * m4/gettext.m4: Add -lintl if it's found to be necessary.
54325
54326         * m4/gettext.m4: New file -- from gettext-0.10.35.
54327         * m4/lcmessage.m4: Likewise.
54328         * m4/progtest.m4: Likewise.
54329
54330         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
54331         * m4/jm-macros.m4: Require the new macro.
54332
54333 1998-06-29  Jim Meyering  <meyering@ascend.com>
54334
54335         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
54336         for the definition of NGROUPS (used in a system header included
54337         by sys/mount.h).
54338
54339 1998-06-28  Jim Meyering  <meyering@ascend.com>
54340
54341         * m4/ls-mntd-fs.m4: New file.
54342         * m4/fstypename.m4: New file.
54343
54344         * m4/jm-macros.m4: Require the new macro.
54345         * m4/jm-glibc-io.m4: New file.
54346
54347 1998-05-19  Jim Meyering  <meyering@ascend.com>
54348
54349         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
54350         * m4/lchown.m4: New file.
54351
54352         * m4/Makefile.am.in: New file.
54353         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
54354
54355 1998-05-14  Jim Meyering  <meyering@ascend.com>
54356
54357         * m4/Makefile.am (EXTRA_DIST): Add them.
54358         * m4/jm-macros.m4: New file.
54359         * m4/utimbuf.m4: New file.
54360
54361 1998-05-12  Jim Meyering  <meyering@ascend.com>
54362
54363         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
54364
54365 1998-05-11  Jim Meyering  <meyering@ascend.com>
54366
54367         * m4/isc-posix.m4: New file.
54368
54369 1998-05-10  Jim Meyering  <meyering@ascend.com>
54370
54371         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
54372
54373 1998-05-09  Jim Meyering  <meyering@ascend.com>
54374
54375         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
54376         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
54377         with automake.
54378
54379         * m4/ssize_t.m4: New file.
54380         * m4/mktime.m4: Remove file -- the new automake has this now.
54381
54382 1998-04-26  Jim Meyering  <meyering@ascend.com>
54383
54384         * m4/assert.m4: New file.
54385         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
54386
54387 1998-04-05  Jim Meyering  <meyering@ascend.com>
54388
54389         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
54390         (jm_PREREQ): Use it here.
54391
54392 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
54393
54394         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
54395         in acconfig.h.
54396
54397 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
54398
54399         * m4/prereq.m4: New file.
54400         * m4/error.m4: New file.
54401         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
54402
54403 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
54404
54405         * m4/getline.m4: Don't set am_cv_func_working_getline before the
54406         cache-check for the same variable -- that defeated the purpose of
54407         the test; the test program was never run.  This was a problem only
54408         on systems with losing getline functions -- HP-UX 10.20 is one.
54409         Reported by Bjorn Helgaas.
54410
54411 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
54412
54413         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
54414
54415 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
54416
54417         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
54418
54419         * m4/const.m4: New file.  Use an initializer in this declaration
54420         typedef int charset[2]; const charset x;
54421         Reported by Bob Glickstein.
54422
54423 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
54424
54425         * m4/chown.m4: Fix reversed types on -1 args to chown.
54426         From Kaveh Ghazi.
54427
54428 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
54429
54430         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
54431         Add lseek and memchr.
54432
54433         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
54434         T.E.Dickey <dickey@clark.net> said that some older preprocessors
54435         have a 20-character limit on names.
54436
54437 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
54438
54439         * m4/inttypes_h.m4: New file.
54440         * m4/uintmax_t.m4: New file.
54441         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
54442
54443
54444         -----
54445
54446         Local Variables:
54447         coding: utf-8
54448         End:
54449
54450         Copyright (C) 1997-2009 Free Software Foundation, Inc.
54451
54452         Copying and distribution of this file, with or without
54453         modification, are permitted provided the copyright notice
54454         and this notice are preserved.